diff --git a/console/ui/angular.json b/console/ui/angular.json index 50a5abf283..d4ef426f56 100644 --- a/console/ui/angular.json +++ b/console/ui/angular.json @@ -57,7 +57,7 @@ }, "production": { "outputPath": "dist/prod", - "baseHref": "/", + "baseHref": "static/", "fileReplacements": [ { "replace": "src/environments/environment.ts", @@ -86,7 +86,7 @@ }, "production-nt": { "outputPath": "dist/prod-nt", - "baseHref": "/", + "baseHref": "static/", "fileReplacements": [ { "replace": "src/environments/environment.ts", diff --git a/console/ui/dist/prod-nt/index.html b/console/ui/dist/prod-nt/index.html index 77e7e33667..6c99108d15 100644 --- a/console/ui/dist/prod-nt/index.html +++ b/console/ui/dist/prod-nt/index.html @@ -1,13 +1,13 @@ Nakama Console - + - + - + \ No newline at end of file diff --git a/console/ui/dist/prod-nt/static/3rdpartylicenses.txt b/console/ui/dist/prod-nt/static/3rdpartylicenses.txt index d79e79f835..fd1b141e5f 100644 --- a/console/ui/dist/prod-nt/static/3rdpartylicenses.txt +++ b/console/ui/dist/prod-nt/static/3rdpartylicenses.txt @@ -72,6 +72,30 @@ THE SOFTWARE. @ng-select/ng-select MIT +@popperjs/core +MIT +The MIT License (MIT) + +Copyright (c) 2019 Federico Zivolo + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @swimlane/ngx-charts MIT MIT License @@ -997,21 +1021,6 @@ Apache-2.0 -tslib -0BSD -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - ui vanilla-jsoneditor diff --git a/console/ui/dist/prod-nt/static/main.6557bd7521dbbe88.js b/console/ui/dist/prod-nt/static/main.6557bd7521dbbe88.js new file mode 100644 index 0000000000..6b49c3e510 --- /dev/null +++ b/console/ui/dist/prod-nt/static/main.6557bd7521dbbe88.js @@ -0,0 +1 @@ +(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{191:(Yt,Dn,ke)=>{"use strict";function nt(t){return"function"==typeof t}let Ie=!1;const ct={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Ie&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Ie=t},get useDeprecatedSynchronousErrorHandling(){return Ie}};function ze(t){setTimeout(()=>{throw t},0)}const _e={closed:!0,next(t){},error(t){if(ct.useDeprecatedSynchronousErrorHandling)throw t;ze(t)},complete(){}},Ze=Array.isArray||(t=>t&&"number"==typeof t.length);function Ve(t){return null!==t&&"object"==typeof t}const oe=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class ce{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof ce)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof oe?e.errors:e),[])}ce.EMPTY=((t=new ce).closed=!0,t);const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class F extends ce{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_e;break;case 1:if(!n){this.destination=_e;break}if("object"==typeof n){n instanceof F?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new ee(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new ee(this,n,e,i)}}[T](){return this}static create(n,e,i){const r=new F(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class ee extends F{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;nt(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==_e&&(s=Object.create(e),nt(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;ct.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=ct;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):ze(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;ze(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);ct.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),ct.useDeprecatedSynchronousErrorHandling)throw i;ze(i)}}__tryOrSetError(n,e,i){if(!ct.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return ct.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(ze(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const Ct="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ft(t){return t}function gn(t){return 0===t.length?Ft:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let en=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Je(t,n,e){if(t){if(t instanceof F)return t;if(t[T])return t[T]()}return t||n||e?new F(t,n,e):new F(_e)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||ct.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),ct.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){ct.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Ae(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof F?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Ai(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Ct](){return this}pipe(...e){return 0===e.length?this:gn(e)(this)}toPromise(e){return new(e=Ai(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Ai(t){if(t||(t=ct.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Ur=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class ss extends ce{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class za extends F{constructor(n){super(n),this.destination=n}}let _r=(()=>{class t extends en{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[T](){return new za(this)}lift(e){const i=new gu(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Ur;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew gu(n,e),t})();class gu extends _r{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):ce.EMPTY}}function _a(t){return t&&"function"==typeof t.schedule}function vn(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new wd(t,n))}}class wd{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new Cd(n,this.project,this.thisArg))}}class Cd extends F{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Jn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function ll(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Kl=t=>{if(t&&"function"==typeof t[Ct])return(t=>n=>{const e=t[Ct]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Yr(t))return Jn(t);if(ll(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ze),n))(t);if(t&&"function"==typeof t[No])return(t=>n=>{const e=t[No]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${Ve(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Nc(t,n){return new en(e=>{const i=new ce;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function ro(t,n){return n?function sa(t,n){if(null!=t){if(function yu(t){return t&&"function"==typeof t[Ct]}(t))return function Sd(t,n){return new en(e=>{const i=new ce;return i.add(n.schedule(()=>{const r=t[Ct]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(ll(t))return function Ic(t,n){return new en(e=>{const i=new ce;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Yr(t))return Nc(t,n);if(function Ga(t){return t&&"function"==typeof t[No]}(t)||"string"==typeof t)return function kd(t,n){if(!t)throw new Error("Iterable cannot be null");return new en(e=>{const i=new ce;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[No](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof en?t:new en(Kl(t))}class Ml extends F{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Y extends F{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Ne(t,n){if(n.closed)return;if(t instanceof en)return t.subscribe(n);let e;try{e=Kl(t)(n)}catch(i){n.error(i)}return e}function et(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(et((r,o)=>ro(t(r,o)).pipe(vn((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new Ht(t,e)))}class Ht{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new Kt(n,this.project,this.concurrent))}}class Kt extends Y{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function M(t=Number.POSITIVE_INFINITY){return et(Ft,t)}function ot(t,n){return n?Nc(t,n):new en(Jn(t))}function Dt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return _a(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof en?t[0]:M(n)(ot(t,e))}function Ut(){return function(n){return n.lift(new Bt(n))}}class Bt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new hn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class hn extends F{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class fe extends en{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new ce,n.add(this.source.subscribe(new Ot(this.getSubject(),this))),n.closed&&(this._connection=null,n=ce.EMPTY)),n}refCount(){return Ut()(this)}}const mt=(()=>{const t=fe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Ot extends za{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class cn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function Wt(){return new _r}function Ge(){return t=>Ut()(function Pt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new cn(r,n));const o=Object.create(i,mt);return o.source=i,o.subjectFactory=r,o}}(Wt)(t))}function qe(t){for(let n in t)if(t[n]===qe)return n;throw Error("Could not find renamed property on target object.")}function _t(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function bn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(bn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Nr(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const m1=qe({__forward_ref__:qe});function Mi(t){return t.__forward_ref__=Mi,t.toString=function(){return bn(this())},t}function xi(t){return ST(t)?t():t}function ST(t){return"function"==typeof t&&t.hasOwnProperty(m1)&&t.__forward_ref__===Mi}function kT(t){return t&&!!t.\u0275providers}const hx="https://g.co/ng/security#xss";class Nt extends Error{constructor(n,e){super(fx(n,e)),this.code=n}}function fx(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Li(t){return"string"==typeof t?t:null==t?"":String(t)}function px(t,n){throw new Nt(-201,!1)}function Jr(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}function Et(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function wi(t){return{providers:t.providers||[],imports:t.imports||[]}}function mx(t){return lL(t,gx)||lL(t,uL)}function lL(t,n){return t.hasOwnProperty(n)?t[n]:null}function cL(t){return t&&(t.hasOwnProperty(DT)||t.hasOwnProperty(_ve))?t[DT]:null}const gx=qe({\u0275prov:qe}),DT=qe({\u0275inj:qe}),uL=qe({ngInjectableDef:qe}),_ve=qe({ngInjectorDef:qe});var Ci=(()=>((Ci=Ci||{})[Ci.Default=0]="Default",Ci[Ci.Host=1]="Host",Ci[Ci.Self=2]="Self",Ci[Ci.SkipSelf=4]="SkipSelf",Ci[Ci.Optional=8]="Optional",Ci))();let TT;function Pc(t){const n=TT;return TT=t,n}function dL(t,n,e){const i=mx(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ci.Optional?null:void 0!==n?n:void px(bn(t))}const Fo=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),g1={},ET="__NG_DI_FLAG__",vx="ngTempTokenPath",xve="ngTokenPath",wve=/\n/gm,Cve="\u0275",hL="__source";let v1;function Cg(t){const n=v1;return v1=t,n}function Sve(t,n=Ci.Default){if(void 0===v1)throw new Nt(-203,!1);return null===v1?dL(t,void 0,n):v1.get(t,n&Ci.Optional?null:void 0,n)}function vt(t,n=Ci.Default){return(function bve(){return TT}()||Sve)(xi(t),n)}function Fi(t,n=Ci.Default){return vt(t,yx(n))}function yx(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function AT(t){const n=[];for(let e=0;e((Dd=Dd||{})[Dd.OnPush=0]="OnPush",Dd[Dd.Default=1]="Default",Dd))(),_u=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(_u||(_u={})),_u))();const Dh={},zr=[],_x=qe({\u0275cmp:qe}),MT=qe({\u0275dir:qe}),OT=qe({\u0275pipe:qe}),pL=qe({\u0275mod:qe}),Th=qe({\u0275fac:qe}),_1=qe({__NG_ELEMENT_ID__:qe});let Eve=0;function $t(t){return kh(()=>{const n=gL(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Dd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||_u.Emulated,id:"c"+Eve++,styles:t.styles||zr,_:null,schemas:t.schemas||null,tView:null};vL(e);const i=t.dependencies;return e.directiveDefs=bx(i,!1),e.pipeDefs=bx(i,!0),e})}function Mve(t){return Kr(t)||Wa(t)}function Ove(t){return null!==t}function ki(t){return kh(()=>({type:t.type,bootstrap:t.bootstrap||zr,declarations:t.declarations||zr,imports:t.imports||zr,exports:t.exports||zr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function mL(t,n){if(null==t)return Dh;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}function sn(t){return kh(()=>{const n=gL(t);return vL(n),n})}function cl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Kr(t){return t[_x]||null}function Wa(t){return t[MT]||null}function Ol(t){return t[OT]||null}function Zl(t,n){const e=t[pL]||null;if(!e&&!0===n)throw new Error(`Type ${bn(t)} does not have '\u0275mod' property.`);return e}function gL(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||zr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:mL(t.inputs,n),outputs:mL(t.outputs)}}function vL(t){t.features?.forEach(n=>n(t))}function bx(t,n){if(!t)return null;const e=n?Ol:Mve;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(Ove)}const Eh=0,Pn=1,Xi=2,as=3,bu=4,Bp=5,qa=6,kg=7,_s=8,xx=9,wx=10,er=11,IT=12,b1=13,yL=14,Dg=15,Ya=16,x1=17,Tg=18,Td=19,w1=20,_L=21,Po=22,NT=1,bL=2,Cx=7,Sx=8,Eg=9,ul=10;function ec(t){return Array.isArray(t)&&"object"==typeof t[NT]}function xu(t){return Array.isArray(t)&&!0===t[NT]}function FT(t){return 0!=(4&t.flags)}function C1(t){return t.componentOffset>-1}function kx(t){return 1==(1&t.flags)}function wu(t){return!!t.template}function Nve(t){return 0!=(256&t[Xi])}function Vp(t,n){return t.hasOwnProperty(Th)?t[Th]:null}class jve{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ei(){return CL}function CL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Lve),Rve}function Rve(){const t=kL(this),n=t?.current;if(n){const e=t.previous;if(e===Dh)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Lve(t,n,e,i){const r=this.declaredInputs[e],o=kL(t)||function $ve(t,n){return t[SL]=n}(t,{previous:Dh,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new jve(l&&l.currentValue,n,a===Dh),t[i]=n}ei.ngInherit=!0;const SL="__ngSimpleChanges__";function kL(t){return t[SL]||null}const jc=function(t,n,e){},DL="svg";function xa(t){for(;Array.isArray(t);)t=t[Eh];return t}function Dx(t,n){return xa(n[t])}function tc(t,n){return xa(n[t.index])}function EL(t,n){return t.data[n]}function Ag(t,n){return t[n]}function Il(t,n){const e=n[t];return ec(e)?e:e[Eh]}function Tx(t){return 64==(64&t[Xi])}function xf(t,n){return null==n?null:t[n]}function AL(t){t[Tg]=0}function jT(t,n){t[Bp]+=n;let e=t,i=t[as];for(;null!==i&&(1===n&&1===e[Bp]||-1===n&&0===e[Bp]);)i[Bp]+=n,e=i,i=i[as]}const $i={lFrame:$L(null),bindingsEnabled:!0};function OL(){return $i.bindingsEnabled}function zt(){return $i.lFrame.lView}function Fr(){return $i.lFrame.tView}function $e(t){return $i.lFrame.contextLView=t,t[_s]}function Be(t){return $i.lFrame.contextLView=null,t}function wa(){let t=IL();for(;null!==t&&64===t.type;)t=t.parent;return t}function IL(){return $i.lFrame.currentTNode}function S1(){const t=$i.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function Ed(t,n){const e=$i.lFrame;e.currentTNode=t,e.isParent=n}function RT(){return $i.lFrame.isParent}function LT(){$i.lFrame.isParent=!1}function dl(){const t=$i.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Ah(){return $i.lFrame.bindingIndex}function Mg(){return $i.lFrame.bindingIndex++}function Mh(t){const n=$i.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function PL(t){$i.lFrame.inI18n=t}function Qve(t,n){const e=$i.lFrame;e.bindingIndex=e.bindingRootIndex=t,$T(n)}function $T(t){$i.lFrame.currentDirectiveIndex=t}function jL(){return $i.lFrame.currentQueryIndex}function VT(t){$i.lFrame.currentQueryIndex=t}function e0e(t){const n=t[Pn];return 2===n.type?n.declTNode:1===n.type?t[qa]:null}function RL(t,n,e){if(e&Ci.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Ci.Host||(r=e0e(o),null===r||(o=o[Dg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=$i.lFrame=LL();return i.currentTNode=n,i.lView=t,!0}function HT(t){const n=LL(),e=t[Pn];$i.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function LL(){const t=$i.lFrame,n=null===t?null:t.child;return null===n?$L(t):n}function $L(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function BL(){const t=$i.lFrame;return $i.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const VL=BL;function UT(){const t=BL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function hl(){return $i.lFrame.selectedIndex}function Hp(t){$i.lFrame.selectedIndex=t}function Jo(){const t=$i.lFrame;return EL(t.tView,t.selectedIndex)}function st(){$i.lFrame.currentNamespace=DL}function Up(){!function r0e(){$i.lFrame.currentNamespace=null}()}function Ex(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[Tg]+=65536),(a>11>16&&(3&t[Xi])===n){t[Xi]+=2048,jc(4,a,o);try{o.call(a)}finally{jc(5,a,o)}}}else{jc(4,a,o);try{o.call(a)}finally{jc(5,a,o)}}}const Og=-1;class k1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function WT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[Dg],e--;return i}let qT=!0;function Nx(t){const n=qT;return qT=t,n}const qL=255,YL=5;let h0e=0;const Ad={};function Fx(t,n){const e=XL(t,n);if(-1!==e)return e;const i=n[Pn];i.firstCreatePass&&(t.injectorIndex=n.length,YT(i.data,t),YT(n,null),YT(i.blueprint,null));const r=XT(t,n),o=t.injectorIndex;if(WL(r)){const s=Ox(r),a=Ix(r,n),l=a[Pn].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function YT(t,n){t.push(0,0,0,0,0,0,0,0,n)}function XL(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function XT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=n5(r),null===i)return Og;if(e++,r=r[Dg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Og}function JT(t,n,e){!function f0e(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(_1)&&(i=e[_1]),null==i&&(i=e[_1]=h0e++);const r=i&qL;n.data[t+(r>>YL)]|=1<=0?n&qL:v0e:n}(e);if("function"==typeof o){if(!RL(n,t,i))return i&Ci.Host?JL(r,0,i):KL(n,e,i,r);try{const s=o(i);if(null!=s||i&Ci.Optional)return s;px()}finally{VL()}}else if("number"==typeof o){let s=null,a=XL(t,n),l=Og,c=i&Ci.Host?n[Ya][qa]:null;for((-1===a||i&Ci.SkipSelf)&&(l=-1===a?XT(t,n):n[a+8],l!==Og&&t5(i,!1)?(s=n[Pn],a=Ox(l),n=Ix(l,n)):a=-1);-1!==a;){const u=n[Pn];if(e5(o,a,u.data)){const d=m0e(a,n,e,s,i,c);if(d!==Ad)return d}l=n[a+8],l!==Og&&t5(i,n[Pn].data[a+8]===c)&&e5(o,a,n)?(s=u,a=Ox(l),n=Ix(l,n)):a=-1}}return r}function m0e(t,n,e,i,r,o){const s=n[Pn],a=s.data[t+8],u=Px(a,s,e,null==i?C1(a)&&qT:i!=s&&0!=(3&a.type),r&Ci.Host&&o===a);return null!==u?zp(n,s,u,a):Ad}function Px(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&wu(f)&&f.type===e)return l}return null}function zp(t,n,e,i){let r=t[e];const o=n.data;if(function l0e(t){return t instanceof k1}(r)){const s=r;s.resolving&&function hve(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Nt(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Xr(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Li(t)}(o[e]));const a=Nx(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pc(s.injectImpl):null;RL(t,i,Ci.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function s0e(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=CL(n);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Pc(l),Nx(a),s.resolving=!1,VL()}}return r}function e5(t,n,e){return!!(e[n+(t>>YL)]&1<{const n=t.prototype.constructor,e=n[Th]||KT(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Th]||KT(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function KT(t){return ST(t)?()=>{const n=KT(xi(t));return n&&n()}:Vp(t)}function n5(t){const n=t[Pn],e=n.type;return 2===e?n.declTNode:1===e?t[qa]:null}function wf(t){return function p0e(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function QT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Fg)?l[Fg]:Object.defineProperty(l,Fg,{value:[]})[Fg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Vn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Et({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Gp(t,n){t.forEach(e=>Array.isArray(e)?Gp(e,n):n(e))}function r5(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function jx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function A1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function w0e(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function eE(t,n){const e=Rg(t,n);if(e>=0)return t[1|e]}function Rg(t,n){return function o5(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Nl=Nl||{})[Nl.Important=1]="Important",Nl[Nl.DashCase=2]="DashCase",Nl))();const V0e=/^>|^->||--!>|)/,U0e="\u200b$1\u200b";const sE=new Map;let z0e=0;const lE="__ngContext__";function Xa(t,n){ec(n)?(t[lE]=n[w1],function W0e(t){sE.set(t[w1],t)}(n)):t[lE]=n}let cE;function uE(t,n){return cE(t,n)}function P1(t){const n=t[as];return xu(n)?n[as]:n}function dE(t){return k5(t[b1])}function hE(t){return k5(t[bu])}function k5(t){for(;null!==t&&!xu(t);)t=t[bu];return t}function $g(t,n,e,i,r){if(null!=i){let o,s=!1;xu(i)?o=i:ec(i)&&(s=!0,i=i[Eh]);const a=xa(i);0===t&&null!==e?null==r?O5(n,e,a):Wp(n,e,a,r||null,!0):1===t&&null!==e?Wp(n,e,a,r||null,!0):2===t?_E(n,a,s):3===t&&n.destroyNode(a),null!=o&&function m1e(t,n,e,i,r){const o=e[Cx];o!==xa(e)&&$g(n,t,i,o,r);for(let a=ul;an.replace(H0e,U0e))}(n))}function pE(t,n,e){return t.createElement(n,e)}function T5(t,n){const e=t[Eg],i=e.indexOf(n),r=n[as];512&n[Xi]&&(n[Xi]&=-513,jT(r,-1)),e.splice(i,1)}function mE(t,n){if(t.length<=ul)return;const e=ul+n,i=t[e];if(i){const r=i[x1];null!==r&&r!==t&&T5(r,i),n>0&&(t[e-1][bu]=i[bu]);const o=jx(t,ul+n);!function r1e(t,n){j1(t,n,n[er],2,null,null),n[Eh]=null,n[qa]=null}(i[Pn],i);const s=o[Td];null!==s&&s.detachView(o[Pn]),i[as]=null,i[bu]=null,i[Xi]&=-65}return i}function E5(t,n){if(!(128&n[Xi])){const e=n[er];e.destroyNode&&j1(t,n,e,3,null,null),function a1e(t){let n=t[b1];if(!n)return gE(t[Pn],t);for(;n;){let e=null;if(ec(n))e=n[b1];else{const i=n[ul];i&&(e=i)}if(!e){for(;n&&!n[bu]&&n!==t;)ec(n)&&gE(n[Pn],n),n=n[as];null===n&&(n=t),ec(n)&&gE(n[Pn],n),e=n&&n[bu]}n=e}}(n)}}function gE(t,n){if(!(128&n[Xi])){n[Xi]&=-65,n[Xi]|=128,function d1e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===_u.None||o===_u.Emulated)return null}return tc(i,e)}}function Wp(t,n,e,i,r){t.insertBefore(n,e,i,r)}function O5(t,n,e){t.appendChild(n,e)}function I5(t,n,e,i,r){null!==i?Wp(t,n,e,i,r):O5(t,n,e)}function Bx(t,n){return t.parentNode(n)}function N5(t,n,e){return P5(t,n,e)}function F5(t,n,e){return 40&t.type?tc(t,e):null}let vE,Ux,wE,zx,P5=F5;function j5(t,n){P5=t,vE=n}function Vx(t,n,e,i){const r=A5(t,i,n),o=n[er],a=N5(i.parent||n[qa],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ux}()?.createHTML(t)||t}function V5(){return void 0!==wE?wE:typeof document<"u"?document:void 0}function CE(){if(void 0===zx&&(zx=null,Fo.trustedTypes))try{zx=Fo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return zx}function H5(t){return CE()?.createHTML(t)||t}function z5(t){return CE()?.createScriptURL(t)||t}class qp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${hx})`}}class w1e extends qp{getTypeName(){return"HTML"}}class C1e extends qp{getTypeName(){return"Style"}}class S1e extends qp{getTypeName(){return"Script"}}class k1e extends qp{getTypeName(){return"URL"}}class D1e extends qp{getTypeName(){return"ResourceURL"}}function ic(t){return t instanceof qp?t.changingThisBreaksApplicationSecurity:t}function Md(t,n){const e=function T1e(t){return t instanceof qp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${hx})`)}return e===n}function G5(t){const n=new F1e(t);return function P1e(){try{return!!(new window.DOMParser).parseFromString(Bg(""),"text/html")}catch{return!1}}()?new N1e(n):n}class N1e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Bg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class F1e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Bg(n),e}}const j1e=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gx(t){return(t=String(t)).match(j1e)?t:"unsafe:"+t}function Oh(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function R1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const W5=Oh("area,br,col,hr,img,wbr"),q5=Oh("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Y5=Oh("rp,rt"),SE=R1(W5,R1(q5,Oh("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),R1(Y5,Oh("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),R1(Y5,q5)),kE=Oh("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),X5=R1(kE,Oh("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Oh("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),R1e=Oh("script,style,template");class L1e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!SE.hasOwnProperty(e))return this.sanitizedSomething=!0,!R1e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();SE.hasOwnProperty(e)&&!W5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(J5(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const $1e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,B1e=/([^\#-~ |!])/g;function J5(t){return t.replace(/&/g,"&").replace($1e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(B1e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Wx;function K5(t,n){let e=null;try{Wx=Wx||G5(t);let i=n?String(n):"";e=Wx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Wx.getInertBodyElement(i)}while(i!==o);return Bg((new L1e).sanitizeChildren(DE(e)||e))}finally{if(e){const i=DE(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function DE(t){return"content"in t&&function V1e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var bo=(()=>((bo=bo||{})[bo.NONE=0]="NONE",bo[bo.HTML=1]="HTML",bo[bo.STYLE=2]="STYLE",bo[bo.SCRIPT=3]="SCRIPT",bo[bo.URL=4]="URL",bo[bo.RESOURCE_URL=5]="RESOURCE_URL",bo))();function qx(t){const n=$1();return n?H5(n.sanitize(bo.HTML,t)||""):Md(t,"HTML")?H5(ic(t)):K5(V5(),Li(t))}function L1(t){const n=$1();return n?n.sanitize(bo.URL,t)||"":Md(t,"URL")?ic(t):Gx(Li(t))}function Q5(t){const n=$1();if(n)return z5(n.sanitize(bo.RESOURCE_URL,t)||"");if(Md(t,"ResourceURL"))return z5(ic(t));throw new Nt(904,!1)}function $1(){const t=zt();return t&&t[IT]}const Yx=new Vn("ENVIRONMENT_INITIALIZER"),e8=new Vn("INJECTOR",-1),t8=new Vn("INJECTOR_DEF_TYPES");class n8{get(n,e=g1){if(e===g1){const i=new Error(`NullInjectorError: No provider for ${bn(n)}!`);throw i.name="NullInjectorError",i}return e}}function Y1e(...t){return{\u0275providers:i8(0,t),\u0275fromNgModule:!0}}function i8(t,...n){const e=[],i=new Set;let r;return Gp(n,o=>{const s=o;TE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&r8(r,e),e}function r8(t,n){for(let e=0;e{n.push(o)})}}function TE(t,n,e,i){if(!(t=xi(t)))return!1;let r=null,o=cL(t);const s=!o&&Kr(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=cL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)TE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Gp(o.imports,u=>{TE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&r8(c,n)}if(!a){const c=Vp(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:zr},{provide:t8,useValue:r,multi:!0},{provide:Yx,useValue:()=>vt(r),multi:!0})}const l=o.providers;null==l||a||EE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function EE(t,n){for(let e of t)kT(e)&&(e=e.\u0275providers),Array.isArray(e)?EE(e,n):n(e)}const X1e=qe({provide:String,useValue:qe});function AE(t){return null!==t&&"object"==typeof t&&X1e in t}function Yp(t){return"function"==typeof t}const ME=new Vn("Set Injector scope."),Xx={},K1e={};let OE;function Jx(){return void 0===OE&&(OE=new n8),OE}class Lc{}class a8 extends Lc{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,NE(n,s=>this.processProvider(s)),this.records.set(e8,Vg(void 0,this)),r.has("environment")&&this.records.set(Lc,Vg(void 0,this));const o=this.records.get(ME);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(t8.multi,zr,Ci.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Cg(this),i=Pc(void 0);try{return n()}finally{Cg(e),Pc(i)}}get(n,e=g1,i=Ci.Default){this.assertNotDestroyed(),i=yx(i);const r=Cg(this),o=Pc(void 0);try{if(!(i&Ci.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function nye(t){return"function"==typeof t||"object"==typeof t&&t instanceof Vn}(n)&&mx(n);a=l&&this.injectableDefInScope(l)?Vg(IE(n),Xx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Ci.Self?Jx():this.parent).get(n,e=i&Ci.Optional&&e===g1?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[vx]=s[vx]||[]).unshift(bn(n)),r)throw s;return function Dve(t,n,e,i){const r=t[vx];throw n[hL]&&r.unshift(n[hL]),t.message=function Tve(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Cve?t.slice(2):t;let r=bn(n);if(Array.isArray(n))r=n.map(bn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):bn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(wve,"\n ")}`}("\n"+t.message,r,e,i),t[xve]=r,t[vx]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Pc(o),Cg(r)}}resolveInjectorInitializers(){const n=Cg(this),e=Pc(void 0);try{const i=this.get(Yx.multi,zr,Ci.Self);for(const r of i)r()}finally{Cg(n),Pc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(bn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Nt(205,!1)}processProvider(n){let e=Yp(n=xi(n))?n:xi(n&&n.provide);const i=function Z1e(t){return AE(t)?Vg(void 0,t.useValue):Vg(l8(t),Xx)}(n);if(Yp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Vg(void 0,Xx,!0),r.factory=()=>AT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Xx&&(e.value=K1e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function tye(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=xi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function IE(t){const n=mx(t),e=null!==n?n.factory:Vp(t);if(null!==e)return e;if(t instanceof Vn)throw new Nt(204,!1);if(t instanceof Function)return function Q1e(t){const n=t.length;if(n>0)throw A1(n,"?"),new Nt(204,!1);const e=function yve(t){return t&&(t[gx]||t[uL])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Nt(204,!1)}function l8(t,n,e){let i;if(Yp(t)){const r=xi(t);return Vp(r)||IE(r)}if(AE(t))i=()=>xi(t.useValue);else if(function s8(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...AT(t.deps||[]));else if(function o8(t){return!(!t||!t.useExisting)}(t))i=()=>vt(xi(t.useExisting));else{const r=xi(t&&(t.useClass||t.provide));if(!function eye(t){return!!t.deps}(t))return Vp(r)||IE(r);i=()=>new r(...AT(t.deps))}return i}function Vg(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function NE(t,n){for(const e of t)Array.isArray(e)?NE(e,n):e&&kT(e)?NE(e.\u0275providers,n):n(e)}class iye{}class c8{}class oye{resolveComponentFactory(n){throw function rye(t){const n=Error(`No component factory found for ${bn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Hg=(()=>{class t{}return t.NULL=new oye,t})();function sye(){return Ug(wa(),zt())}function Ug(t,n){return new Si(tc(t,n))}let Si=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=sye,t})();function aye(t){return t instanceof Si?t.nativeElement:t}class zg{}let aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function lye(){const t=zt(),e=Il(wa().index,t);return(ec(e)?e:t)[er]}(),t})(),cye=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>null}),t})();class B1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const uye=new B1("15.2.9"),FE={},PE="ngOriginalError";function jE(t){return t[PE]}class Gg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&jE(n);for(;e&&jE(e);)e=jE(e);return e||null}}function d8(t){return t.ownerDocument.defaultView}function Ih(t){return t instanceof Function?t():t}function f8(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const p8="ng-template";function bye(t,n,e){let i=0,r=!0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==f8(f,c,0)||2&i&&c!==h){if(Cu(i))return!1;s=!0}}}}else{if(!s&&!Cu(i)&&!Cu(l))return!1;if(s&&Cu(l))continue;s=!1,i=l|1&i}}return Cu(i)||s}function Cu(t){return 0==(1&t)}function Cye(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Cu(s)&&(n+=v8(o,r),r=""),i=s,o=o||!Cu(i);e++}return""!==r&&(n+=v8(o,r)),n}const Bi={};function C(t){y8(Fr(),zt(),hl()+t,!1)}function y8(t,n,e,i){if(!i)if(3==(3&n[Xi])){const o=t.preOrderCheckHooks;null!==o&&Ax(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Mx(n,o,0,e)}Hp(e)}function w8(t,n=null,e=null,i){const r=C8(t,n,e,i);return r.resolveInjectorInitializers(),r}function C8(t,n=null,e=null,i,r=new Set){const o=[e||zr,Y1e(t)];return i=i||("object"==typeof t?void 0:bn(t)),new a8(o,n||Jx(),i||null,r)}let la=(()=>{class t{static create(e,i){if(Array.isArray(e))return w8({name:""},i,e,"");{const r=e.name??"";return w8({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=g1,t.NULL=new n8,t.\u0275prov=Et({token:t,providedIn:"any",factory:()=>vt(e8)}),t.__NG_ELEMENT_ID__=-1,t})();function he(t,n=Ci.Default){const e=zt();return null===e?vt(t,n):QL(wa(),e,xi(t),n)}function O8(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;iPo&&y8(t,n,Po,!1),jc(s?2:0,r),e(i,r)}finally{Hp(o),jc(s?3:1,r)}}function UE(t,n,e){if(FT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,V1(t,e,r.hostVars,Bi),r)}function XE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Li(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function m_e(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&JE(e)}}function JE(t){for(let i=dE(t);null!==i;i=hE(i))for(let r=ul;r0&&JE(o)}const e=t[Pn].components;if(null!==e)for(let i=0;i0&&JE(r)}}function b_e(t,n){const e=Il(n,t),i=e[Pn];(function x_e(t,n){for(let e=n.length;e-1&&(mE(n,i),jx(e,i))}this._attachedToViewContainer=!1}E5(this._lView[Pn],this._lView)}onDestroy(n){F8(this._lView[Pn],this._lView,null,n)}markForCheck(){tw(this._cdRefInjectingView||this._lView)}detach(){this._lView[Xi]&=-65}reattach(){this._lView[Xi]|=64}detectChanges(){nw(this._lView[Pn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function s1e(t,n){j1(t,n,n[er],2,null,null)}(this._lView[Pn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Nt(902,!1);this._appRef=n}}class w_e extends H1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;nw(n[Pn],n,n[_s],!1)}checkNoChanges(){}get context(){return null}}class z8 extends Hg{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Kr(n);return new U1(e,this.ngModule)}}function G8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class S_e{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=yx(i);const r=this.injector.get(n,FE,i);return r!==FE||e===FE?r:this.parentInjector.get(n,e,i)}}class U1 extends c8{get inputs(){return G8(this.componentDef.inputs)}get outputs(){return G8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function Aye(t){return t.map(Eye).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Lc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new S_e(n,o):n,a=s.get(zg,null);if(null===a)throw new Nt(407,!1);const l=s.get(cye,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function Zye(t,n,e){return t.selectRootElement(n,e===_u.ShadowDom)}(c,i,this.componentDef.encapsulation):pE(c,u,function C_e(t){const n=t.toLowerCase();return"svg"===n?DL:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=WE(0,null,null,1,0,null,null,null,null,null),p=Qx(null,f,null,h,null,null,a,c,l,s,null);let m,g;HT(p);try{const v=this.componentDef;let y,_=null;v.findHostDirectiveDefs?(y=[],_=new Map,v.findHostDirectiveDefs(v,y,_),y.push(v)):y=[v];const w=function D_e(t,n){const e=t[Pn],i=Po;return t[i]=n,Yg(e,i,2,"#host",null)}(p,d),k=function T_e(t,n,e,i,r,o,s,a){const l=r[Pn];!function E_e(t,n,e,i){for(const r of t)n.mergedAttrs=D1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(iw(n,n.mergedAttrs,!0),null!==e&&B5(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Qx(r,N8(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&YE(l,t,i.length-1),ew(r,u),r[t.index]=u}(w,d,v,y,p,a,c);g=EL(f,Po),d&&function M_e(t,n,e,i){if(i)WT(t,e,["ng-version",uye.full]);else{const{attrs:r,classes:o}=function Mye(t){const n=[],e=[];let i=1,r=2;for(;i0&&$5(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function O_e(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=D1(r.hostAttrs,e=D1(e,r.hostAttrs))}}(i)}function ZE(t){return t===Dh?{}:t===zr?[]:t}function F_e(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function P_e(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function j_e(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function z1(t){return n=>{n.findHostDirectiveDefs=q8,n.hostDirectives=(Array.isArray(t)?t:t()).map(e=>"function"==typeof e?{directive:xi(e),inputs:Dh,outputs:Dh}:{directive:xi(e.directive),inputs:Y8(e.inputs),outputs:Y8(e.outputs)})}}function q8(t,n,e){if(null!==t.hostDirectives)for(const i of t.hostDirectives){const r=Wa(i.directive);B_e(r.declaredInputs,i.inputs),q8(r,n,e),e.set(r,i),n.push(r)}}function Y8(t){if(void 0===t||0===t.length)return Dh;const n={};for(let e=0;es(xa(w[i.index])):i.index;let _=null;if(!s&&a&&(_=function X_e(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==_)(_.__ngLastListenerFn__||_).__ngNextListenerFn__=o,_.__ngLastListenerFn__=o,h=!1;else{o=u6(i,n,u,o,!1);const w=e.listen(g,r,o);d.push(o,w),c&&c.push(r,y,v,v+1)}}else o=u6(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?Il(t.index,n):n);let l=c6(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=c6(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function B(t=1){return function t0e(t){return($i.lFrame.contextLView=function n0e(t,n){for(;t>0;)n=n[Dg],t--;return n}(t,$i.lFrame.contextLView))[_s]}(t)}function J_e(t,n){let e=null;const i=function Sye(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function iA(t){return 2|t}function Kp(t){return(131068&t)>>2}function rA(t,n){return-131069&t|n<<2}function oA(t){return 1|t}function _6(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?Df(o):Kp(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];nbe(t[a],n)&&(l=!0,t[a+1]=i?oA(u):iA(u)),a=i?Df(u):Kp(u)}l&&(t[e+1]=i?iA(o):oA(o))}function nbe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Rg(t,n)>=0}const Ys={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function b6(t){return t.substring(Ys.key,Ys.keyEnd)}function x6(t,n){const e=Ys.textEnd;return e===n?-1:(n=Ys.keyEnd=function sbe(t,n,e){for(;n32;)n++;return n}(t,Ys.key=n,e),rv(t,n,e))}function rv(t,n,e){for(;n=0;e=x6(n,e))nc(t,b6(n),!0)}function Su(t,n,e,i){const r=zt(),o=Fr(),s=Mh(2);o.firstUpdatePass&&T6(o,t,s,i),n!==Bi&&Ja(r,s,n)&&A6(o,o.data[hl()],r,r[er],t,r[s+1]=function vbe(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=bn(ic(t)))),t}(n,e),i,s)}function ku(t,n,e,i){const r=Fr(),o=Mh(2);r.firstUpdatePass&&T6(r,null,o,i);const s=zt();if(e!==Bi&&Ja(s,o,e)){const a=r.data[hl()];if(O6(a,i)&&!D6(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Nr(l,e||"")),tA(r,a,s,e,i)}else!function gbe(t,n,e,i,r,o,s,a){r===Bi&&(r=zr);let l=0,c=0,u=0=t.expandoStartIndex}function T6(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[hl()],s=D6(t,e);O6(o,i)&&null===n&&!s&&(n=!1),n=function ube(t,n,e,i){const r=function BT(t){const n=$i.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=q1(e=sA(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=sA(r,t,n,e,i),null===o){let l=function dbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Kp(i))return t[Df(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=sA(null,t,n,l[1],i),l=q1(l,n.attrs,i),function hbe(t,n,e,i){t[Df(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function fbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=Df(t[a+1]);t[i+1]=aw(h,a),0!==h&&(t[h+1]=rA(t[h+1],i)),t[a+1]=function Q_e(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=aw(a,0),0!==a&&(t[a+1]=rA(t[a+1],i)),a=i;else t[i+1]=aw(l,0),0===a?a=i:t[l+1]=rA(t[l+1],i),l=i;c&&(t[i+1]=iA(t[i+1])),_6(t,u,i,!0),_6(t,u,i,!1),function tbe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Rg(o,n)>=0&&(e[i+1]=oA(e[i+1]))}(n,u,t,i,o),s=aw(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function sA(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Bi&&(h=d?zr:void 0);let f=d?eE(h,i):u===i?h:void 0;if(c&&!lw(f)&&(f=eE(l,i)),lw(f)&&(a=f,s))return a;const p=t[r+1];r=s?Df(p):Kp(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=eE(l,i))}return a}function lw(t){return void 0!==t}function O6(t,n){return 0!=(t.flags&(n?8:16))}function N(t,n=""){const e=zt(),i=Fr(),r=t+Po,o=i.firstCreatePass?Yg(i,r,1,n,null):i.data[r],s=e[r]=fE(e[er],n);Vx(i,e,s,o),Ed(o,!1)}function kt(t){return yn("",t,""),kt}function yn(t,n,e){const i=zt(),r=Jg(i,t,n,e);return r!==Bi&&Nh(i,hl(),r),yn}function Tf(t,n,e,i,r){const o=zt(),s=Kg(o,t,n,e,i,r);return s!==Bi&&Nh(o,hl(),s),Tf}function Pl(t,n,e){const i=zt();return Ja(i,Mg(),n)&&rc(Fr(),Jo(),i,t,n,i[er],e,!0),Pl}const Qp=void 0;var Pbe=["en",[["a","p"],["AM","PM"],Qp],[["AM","PM"],Qp,Qp],[["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"]],Qp,[["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"]],Qp,[["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}",Qp,"{1} 'at' {0}",Qp],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Fbe(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ov={};function fl(t){const n=function jbe(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=Q6(n);if(e)return e;const i=n.split("-")[0];if(e=Q6(i),e)return e;if("en"===i)return Pbe;throw new Nt(701,!1)}function Q6(t){return t in ov||(ov[t]=Fo.ng&&Fo.ng.common&&Fo.ng.common.locales&&Fo.ng.common.locales[t]),ov[t]}var Tn=(()=>((Tn=Tn||{})[Tn.LocaleId=0]="LocaleId",Tn[Tn.DayPeriodsFormat=1]="DayPeriodsFormat",Tn[Tn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Tn[Tn.DaysFormat=3]="DaysFormat",Tn[Tn.DaysStandalone=4]="DaysStandalone",Tn[Tn.MonthsFormat=5]="MonthsFormat",Tn[Tn.MonthsStandalone=6]="MonthsStandalone",Tn[Tn.Eras=7]="Eras",Tn[Tn.FirstDayOfWeek=8]="FirstDayOfWeek",Tn[Tn.WeekendRange=9]="WeekendRange",Tn[Tn.DateFormat=10]="DateFormat",Tn[Tn.TimeFormat=11]="TimeFormat",Tn[Tn.DateTimeFormat=12]="DateTimeFormat",Tn[Tn.NumberSymbols=13]="NumberSymbols",Tn[Tn.NumberFormats=14]="NumberFormats",Tn[Tn.CurrencyCode=15]="CurrencyCode",Tn[Tn.CurrencySymbol=16]="CurrencySymbol",Tn[Tn.CurrencyName=17]="CurrencyName",Tn[Tn.Currencies=18]="Currencies",Tn[Tn.Directionality=19]="Directionality",Tn[Tn.PluralCase=20]="PluralCase",Tn[Tn.ExtraData=21]="ExtraData",Tn))();const Rbe=["zero","one","two","few","many"],sv="en-US",cw={marker:"element"},uw={marker:"ICU"};var ls=(()=>((ls=ls||{})[ls.SHIFT=2]="SHIFT",ls[ls.APPEND_EAGERLY=1]="APPEND_EAGERLY",ls[ls.COMMENT=2]="COMMENT",ls))();let Z6=sv;function e$(t){(function Fc(t,n){null==t&&Jr(n,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(Z6=t.toLowerCase().replace(/_/g,"-"))}function t$(t,n,e){const i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?F5(t,0,e):xa(e[r])}function n$(t,n,e,i,r){const o=n.insertBeforeIndex;if(Array.isArray(o)){let s=i,a=null;if(3&n.type||(a=s,s=r),null!==s&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];r$(i)||Vbe(i,n)&&null===Hbe(i)&&Ube(i,n.index)}}function r$(t){return!(64&t.type)}function Vbe(t,n){return r$(n)||t.index>n.index}function Hbe(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function Ube(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(j5(t$,n$),t.insertBeforeIndex=n)}function Y1(t,n){const e=t.data[n];return null===e||"string"==typeof e?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function Wbe(t,n,e){const i=VE(t,e,64,null,null);return i$(n,i),i}function dw(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}function o$(t){return t>>>17}function s$(t){return(131070&t)>>>1}let X1=0,J1=0;function l$(t,n,e,i){const r=e[er];let s,o=null;for(let a=0;a>>1,e),null,null,f,p,null)}else switch(l){case uw:const c=n[++a],u=n[++a];null===e[u]&&Xa(e[u]=i1e(r,c),e);break;case cw:const d=n[++a],h=n[++a];null===e[h]&&Xa(e[h]=pE(r,d,null),e)}}}function c$(t,n,e,i,r){for(let o=0;o>>2;switch(3&u){case 1:const h=e[++c],f=e[++c],p=t.data[d];"string"==typeof p?XE(n[er],n[d],null,p,h,l,f):rc(t,p,n,h,l,n[er],f,!1);break;case 0:const m=n[d];null!==m&&D5(n[er],m,l);break;case 2:Kbe(t,Y1(t,d),n,l);break;case 3:u$(t,Y1(t,d),i,n)}}}}else{const l=e[o+1];if(l>0&&3==(3&l)){const u=Y1(t,l>>>2);n[u.currentCaseLViewIndex]<0&&u$(t,u,i,n)}}o+=a}}function u$(t,n,e,i){let r=i[n.currentCaseLViewIndex];if(null!==r){let o=X1;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),c$(t,i,n.update[r],e,o)}}function Kbe(t,n,e,i){const r=function Qbe(t,n){let e=t.cases.indexOf(n);if(-1===e)switch(t.type){case 1:{const i=function Lbe(t,n){const e=function K6(t){return fl(t)[Tn.PluralCase]}(n)(parseInt(t,10)),i=Rbe[e];return void 0!==i?i:"other"}(n,function Bbe(){return Z6}());e=t.cases.indexOf(i),-1===e&&"other"!==i&&(e=t.cases.indexOf("other"));break}case 0:e=t.cases.indexOf("other")}return-1===e?null:e}(n,i);if(dw(n,e)!==r&&(d$(t,n,e),e[n.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const s=e[n.anchorIdx];s&&l$(t,n.create[r],e,s)}}function d$(t,n,e){let i=dw(n,e);if(null!==i){const r=n.remove[i];for(let o=0;o0){const a=Dx(s,e);null!==a&&_E(e[er],a)}else d$(t,Y1(t,~s),e)}}}function Zbe(){const t=[];let e,i,n=-1;function o(a,l){n=0;const c=dw(a,l);i=null!==c?a.remove[c]:zr}function s(){if(n0?e[a]:(t.push(n,i),o(e[Pn].data[~a],e),s())}return 0===t.length?null:(i=t.pop(),n=t.pop(),s())}return function r(a,l){for(e=l;t.length;)t.pop();return o(a.value,l),s}}const hw=/\ufffd(\d+):?\d*\ufffd/gi,txe=/\ufffd(\d+)\ufffd/,f$=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,K1="\ufffd",nxe=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,ixe=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,rxe=/\uE500/g;function p$(t,n,e,i,r,o,s){const a=V1(t,i,1,null);let l=a<e.length&&e.push(l)}return{type:i,mainBinding:r,cases:n,values:e}}function aA(t){if(!t)return[];let n=0;const e=[],i=[],r=/[{}]/g;let o;for(r.lastIndex=0;o=r.exec(t);){const a=o.index;if("}"==o[0]){if(e.pop(),0==e.length){const l=t.substring(n,a);f$.test(l)?i.push(hxe(l)):i.push(l),n=a+1}}else{if(0==e.length){const l=t.substring(n,a);i.push(l),n=a+1}e.push("{")}}const s=t.substring(n);return i.push(s),i}function fxe(t,n,e,i,r,o,s,a){const l=[],c=[],u=[];n.cases.push(o),n.create.push(l),n.remove.push(c),n.update.push(u);const h=G5(V5()).getInertBodyElement(s),f=DE(h)||h;return f?y$(t,n,e,i,l,c,u,f,r,a,0):0}function y$(t,n,e,i,r,o,s,a,l,c,u){let d=0,h=a.firstChild;for(;h;){const f=V1(t,e,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,m=p.tagName.toLowerCase();if(SE.hasOwnProperty(m)){lA(r,cw,m,l,f),t.data[f]=m;const _=p.attributes;for(let w=0;w<_.length;w++){const k=_.item(w),D=k.name.toLowerCase();k.value.match(hw)?X5.hasOwnProperty(D)&&Q1(s,k.value,f,k.name,0,kE[D]?Gx:null):vxe(r,f,k)}d=y$(t,n,e,i,r,o,s,h,f,c,u+1)|d,_$(o,f,u)}break;case Node.TEXT_NODE:const g=h.textContent||"",v=g.match(hw);lA(r,null,v?"":g,l,f),_$(o,f,u),v&&(d=Q1(s,g,f,null,0,null)|d);break;case Node.COMMENT_NODE:const y=txe.exec(h.textContent||"");if(y){const w=c[parseInt(y[1],10)];lA(r,uw,"",l,f),v$(t,e,i,l,w,f),pxe(o,f,u)}}h=h.nextSibling}return d}function _$(t,n,e){0===e&&t.push(n)}function pxe(t,n,e){0===e&&(t.push(~n),t.push(n))}function lA(t,n,e,i,r){null!==n&&t.push(n),t.push(e,r,function qbe(t,n,e){return t|n<<17|e<<1}(0,i,r))}function vxe(t,n,e){t.push(n<<1|1,e.name,e.value)}function x$(t,n,e=-1){const i=Fr(),r=zt(),o=Po+t,s=xf(i.consts,n),a=S1();i.firstCreatePass&&function sxe(t,n,e,i,r,o){const s=S1(),a=[],l=[],c=[[]];r=function dxe(t,n){if(function uxe(t){return-1===t}(n))return g$(t);{const e=t.indexOf(`:${n}${K1}`)+2+n.toString().length,i=t.search(new RegExp(`${K1}\\/\\*\\d+:${n}${K1}`));return g$(t.substring(e,i))}}(r,o);const u=function oxe(t){return t.replace(rxe," ")}(r).split(ixe);for(let d=0;d>>ls.SHIFT;let d=t[u];null===d&&(d=t[u]=(s&ls.COMMENT)===ls.COMMENT?r.createComment(a):fE(r,a)),c&&null!==e&&Wp(r,e,d,i,!1)}})(r,l.create,u,a&&8&a.type?r[a.index]:null),PL(!0)}function Ca(t,n,e){x$(t,n,e),function w$(){PL(!1)}()}function av(t){return function Ybe(t){t&&(X1|=1<0){const i=t.data[e];c$(t,n,Array.isArray(i)?i:i.update,Ah()-J1-1,X1)}X1=0,J1=0}(Fr(),zt(),t+Po)}function cA(t,n,e,i,r){if(t=xi(t),Array.isArray(t))for(let o=0;o>20;if(Yp(t)||!t.multi){const f=new k1(l,r,he),p=dA(a,n,r?u:u+h,d);-1===p?(JT(Fx(c,s),o,a),uA(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=dA(a,n,u+h,d),p=dA(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){JT(Fx(c,s),o,a);const v=function Oxe(t,n,e,i,r){const o=new k1(t,e,he);return o.multi=[],o.index=n,o.componentProviders=0,C$(o,r,i&&!e),o}(r?Mxe:Axe,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),uA(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else uA(o,t,f>-1?f:p,C$(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function uA(t,n,e,i){const r=Yp(n),o=function J1e(t){return!!t.useClass}(n);if(r||o){const l=(o?xi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function C$(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function dA(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Exe(t,n,e){const i=Fr();if(i.firstCreatePass){const r=wu(t);cA(e,i.data,i.blueprint,r,!0),cA(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class lv{}class S${}class k$ extends lv{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new z8(this);const i=Zl(n);this._bootstrapComponents=Ih(i.bootstrap),this._r3Injector=C8(n,e,[{provide:lv,useValue:this},{provide:Hg,useValue:this.componentFactoryResolver}],bn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class fA extends S${constructor(n){super(),this.moduleType=n}create(n){return new k$(this.moduleType,n)}}class Nxe extends lv{constructor(n,e,i){super(),this.componentFactoryResolver=new z8(this),this.instance=null;const r=new a8([...n,{provide:lv,useValue:this},{provide:Hg,useValue:this.componentFactoryResolver}],e||Jx(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function fw(t,n,e=null){return new Nxe(t,n,e).injector}let Fxe=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=i8(0,e.type),r=i.length>0?fw([i],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 t.\u0275prov=Et({token:t,providedIn:"environment",factory:()=>new t(vt(Lc))}),t})();function Is(t){t.getStandaloneInjector=n=>n.get(Fxe).getOrCreateStandaloneInjector(t)}function pl(t,n,e){const i=dl()+t,r=zt();return r[i]===Bi?Id(r,i,e?n.call(e):n()):function G1(t,n){return t[n]}(r,i)}function nr(t,n,e,i){return I$(zt(),dl(),t,n,e,i)}function Mr(t,n,e,i,r){return function N$(t,n,e,i,r,o,s){const a=n+e;return Xp(t,a,r,o)?Id(t,a+2,s?i.call(s,r,o):i(r,o)):ty(t,a+2)}(zt(),dl(),t,n,e,i,r)}function ey(t,n,e,i,r,o){return function F$(t,n,e,i,r,o,s,a){const l=n+e;return function sw(t,n,e,i,r){const o=Xp(t,n,e,i);return Ja(t,n+2,r)||o}(t,l,r,o,s)?Id(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):ty(t,l+3)}(zt(),dl(),t,n,e,i,r,o)}function ty(t,n){const e=t[n];return e===Bi?void 0:e}function I$(t,n,e,i,r,o){const s=n+e;return Ja(t,s,r)?Id(t,s+1,o?i.call(o,r):i(r)):ty(t,s+1)}function mA(t,n){const e=Fr();let i;const r=t+Po;e.firstCreatePass?(i=function Xxe(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Vp(i.type)),s=Pc(he);try{const a=Nx(!1),l=o();return Nx(a),function W_e(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,zt(),r,l),l}finally{Pc(s)}}function gA(t,n,e){const i=t+Po,r=zt(),o=Ag(r,i);return function ny(t,n){return t[Pn].data[n].pure}(r,i)?I$(r,dl(),n,o.transform,e,o):o.transform(e)}function vA(t){return n=>{setTimeout(t,void 0,n)}}const it=class ewe extends _r{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=vA(o),r&&(r=vA(r)),s&&(s=vA(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof ce&&n.add(a),a}};function twe(){return this._results[Symbol.iterator]()}class yA{get changes(){return this._changes||(this._changes=new it)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=yA.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=twe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Rc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function b0e(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=rwe,t})();const nwe=oo,iwe=class extends nwe{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Qx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[x1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Td];return null!==s&&(r[Td]=s.createEmbeddedView(i)),HE(i,r,n),new H1(r)}};function rwe(){return pw(wa(),zt())}function pw(t,n){return 4&t.type?new iwe(n,t,Ug(t,n)):null}let jl=(()=>{class t{}return t.__NG_ELEMENT_ID__=owe,t})();function owe(){return $$(wa(),zt())}const swe=jl,R$=class extends swe{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ug(this._hostTNode,this._hostLView)}get injector(){return new Ig(this._hostTNode,this._hostLView)}get parentInjector(){const n=XT(this._hostTNode,this._hostLView);if(WL(n)){const e=Ix(n,this._hostLView),i=Ox(n);return new Ig(e[Pn].data[i+8],e)}return new Ig(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=L$(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-ul}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function E1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new U1(Kr(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Lc,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[Pn];if(function zve(t){return xu(t[as])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[as],h=new R$(d,d[qa],d[as]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function l1e(t,n,e,i){const r=ul+i,o=e.length;i>0&&(e[r-1][bu]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=ul;d{class t{constructor(e){this.appInits=e,this.resolve=gw,this.reject=gw,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(vt(vw,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ry=new Vn("AppId",{providedIn:"root",factory:function lB(){return`${MA()}${MA()}${MA()}`}});function MA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const cB=new Vn("Platform Initializer"),oy=new Vn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),uB=new Vn("AnimationModuleType");let Iwe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ac=new Vn("LocaleId",{providedIn:"root",factory:()=>Fi(ac,Ci.Optional|Ci.SkipSelf)||function Nwe(){return typeof $localize<"u"&&$localize.locale||sv}()});class Pwe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let dB=(()=>{class t{compileModuleSync(e){return new fA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Ih(Zl(e).declarations).reduce((s,a)=>{const l=Kr(a);return l&&s.push(new U1(l)),s},[]);return new Pwe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Lwe=(()=>Promise.resolve(0))();function OA(t){typeof Zone>"u"?Lwe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ir{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new it(!1),this.onMicrotaskEmpty=new it(!1),this.onStable=new it(!1),this.onError=new it(!1),typeof Zone>"u")throw new Nt(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)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function $we(){let t=Fo.requestAnimationFrame,n=Fo.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Hwe(t){const n=()=>{!function Vwe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Fo,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,NA(t),t.isCheckStableRunning=!0,IA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),NA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return pB(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),mB(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return pB(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),mB(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,NA(t),IA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ir.isInAngularZone())throw new Nt(909,!1)}static assertNotInAngularZone(){if(ir.isInAngularZone())throw new Nt(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Bwe,gw,gw);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Bwe={};function IA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function NA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function pB(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function mB(t){t._nesting--,IA(t)}class Uwe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new it,this.onMicrotaskEmpty=new it,this.onStable=new it,this.onError=new it}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const gB=new Vn(""),_w=new Vn("");let jA,FA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,jA||(function zwe(t){jA=t}(r),r.addToWindow(i)),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:()=>{ir.assertNotInAngularZone(),OA(()=>{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())OA(()=>{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(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.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,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(vt(ir),vt(PA),vt(_w))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),PA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return jA?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Fh=!1;let Ef=null;const vB=new Vn("AllowMultipleToken"),RA=new Vn("PlatformDestroyListeners"),yB=new Vn("appBootstrapListener");class _B{constructor(n,e){this.name=n,this.token=e}}function xB(t,n,e=[]){const i=`Platform: ${n}`,r=new Vn(i);return(o=[])=>{let s=LA();if(!s||s.injector.get(vB,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function qwe(t){if(Ef&&!Ef.get(vB,!1))throw new Nt(400,!1);Ef=t;const n=t.get(CB);(function bB(t){const n=t.get(cB,null);n&&n.forEach(e=>e())})(t)}(function wB(t=[],n){return la.create({name:n,providers:[{provide:ME,useValue:"platform"},{provide:RA,useValue:new Set([()=>Ef=null])},...t]})}(a,i))}return function Xwe(t){const n=LA();if(!n)throw new Nt(401,!1);return n}()}}function LA(){return Ef?.get(CB)??null}let CB=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function kB(t,n){let e;return e="noop"===t?new Uwe:("zone.js"===t?void 0:t)||new ir(n),e}(i?.ngZone,function SB(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:ir,useValue:r}];return r.run(()=>{const s=la.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Gg,null);if(!l)throw new Nt(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{bw(this._modules,a),c.unsubscribe()})}),function DB(t,n,e){try{const i=e();return W1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(yw);return c.runInitializers(),c.donePromise.then(()=>(e$(a.injector.get(ac,sv)||sv),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=TB({},i);return function Gwe(t,n,e){const i=new fA(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ph);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Nt(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Nt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(RA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(vt(la))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function TB(t,n){return Array.isArray(n)?n.reduce(TB,t):{...t,...n}}let Ph=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,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 o=new en(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new en(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ir.assertNotInAngularZone(),OA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ir.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Dt(o,s.pipe(Ge()))}bootstrap(e,i){const r=e instanceof c8;if(!this._injector.get(yw).done){!r&&function Sg(t){const n=Kr(t)||Wa(t)||Ol(t);return null!==n&&n.standalone}(e);throw new Nt(405,Fh)}let s;s=r?e:this._injector.get(Hg).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Wwe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(lv),c=s.create(la.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(gB,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),bw(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Nt(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 i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;bw(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(yB,[]);i.push(...this._bootstrapListeners),i.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),()=>bw(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Nt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(vt(ir),vt(Lc),vt(Gg))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function bw(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Ns=(()=>{class t{}return t.__NG_ELEMENT_ID__=Kwe,t})();function Kwe(t){return function Qwe(t,n,e){if(C1(t)&&!e){const i=Il(t.index,n);return new H1(i,i)}return 47&t.type?new H1(n[Ya],n):null}(wa(),zt(),16==(16&t))}class IB{constructor(){}supports(n){return ow(n)}create(n){return new rCe(n)}}const iCe=(t,n)=>n;class rCe{constructor(n){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=n||iCe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new oCe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new NB),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new NB),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class oCe{constructor(n,e){this.item=n,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 sCe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class NB{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new sCe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function FB(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new lCe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class lCe{constructor(n){this.key=n,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 jB(){return new Cw([new IB])}let Cw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||jB()),deps:[[t,new O1,new M1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Nt(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:jB}),t})();function RB(){return new sy([new PB])}let sy=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||RB()),deps:[[t,new O1,new M1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Nt(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:RB}),t})();const dCe=xB(null,"core",[]);let hCe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(vt(Ph))},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();function dv(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function UA(t,n){const e=Kr(t),i=n.elementInjector||Jx();return new U1(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let zA=null;function jh(){return zA}class mCe{}const co=new Vn("DocumentToken");let GA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function gCe(){return vt(LB)}()},providedIn:"platform"}),t})();const vCe=new Vn("Location Initialized");let LB=(()=>{class t extends GA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jh().getBaseHref(this._doc)}onPopState(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){$B()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){$B()?this._history.replaceState(e,i,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 t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:function(){return function yCe(){return new LB(vt(co))}()},providedIn:"platform"}),t})();function $B(){return!!window.history.pushState}function WA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function BB(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Rh(t){return t&&"?"!==t[0]?"?"+t:t}let em=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return Fi(HB)},providedIn:"root"}),t})();const VB=new Vn("appBaseHref");let HB=(()=>{class t extends em{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Fi(co).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 WA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Rh(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Rh(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Rh(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(vt(GA),vt(VB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_Ce=(()=>{class t extends em{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=WA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Rh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Rh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(vt(GA),vt(VB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),qA=(()=>{class t{constructor(e){this._subject=new it,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function wCe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(BB(UB(i))),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,i=""){return this.path()==this.normalize(e+Rh(i))}normalize(e){return t.stripTrailingSlash(function xCe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,UB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Rh(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Rh(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Rh,t.joinWithSlash=WA,t.stripTrailingSlash=BB,t.\u0275fac=function(e){return new(e||t)(vt(em))},t.\u0275prov=Et({token:t,factory:function(){return function bCe(){return new qA(vt(em))}()},providedIn:"root"}),t})();function UB(t){return t.replace(/\/index.html$/,"")}var Rl=(()=>((Rl=Rl||{})[Rl.Decimal=0]="Decimal",Rl[Rl.Percent=1]="Percent",Rl[Rl.Currency=2]="Currency",Rl[Rl.Scientific=3]="Scientific",Rl))(),Ro=(()=>((Ro=Ro||{})[Ro.Format=0]="Format",Ro[Ro.Standalone=1]="Standalone",Ro))(),Vi=(()=>((Vi=Vi||{})[Vi.Narrow=0]="Narrow",Vi[Vi.Abbreviated=1]="Abbreviated",Vi[Vi.Wide=2]="Wide",Vi[Vi.Short=3]="Short",Vi))(),Ko=(()=>((Ko=Ko||{})[Ko.Short=0]="Short",Ko[Ko.Medium=1]="Medium",Ko[Ko.Long=2]="Long",Ko[Ko.Full=3]="Full",Ko))(),_i=(()=>((_i=_i||{})[_i.Decimal=0]="Decimal",_i[_i.Group=1]="Group",_i[_i.List=2]="List",_i[_i.PercentSign=3]="PercentSign",_i[_i.PlusSign=4]="PlusSign",_i[_i.MinusSign=5]="MinusSign",_i[_i.Exponential=6]="Exponential",_i[_i.SuperscriptingExponent=7]="SuperscriptingExponent",_i[_i.PerMille=8]="PerMille",_i[_i.Infinity=9]="Infinity",_i[_i.NaN=10]="NaN",_i[_i.TimeSeparator=11]="TimeSeparator",_i[_i.CurrencyDecimal=12]="CurrencyDecimal",_i[_i.CurrencyGroup=13]="CurrencyGroup",_i))();function GB(t,n,e){const i=fl(t),o=Vc([i[Tn.DayPeriodsFormat],i[Tn.DayPeriodsStandalone]],n);return Vc(o,e)}function WB(t,n,e){const i=fl(t),o=Vc([i[Tn.DaysFormat],i[Tn.DaysStandalone]],n);return Vc(o,e)}function YA(t,n,e){const i=fl(t),o=Vc([i[Tn.MonthsFormat],i[Tn.MonthsStandalone]],n);return Vc(o,e)}function Sw(t,n){return Vc(fl(t)[Tn.DateFormat],n)}function kw(t,n){return Vc(fl(t)[Tn.TimeFormat],n)}function Dw(t,n){return Vc(fl(t)[Tn.DateTimeFormat],n)}function Bc(t,n){const e=fl(t),i=e[Tn.NumberSymbols][n];if(typeof i>"u"){if(n===_i.CurrencyDecimal)return e[Tn.NumberSymbols][_i.Decimal];if(n===_i.CurrencyGroup)return e[Tn.NumberSymbols][_i.Group]}return i}function qB(t){if(!t[Tn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Tn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Vc(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function JA(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const ICe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ay={},NCe=/((?:[^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 Xs=(()=>((Xs=Xs||{})[Xs.Short=0]="Short",Xs[Xs.ShortGMT=1]="ShortGMT",Xs[Xs.Long=2]="Long",Xs[Xs.Extended=3]="Extended",Xs))(),Di=(()=>((Di=Di||{})[Di.FullYear=0]="FullYear",Di[Di.Month=1]="Month",Di[Di.Date=2]="Date",Di[Di.Hours=3]="Hours",Di[Di.Minutes=4]="Minutes",Di[Di.Seconds=5]="Seconds",Di[Di.FractionalSeconds=6]="FractionalSeconds",Di[Di.Day=7]="Day",Di))(),Ji=(()=>((Ji=Ji||{})[Ji.DayPeriods=0]="DayPeriods",Ji[Ji.Days=1]="Days",Ji[Ji.Months=2]="Months",Ji[Ji.Eras=3]="Eras",Ji))();function YB(t,n,e,i){let r=function HCe(t){if(KB(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return Tw(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(ICe))return function UCe(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!KB(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Lh(e,n)||n;let a,s=[];for(;n;){if(a=NCe.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=JB(i,l),r=function VCe(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function BCe(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(JB(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function $Ce(t){if(QA[t])return QA[t];let n;switch(t){case"G":case"GG":case"GGG":n=xo(Ji.Eras,Vi.Abbreviated);break;case"GGGG":n=xo(Ji.Eras,Vi.Wide);break;case"GGGGG":n=xo(Ji.Eras,Vi.Narrow);break;case"y":n=Ps(Di.FullYear,1,0,!1,!0);break;case"yy":n=Ps(Di.FullYear,2,0,!0,!0);break;case"yyy":n=Ps(Di.FullYear,3,0,!1,!0);break;case"yyyy":n=Ps(Di.FullYear,4,0,!1,!0);break;case"Y":n=Ow(1);break;case"YY":n=Ow(2,!0);break;case"YYY":n=Ow(3);break;case"YYYY":n=Ow(4);break;case"M":case"L":n=Ps(Di.Month,1,1);break;case"MM":case"LL":n=Ps(Di.Month,2,1);break;case"MMM":n=xo(Ji.Months,Vi.Abbreviated);break;case"MMMM":n=xo(Ji.Months,Vi.Wide);break;case"MMMMM":n=xo(Ji.Months,Vi.Narrow);break;case"LLL":n=xo(Ji.Months,Vi.Abbreviated,Ro.Standalone);break;case"LLLL":n=xo(Ji.Months,Vi.Wide,Ro.Standalone);break;case"LLLLL":n=xo(Ji.Months,Vi.Narrow,Ro.Standalone);break;case"w":n=KA(1);break;case"ww":n=KA(2);break;case"W":n=KA(1,!0);break;case"d":n=Ps(Di.Date,1);break;case"dd":n=Ps(Di.Date,2);break;case"c":case"cc":n=Ps(Di.Day,1);break;case"ccc":n=xo(Ji.Days,Vi.Abbreviated,Ro.Standalone);break;case"cccc":n=xo(Ji.Days,Vi.Wide,Ro.Standalone);break;case"ccccc":n=xo(Ji.Days,Vi.Narrow,Ro.Standalone);break;case"cccccc":n=xo(Ji.Days,Vi.Short,Ro.Standalone);break;case"E":case"EE":case"EEE":n=xo(Ji.Days,Vi.Abbreviated);break;case"EEEE":n=xo(Ji.Days,Vi.Wide);break;case"EEEEE":n=xo(Ji.Days,Vi.Narrow);break;case"EEEEEE":n=xo(Ji.Days,Vi.Short);break;case"a":case"aa":case"aaa":n=xo(Ji.DayPeriods,Vi.Abbreviated);break;case"aaaa":n=xo(Ji.DayPeriods,Vi.Wide);break;case"aaaaa":n=xo(Ji.DayPeriods,Vi.Narrow);break;case"b":case"bb":case"bbb":n=xo(Ji.DayPeriods,Vi.Abbreviated,Ro.Standalone,!0);break;case"bbbb":n=xo(Ji.DayPeriods,Vi.Wide,Ro.Standalone,!0);break;case"bbbbb":n=xo(Ji.DayPeriods,Vi.Narrow,Ro.Standalone,!0);break;case"B":case"BB":case"BBB":n=xo(Ji.DayPeriods,Vi.Abbreviated,Ro.Format,!0);break;case"BBBB":n=xo(Ji.DayPeriods,Vi.Wide,Ro.Format,!0);break;case"BBBBB":n=xo(Ji.DayPeriods,Vi.Narrow,Ro.Format,!0);break;case"h":n=Ps(Di.Hours,1,-12);break;case"hh":n=Ps(Di.Hours,2,-12);break;case"H":n=Ps(Di.Hours,1);break;case"HH":n=Ps(Di.Hours,2);break;case"m":n=Ps(Di.Minutes,1);break;case"mm":n=Ps(Di.Minutes,2);break;case"s":n=Ps(Di.Seconds,1);break;case"ss":n=Ps(Di.Seconds,2);break;case"S":n=Ps(Di.FractionalSeconds,1);break;case"SS":n=Ps(Di.FractionalSeconds,2);break;case"SSS":n=Ps(Di.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Aw(Xs.Short);break;case"ZZZZZ":n=Aw(Xs.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Aw(Xs.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Aw(Xs.Long);break;default:return null}return QA[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Tw(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Lh(t,n){const e=function CCe(t){return fl(t)[Tn.LocaleId]}(t);if(ay[e]=ay[e]||{},ay[e][n])return ay[e][n];let i="";switch(n){case"shortDate":i=Sw(t,Ko.Short);break;case"mediumDate":i=Sw(t,Ko.Medium);break;case"longDate":i=Sw(t,Ko.Long);break;case"fullDate":i=Sw(t,Ko.Full);break;case"shortTime":i=kw(t,Ko.Short);break;case"mediumTime":i=kw(t,Ko.Medium);break;case"longTime":i=kw(t,Ko.Long);break;case"fullTime":i=kw(t,Ko.Full);break;case"short":const r=Lh(t,"shortTime"),o=Lh(t,"shortDate");i=Ew(Dw(t,Ko.Short),[r,o]);break;case"medium":const s=Lh(t,"mediumTime"),a=Lh(t,"mediumDate");i=Ew(Dw(t,Ko.Medium),[s,a]);break;case"long":const l=Lh(t,"longTime"),c=Lh(t,"longDate");i=Ew(Dw(t,Ko.Long),[l,c]);break;case"full":const u=Lh(t,"fullTime"),d=Lh(t,"fullDate");i=Ew(Dw(t,Ko.Full),[u,d])}return i&&(ay[e][n]=i),i}function Ew(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Tu(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===Di.Hours)0===a&&-12===e&&(a=12);else if(t===Di.FractionalSeconds)return function FCe(t,n){return Tu(t,3).substring(0,n)}(a,n);const l=Bc(s,_i.MinusSign);return Tu(a,n,l,i,r)}}function xo(t,n,e=Ro.Format,i=!1){return function(r,o){return function jCe(t,n,e,i,r,o){switch(e){case Ji.Months:return YA(n,r,i)[t.getMonth()];case Ji.Days:return WB(n,r,i)[t.getDay()];case Ji.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function TCe(t){const n=fl(t);return qB(n),(n[Tn.ExtraData][2]||[]).map(i=>"string"==typeof i?JA(i):[JA(i[0]),JA(i[1])])}(n),u=function ECe(t,n,e){const i=fl(t);qB(i);const o=Vc([i[Tn.ExtraData][0],i[Tn.ExtraData][1]],n)||[];return Vc(o,e)||[]}(n,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,m=s>=f.hours&&a>=f.minutes,g=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Xs.Short:return(r>=0?"+":"")+Tu(s,2,o)+Tu(Math.abs(r%60),2,o);case Xs.ShortGMT:return"GMT"+(r>=0?"+":"")+Tu(s,1,o);case Xs.Long:return"GMT"+(r>=0?"+":"")+Tu(s,2,o)+":"+Tu(Math.abs(r%60),2,o);case Xs.Extended:return 0===i?"Z":(r>=0?"+":"")+Tu(s,2,o)+":"+Tu(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const RCe=0,Mw=4;function XB(t){return Tw(t.getFullYear(),t.getMonth(),t.getDate()+(Mw-t.getDay()))}function KA(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=XB(e),s=function LCe(t){const n=Tw(t,RCe,1).getDay();return Tw(t,0,1+(n<=Mw?Mw:Mw+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Tu(r,t,Bc(i,_i.MinusSign))}}function Ow(t,n=!1){return function(e,i){return Tu(XB(e).getFullYear(),t,Bc(i,_i.MinusSign),n)}}const QA={};function JB(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function KB(t){return t instanceof Date&&!isNaN(t.valueOf())}const zCe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,QB=22,Iw=".",ly="0",GCe=";",WCe=",",ZA="#";function nM(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function t7(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const rM=/\s+/,n7=[];let Af=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=n7,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(rM):n7}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(rM):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(rM).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(he(Cw),he(sy),he(Si),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class n2e{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,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 Ln=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,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 i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new n2e(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),o7(a,r)}});for(let r=0,o=i.length;r{o7(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(he(jl),he(oo),he(Cw))},t.\u0275dir=sn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function o7(t,n){t.context.$implicit=n.item}let _n=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new r2e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){s7("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){s7("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,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(he(jl),he(oo))},t.\u0275dir=sn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class r2e{constructor(){this.$implicit=null,this.ngIf=null}}function s7(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${bn(n)}'.`)}class oM{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Nw=(()=>{class t{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 i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),a7=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new oM(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(he(jl),he(oo),he(Nw,9))},t.\u0275dir=sn({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),c7=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,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,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Nl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(sy),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Eu=(()=>{class t{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 i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(he(jl))},t.\u0275dir=sn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ei]}),t})();let d7=(()=>{class t{constructor(e){this._locale=e}transform(e,i,r){if(!function sM(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function XCe(t,n,e){return function eM(t,n,e,i,r,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function QCe(t){let i,r,o,s,a,n=Math.abs(t)+"",e=0;for((r=n.indexOf(Iw))>-1&&(n=n.replace(Iw,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===ly;o++);if(o===(a=n.length))i=[0],r=1;else{for(a--;n.charAt(a)===ly;)a--;for(r-=o,i=[],s=0;o<=a;o++,s++)i[s]=Number(n.charAt(o))}return r>QB&&(i=i.splice(0,QB-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(t);s&&(c=function KCe(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,h=n.maxFrac;if(o){const y=o.match(zCe);if(null===y)throw new Error(`${o} is not a valid digit info`);const _=y[1],w=y[3],k=y[5];null!=_&&(u=nM(_)),null!=w&&(d=nM(w)),null!=k?h=nM(k):null!=w&&d>h&&(h=d)}!function ZCe(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(n,r),e);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r=c?p.pop():l=!1),h>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,h);let f=c.digits,p=c.integerLen;const m=c.exponent;let g=[];for(l=f.every(y=>!y);p0?g=f.splice(p,f.length):(g=f,f=[0]);const v=[];for(f.length>=n.lgSize&&v.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)v.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(Bc(e,i)),g.length&&(a+=Bc(e,r)+g.join("")),m&&(a+=Bc(e,_i.Exponential)+"+"+m)}else a=Bc(e,_i.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function tM(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(GCe),r=i[0],o=i[1],s=-1!==r.indexOf(Iw)?r.split(Iw):[r.substring(0,r.lastIndexOf(ly)+1),r.substring(r.lastIndexOf(ly)+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf(ZA));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();const h7="browser";function f7(t){return t===h7}let O2e=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>new I2e(vt(co),window)}),t})();class I2e{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function N2e(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=p7(this.window.history)||p7(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function p7(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class m7{}class sSe extends mCe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class uM extends sSe{static makeCurrent(){!function pCe(t){zA||(zA=t)}(new uM)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function aSe(){return uy=uy||document.querySelector("base"),uy?uy.getAttribute("href"):null}();return null==e?null:function lSe(t){jw=jw||document.createElement("a"),jw.setAttribute("href",t);const n=jw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){uy=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return t7(document.cookie,n)}}let jw,uy=null;const b7=new Vn("TRANSITION_ID"),uSe=[{provide:vw,useFactory:function cSe(t,n,e){return()=>{e.get(yw).donePromise.then(()=>{const i=jh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const Rw=new Vn("EventManagerPlugins");let Lw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),dy=(()=>{class t extends w7{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const dM={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/"},hM=/%COMP%/g,k7=new Vn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function D7(t,n){return n.flat(100).map(e=>e.replace(hM,t))}function T7(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let $w=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new fM(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof M7?r.applyToHost(e):r instanceof pM&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case _u.Emulated:o=new M7(s,a,i,this.appId,l);break;case _u.ShadowDom:return new _Se(s,a,e,i);default:o=new pM(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(vt(Lw),vt(dy),vt(ry),vt(k7))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class fM{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(dM[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(A7(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(A7(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=dM[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=dM[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Nl.DashCase|Nl.Important)?n.style.setProperty(e,i,r&Nl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Nl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,T7(i)):this.eventManager.addEventListener(n,e,T7(i))}}function A7(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class _Se extends fM{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=D7(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class pM extends fM{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=D7(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class M7 extends pM{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function gSe(t){return"_ngcontent-%COMP%".replace(hM,t)}(s),this.hostAttr=function vSe(t){return"_nghost-%COMP%".replace(hM,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let bSe=(()=>{class t extends x7{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const O7=["alt","control","meta","shift"],xSe={"\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"},wSe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let CSe=(()=>{class t extends x7{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),O7.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=xSe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),O7.forEach(s=>{s!==r&&(0,wSe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const N7=[{provide:oy,useValue:h7},{provide:cB,useValue:function SSe(){uM.makeCurrent()},multi:!0},{provide:co,useFactory:function DSe(){return function x1e(t){wE=t}(document),document},deps:[]}],TSe=xB(dCe,"browser",N7),F7=new Vn(""),P7=[{provide:_w,useClass:class dSe{addToWindow(n){Fo.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Fo.getAllAngularTestabilities=()=>n.getAllTestabilities(),Fo.getAllAngularRootElements=()=>n.getAllRootElements(),Fo.frameworkStabilizers||(Fo.frameworkStabilizers=[]),Fo.frameworkStabilizers.push(i=>{const r=Fo.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?jh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:gB,useClass:FA,deps:[ir,PA,_w]},{provide:FA,useClass:FA,deps:[ir,PA,_w]}],j7=[{provide:ME,useValue:"root"},{provide:Gg,useFactory:function kSe(){return new Gg},deps:[]},{provide:Rw,useClass:bSe,multi:!0,deps:[co,ir,oy]},{provide:Rw,useClass:CSe,multi:!0,deps:[co]},{provide:$w,useClass:$w,deps:[Lw,dy,ry,k7]},{provide:zg,useExisting:$w},{provide:w7,useExisting:dy},{provide:dy,useClass:dy,deps:[co]},{provide:Lw,useClass:Lw,deps:[Rw,ir]},{provide:m7,useClass:hSe,deps:[]},[]];let gM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:ry,useValue:e.appId},{provide:b7,useExisting:ry},uSe]}}}return t.\u0275fac=function(e){return new(e||t)(vt(F7,12))},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[...j7,...P7],imports:[Mf,hCe]}),t})(),R7=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function ASe(){return new R7(vt(co))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let B7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new(e||t):vt(V7),i},providedIn:"root"}),t})(),V7=(()=>{class t extends B7{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case bo.NONE:return i;case bo.HTML:return Md(i,"HTML")?ic(i):K5(this._doc,String(i)).toString();case bo.STYLE:return Md(i,"Style")?ic(i):i;case bo.SCRIPT:if(Md(i,"Script"))return ic(i);throw new Error("unsafe value used in a script context");case bo.URL:return Md(i,"URL")?ic(i):Gx(String(i));case bo.RESOURCE_URL:if(Md(i,"ResourceURL"))return ic(i);throw new Error(`unsafe value used in a resource URL context (see ${hx})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${hx})`)}}bypassSecurityTrustHtml(e){return function E1e(t){return new w1e(t)}(e)}bypassSecurityTrustStyle(e){return function A1e(t){return new C1e(t)}(e)}bypassSecurityTrustScript(e){return function M1e(t){return new S1e(t)}(e)}bypassSecurityTrustUrl(e){return function O1e(t){return new k1e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function I1e(t){return new D1e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function FSe(t){return new V7(t.get(co))}(vt(la)),i},providedIn:"root"}),t})();class H7{}class PSe{}const $h="*";function Ka(t,n){return{type:7,name:t,definitions:n,options:{}}}function Sa(t,n=null){return{type:4,styles:n,timings:t}}function U7(t,n=null){return{type:2,steps:t,options:n}}function kr(t){return{type:6,styles:t,offset:null}}function ka(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function z7(t){Promise.resolve().then(t)}class hy{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){z7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class G7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?z7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const yM="!";function W7(t){return new Nt(3e3,!1)}function gke(){return typeof window<"u"&&typeof window.document<"u"}function _M(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function If(t){switch(t.length){case 0:return new hy;case 1:return t[0];default:return new G7(t)}}function q7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case yM:v=r.get(m);break;case $h:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function rke(t){return new Nt(3502,!1)}();return a}function bM(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&xM(e,"start",t)));break;case"done":t.onDone(()=>i(e&&xM(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&xM(e,"destroy",t)))}}function xM(t,n,e){const o=wM(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function wM(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function lc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function Y7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let CM=(t,n)=>!1,X7=(t,n,e)=>[],J7=null;function SM(t){const n=t.parentNode||t.host;return n===J7?null:n}(_M()||typeof Element<"u")&&(gke()?(J7=(()=>document.documentElement)(),CM=(t,n)=>{for(;n;){if(n===t)return!0;n=SM(n)}return!1}):CM=(t,n)=>t.contains(n),X7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let tm=null,K7=!1;const Q7=CM,Z7=X7;let e9=(()=>{class t{validateStyleProperty(e){return function yke(t){tm||(tm=function _ke(){return typeof document<"u"?document.body:null}()||{},K7=!!tm.style&&"WebkitAppearance"in tm.style);let n=!0;return tm.style&&!function vke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in tm.style,!n&&K7&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in tm.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return Q7(e,i)}getParentElement(e){return SM(e)}query(e,i,r){return Z7(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new hy(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),kM=(()=>{class t{}return t.NOOP=new e9,t})();const bke=1e3,DM="ng-enter",Bw="ng-leave",Vw="ng-trigger",Hw=".ng-trigger",n9="ng-animating",TM=".ng-animating";function Bh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:EM(parseFloat(n[1]),n[2])}function EM(t,n){return"s"===n?t*bke:t}function Uw(t,n,e){return t.hasOwnProperty("duration")?t:function wke(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(W7()),{duration:0,delay:0,easing:""};r=EM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=EM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function jSe(){return new Nt(3100,!1)}()),a=!0),o<0&&(n.push(function RSe(){return new Nt(3101,!1)}()),a=!0),a&&n.splice(l,0,W7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function fy(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function i9(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Nf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function o9(t,n,e){return e?n+":"+e+";":""}function s9(t){let n="";for(let e=0;e{const o=MM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),_M()&&s9(t))}function nm(t,n){t.style&&(n.forEach((e,i)=>{const r=MM(i);t.style[r]=""}),_M()&&s9(t))}function py(t){return Array.isArray(t)?1==t.length?t[0]:U7(t):t}const AM=new RegExp("{{\\s*(.+?)\\s*}}","g");function a9(t){let n=[];if("string"==typeof t){let e;for(;e=AM.exec(t);)n.push(e[1]);AM.lastIndex=0}return n}function my(t,n,e){const i=t.toString(),r=i.replace(AM,(o,s)=>{let a=n[s];return null==a&&(e.push(function $Se(t){return new Nt(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function zw(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const kke=/-+([a-z0-9])/g;function MM(t){return t.replace(kke,(...n)=>n[1].toUpperCase())}function Dke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cc(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function BSe(t){return new Nt(3004,!1)}()}}function l9(t,n){return window.getComputedStyle(t)[n]}const qw="*";function Ike(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function Nke(t,n,e){if(":"==t[0]){const l=function Fke(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function ZSe(t){return new Nt(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(c9(r,s));"<"==o[0]&&!(r==qw&&s==qw)&&n.push(c9(s,r))}(i,e,n)):e.push(t),e}const Yw=new Set(["true","1"]),Xw=new Set(["false","0"]);function c9(t,n){const e=Yw.has(t)||Xw.has(t),i=Yw.has(n)||Xw.has(n);return(r,o)=>{let s=t==qw||t==r,a=n==qw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Yw.has(t):Xw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Yw.has(n):Xw.has(n)),s&&a}}const Pke=new RegExp("s*:selfs*,?","g");function OM(t,n,e,i){return new jke(t).build(n,e,i)}class jke{constructor(n){this._driver=n}build(n,e,i){const r=new $ke(e);return this._resetContextStyleTimingState(r),cc(this,py(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function HSe(){return new Nt(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function USe(){return new Nt(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{a9(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(zw(o.values()),e.errors.push(function zSe(t,n){return new Nt(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=cc(this,py(n.animation),e);return{type:1,matchers:Ike(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:im(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>cc(this,i,e)),options:im(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=cc(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:im(n.options)}}visitAnimate(n,e){const i=function Vke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return IM(Uw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=IM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Uw(e,n);return IM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:kr({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=kr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===$h?i.push(a):e.errors.push(new Nt(3002,!1)):i.push(i9(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function WSe(t,n,e,i,r){return new Nt(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function Ske(t,n,e){const i=n.params||{},r=a9(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function LSe(t){return new Nt(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function qSe(){return new Nt(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let _=null!=y.offset?y.offset:function Bke(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),w=0;return null!=_&&(o++,w=y.offset=_),l=l||w<0||w>1,a=a||w0&&o{const _=h>0?y==f?1:h*y:s[y],w=_*g;e.currentTime=p+m.delay+w,m.duration=w,this._validateStyleAst(v,e),v.offset=_,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:cc(this,py(n.animation),e),options:im(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:im(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:im(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Rke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Pke,"")),t=t.replace(/@\*/g,Hw).replace(/@\w+/g,e=>Hw+"-"+e.slice(1)).replace(/:animating/g,TM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,lc(e.collectedStyles,e.currentQuerySelector,new Map);const a=cc(this,py(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:im(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function KSe(){return new Nt(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Uw(n.timings,e.errors,!0);return{type:12,animation:cc(this,py(n.animation),e),timings:i,options:null}}}class $ke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function im(t){return t?(t=fy(t)).params&&(t.params=function Lke(t){return t?fy(t):null}(t.params)):t={},t}function IM(t,n,e){return{duration:t,delay:n,easing:e}}function NM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Jw{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const zke=new RegExp(":enter","g"),Wke=new RegExp(":leave","g");function FM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new qke).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class qke{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Jw;const d=new PM(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Bh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),cc(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[NM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Bh(my(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Bh(i.duration):null,a=null!=i.delay?Bh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),cc(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Kw);const s=Bh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>cc(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Bh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),cc(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Uw(e.params?my(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Bh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Kw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),cc(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;cc(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Kw={};class PM{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Kw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Bh(i.duration)),null!=i.delay&&(r.delay=Bh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=my(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new PM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Kw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new Yke(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(zke,"."+this._enterClassName)).replace(Wke,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function QSe(t){return new Nt(3014,!1)}()),a}}class Qw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Qw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||$h),this._currentKeyframe.set(e,$h);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Xke(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,$h)}else Nf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=my(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$h),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Nf(a,new Map,this._backFill);c.forEach((u,d)=>{u===yM?n.add(d):u===$h&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?zw(n.values()):[],s=e.size?zw(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return NM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class Yke extends Qw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Nf(n[0]);l.set("offset",0),o.push(l);const c=Nf(n[0]);c.set("offset",h9(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Nf(n[d]);const f=h.get("offset");h.set("offset",h9((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return NM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function h9(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class jM{}const Jke=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Kke extends jM{normalizePropertyName(n,e){return MM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(Jke.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function VSe(t,n){return new Nt(3005,!1)}())}return s+o}}function f9(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const RM={};class p9{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function Qke(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||RM,p=this.buildStyles(i,a&&a.params||RM,d),m=l&&l.params||RM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,_=new Map,w="void"===r,k={params:Zke(m,h),delay:this.ast.options?.delay},D=u?[]:FM(n,e,this.ast.animation,o,s,p,g,k,c,d);let L=0;if(D.forEach(R=>{L=Math.max(R.duration+R.delay,L)}),d.length)return f9(e,this._triggerName,i,r,w,p,g,[],[],y,_,L,d);D.forEach(R=>{const U=R.element,G=lc(y,U,new Set);R.preStyleProps.forEach(te=>G.add(te));const X=lc(_,U,new Set);R.postStyleProps.forEach(te=>X.add(te)),U!==e&&v.add(U)});const z=zw(v.values());return f9(e,this._triggerName,i,r,w,p,g,D,z,y,_,L)}}function Zke(t,n){const e=fy(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class eDe{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=fy(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=my(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class nDe{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new eDe(r.style,r.options&&r.options.params||{},i))}),m9(this.states,"true","1"),m9(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new p9(n,r,this.states))}),this.fallbackTransition=function iDe(t,n,e){return new p9(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function m9(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const rDe=new Jw;class oDe{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=OM(this._driver,e,i,r);if(i.length)throw function oke(t){return new Nt(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=q7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=FM(this._driver,e,o,DM,Bw,new Map,new Map,i,rDe,r),s.forEach(u=>{const d=lc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function ske(){return new Nt(3300,!1)}()),s=[]),r.length)throw function ake(t){return new Nt(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,$h))})});const c=If(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function lke(t){return new Nt(3301,!1)}();return e}listen(n,e,i,r){const o=wM(e,"","","");return bM(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const g9="ng-animate-queued",LM="ng-animate-disabled",uDe=[],v9={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},dDe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Hc="__ng_removed";class $M{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function mDe(t){return t??null}(i?n.value:n),i){const o=fy(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const gy="void",BM=new $M(gy);class hDe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Uc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function cke(t,n){return new Nt(3302,!1)}();if(null==i||0==i.length)throw function uke(t){return new Nt(3303,!1)}();if(!function gDe(t){return"start"==t||"done"==t}(i))throw function dke(t,n){return new Nt(3400,!1)}();const o=lc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=lc(this._engine.statesByElement,n,new Map);return a.has(e)||(Uc(n,Vw),Uc(n,Vw+"-"+e),a.set(e,BM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function hke(t){return new Nt(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new VM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Uc(n,Vw),Uc(n,Vw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new $M(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=BM),c.value!==gy&&l.value===c.value){if(!function _De(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{nm(n,g),jd(n,v)})}return}const h=lc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Uc(n,g9),s.onStart(()=>{hv(n,g9)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Hw,!0);i.forEach(r=>{if(r[Hc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,gy,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&If(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||BM,u=new $M(gy),d=new VM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Hc];(!o||o===v9)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Uc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=wM(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,bM(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class fDe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new hDe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Zw(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Zw(e))return;const o=e[Hc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Uc(n,LM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),hv(n,LM))}removeNode(n,e,i,r){if(Zw(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Hc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Zw(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Hw,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,TM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return If(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Hc];if(e&&e.setForRemoval){if(n[Hc]=v9,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(LM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?If(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function fke(t){return new Nt(3402,!1)}()}_flushAnimations(n,e){const i=new Jw,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(J=>{u.add(J);const H=this.driver.query(J,".ng-animate-queued",!0);for(let le=0;le{const le=DM+m++;p.set(H,le),J.forEach(E=>Uc(E,le))});const g=[],v=new Set,y=new Set;for(let J=0;Jv.add(E)):y.add(H))}const _=new Map,w=b9(h,Array.from(v));w.forEach((J,H)=>{const le=Bw+m++;_.set(H,le),J.forEach(E=>Uc(E,le))}),n.push(()=>{f.forEach((J,H)=>{const le=p.get(H);J.forEach(E=>hv(E,le))}),w.forEach((J,H)=>{const le=_.get(H);J.forEach(E=>hv(E,le))}),g.forEach(J=>{this.processLeaveNode(J)})});const k=[],D=[];for(let J=this._namespaceList.length-1;J>=0;J--)this._namespaceList[J].drainQueuedTransitions(e).forEach(le=>{const E=le.player,O=le.element;if(k.push(E),this.collectedEnterElements.length){const ye=O[Hc];if(ye&&ye.setForMove){if(ye.previousTriggersValues&&ye.previousTriggersValues.has(le.triggerName)){const Xe=ye.previousTriggersValues.get(le.triggerName),Le=this.statesByElement.get(le.element);if(Le&&Le.has(le.triggerName)){const rt=Le.get(le.triggerName);rt.value=Xe,Le.set(le.triggerName,rt)}}return void E.destroy()}}const I=!d||!this.driver.containsElement(d,O),q=_.get(O),V=p.get(O),re=this._buildInstruction(le,i,V,q,I);if(re.errors&&re.errors.length)return void D.push(re);if(I)return E.onStart(()=>nm(O,re.fromStyles)),E.onDestroy(()=>jd(O,re.toStyles)),void r.push(E);if(le.isFallbackTransition)return E.onStart(()=>nm(O,re.fromStyles)),E.onDestroy(()=>jd(O,re.toStyles)),void r.push(E);const de=[];re.timelines.forEach(ye=>{ye.stretchStartingKeyframe=!0,this.disabledNodes.has(ye.element)||de.push(ye)}),re.timelines=de,i.append(O,re.timelines),s.push({instruction:re,player:E,element:O}),re.queriedElements.forEach(ye=>lc(a,ye,[]).push(E)),re.preStyleProps.forEach((ye,Xe)=>{if(ye.size){let Le=l.get(Xe);Le||l.set(Xe,Le=new Set),ye.forEach((rt,$)=>Le.add($))}}),re.postStyleProps.forEach((ye,Xe)=>{let Le=c.get(Xe);Le||c.set(Xe,Le=new Set),ye.forEach((rt,$)=>Le.add($))})});if(D.length){const J=[];D.forEach(H=>{J.push(function pke(t,n){return new Nt(3505,!1)}())}),k.forEach(H=>H.destroy()),this.reportError(J)}const L=new Map,z=new Map;s.forEach(J=>{const H=J.element;i.has(H)&&(z.set(H,H),this._beforeAnimationBuild(J.player.namespaceId,J.instruction,L))}),r.forEach(J=>{const H=J.element;this._getPreviousPlayers(H,!1,J.namespaceId,J.triggerName,null).forEach(E=>{lc(L,H,[]).push(E),E.destroy()})});const R=g.filter(J=>w9(J,l,c)),U=new Map;_9(U,this.driver,y,c,$h).forEach(J=>{w9(J,l,c)&&R.push(J)});const X=new Map;f.forEach((J,H)=>{_9(X,this.driver,new Set(J),l,yM)}),R.forEach(J=>{const H=U.get(J),le=X.get(J);U.set(J,new Map([...Array.from(H?.entries()??[]),...Array.from(le?.entries()??[])]))});const te=[],P=[],W={};s.forEach(J=>{const{element:H,player:le,instruction:E}=J;if(i.has(H)){if(u.has(H))return le.onDestroy(()=>jd(H,E.toStyles)),le.disabled=!0,le.overrideTotalTime(E.totalTime),void r.push(le);let O=W;if(z.size>1){let q=H;const V=[];for(;q=q.parentNode;){const re=z.get(q);if(re){O=re;break}V.push(q)}V.forEach(re=>z.set(re,O))}const I=this._buildAnimation(le.namespaceId,E,L,o,X,U);if(le.setRealPlayer(I),O===W)te.push(le);else{const q=this.playersByElement.get(O);q&&q.length&&(le.parentPlayer=If(q)),r.push(le)}}else nm(H,E.fromStyles),le.onDestroy(()=>jd(H,E.toStyles)),P.push(le),u.has(H)&&r.push(le)}),P.forEach(J=>{const H=o.get(J.element);if(H&&H.length){const le=If(H);J.setRealPlayer(le)}}),r.forEach(J=>{J.parentPlayer?J.syncPlayerEvents(J.parentPlayer):J.destroy()});for(let J=0;J!I.destroyed);O.length?vDe(this,H,O):this.processLeaveNode(H)}return g.length=0,te.forEach(J=>{this.players.push(J),J.onDone(()=>{J.destroy();const H=this.players.indexOf(J);this.players.splice(H,1)}),J.play()}),te}elementContainsData(n,e){let i=!1;const r=e[Hc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==gy;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=lc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}nm(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[Hc];if(g&&g.removedBeforeQueried)return new hy(p.duration,p.delay);const v=m!==l,y=function yDe(t){const n=[];return x9(t,n),n}((i.get(m)||uDe).map(L=>L.getRealPlayer())).filter(L=>!!L.element&&L.element===m),_=o.get(m),w=s.get(m),k=q7(0,this._normalizer,0,p.keyframes,_,w),D=this._buildPlayer(p,k,y);if(p.subTimeline&&r&&d.add(m),v){const L=new VM(n,a,m);L.setRealPlayer(D),c.push(L)}return D});c.forEach(p=>{lc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function pDe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Uc(p,n9));const f=If(h);return f.onDestroy(()=>{u.forEach(p=>hv(p,n9)),jd(l,e.toStyles)}),d.forEach(p=>{lc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new hy(n.duration,n.delay)}}class VM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new hy,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>bM(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){lc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Zw(t){return t&&1===t.nodeType}function y9(t,n){const e=t.style.display;return t.style.display=n??"none",e}function _9(t,n,e,i,r){const o=[];e.forEach(l=>o.push(y9(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Hc]=dDe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>y9(l,o[a++])),s}function b9(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Uc(t,n){t.classList?.add(n)}function hv(t,n){t.classList?.remove(n)}function vDe(t,n,e){If(e).onDone(()=>t.processLeaveNode(n))}function x9(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class eC{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new fDe(n,e,i),this._timelineEngine=new oDe(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=OM(this._driver,o,l,c);if(l.length)throw function ike(t,n){return new Nt(3404,!1)}();a=function tDe(t,n,e){return new nDe(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=Y7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=Y7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let xDe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&jd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jd(this._element,this._initialStyles),this._endStyles&&(jd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(nm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nm(this._element,this._endStyles),this._endStyles=null),jd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function HM(t){let n=null;return t.forEach((e,i)=>{(function wDe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class C9{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:l9(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class CDe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return Q7(n,e)}getParentElement(n){return SM(n)}query(n,e,i){return Z7(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof C9);(function Tke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function Cke(t){return t.length?t[0]instanceof Map?t:t.map(n=>i9(n)):[]}(e).map(f=>Nf(f));d=function Eke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,l9(t,a)))}}return n}(n,d,c);const h=function bDe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=HM(n[0]),n.length>1&&(i=HM(n[n.length-1]))):n instanceof Map&&(e=HM(n)),e||i?new xDe(t,e,i):null}(n,d);return new C9(n,d,l,h)}}let SDe=(()=>{class t extends H7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:_u.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?U7(e):e;return S9(this._renderer,null,i,"register",[r]),new kDe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(vt(zg),vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class kDe extends PSe{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new DDe(this._id,n,e||{},this._renderer)}}class DDe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return S9(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function S9(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const k9="@.disabled";let TDe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new D9("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new EDe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(vt(zg),vt(eC),vt(ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class D9{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==k9?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class EDe extends D9{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==k9?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function ADe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function MDe(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let ODe=(()=>{class t extends eC{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(vt(co),vt(kM),vt(jM),vt(Ph))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const T9=[{provide:H7,useClass:SDe},{provide:jM,useFactory:function IDe(){return new Kke}},{provide:eC,useClass:ODe},{provide:zg,useFactory:function NDe(t,n,e){return new TDe(t,n,e)},deps:[$w,eC,ir]}],UM=[{provide:kM,useFactory:()=>new CDe},{provide:uB,useValue:"BrowserAnimations"},...T9],zM=[{provide:kM,useClass:e9},{provide:uB,useValue:"NoopAnimations"},...T9];let FDe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?zM:UM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:UM,imports:[gM]}),t})(),PDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:zM,imports:[gM]}),t})();function Rn(...t){let n=t[t.length-1];return _a(n)?(t.pop(),Nc(t,n)):ot(t)}class Js extends _r{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ur;return this._value}next(n){super.next(this._value=n)}}const nC=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class GM extends F{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class jDe extends F{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function WM(t,n,e,i,r=new jDe(t,e,i)){if(!r.closed)return n instanceof en?n.subscribe(r):Kl(n)(r)}const E9={};function iC(...t){let n,e;return _a(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Ze(t[0])&&(t=t[0]),ot(t,e).lift(new RDe(n))}class RDe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new LDe(n,this.resultSelector))}}class LDe extends GM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(E9),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function oC(t){return t?function BDe(t){return new en(n=>t.schedule(()=>n.complete()))}(t):Vh}function A9(t){return new en(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?ro(e):oC()).subscribe(n)})}function rm(t,n){return new en(n?e=>n.schedule(VDe,0,{error:t,subscriber:e}):e=>e.error(t))}function VDe({error:t,subscriber:n}){n.error(t)}function uc(t,n){return"function"==typeof n?e=>e.pipe(uc((i,r)=>ro(t(i,r)).pipe(vn((o,s)=>n(i,o,r,s))))):e=>e.lift(new HDe(t))}class HDe{constructor(n){this.project=n}call(n,e){return e.subscribe(new UDe(n,this.project))}}class UDe extends Y{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Ml(this),r=this.destination;r.add(i),this.innerSubscription=Ne(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const M9=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Ks(t){return n=>0===t?oC():n.lift(new zDe(t))}class zDe{constructor(n){if(this.total=n,this.total<0)throw new M9}call(n,e){return e.subscribe(new GDe(n,this.total))}}class GDe extends F{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function sC(...t){const n=t[t.length-1];return _a(n)?(t.pop(),e=>rC(t,e,n)):e=>rC(t,e)}function cs(t,n){return function(i){return i.lift(new WDe(t,n))}}class WDe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new qDe(n,this.predicate,this.thisArg))}}class qDe extends F{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function aC(t=null){return n=>n.lift(new YDe(t))}class YDe{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new XDe(n,this.defaultValue))}}class XDe extends F{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function O9(t=QDe){return n=>n.lift(new JDe(t))}class JDe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new KDe(n,this.errorFactory))}}class KDe extends F{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function QDe(){return new nC}function Ff(t,n){const e=arguments.length>=2;return i=>i.pipe(t?cs((r,o)=>t(r,o,i)):Ft,Ks(1),e?aC(n):O9(()=>new nC))}function Pf(t,n){return et(t,n,1)}function Hh(){}function xs(t,n,e){return function(r){return r.lift(new ZDe(t,n,e))}}class ZDe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new eTe(n,this.nextOrObserver,this.error,this.complete))}}class eTe extends F{constructor(n,e,i,r){super(n),this._tapNext=Hh,this._tapError=Hh,this._tapComplete=Hh,this._tapError=i||Hh,this._tapComplete=r||Hh,nt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Hh,this._tapError=e.error||Hh,this._tapComplete=e.complete||Hh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Ll(t){return function(e){const i=new tTe(t),r=e.lift(i);return i.caught=r}}class tTe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new nTe(n,this.selector,this.caught))}}class nTe extends Y{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Ml(this);this.add(i);const r=Ne(e,i);r!==i&&this.add(r)}}}function I9(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new iTe(t,n,e))}}class iTe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new rTe(n,this.accumulator,this.seed,this.hasSeed))}}class rTe extends F{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function qM(t){return function(e){return 0===t?oC():e.lift(new oTe(t))}}class oTe{constructor(n){if(this.total=n,this.total<0)throw new M9}call(n,e){return e.subscribe(new sTe(n,this.total))}}class sTe extends F{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?cs((r,o)=>t(r,o,i)):Ft,qM(1),e?aC(n):O9(()=>new nC))}class lTe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new cTe(n,this.predicate,this.inclusive))}}class cTe extends F{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class dTe{constructor(n){this.value=n}call(n,e){return e.subscribe(new hTe(n,this.value))}}class hTe extends F{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function YM(t){return n=>n.lift(new fTe(t))}class fTe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new pTe(n,this.callback))}}class pTe extends F{constructor(n,e){super(n),this.add(new ce(e))}}const zi="primary",vy=Symbol("RouteTitle");class mTe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function fv(t){return new mTe(t)}function gTe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function P9(t){return Array.prototype.concat.apply([],t)}function j9(t){return t.length>0?t[t.length-1]:null}function Da(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function jf(t){return nA(t)?t:W1(t)?ro(Promise.resolve(t)):Rn(t)}const lC=!1,yTe={exact:function $9(t,n,e){if(!om(t.segments,n.segments)||!cC(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!$9(t.children[i],n.children[i],e))return!1;return!0},subset:B9},R9={exact:function _Te(t,n){return Rd(t,n)},subset:function bTe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>F9(t[e],n[e]))},ignored:()=>!0};function L9(t,n,e){return yTe[e.paths](t.root,n.root,e.matrixParams)&&R9[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function B9(t,n,e){return V9(t,n,n.segments,e)}function V9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!om(r,e)||n.hasChildren()||!cC(r,e,i))}if(t.segments.length===e.length){if(!om(t.segments,e)||!cC(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!B9(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(om(t.segments,r)&&cC(t.segments,r,i)&&t.children[zi])&&V9(t.children[zi],n,o,i)}}function cC(t,n,e){return n.every((i,r)=>R9[e](t[r].parameters,i.parameters))}class Rf{constructor(n=new ar([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fv(this.queryParams)),this._queryParamMap}toString(){return CTe.serialize(this)}}class ar{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Da(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uC(this)}}class yy{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=fv(this.parameters)),this._parameterMap}toString(){return z9(this)}}function om(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let _y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return new XM},providedIn:"root"}),t})();class XM{parse(n){const e=new ITe(n);return new Rf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${by(n.root,!0)}`,i=function DTe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${dC(e)}=${dC(r)}`).join("&"):`${dC(e)}=${dC(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function STe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const CTe=new XM;function uC(t){return t.segments.map(n=>z9(n)).join("/")}function by(t,n){if(!t.hasChildren())return uC(t);if(n){const e=t.children[zi]?by(t.children[zi],!1):"",i=[];return Da(t.children,(r,o)=>{o!==zi&&i.push(`${o}:${by(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function wTe(t,n){let e=[];return Da(t.children,(i,r)=>{r===zi&&(e=e.concat(n(i,r)))}),Da(t.children,(i,r)=>{r!==zi&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===zi?[by(t.children[zi],!1)]:[`${r}:${by(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[zi]?`${uC(t)}/${e[0]}`:`${uC(t)}/(${e.join("//")})`}}function H9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dC(t){return H9(t).replace(/%3B/gi,";")}function JM(t){return H9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hC(t){return decodeURIComponent(t)}function U9(t){return hC(t.replace(/\+/g,"%20"))}function z9(t){return`${JM(t.path)}${function kTe(t){return Object.keys(t).map(n=>`;${JM(n)}=${JM(t[n])}`).join("")}(t.parameters)}`}const TTe=/^[^\/()?;=#]+/;function fC(t){const n=t.match(TTe);return n?n[0]:""}const ETe=/^[^=?&#]+/,MTe=/^[^&#]+/;class ITe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ar([],{}):new ar([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[zi]=new ar(n,e)),i}parseSegment(){const n=fC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Nt(4009,lC);return this.capture(n),new yy(hC(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=fC(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=fC(this.remaining);r&&(i=r,this.capture(i))}n[hC(e)]=hC(i)}parseQueryParam(n){const e=function ATe(t){const n=t.match(ETe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function OTe(t){const n=t.match(MTe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=U9(e),o=U9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=fC(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Nt(4010,lC);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=zi);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zi]:new ar([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Nt(4011,lC)}}function KM(t){return t.segments.length>0?new ar([],{[zi]:t}):t}function pC(t){const n={};for(const i of Object.keys(t.children)){const o=pC(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function NTe(t){if(1===t.numberOfChildren&&t.children[zi]){const n=t.children[zi];return new ar(t.segments.concat(n.segments),n.children)}return t}(new ar(t.segments,n))}function sm(t){return t instanceof Rf}const QM=!1;function FTe(t,n,e,i,r){if(0===e.length)return pv(n.root,n.root,n.root,i,r);const o=function X9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Y9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Da(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new Y9(e,n,i)}(e);return o.toRoot()?pv(n.root,n.root,new ar([],{}),i,r):function s(l){const c=function jTe(t,n,e,i){if(t.isAbsolute)return new mv(n.root,!0,0);if(-1===i)return new mv(e,e===n.root,0);return function J9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Nt(4005,QM&&"Invalid number of '../'");r=i.segments.length}return new mv(i,!1,r-o)}(e,i+(xy(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?gv(c.segmentGroup,c.index,o.commands):ZM(c.segmentGroup,c.index,o.commands);return pv(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function xy(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function wy(t){return"object"==typeof t&&null!=t&&t.outlets}function pv(t,n,e,i,r){let s,o={};i&&Da(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:q9(t,n,e);const a=KM(pC(s));return new Rf(a,o,r)}function q9(t,n,e){const i={};return Da(t.children,(r,o)=>{i[o]=r===n?e:q9(r,n,e)}),new ar(t.segments,i)}class Y9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&xy(i[0]))throw new Nt(4003,QM&&"Root segment cannot have matrix parameters");const r=i.find(wy);if(r&&r!==j9(i))throw new Nt(4004,QM&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class mv{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function ZM(t,n,e){if(t||(t=new ar([],{})),0===t.segments.length&&t.hasChildren())return gv(t,n,e);const i=function LTe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(wy(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Q9(l,c,s))return o;i+=2}else{if(!Q9(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=ZM(t.children[s],n,o))}),Da(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new ar(t.segments,r)}}function e3(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=e3(new ar([],{}),0,e))}),n}function K9(t){const n={};return Da(t,(e,i)=>n[i]=`${e}`),n}function Q9(t,n,e){return t==e.path&&Rd(n,e.parameters)}const Cy="imperative";class Ld{constructor(n,e){this.id=n,this.url=e}}class mC extends Ld{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Uh extends Ld{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Sy extends Ld{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class gC extends Ld{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class vC extends Ld{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class BTe extends Ld{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class VTe extends Ld{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class HTe extends Ld{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class UTe extends Ld{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zTe extends Ld{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class GTe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class WTe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class qTe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YTe{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XTe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JTe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Z9{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let ZTe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return FTe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),tEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(n){return ZTe.\u0275fac(n)},providedIn:"root"}),t})();class eV{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=t3(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=t3(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=n3(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return n3(n,this._root).map(e=>e.value)}}function t3(t,n){if(t===n.value)return n;for(const e of n.children){const i=t3(t,e);if(i)return i}return null}function n3(t,n){if(t===n.value)return[n];for(const e of n.children){const i=n3(t,e);if(i.length)return i.unshift(n),i}return[]}class zh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function vv(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class tV extends eV{constructor(n,e){super(n),this.snapshot=e,r3(this,n)}toString(){return this.snapshot.toString()}}function nV(t,n){const e=function nEe(t,n){const s=new yC([],{},{},"",{},zi,n,null,t.root,-1,{});return new rV("",new zh(s,[]))}(t,n),i=new Js([new yy("",{})]),r=new Js({}),o=new Js({}),s=new Js({}),a=new Js(""),l=new Pr(i,r,s,a,o,zi,n,e.root);return l.snapshot=e.root,new tV(new zh(l,[]),e)}class Pr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(vn(c=>c[vy]))??Rn(void 0),this._futureSnapshot=l}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(vn(n=>fv(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(vn(n=>fv(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function iV(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function iEe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class yC{get title(){return this.data?.[vy]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,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=fv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rV extends eV{constructor(n,e){super(e),this.url=n,r3(this,e)}toString(){return oV(this._root)}}function r3(t,n){n.value._routerState=t,n.children.forEach(e=>r3(t,e))}function oV(t){const n=t.children.length>0?` { ${t.children.map(oV).join(", ")} } `:"";return`${t.value}${n}`}function o3(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Rd(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Rd(n.params,e.params)||t.params.next(e.params),function vTe(t,n){if(t.length!==n.length)return!1;for(let e=0;eRd(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||s3(t.parent,n.parent))}function ky(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function oEe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return ky(t,i,r);return ky(t,i)})}(t,n,e);return new zh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ky(t,a)),s}}const i=function sEe(t){return new Pr(new Js(t.url),new Js(t.params),new Js(t.queryParams),new Js(t.fragment),new Js(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>ky(t,o));return new zh(i,r)}}const a3="ngNavigationCancelingError";function sV(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=sm(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=aV(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function aV(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[a3]=!0,i.cancellationCode=n,e&&(i.url=e),i}function lV(t){return cV(t)&&sm(t.url)}function cV(t){return t&&t[a3]}class aEe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Dy,this.attachRef=null}}let Dy=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new aEe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const _C=!1;let am=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=zi,this.activateEvents=new it,this.deactivateEvents=new it,this.attachEvents=new it,this.detachEvents=new it,this.parentContexts=Fi(Dy),this.location=Fi(jl),this.changeDetector=Fi(Ns),this.environmentInjector=Fi(Lc)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}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 Nt(4012,_C);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Nt(4012,_C);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Nt(4012,_C);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.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,i){if(this.isActivated)throw new Nt(4013,_C);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new lEe(e,a,r.injector);if(i&&function cEe(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ei]}),t})();class lEe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Pr?this.route:n===Dy?this.childContexts:this.parent.get(n,e)}}let l3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ng-component"]],standalone:!0,features:[Is],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[am],encapsulation:2}),t})();function uV(t,n){return t.providers&&!t._injector&&(t._injector=fw(t.providers,n,`Route: ${t.path}`)),t._injector??n}function u3(t){const n=t.children&&t.children.map(u3),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==zi&&(e.component=l3),e}function zc(t){return t.outlet||zi}function dV(t,n){const e=t.filter(i=>zc(i)===n);return e.push(...t.filter(i=>zc(i)!==n)),e}function Ty(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class pEe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),o3(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=vv(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Da(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=vv(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=vv(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=vv(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new JTe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new YTe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(o3(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),o3(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Ty(r.snapshot),l=a?.get(Hg)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class hV{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class bC{constructor(n,e){this.component=n,this.route=e}}function mEe(t,n,e){const i=t._root;return Ey(i,n?n._root:null,e,[i.value])}function yv(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function vve(t){return null!==mx(t)}(t)?n.get(t):t:i}function Ey(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=vv(n);return t.children.forEach(s=>{(function vEe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function yEe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!om(t.url,n.url);case"pathParamsOrQueryParamsChange":return!om(t.url,n.url)||!Rd(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!s3(t,n)||!Rd(t.queryParams,n.queryParams);default:return!s3(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new hV(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ey(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new bC(a.outlet.component,s))}else s&&Ay(n,a,r),r.canActivateChecks.push(new hV(i)),Ey(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Da(o,(s,a)=>Ay(s,e.getContext(a),r)),r}function Ay(t,n,e){const i=vv(t),r=t.value;Da(i,(o,s)=>{Ay(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new bC(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function My(t){return"function"==typeof t}function d3(t){return t instanceof nC||"EmptyError"===t?.name}const xC=Symbol("INITIAL_VALUE");function _v(){return uc(t=>iC(t.map(n=>n.pipe(Ks(1),sC(xC)))).pipe(vn(n=>{for(const e of n)if(!0!==e){if(e===xC)return xC;if(!1===e||e instanceof Rf)return e}return!0}),cs(n=>n!==xC),Ks(1)))}function fV(t){return function Gt(...t){return gn(t)}(xs(n=>{if(sm(n))throw sV(0,n)}),vn(n=>!0===n))}const h3={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function pV(t,n,e,i,r){const o=f3(t,n,e);return o.matched?function PEe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?Rn(r.map(s=>{const a=yv(s,t);return jf(function SEe(t){return t&&My(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(_v(),fV()):Rn(!0)}(i=uV(n,i),n,e).pipe(vn(s=>!0===s?o:{...h3})):Rn(o)}function f3(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...h3}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||gTe)(e,t,n);if(!r)return{...h3};const o={};Da(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function wC(t,n,e,i){if(e.length>0&&function LEe(t,n,e){return e.some(i=>CC(t,n,i)&&zc(i)!==zi)}(t,e,i)){const o=new ar(n,function REe(t,n,e,i){const r={};r[zi]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&zc(o)!==zi){const s=new ar([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[zc(o)]=s}return r}(t,n,i,new ar(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function $Ee(t,n,e){return e.some(i=>CC(t,n,i))}(t,e,i)){const o=new ar(t.segments,function jEe(t,n,e,i,r){const o={};for(const s of i)if(CC(t,e,s)&&!r[zc(s)]){const a=new ar([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[zc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new ar(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function CC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function mV(t,n,e,i){return!!(zc(t)===i||i!==zi&&CC(n,e,t))&&("**"===t.path||f3(n,t,e).matched)}function gV(t,n,e){return 0===n.length&&!t.children[e]}const SC=!1;class kC{constructor(n){this.segmentGroup=n||null}}class vV{constructor(n){this.urlTree=n}}function Oy(t){return rm(new kC(t))}function yV(t){return rm(new vV(t))}function BEe(t){return rm(new Nt(4e3,SC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class UEe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=wC(this.urlTree.root,[],[],this.config).segmentGroup,e=new ar(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,zi).pipe(vn(o=>this.createUrlTree(pC(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ll(o=>{if(o instanceof vV)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof kC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,zi).pipe(vn(r=>this.createUrlTree(pC(r),n.queryParams,n.fragment))).pipe(Ll(r=>{throw r instanceof kC?this.noMatchError(r):r}))}noMatchError(n){return new Nt(4002,SC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=KM(n);return new Rf(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(vn(o=>new ar([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return ro(r).pipe(Pf(o=>{const s=i.children[o],a=dV(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(vn(l=>({segment:l,outlet:o})))}),I9((o,s)=>(o[s.outlet]=s.segment,o),{}),N9())}expandSegment(n,e,i,r,o,s){return ro(i).pipe(Pf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Ll(c=>{if(c instanceof kC)return Rn(null);throw c}))),Ff(a=>!!a),Ll((a,l)=>{if(d3(a))return gV(e,r,o)?Rn(new ar([],{})):Oy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return mV(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):Oy(e):Oy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?yV(o):this.lineralizeSegments(i,o).pipe(et(s=>{const a=new ar(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=f3(e,r,o);if(!a)return Oy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?yV(d):this.lineralizeSegments(r,d).pipe(et(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=uV(i,n),i.loadChildren?(i._loadedRoutes?Rn({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(vn(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new ar(r,{})))):Rn(new ar(r,{}))):pV(e,i,r,n).pipe(uc(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(et(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=wC(e,a,l,h),m=new ar(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(vn(_=>new ar(a,_)));if(0===h.length&&0===p.length)return Rn(new ar(a,{}));const g=zc(i)===o;return this.expandSegment(d,m,h,p,g?zi:o,!0).pipe(vn(y=>new ar(a.concat(y.segments),y.children)))})):Oy(e)))}getChildConfig(n,e,i){return e.children?Rn({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Rn({routes:e._loadedRoutes,injector:e._loadedInjector}):function FEe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?Rn(!0):Rn(r.map(s=>{const a=yv(s,t);return jf(function bEe(t){return t&&My(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(_v(),fV())}(n,e,i).pipe(et(r=>r?this.configLoader.loadChildren(n,e).pipe(xs(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function VEe(t){return rm(aV(SC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):Rn({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Rn(i);if(r.numberOfChildren>1||!r.children[zi])return BEe(n.redirectTo);r=r.children[zi]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Rf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Da(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Da(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new ar(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Nt(4001,SC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class GEe{}class YEe{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=wC(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,zi).pipe(vn(e=>{if(null===e)return null;const i=new yC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zi,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new zh(i,e),o=new rV(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=iV(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return ro(Object.keys(i.children)).pipe(Pf(r=>{const o=i.children[r],s=dV(e,r);return this.processSegmentGroup(n,s,o,r)}),I9((r,o)=>r&&o?(r.push(...o),r):null),function aTe(t,n=!1){return e=>e.lift(new lTe(t,n))}(r=>null!==r),aC(null),N9(),vn(r=>{if(null===r)return null;const o=bV(r);return function XEe(t){t.sort((n,e)=>n.value.outlet===zi?-1:e.value.outlet===zi?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return ro(e).pipe(Pf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),Ff(s=>!!s),Ll(s=>{if(d3(s))return gV(i,r,o)?Rn([]):Rn(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!mV(e,i,r,o))return Rn(null);let s;if("**"===e.path){const a=r.length>0?j9(r).parameters:{},l=wV(i)+r.length;s=Rn({snapshot:new yC(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,CV(e),zc(e),e.component??e._loadedComponent??null,e,xV(i),l,SV(e)),consumedSegments:[],remainingSegments:[]})}else s=pV(i,e,r,n).pipe(vn(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=wV(i)+l.length;return{snapshot:new yC(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,CV(e),zc(e),e.component??e._loadedComponent??null,e,xV(i),d,SV(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(uc(a=>{if(null===a)return Rn(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function JEe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=wC(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(vn(g=>null===g?null:[new zh(l,g)]));if(0===h.length&&0===p.length)return Rn([new zh(l,[])]);const m=zc(e)===o;return this.processSegment(d,h,f,p,m?zi:o).pipe(vn(g=>null===g?null:[new zh(l,g)]))}))}}function KEe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function bV(t){const n=[],e=new Set;for(const i of t){if(!KEe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=bV(i.children);n.push(new zh(i.value,r))}return n.filter(i=>!e.has(i))}function xV(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function wV(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function CV(t){return t.data||{}}function SV(t){return t.resolve||{}}function kV(t){return"string"==typeof t.title||null===t.title}function p3(t){return uc(n=>{const e=t(n);return e?ro(e).pipe(vn(()=>n)):Rn(n)})}const bv=new Vn("ROUTES");let m3=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Fi(dB)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Rn(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=jf(e.loadComponent()).pipe(vn(TV),xs(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),YM(()=>{this.componentLoaders.delete(e)})),r=new fe(i,()=>new _r).pipe(Ut());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Rn({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(vn(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=P9(l.get(bv,[],Ci.Self|Ci.Optional)));return{routes:c.map(u3),injector:l}}),YM(()=>{this.childrenLoaders.delete(i)})),s=new fe(o,()=>new _r).pipe(Ut());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return jf(e()).pipe(vn(TV),et(i=>i instanceof S$||Array.isArray(i)?Rn(i):ro(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function TV(t){return function oAe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let TC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new _r,this.configLoader=Fi(m3),this.environmentInjector=Fi(Lc),this.urlSerializer=Fi(_y),this.rootContexts=Fi(Dy),this.navigationId=0,this.afterPreactivation=()=>Rn(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new WTe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new GTe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new Js({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:Cy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(cs(i=>0!==i.id),vn(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),uc(i=>{let r=!1,o=!1;return Rn(i).pipe(xs(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),uc(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new gC(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return EV(s.source)&&(e.browserUrlTree=s.extractedUrl),Rn(s).pipe(uc(u=>{const d=this.transitions?.getValue();return this.events.next(new mC(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Vh:Promise.resolve(u)}),function zEe(t,n,e,i){return uc(r=>function HEe(t,n,e,i,r){return new UEe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(vn(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),xs(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function ZEe(t,n,e,i,r){return et(o=>function qEe(t,n,e,i,r,o,s="emptyOnly"){return new YEe(t,n,e,i,r,s,o).recognize().pipe(uc(a=>null===a?function WEe(t){return new en(n=>n.error(t))}(new GEe):Rn(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(vn(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),xs(u=>{if(i.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 BTe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new mC(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=nV(d,this.rootComponentType).snapshot;return Rn(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new gC(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}}),xs(s=>{const a=new VTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),vn(s=>i={...s,guards:mEe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function DEe(t,n){return et(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Rn({...e,guardsResult:!0}):function TEe(t,n,e,i){return ro(t).pipe(et(r=>function NEe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Rn(o.map(a=>{const l=Ty(n)??r,c=yv(a,l);return jf(function CEe(t){return t&&My(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(Ff())})).pipe(_v()):Rn(!0)}(r.component,r.route,e,n,i)),Ff(r=>!0!==r,!0))}(s,i,r,t).pipe(et(a=>a&&function _Ee(t){return"boolean"==typeof t}(a)?function EEe(t,n,e,i){return ro(n).pipe(Pf(r=>rC(function MEe(t,n){return null!==t&&n&&n(new qTe(t)),Rn(!0)}(r.route.parent,i),function AEe(t,n){return null!==t&&n&&n(new XTe(t)),Rn(!0)}(r.route,i),function IEe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function gEe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>A9(()=>Rn(s.guards.map(l=>{const c=Ty(s.node)??e,u=yv(l,c);return jf(function wEe(t){return t&&My(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(Ff())})).pipe(_v())));return Rn(o).pipe(_v())}(t,r.path,e),function OEe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Rn(!0);const r=i.map(o=>A9(()=>{const s=Ty(n)??e,a=yv(o,s);return jf(function xEe(t){return t&&My(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(Ff())}));return Rn(r).pipe(_v())}(t,r.route,e))),Ff(r=>!0!==r,!0))}(i,o,t,n):Rn(a)),vn(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),xs(s=>{if(i.guardsResult=s.guardsResult,sm(s.guardsResult))throw sV(0,s.guardsResult);const a=new HTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),cs(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),p3(s=>{if(s.guards.canActivateChecks.length)return Rn(s).pipe(xs(a=>{const l=new UTe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),uc(a=>{let l=!1;return Rn(a).pipe(function eAe(t,n){return et(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Rn(e);let o=0;return ro(r).pipe(Pf(s=>function tAe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!kV(r)&&(o[vy]=r.title),function nAe(t,n,e,i){const r=function iAe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return Rn({});const o={};return ro(r).pipe(et(s=>function rAe(t,n,e,i){const r=Ty(n)??i,o=yv(t,r);return jf(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(Ff(),xs(a=>{o[s]=a}))),qM(1),function uTe(t){return n=>n.lift(new dTe(t))}(o),Ll(s=>d3(s)?Vh:rm(s)))}(o,t,n,i).pipe(vn(s=>(t._resolvedData=s,t.data=iV(t,e).resolve,r&&kV(r)&&(t.data[vy]=r.title),null)))}(s.route,i,t,n)),xs(()=>o++),qM(1),et(s=>o===r.length?Rn(e):Vh))})}(e.paramsInheritanceStrategy,this.environmentInjector),xs({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),xs(a=>{const l=new zTe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),p3(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(xs(u=>{l.component=u}),vn(()=>{})));for(const u of l.children)c.push(...a(u));return c};return iC(a(s.targetSnapshot.root)).pipe(aC(),Ks(1))}),p3(()=>this.afterPreactivation()),vn(s=>{const a=function rEe(t,n,e){const i=ky(t,n._root,e?e._root:void 0);return new tV(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),xs(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>vn(i=>(new pEe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),Ks(1),xs({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Uh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),YM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Ll(s=>{if(o=!0,cV(s)){lV(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new Sy(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),lV(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||EV(i.source)};e.scheduleNavigation(l,Cy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new vC(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Vh}))}))}cancelNavigationTransition(e,i,r){const o=new Sy(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function EV(t){return t!==Cy}let AV=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===zi);return i}getResolvedTitleForRoute(e){return e.data[vy]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return Fi(sAe)},providedIn:"root"}),t})(),sAe=(()=>{class t extends AV{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(vt(R7))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),aAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return Fi(cAe)},providedIn:"root"}),t})();class lAe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let cAe=(()=>{class t extends lAe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const EC=new Vn("",{providedIn:"root",factory:()=>({})});let dAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return Fi(hAe)},providedIn:"root"}),t})(),hAe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function fAe(t){throw t}function pAe(t,n,e){return n.parse("/")}const mAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let lr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Fi(Iwe),this.isNgZoneEnabled=!1,this.options=Fi(EC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||fAe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||pAe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Fi(dAe),this.routeReuseStrategy=Fi(aAe),this.urlCreationStrategy=Fi(tEe),this.titleStrategy=Fi(AV),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=P9(Fi(bv,{optional:!0})??[]),this.navigationTransitions=Fi(TC),this.urlSerializer=Fi(_y),this.location=Fi(qA),this.isNgZoneEnabled=Fi(ir)instanceof ir&&ir.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rf,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=nV(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},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),Cy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(u3),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,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=sm(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Cy,null,i)}navigate(e,i={skipLocationChange:!1}){return function vAe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&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,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mu=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new _r;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Uh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=dv(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=dv(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=dv(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,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"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 Z5(t,n,e){return function W1e(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?Q5:L1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,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 t.\u0275fac=function(e){return new(e||t)(he(lr),he(Pr),wf("tabindex"),he(aa),he(Si),he(em))},t.\u0275dir=sn({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&be("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ut("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[ei]}),t})(),Iy=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new it,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Uh&&this.update()})}ngAfterContentInit(){Rn(this.links.changes,Rn(null)).pipe(M()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=ro(e).pipe(M()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=function yAe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(he(lr),he(Si),he(aa),he(Ns),he(Mu,8))},t.\u0275dir=sn({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&yi(r,Mu,5),2&e){let o;wn(o=Cn())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ei]}),t})();class MV{}let _Ae=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(cs(e=>e instanceof Uh),Pf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=fw(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ro(r).pipe(M())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Rn(null);const o=r.pipe(et(s=>null===s?Rn(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?ro([o,this.loader.loadComponent(i)]).pipe(M()):o})}}return t.\u0275fac=function(e){return new(e||t)(vt(lr),vt(dB),vt(Lc),vt(MV),vt(m3))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const v3=new Vn("");let OV=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.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 mC?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Uh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Z9&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Z9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function M8(){throw new Error("invalid")}()},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();var dc=(()=>((dc=dc||{})[dc.COMPLETE=0]="COMPLETE",dc[dc.FAILED=1]="FAILED",dc[dc.REDIRECTING=2]="REDIRECTING",dc))();const xv=!1;function Lf(t,n){return{\u0275kind:t,\u0275providers:n}}const y3=new Vn("",{providedIn:"root",factory:()=>!1});function NV(){const t=Fi(la);return n=>{const e=t.get(Ph);if(n!==e.components[0])return;const i=t.get(lr),r=t.get(FV);1===t.get(_3)&&i.initialNavigation(),t.get(PV,null,Ci.Optional)?.setUpPreloading(),t.get(v3,null,Ci.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const FV=new Vn(xv?"bootstrap done indicator":"",{factory:()=>new _r}),_3=new Vn(xv?"initial navigation":"",{providedIn:"root",factory:()=>1});function SAe(){let t=[];return t=xv?[{provide:Yx,multi:!0,useFactory:()=>{const n=Fi(lr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function KTe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Lf(1,t)}const PV=new Vn(xv?"router preloader":"");function kAe(t){return Lf(0,[{provide:PV,useExisting:_Ae},{provide:MV,useExisting:t}])}const Ny=!1,jV=new Vn(Ny?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),DAe=[qA,{provide:_y,useClass:XM},lr,Dy,{provide:Pr,useFactory:function IV(t){return t.routerState.root},deps:[lr]},m3,Ny?{provide:y3,useValue:!0}:[]];function TAe(){return new _B("Router",lr)}let RV=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[DAe,Ny&&i?.enableTracing?SAe().\u0275providers:[],{provide:bv,multi:!0,useValue:e},{provide:jV,useFactory:OAe,deps:[[lr,new M1,new O1]]},{provide:EC,useValue:i||{}},i?.useHash?{provide:em,useClass:_Ce}:{provide:em,useClass:HB},{provide:v3,useFactory:()=>{const t=Fi(O2e),n=Fi(ir),e=Fi(EC),i=Fi(TC),r=Fi(_y);return e.scrollOffset&&t.setOffset(e.scrollOffset),new OV(r,i,t,n,e)}},i?.preloadingStrategy?kAe(i.preloadingStrategy).\u0275providers:[],{provide:_B,multi:!0,useFactory:TAe},i?.initialNavigation?IAe(i):[],[{provide:LV,useFactory:NV},{provide:yB,multi:!0,useExisting:LV}]]}}static forChild(e){return{ngModule:t,providers:[{provide:bv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(vt(jV,8))},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[l3]}),t})();function OAe(t){if(Ny&&t)throw new Nt(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 IAe(t){return["disabled"===t.initialNavigation?Lf(3,[{provide:vw,multi:!0,useFactory:()=>{const n=Fi(lr);return()=>{n.setUpLocationChangeListener()}}},{provide:_3,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Lf(2,[{provide:_3,useValue:0},{provide:vw,multi:!0,deps:[la],useFactory:n=>{const e=n.get(vCe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(lr),o=n.get(FV);(function bAe(t,n){t.events.pipe(cs(e=>e instanceof Uh||e instanceof Sy||e instanceof vC||e instanceof gC),vn(e=>e instanceof Uh||e instanceof gC?dc.COMPLETE:e instanceof Sy&&(0===e.code||1===e.code)?dc.REDIRECTING:dc.FAILED),cs(e=>e!==dc.REDIRECTING),Ks(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(TC).afterPreactivation=()=>(i(!0),o.closed?Rn(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const LV=new Vn(Ny?"Router Initializer":"");function AC(t,n){return new en(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let $V=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(he(aa),he(Si))},t.\u0275dir=sn({type:t}),t})(),lm=(()=>{class t extends $V{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,features:[pi]}),t})();const $l=new Vn("NgValueAccessor"),PAe={provide:$l,useExisting:Mi(()=>MC),multi:!0};let MC=(()=>{class t extends lm{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&be("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Qr([PAe]),pi]}),t})();const jAe={provide:$l,useExisting:Mi(()=>Ta),multi:!0},LAe=new Vn("CompositionEventMode");let Ta=(()=>{class t extends $V{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function RAe(){const t=jh()?jh().getUserAgent():"";return/android (\d+)/.test(t.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 t.\u0275fac=function(e){return new(e||t)(he(aa),he(Si),he(LAe,8))},t.\u0275dir=sn({type:t,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,i){1&e&&be("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Qr([jAe]),pi]}),t})();const $Ae=!1;function $f(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function BV(t){return null!=t&&"number"==typeof t.length}const Ea=new Vn("NgValidators"),Bf=new Vn("NgAsyncValidators"),BAe=/^(?=.{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 wo{static min(n){return VV(n)}static max(n){return function HV(t){return n=>{if($f(n.value)||$f(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return UV(n)}static requiredTrue(n){return function zV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function GV(t){return $f(t.value)||BAe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function WV(t){return n=>$f(n.value)||!BV(n.value)?null:n.value.lengthBV(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function YV(t){if(!t)return OC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if($f(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return eH(n)}static composeAsync(n){return tH(n)}}function VV(t){return n=>{if($f(n.value)||$f(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function QV(t,n){return n.map(e=>e(t))}function ZV(t){return t.map(n=>function VAe(t){return!t.validate}(n)?n:e=>n.validate(e))}function eH(t){if(!t)return null;const n=t.filter(XV);return 0==n.length?null:function(e){return KV(QV(e,n))}}function b3(t){return null!=t?eH(ZV(t)):null}function tH(t){if(!t)return null;const n=t.filter(XV);return 0==n.length?null:function(e){return function FAe(...t){if(1===t.length){const n=t[0];if(Ze(n))return AC(n,null);if(Ve(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return AC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return AC(t=1===t.length&&Ze(t[0])?t[0]:t,null).pipe(vn(e=>n(...e)))}return AC(t,null)}(QV(e,n).map(JV)).pipe(vn(KV))}}function x3(t){return null!=t?tH(ZV(t)):null}function nH(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function iH(t){return t._rawValidators}function rH(t){return t._rawAsyncValidators}function w3(t){return t?Array.isArray(t)?t:[t]:[]}function IC(t,n){return Array.isArray(t)?t.includes(n):t===n}function oH(t,n){const e=w3(n);return w3(t).forEach(r=>{IC(e,r)||e.push(r)}),e}function sH(t,n){return w3(n).filter(e=>!IC(t,e))}class aH{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(n){this._rawValidators=n||[],this._composedValidatorFn=b3(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=x3(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class gl extends aH{get formDirective(){return null}get path(){return null}}class Vf extends aH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class lH{constructor(n){this._cd=n}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 Qa=(()=>{class t extends lH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(he(Vf,2))},t.\u0275dir=sn({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&jn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[pi]}),t})(),Za=(()=>{class t extends lH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(he(gl,10))},t.\u0275dir=sn({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&jn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[pi]}),t})();function cH(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const k3=!1,Fy="VALID",FC="INVALID",wv="PENDING",Py="DISABLED";function D3(t){return(PC(t)?t.validators:t)||null}function T3(t,n){return(PC(n)?n.asyncValidators:t)||null}function PC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function uH(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Nt(1e3,k3?function GAe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new Nt(1001,k3?function WAe(t,n){return`Cannot find form control ${cH(t,n)}`}(n,e):"")}function dH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new Nt(1002,k3?function qAe(t,n){return`Must supply a value for form control ${cH(t,n)}`}(n,r):"")})}class jC{constructor(n,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(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Fy}get invalid(){return this.status===FC}get pending(){return this.status==wv}get disabled(){return this.status===Py}get enabled(){return this.status!==Py}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(oH(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(oH(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(sH(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(sH(n,this._rawAsyncValidators))}hasValidator(n){return IC(this._rawValidators,n)}hasAsyncValidator(n){return IC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=wv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Py,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Fy,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fy||this.status===wv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Py:Fy}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=wv,this._hasOwnPendingAsyncValidator=!0;const e=JV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new it,this.statusChanges=new it}_calculateStatus(){return this._allControlsDisabled()?Py:this.errors?FC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wv)?wv:this._anyControlsHaveStatus(FC)?FC:Fy}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){PC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function YAe(t){return Array.isArray(t)?b3(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function XAe(t){return Array.isArray(t)?x3(t):t||null}(this._rawAsyncValidators)}}class jy extends jC{constructor(n,e,i){super(D3(e),T3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){dH(this,!0,n),Object.keys(n).forEach(i=>{uH(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class hH extends jy{}const cm=new Vn("CallSetDisabledState",{providedIn:"root",factory:()=>Ry}),Ry="always";function Ly(t,n,e=Ry){E3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function KAe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&fH(t,n)})}(t,n),function ZAe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function QAe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&fH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function JAe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function LC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),BC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $C(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function E3(t,n){const e=iH(t);null!==n.validator?t.setValidators(nH(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=rH(t);null!==n.asyncValidator?t.setAsyncValidators(nH(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();$C(n._rawValidators,r),$C(n._rawAsyncValidators,r)}function BC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=iH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=rH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return $C(n._rawValidators,i),$C(n._rawAsyncValidators,i),e}function fH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function gH(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function vH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const By=class extends jC{constructor(n=null,e,i){super(D3(e),T3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),PC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=vH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){gH(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){gH(this._onDisabledChange,n)}_forEachChild(n){}_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(n){vH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let el=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const lMe={provide:$l,useExisting:Mi(()=>N3),multi:!0};let N3=(()=>{class t extends lm{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&be("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Qr([lMe]),pi]}),t})();const cMe={provide:$l,useExisting:Mi(()=>F3),multi:!0};let wH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})(),uMe=(()=>{class t{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:wH}),t})(),F3=(()=>{class t extends lm{constructor(e,i,r,o){super(e,i),this._registry=r,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Fi(cm,{optional:!0})??Ry}ngOnInit(){this._control=this._injector.get(Vf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(he(aa),he(Si),he(uMe),he(la))},t.\u0275dir=sn({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,i){1&e&&be("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Qr([cMe]),pi]}),t})();const P3=new Vn("NgModelWithFormControlWarning"),fMe={provide:gl,useExisting:Mi(()=>ca)};let ca=(()=>{class t extends gl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new it,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(BC(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 i=this.form.get(e.path);return Ly(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){LC(e.control||null,e,!1),function iMe(t,n){const e=t.indexOf(n);e>-1&&t.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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function mH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(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 i=e.control,r=this.form.get(e.path);i!==r&&(LC(i||null,e),(t=>t instanceof By)(r)&&(Ly(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function pH(t,n){E3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function eMe(t,n){return BC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){E3(this.form,this),this._oldForm&&BC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(he(Ea,10),he(Bf,10),he(cm,8))},t.\u0275dir=sn({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&be("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Qr([fMe]),pi,ei]}),t})();const gMe={provide:Vf,useExisting:Mi(()=>Aa)};let Aa=(()=>{class t extends Vf{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new it,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function O3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Ta?e=o:function nMe(t){return Object.getPrototypeOf(t.constructor)===lm}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function M3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(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 function RC(t,n){return[...n.path,t]}(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 t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(he(gl,13),he(Ea,10),he(Bf,10),he($l,10),he(P3,8))},t.\u0275dir=sn({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Qr([gMe]),pi,ei]}),t})();const vMe={provide:$l,useExisting:Mi(()=>Cv),multi:!0};function DH(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Cv=(()=>{class t extends lm{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=DH(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function yMe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&be("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Qr([vMe]),pi]}),t})(),VC=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,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(DH(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 t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa),he(Cv,9))},t.\u0275dir=sn({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const _Me={provide:$l,useExisting:Mi(()=>L3),multi:!0};function TH(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let L3=(()=>{class t extends lm{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(TH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(TH(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 t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa),he(L3,9))},t.\u0275dir=sn({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let um=(()=>{class t{constructor(){this._validator=OC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):OC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,features:[ei]}),t})();const wMe={provide:Ea,useExisting:Mi(()=>$3),multi:!0};let $3=(()=>{class t extends um{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function AH(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>VV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ut("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[Qr([wMe]),pi]}),t})();const CMe={provide:Ea,useExisting:Mi(()=>Hf),multi:!0};let Hf=(()=>{class t extends um{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=dv,this.createValidator=e=>UV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ut("required",i._enabled?"":null)},inputs:{required:"required"},features:[Qr([CMe]),pi]}),t})(),jH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[wH]}),t})();class RH extends jC{constructor(n,e,i){super(D3(e),T3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){dH(this,!1,n),n.forEach((i,r)=>{uH(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function LH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let AMe=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return LH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new jy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new hH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(LH(i)?o=i:(o.validators=i,o.asyncValidators=r),new By(e,{...o,nonNullable:!0})):new By(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new RH(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof By||e instanceof jC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vl=(()=>{class t extends AMe{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),MMe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:cm,useValue:e.callSetDisabledState??Ry}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[jH]}),t})(),OMe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:P3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:cm,useValue:e.callSetDisabledState??Ry}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[jH]}),t})();const $H=new Vn("ngx-segment-analytics.config"),IMe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};let BH=(()=>{class t{analytics;static \u0275fac=function(i){return new(i||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),UC=(()=>{class t{_w;_doc;_config;constructor(e,i,r){if(this._w=e,this._doc=i,this._config={...IMe,...r},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(e){this._w.analytics.setAnonymousId(e)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}addDestinationMiddleware(e,...i){this._w.analytics.addDestinationMiddleware(e,...i)}register(...e){return this._w.analytics.register(...e)}get plugins(){return this._w.analytics.plugins}static \u0275fac=function(i){return new(i||t)(vt(BH),vt(co),vt($H))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function NMe(t){return f7(t)?window:{}}let FMe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:$H,useValue:e},UC]}}constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static \u0275fac=function(i){return new(i||t)(vt(t,12))};static \u0275mod=ki({type:t});static \u0275inj=wi({providers:[{provide:BH,useFactory:NMe,deps:[oy]}],imports:[Mf]})}return t})();class zC{}class B3{}class Ou{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{let r;if(r="string"==typeof i?[i]:"number"==typeof i?[i.toString()]:i.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Ou?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Ou;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ou?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class PMe{encodeKey(n){return VH(n)}encodeValue(n){return VH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const RMe=/%(\d[a-f0-9])/gi,LMe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VH(t){return encodeURIComponent(t).replace(RMe,(n,e)=>LMe[e]??n)}function GC(t){return`${t}`}class An{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new PMe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function jMe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(GC):[GC(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new An({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(GC(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(GC(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class $Me{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function HH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function UH(t){return typeof Blob<"u"&&t instanceof Blob}function zH(t){return typeof FormData<"u"&&t instanceof FormData}class Vy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function BMe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Ou),this.context||(this.context=new $Me),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Vy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var js=(()=>((js=js||{})[js.Sent=0]="Sent",js[js.UploadProgress=1]="UploadProgress",js[js.ResponseHeader=2]="ResponseHeader",js[js.DownloadProgress=3]="DownloadProgress",js[js.Response=4]="Response",js[js.User=5]="User",js))();class V3{constructor(n,e=200,i="OK"){this.headers=n.headers||new Ou,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class H3 extends V3{constructor(n={}){super(n),this.type=js.ResponseHeader}clone(n={}){return new H3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class WC extends V3{constructor(n={}){super(n),this.type=js.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new WC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class GH extends V3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function U3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let qC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Vy)o=e;else{let l,c;l=r.headers instanceof Ou?r.headers:new Ou(r.headers),r.params&&(c=r.params instanceof An?r.params:new An({fromObject:r.params})),o=new Vy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Rn(o).pipe(Pf(l=>this.handler.handle(l)));if(e instanceof Vy||"events"===r.observe)return s;const a=s.pipe(cs(l=>l instanceof WC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(vn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(vn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(vn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(vn(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new An).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,U3(r,i))}post(e,i,r={}){return this.request("POST",e,U3(r,i))}put(e,i,r={}){return this.request("PUT",e,U3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(vt(zC))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function WH(t,n){return n(t)}function HMe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const z3=new Vn("HTTP_INTERCEPTORS"),Hy=new Vn("HTTP_INTERCEPTOR_FNS");function zMe(){let t=null;return(n,e)=>(null===t&&(t=(Fi(z3,{optional:!0})??[]).reduceRight(HMe,WH)),t(n,e))}let qH=(()=>{class t extends zC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Hy)));this.chain=i.reduceRight((r,o)=>function UMe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),WH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(vt(B3),vt(Lc))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const YMe=/^\)\]\}',?\n/;let XH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new en(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new Ou(r.getAllResponseHeaders()),m=function XMe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new H3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const _=v;v=v.replace(YMe,"");try{v=""!==v?JSON.parse(v):null}catch(w){v=_,y&&(y=!1,v={error:w,text:v})}}y?(i.next(new WC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new GH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new GH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:js.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:js.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:js.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(vt(m7))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const G3=new Vn("XSRF_ENABLED"),JH=new Vn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),KH=new Vn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class QH{}let QMe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,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=t7(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(vt(co),vt(oy),vt(JH))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function ZMe(t,n){const e=t.url.toLowerCase();if(!Fi(G3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Fi(QH).getToken(),r=Fi(KH);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var ws=(()=>((ws=ws||{})[ws.Interceptors=0]="Interceptors",ws[ws.LegacyInterceptors=1]="LegacyInterceptors",ws[ws.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ws[ws.NoXsrfProtection=3]="NoXsrfProtection",ws[ws.JsonpSupport=4]="JsonpSupport",ws[ws.RequestsMadeViaParent=5]="RequestsMadeViaParent",ws))();function Sv(t,n){return{\u0275kind:t,\u0275providers:n}}function e3e(...t){const n=[qC,XH,qH,{provide:zC,useExisting:qH},{provide:B3,useExisting:XH},{provide:Hy,useValue:ZMe,multi:!0},{provide:G3,useValue:!0},{provide:QH,useClass:QMe}];for(const e of t)n.push(...e.\u0275providers);return function q1e(t){return{\u0275providers:t}}(n)}const ZH=new Vn("LEGACY_INTERCEPTOR_FN");let n3e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[e3e(Sv(ws.LegacyInterceptors,[{provide:ZH,useFactory:zMe},{provide:Hy,useExisting:ZH,multi:!0}]))]}),t})();var ii=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(ii||(ii={})),ii))(),Uy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY"}(Uy||(Uy={})),Uy))();class W3{host;timeoutMs}let bi=(()=>{class t{httpClient;config;constructor(e,i){this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new An({encoder:new qn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new An({encoder:new qn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new An({encoder:new qn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new An({encoder:new qn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new An({encoder:new qn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new An({encoder:new qn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new An({encoder:new qn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new An({encoder:new qn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new An({encoder:new qn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new An({encoder:new qn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new An({encoder:new qn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new An({encoder:new qn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new An({encoder:new qn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new An({encoder:new qn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new An({encoder:new qn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new An({encoder:new qn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new An({encoder:new qn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new An({encoder:new qn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new An({encoder:new qn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new An({encoder:new qn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new An({encoder:new qn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new An({encoder:new qn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new An({encoder:new qn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new An({encoder:new qn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new Ou).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new Ou).set("Authorization","Basic "+btoa(e+":"+i))}static \u0275fac=function(i){return new(i||t)(vt(qC),vt(W3,8))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class qn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const eU=new Vn("window"),o3e=[{provide:eU,useFactory:()=>window}],q3="currentSession";let zo=(()=>{class t{window;segment;http;consoleService;currentSessionSubject;currentSession;constructor(e,i,r,o){this.window=e,this.segment=i,this.http=r,this.consoleService=o;const s=JSON.parse(localStorage.getItem(q3));this.currentSessionSubject=new Js(s),this.currentSession=this.currentSessionSubject.asObservable()}get currentSessionValue(){return this.currentSessionSubject.getValue()}get username(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1])).usn}get sessionRole(){const e=this.currentSessionSubject.getValue().token;switch(JSON.parse(atob(e.split(".")[1])).rol){case 1:return ii.USER_ROLE_ADMIN;case 2:return ii.USER_ROLE_DEVELOPER;case 3:return ii.USER_ROLE_MAINTAINER;case 4:return ii.USER_ROLE_READONLY;default:return ii.USER_ROLE_UNKNOWN}}login(e,i){return this.consoleService.authenticate({username:e,password:i}).pipe(xs(r=>{localStorage.setItem(q3,JSON.stringify(r)),this.currentSessionSubject.next(r)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(xs(()=>{localStorage.removeItem(q3),this.currentSessionSubject.next(null)})):Vh}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}static \u0275fac=function(i){return new(i||t)(vt(eU),vt(UC),vt(qC),vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function s3e(t,n){if(1&t&&(b(0,"div",17),N(1),x()),2&t){const e=B();C(1),yn(" ",e.error," ")}}const a3e=function(t){return{"was-validated":t}},tU=function(t){return{"is-invalid":t}};let l3e=(()=>{class t{segment;formBuilder;route;router;authenticationService;error="";loginForm;submitted;returnUrl;constructor(e,i,r,o,s){this.segment=e,this.formBuilder=i,this.route=r,this.router=o,this.authenticationService=s}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",wo.compose([wo.required])],password:["",wo.compose([wo.required,wo.minLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authenticationService.login(this.f.username.value,this.f.password.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,this.router.navigate([this.returnUrl])},e=>{this.error=e,this.submitted=!1})}get f(){return this.loginForm.controls}static \u0275fac=function(i){return new(i||t)(he(UC),he(vl),he(Pr),he(lr),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:26,vars:14,consts:[[1,"bg-grad","d-flex","h-100"],[1,"align-self-center","mx-auto"],[1,"text-center","mb-4"],["src","/static/svg/logo.svg","alt","Nakama Logo","width","175"],["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"text-center"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group","form-row"],[1,"col-sm-12"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(i,r){1&i&&(b(0,"div",0)(1,"div",1)(2,"h1",2),ge(3,"img",3),x(),Z(4,s3e,2,1,"div",4),b(5,"div",5)(6,"div",6)(7,"h3",7),N(8,"Login"),x(),b(9,"form",8),be("ngSubmit",function(){return r.onSubmit()}),b(10,"div",9)(11,"div",10)(12,"label",11),N(13,"Username"),x(),ge(14,"input",12),b(15,"div",13),N(16,"Please enter a username."),x()()(),b(17,"div",9)(18,"div",10)(19,"label",14),N(20,"Password"),x(),ge(21,"input",15),b(22,"div",13),N(23,"Password must be at least 8 characters."),x()()(),b(24,"button",16),N(25,"Login"),x()()()()()()),2&i&&(C(4),S("ngIf",r.error),C(5),S("formGroup",r.loginForm)("ngClass",nr(8,a3e,r.submitted)),C(5),S("ngClass",nr(10,tU,r.f.username.dirty&&r.f.username.errors)),C(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),C(6),S("ngClass",nr(12,tU,r.f.password.dirty&&r.f.password.errors)),C(1),S("hidden",r.f.password.disabled||r.f.password.valid||r.f.password.pristine),C(2),S("disabled",!r.loginForm.valid||r.submitted))},dependencies:[Af,_n,el,Ta,Qa,Za,Hf,ca,Aa],styles:["div[_ngcontent-%COMP%] .mx-auto[_ngcontent-%COMP%]{width:420px}"]})}return t})(),c3e=(()=>{class t{authService;router;constructor(e,i){this.authService=e,this.router=i}canActivate(e,i){return!this.authService.currentSessionValue||(this.router.navigate(["/"]),!1)}static \u0275fac=function(i){return new(i||t)(vt(zo),vt(lr))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),u3e=(()=>{class t{router;authenticationService;constructor(e,i){this.router=e,this.authenticationService=i}canActivate(e,i){return!!this.authenticationService.currentSessionValue||(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}static \u0275fac=function(i){return new(i||t)(vt(lr),vt(zo))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class d3e extends ce{constructor(n,e){super()}schedule(n,e=0){return this}}class Y3 extends d3e{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let nU=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Bd extends nU{constructor(n,e=nU.now){super(n,()=>Bd.delegate&&Bd.delegate!==this?Bd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Bd.delegate&&Bd.delegate!==this?Bd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const YC=new Bd(Y3);class f3e{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new m3e(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class p3e{constructor(){this.buffer=[]}}class m3e extends F{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(iU,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(rU,e,{subscriber:this,context:s})),this.add(o.schedule(g3e,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(iU,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new p3e;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function iU(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function g3e(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(rU,e,{subscriber:i,context:o})),this.schedule(t,n))}function rU(t){const{subscriber:n,context:e}=t;n.closeContext(e)}function XC(t,n){return e=>e.lift(new v3e(t,n))}class v3e{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new y3e(n,this.compare,this.keySelector))}}class y3e extends F{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Ma(t,n,e,i){return nt(e)&&(i=e,e=void 0),i?Ma(t,n,e).pipe(vn(r=>Ze(r)?i(...r):i(r))):new en(r=>{oU(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function oU(t,n,e,i,r){let o;if(function x3e(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function b3e(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function _3e(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function zy(t=0,n,e){let i=-1;return sU(n)?i=Number(n)<1?1:Number(n):_a(n)&&(e=n),_a(e)||(e=YC),new en(r=>{const o=sU(t)?t:+t-e.now();return e.schedule(w3e,o,{index:0,period:i,subscriber:r})})}function w3e(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function aU(...t){if(1===t.length){if(!Ze(t[0]))return t[0];t=t[0]}return ot(t,void 0).lift(new C3e)}class C3e{call(n,e){return e.subscribe(new S3e(n))}}class S3e extends GM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class A3e extends Y{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[No](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Ne(this.observable,new Ml(this))}}function us(t){return n=>n.lift(new O3e(t))}class O3e{constructor(n){this.notifier=n}call(n,e){const i=new I3e(n),r=Ne(this.notifier,new Ml(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class I3e extends Y{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function X3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new N3e(t,e))}}class N3e{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new F3e(n,this.observables,this.project))}}class F3e extends GM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Iu{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return Rn(this.value);case"E":return rm(this.error);case"C":return oC()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Iu("N",n):Iu.undefinedValueNotification}static createError(n){return new Iu("E",void 0,n)}static createComplete(){return Iu.completeNotification}}function J3(t,n=YC){const i=function P3e(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new j3e(i,n))}Iu.completeNotification=new Iu("C"),Iu.undefinedValueNotification=new Iu("N",void 0);class j3e{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new K3(n,this.delay,this.scheduler))}}class K3 extends F{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(K3.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new R3e(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Iu.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Iu.createComplete()),this.unsubscribe()}}class R3e{constructor(n,e){this.time=n,this.notification=e}}class $3e{constructor(n){this.total=n}call(n,e){return e.subscribe(new B3e(n,this.total))}}class B3e extends F{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}var V3e={left:"right",right:"left",bottom:"top",top:"bottom"};function KC(t){return t.replace(/left|right|bottom|top/g,function(n){return V3e[n]})}function Vd(t){return t.split("-")[0]}var H3e={start:"end",end:"start"};function cU(t){return t.replace(/start|end/g,function(n){return H3e[n]})}var hc="top",Nu="bottom",Fu="right",fc="left",Q3="auto",Gy=[hc,Nu,Fu,fc],kv="start",Wy="end",U3e="clippingParents",uU="viewport",qy="popper",z3e="reference",dU=Gy.reduce(function(t,n){return t.concat([n+"-"+kv,n+"-"+Wy])},[]),hU=[].concat(Gy,[Q3]).reduce(function(t,n){return t.concat([n,n+"-"+kv,n+"-"+Wy])},[]),eOe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pc(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function dm(t){return t instanceof pc(t).Element||t instanceof Element}function Gc(t){return t instanceof pc(t).HTMLElement||t instanceof HTMLElement}function Z3(t){return!(typeof ShadowRoot>"u")&&(t instanceof pc(t).ShadowRoot||t instanceof ShadowRoot)}function Uf(t){return((dm(t)?t.ownerDocument:t.document)||window.document).documentElement}var hm=Math.max,QC=Math.min,Dv=Math.round;function eO(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function fU(){return!/^((?!chrome|android).)*safari/i.test(eO())}function Tv(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),r=1,o=1;n&&Gc(t)&&(r=t.offsetWidth>0&&Dv(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Dv(i.height)/t.offsetHeight||1);var a=(dm(t)?pc(t):window).visualViewport,l=!fU()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function tO(t){var n=pc(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function nO(t){return Tv(Uf(t)).left+tO(t).scrollLeft}function Gh(t){return pc(t).getComputedStyle(t)}function Hd(t){return t?(t.nodeName||"").toLowerCase():null}function ZC(t){return"html"===Hd(t)?t:t.assignedSlot||t.parentNode||(Z3(t)?t.host:null)||Uf(t)}function iO(t){var n=Gh(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function pU(t){return["html","body","#document"].indexOf(Hd(t))>=0?t.ownerDocument.body:Gc(t)&&iO(t)?t:pU(ZC(t))}function Yy(t,n){var e;void 0===n&&(n=[]);var i=pU(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=pc(i),s=r?[o].concat(o.visualViewport||[],iO(i)?i:[]):i,a=n.concat(s);return r?a:a.concat(Yy(ZC(s)))}function iOe(t){return["table","td","th"].indexOf(Hd(t))>=0}function mU(t){return Gc(t)&&"fixed"!==Gh(t).position?t.offsetParent:null}function Xy(t){for(var n=pc(t),e=mU(t);e&&iOe(e)&&"static"===Gh(e).position;)e=mU(e);return e&&("html"===Hd(e)||"body"===Hd(e)&&"static"===Gh(e).position)?n:e||function rOe(t){var n=/firefox/i.test(eO());if(/Trident/i.test(eO())&&Gc(t)&&"fixed"===Gh(t).position)return null;var r=ZC(t);for(Z3(r)&&(r=r.host);Gc(r)&&["html","body"].indexOf(Hd(r))<0;){var o=Gh(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||n&&"filter"===o.willChange||n&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||n}function gU(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&Z3(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function rO(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function vU(t,n,e){return n===uU?rO(function tOe(t,n){var e=pc(t),i=Uf(t),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=fU();(c||!c&&"fixed"===n)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+nO(t),y:l}}(t,e)):dm(n)?function oOe(t,n){var e=Tv(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):rO(function nOe(t){var n,e=Uf(t),i=tO(t),r=null==(n=t.ownerDocument)?void 0:n.body,o=hm(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=hm(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+nO(t),l=-i.scrollTop;return"rtl"===Gh(r||e).direction&&(a+=hm(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Uf(t)))}function Ev(t){return t.split("-")[1]}function oO(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function yU(t){var l,n=t.reference,e=t.element,i=t.placement,r=i?Vd(i):null,o=i?Ev(i):null,s=n.x+n.width/2-e.width/2,a=n.y+n.height/2-e.height/2;switch(r){case hc:l={x:s,y:n.y-e.height};break;case Nu:l={x:s,y:n.y+n.height};break;case Fu:l={x:n.x+n.width,y:a};break;case fc:l={x:n.x-e.width,y:a};break;default:l={x:n.x,y:n.y}}var c=r?oO(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case kv:l[c]=l[c]-(n[u]/2-e[u]/2);break;case Wy:l[c]=l[c]+(n[u]/2-e[u]/2)}}return l}function bU(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function xU(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function sO(t,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,l=void 0===a?U3e:a,c=n.rootBoundary,u=void 0===c?uU:c,d=n.elementContext,h=void 0===d?qy:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=bU("number"!=typeof g?g:xU(g,Gy)),_=t.rects.popper,w=t.elements[p?h===qy?z3e:qy:h],k=function aOe(t,n,e,i){var r="clippingParents"===n?function sOe(t){var n=Yy(ZC(t)),i=["absolute","fixed"].indexOf(Gh(t).position)>=0&&Gc(t)?Xy(t):t;return dm(i)?n.filter(function(r){return dm(r)&&gU(r,i)&&"body"!==Hd(r)}):[]}(t):[].concat(n),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=vU(t,c,i);return l.top=hm(u.top,l.top),l.right=QC(u.right,l.right),l.bottom=QC(u.bottom,l.bottom),l.left=hm(u.left,l.left),l},vU(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(dm(w)?w:w.contextElement||Uf(t.elements.popper),l,u,s),D=Tv(t.elements.reference),L=yU({reference:D,element:_,strategy:"absolute",placement:r}),z=rO(Object.assign({},_,L)),R=h===qy?z:D,U={top:k.top-R.top+v.top,bottom:R.bottom-k.bottom+v.bottom,left:k.left-R.left+v.left,right:R.right-k.right+v.right},G=t.modifiersData.offset;if(h===qy&&G){var X=G[r];Object.keys(U).forEach(function(te){var P=[Fu,Nu].indexOf(te)>=0?1:-1,W=[hc,Nu].indexOf(te)>=0?"y":"x";U[te]+=X[W]*P})}return U}const dOe={name:"flip",enabled:!0,phase:"main",fn:function uOe(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,f=e.flipVariations,p=void 0===f||f,m=e.allowedAutoPlacements,g=n.options.placement,v=Vd(g),_=l||(v!==g&&p?function cOe(t){if(Vd(t)===Q3)return[];var n=KC(t);return[cU(t),n,cU(n)]}(g):[KC(g)]),w=[g].concat(_).reduce(function(re,de){return re.concat(Vd(de)===Q3?function lOe(t,n){void 0===n&&(n={});var r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?hU:l,u=Ev(n.placement),d=u?a?dU:dU.filter(function(p){return Ev(p)===u}):Gy,h=d.filter(function(p){return c.indexOf(p)>=0});0===h.length&&(h=d);var f=h.reduce(function(p,m){return p[m]=sO(t,{placement:m,boundary:r,rootBoundary:o,padding:s})[Vd(m)],p},{});return Object.keys(f).sort(function(p,m){return f[p]-f[m]})}(n,{placement:de,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):de)},[]),k=n.rects.reference,D=n.rects.popper,L=new Map,z=!0,R=w[0],U=0;U=0,W=P?"width":"height",J=sO(n,{placement:G,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),H=P?te?Fu:fc:te?Nu:hc;k[W]>D[W]&&(H=KC(H));var le=KC(H),E=[];if(o&&E.push(J[X]<=0),a&&E.push(J[H]<=0,J[le]<=0),E.every(function(re){return re})){R=G,z=!1;break}L.set(G,E)}if(z)for(var I=function(de){var Oe=w.find(function(ye){var Xe=L.get(ye);if(Xe)return Xe.slice(0,de).every(function(Le){return Le})});if(Oe)return R=Oe,"break"},q=p?3:1;q>0&&"break"!==I(q);q--);n.placement!==R&&(n.modifiersData[i]._skip=!0,n.placement=R,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Jy(t,n,e){return hm(t,QC(n,e))}function aO(t){var n=Tv(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}const mOe={name:"preventOverflow",enabled:!0,phase:"main",fn:function pOe(t){var n=t.state,e=t.options,i=t.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,f=void 0===h||h,p=e.tetherOffset,m=void 0===p?0:p,g=sO(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),v=Vd(n.placement),y=Ev(n.placement),_=!y,w=oO(v),k=function hOe(t){return"x"===t?"y":"x"}(w),D=n.modifiersData.popperOffsets,L=n.rects.reference,z=n.rects.popper,R="function"==typeof m?m(Object.assign({},n.rects,{placement:n.placement})):m,U="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),G=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,X={x:0,y:0};if(D){if(o){var te,P="y"===w?hc:fc,W="y"===w?Nu:Fu,J="y"===w?"height":"width",H=D[w],le=H+g[P],E=H-g[W],O=f?-z[J]/2:0,I=y===kv?L[J]:z[J],q=y===kv?-z[J]:-L[J],V=n.elements.arrow,re=f&&V?aO(V):{width:0,height:0},de=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Oe=de[P],ye=de[W],Xe=Jy(0,L[J],re[J]),Le=_?L[J]/2-O-Xe-Oe-U.mainAxis:I-Xe-Oe-U.mainAxis,rt=_?-L[J]/2+O+Xe+ye+U.mainAxis:q+Xe+ye+U.mainAxis,$=n.elements.arrow&&Xy(n.elements.arrow),ie=null!=(te=G?.[w])?te:0,Ye=H+rt-ie,je=Jy(f?QC(le,H+Le-ie-($?"y"===w?$.clientTop||0:$.clientLeft||0:0)):le,H,f?hm(E,Ye):E);D[w]=je,X[w]=je-H}if(a){var gt,Hn=D[k],Zt="y"===k?"height":"width",Ei=Hn+g["x"===w?hc:fc],ln=Hn-g["x"===w?Nu:Fu],dr=-1!==[hc,fc].indexOf(v),wr=null!=(gt=G?.[k])?gt:0,sr=dr?Ei:Hn-L[Zt]-z[Zt]-wr+U.altAxis,mr=dr?Hn+L[Zt]+z[Zt]-wr-U.altAxis:ln,gi=f&&dr?function fOe(t,n,e){var i=Jy(t,n,e);return i>e?e:i}(sr,Hn,mr):Jy(f?sr:Ei,Hn,f?mr:ln);D[k]=gi,X[k]=gi-Hn}n.modifiersData[i]=X}},requiresIfExists:["offset"]};const _Oe={name:"arrow",enabled:!0,phase:"main",fn:function vOe(t){var n,e=t.state,i=t.name,r=t.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=Vd(e.placement),l=oO(a),u=[fc,Fu].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(n,e){return bU("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:xU(n,Gy))}(r.padding,e),h=aO(o),f="y"===l?hc:fc,p="y"===l?Nu:Fu,m=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],g=s[l]-e.rects.reference[l],v=Xy(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,D=y/2-h[u]/2+(m/2-g/2),L=Jy(d[f],D,y-h[u]-d[p]);e.modifiersData[i]=((n={})[l]=L,n.centerOffset=L-D,n)}},effect:function yOe(t){var n=t.state,i=t.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||gU(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function COe(t,n,e){void 0===e&&(e=!1);var i=Gc(n),r=Gc(n)&&function wOe(t){var n=t.getBoundingClientRect(),e=Dv(n.width)/t.offsetWidth||1,i=Dv(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),o=Uf(n),s=Tv(t,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==Hd(n)||iO(o))&&(a=function xOe(t){return t!==pc(t)&&Gc(t)?function bOe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):tO(t)}(n)),Gc(n)?((l=Tv(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):o&&(l.x=nO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function SOe(t){var n=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=n.get(a);l&&r(l)}}),i.push(o)}return t.forEach(function(o){n.set(o.name,o)}),t.forEach(function(o){e.has(o.name)||r(o)}),i}function DOe(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var wU={placement:"bottom",modifiers:[],strategy:"absolute"};function CU(){for(var t=arguments.length,n=new Array(t),e=0;e=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[fc,Fu].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,n.rects,o),u},{}),a=s[n.placement],c=a.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=a.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[i]=s}};function zOe(t,n){}function GOe(t,n){if(1&t&&(b(0,"button",3),N(1),Z(2,zOe,0,0,"ng-template",4),x()),2&t){const e=n.$implicit;S("ngbPanelToggle",e),C(1),yn(" ",e.title," "),C(1),S("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function WOe(t,n){}function qOe(t,n){}function YOe(t,n){if(1&t){const e=yt();b(0,"div",8),be("ngbRef",function(r){return $e(e),Be(B().$implicit.panelDiv=r)}),b(1,"div",9),Z(2,qOe,0,0,"ng-template",4),x()()}if(2&t){const e=B().$implicit;kf("id",e.id),ut("aria-labelledby",e.id+"-header"),C(2),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const XOe=function(t,n){return{$implicit:t,opened:n}};function JOe(t,n){if(1&t&&(b(0,"div")(1,"div",5),Z(2,WOe,0,0,"ng-template",6),x(),Z(3,YOe,3,3,"div",7),x()),2&t){const e=n.$implicit,i=B(),r=qs(1);Fd("accordion-item "+(e.cardClass||"")),C(1),Fd("accordion-header "+(e.type?"bg-"+e.type:i.type?"bg-"+i.type:"")),Jp("id","",e.id,"-header"),C(1),S("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||r)("ngTemplateOutletContext",Mr(8,XOe,e,e.isOpen)),C(1),S("ngIf",!i.destroyOnHide||e.isOpen||e.transitionRunning)}}function KOe(t,n){if(1&t){const e=yt();b(0,"button",1),be("click",function(){return $e(e),Be(B().close())}),x()}}const Ky=["*"];function QOe(t,n){if(1&t){const e=yt();b(0,"button",6),be("click",function(){const o=$e(e).$implicit,s=B();return s.focus(),Be(s.select(o.id,s.NgbSlideEventSource.INDICATOR))}),x()}if(2&t){const e=n.$implicit,i=B();jn("active",e.id===i.activeId),ut("aria-labelledby","slide-"+e.id)("aria-controls","slide-"+e.id)("aria-selected",e.id===i.activeId)}}function ZOe(t,n){}function eIe(t,n){if(1&t&&(b(0,"div",7)(1,"span",8),Ca(2,9),x(),Z(3,ZOe,0,0,"ng-template",10),x()),2&t){const e=n.$implicit,i=n.index,r=n.count;S("id","slide-"+e.id),C(2),av(i+1)(r),Z1(2),C(1),S("ngTemplateOutlet",e.tplRef)}}function tIe(t,n){if(1&t){const e=yt();b(0,"button",11),be("click",function(){return $e(e),Be(B().arrowLeft())}),ge(1,"span",12),b(2,"span",8),Ca(3,13),x()()}}function nIe(t,n){if(1&t){const e=yt();b(0,"button",14),be("click",function(){return $e(e),Be(B().arrowRight())}),ge(1,"span",15),b(2,"span",8),Ca(3,16),x()()}}const iIe=["ngbDatepickerDayView",""],rIe=["month"],oIe=["year"];function sIe(t,n){if(1&t&&(b(0,"option",5),N(1),x()),2&t){const e=n.$implicit,i=B();S("value",e),ut("aria-label",i.i18n.getMonthFullName(e,i.date.year)),C(1),kt(i.i18n.getMonthShortName(e,i.date.year))}}function aIe(t,n){if(1&t&&(b(0,"option",5),N(1),x()),2&t){const e=n.$implicit,i=B();S("value",e),C(1),kt(i.i18n.getYearNumerals(e))}}function lIe(t,n){if(1&t){const e=yt();b(0,"ngb-datepicker-navigation-select",7),be("select",function(r){return $e(e),Be(B().select.emit(r))}),x()}if(2&t){const e=B();S("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function cIe(t,n){1&t&&ge(0,"div",0)}function uIe(t,n){1&t&&ge(0,"div",0)}function dIe(t,n){if(1&t&&(Z(0,cIe,1,0,"div",9),b(1,"div",10),N(2),x(),Z(3,uIe,1,0,"div",9)),2&t){const e=n.$implicit,i=n.index,r=B(2);S("ngIf",i>0),C(2),yn(" ",r.i18n.getMonthLabel(e.firstDate)," "),C(1),S("ngIf",i!==r.months.length-1)}}function hIe(t,n){1&t&&Z(0,dIe,4,3,"ng-template",8),2&t&&S("ngForOf",B().months)}function fIe(t,n){if(1&t&&(b(0,"div",5),N(1),x()),2&t){const e=B(2);C(1),kt(e.i18n.getWeekLabel())}}function pIe(t,n){if(1&t&&(b(0,"div",6),N(1),x()),2&t){const e=n.$implicit;C(1),kt(e)}}function mIe(t,n){if(1&t&&(b(0,"div",2),Z(1,fIe,2,1,"div",3),Z(2,pIe,2,1,"div",4),x()),2&t){const e=B();C(1),S("ngIf",e.datepicker.showWeekNumbers),C(1),S("ngForOf",e.viewModel.weekdays)}}function gIe(t,n){if(1&t&&(b(0,"div",11),N(1),x()),2&t){const e=B(2).$implicit,i=B();C(1),kt(i.i18n.getWeekNumerals(e.number))}}function vIe(t,n){}function yIe(t,n){if(1&t&&Z(0,vIe,0,0,"ng-template",14),2&t){const e=B().$implicit;S("ngTemplateOutlet",B(3).datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function _Ie(t,n){if(1&t){const e=yt();b(0,"div",12),be("click",function(r){const s=$e(e).$implicit;return B(3).doSelect(s),Be(r.preventDefault())}),Z(1,yIe,1,2,"ng-template",13),x()}if(2&t){const e=n.$implicit;jn("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),S("tabindex",e.tabindex),ut("aria-label",e.ariaLabel),C(1),S("ngIf",!e.hidden)}}function bIe(t,n){if(1&t&&(b(0,"div",8),Z(1,gIe,2,1,"div",9),Z(2,_Ie,2,9,"div",10),x()),2&t){const e=B().$implicit,i=B();C(1),S("ngIf",i.datepicker.showWeekNumbers),C(1),S("ngForOf",e.days)}}function xIe(t,n){1&t&&Z(0,bIe,3,2,"div",7),2&t&&S("ngIf",!n.$implicit.collapsed)}const wIe=["defaultDayTemplate"],CIe=["content"];function SIe(t,n){if(1&t&&ge(0,"div",8),2&t){const i=n.currentMonth,r=n.selected,o=n.disabled,s=n.focused;S("date",n.date)("currentMonth",i)("selected",r)("disabled",o)("focused",s)}}function kIe(t,n){if(1&t&&(b(0,"div",13),N(1),x()),2&t){const e=B().$implicit,i=B(2);C(1),yn(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function DIe(t,n){if(1&t&&(b(0,"div",10),Z(1,kIe,2,1,"div",11),ge(2,"ngb-datepicker-month",12),x()),2&t){const e=n.$implicit,i=B(2);C(1),S("ngIf","none"===i.navigation||i.displayMonths>1&&"select"===i.navigation),C(1),S("month",e.firstDate)}}function TIe(t,n){1&t&&Z(0,DIe,3,2,"div",9),2&t&&S("ngForOf",B().model.months)}function EIe(t,n){if(1&t){const e=yt();b(0,"ngb-datepicker-navigation",14),be("navigate",function(r){return $e(e),Be(B().onNavigateEvent(r))})("select",function(r){return $e(e),Be(B().onNavigateDateSelect(r))}),x()}if(2&t){const e=B();S("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function AIe(t,n){}function MIe(t,n){}const kU=function(t){return{$implicit:t}},OIe=["dialog"],IIe=["ngbNavOutlet",""];function NIe(t,n){}function FIe(t,n){if(1&t&&(b(0,"div",2),Z(1,NIe,0,0,"ng-template",3),x()),2&t){const e=B().$implicit,i=B();S("item",e)("nav",i.nav)("role",i.paneRole),C(1),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",nr(5,kU,e.active||i.isPanelTransitioning(e)))}}function PIe(t,n){if(1&t&&Z(0,FIe,2,7,"div",1),2&t){const e=n.$implicit,i=B();S("ngIf",e.isPanelInDom()||i.isPanelTransitioning(e))}}function jIe(t,n){1&t&&(b(0,"span",9),Ca(1,10),x())}function RIe(t,n){1&t&&(b(0,"span",9),Ca(1,11),x())}function LIe(t,n){1&t&&(b(0,"span",9),Ca(1,12),x())}function $Ie(t,n){1&t&&(b(0,"span",9),Ca(1,13),x())}function BIe(t,n){1&t&&N(0,"...")}function VIe(t,n){1&t&&N(0),2&t&&kt(n.$implicit)}function HIe(t,n){}const UIe=function(t){return{disabled:!0,currentPage:t}};function zIe(t,n){if(1&t&&(b(0,"a",18),Z(1,HIe,0,0,"ng-template",8),x()),2&t){const e=B(2).$implicit,i=B(),r=qs(9);C(1),S("ngTemplateOutlet",(null==i.tplEllipsis?null:i.tplEllipsis.templateRef)||r)("ngTemplateOutletContext",nr(2,UIe,e))}}function GIe(t,n){}const WIe=function(t,n,e){return{disabled:t,$implicit:n,currentPage:e}};function qIe(t,n){if(1&t){const e=yt();b(0,"a",19),be("click",function(r){$e(e);const o=B().$implicit;return B(2).selectPage(o),Be(r.preventDefault())}),Z(1,GIe,0,0,"ng-template",8),x()}if(2&t){const e=B().$implicit,i=B(),r=i.disabled,o=i.$implicit,s=B(),a=qs(11);ut("tabindex",r?"-1":null)("aria-disabled",r?"true":null),C(1),S("ngTemplateOutlet",(null==s.tplNumber?null:s.tplNumber.templateRef)||a)("ngTemplateOutletContext",ey(4,WIe,r,e,o))}}function YIe(t,n){if(1&t&&(b(0,"li",15),Z(1,zIe,2,4,"a",16),Z(2,qIe,2,8,"a",17),x()),2&t){const e=n.$implicit,i=B(),r=i.$implicit,o=i.disabled,s=B();jn("active",e===r)("disabled",s.isEllipsis(e)||o),ut("aria-current",e===r?"page":null),C(1),S("ngIf",s.isEllipsis(e)),C(1),S("ngIf",!s.isEllipsis(e))}}function XIe(t,n){1&t&&Z(0,YIe,3,7,"li",14),2&t&&S("ngForOf",n.pages)}function JIe(t,n){}const lO=function(t,n){return{disabled:t,currentPage:n}};function KIe(t,n){if(1&t){const e=yt();b(0,"li",15)(1,"a",20),be("click",function(r){return $e(e),B().selectPage(1),Be(r.preventDefault())}),Z(2,JIe,0,0,"ng-template",8),x()()}if(2&t){const e=B(),i=qs(1);jn("disabled",e.previousDisabled()),C(1),ut("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),C(1),S("ngTemplateOutlet",(null==e.tplFirst?null:e.tplFirst.templateRef)||i)("ngTemplateOutletContext",Mr(6,lO,e.previousDisabled(),e.page))}}function QIe(t,n){}const ZIe=function(t){return{disabled:t}};function eNe(t,n){if(1&t){const e=yt();b(0,"li",15)(1,"a",21),be("click",function(r){$e(e);const o=B();return o.selectPage(o.page-1),Be(r.preventDefault())}),Z(2,QIe,0,0,"ng-template",8),x()()}if(2&t){const e=B(),i=qs(3);jn("disabled",e.previousDisabled()),C(1),ut("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),C(1),S("ngTemplateOutlet",(null==e.tplPrevious?null:e.tplPrevious.templateRef)||i)("ngTemplateOutletContext",nr(6,ZIe,e.previousDisabled()))}}function tNe(t,n){}function nNe(t,n){}function iNe(t,n){if(1&t){const e=yt();b(0,"li",15)(1,"a",22),be("click",function(r){$e(e);const o=B();return o.selectPage(o.page+1),Be(r.preventDefault())}),Z(2,nNe,0,0,"ng-template",8),x()()}if(2&t){const e=B(),i=qs(5);jn("disabled",e.nextDisabled()),C(1),ut("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),C(1),S("ngTemplateOutlet",(null==e.tplNext?null:e.tplNext.templateRef)||i)("ngTemplateOutletContext",Mr(6,lO,e.nextDisabled(),e.page))}}function rNe(t,n){}function oNe(t,n){if(1&t){const e=yt();b(0,"li",15)(1,"a",23),be("click",function(r){$e(e);const o=B();return o.selectPage(o.pageCount),Be(r.preventDefault())}),Z(2,rNe,0,0,"ng-template",8),x()()}if(2&t){const e=B(),i=qs(7);jn("disabled",e.nextDisabled()),C(1),ut("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),C(1),S("ngTemplateOutlet",(null==e.tplLast?null:e.tplLast.templateRef)||i)("ngTemplateOutletContext",Mr(6,lO,e.nextDisabled(),e.page))}}const sNe=function(t,n,e){return{$implicit:t,pages:n,disabled:e}};function cNe(t,n){if(1&t&&(b(0,"span"),Ca(1,1),mA(2,"percent"),x()),2&t){const e=B();C(2),av(gA(2,1,e.getValue()/e.max)),Z1(1)}}function uNe(t,n){1&t&&N(0),2&t&&kt(100===n.fill?"\u2605":"\u2606")}function dNe(t,n){}function hNe(t,n){if(1&t){const e=yt();b(0,"span",2),N(1),x(),b(2,"span",3),be("mouseenter",function(){const o=$e(e).index;return Be(B().enter(o+1))})("click",function(){const o=$e(e).index;return Be(B().handleClick(o+1))}),Z(3,dNe,0,0,"ng-template",4),x()}if(2&t){const e=n.index,i=B(),r=qs(1);C(1),yn("(",e=12)("ngIfElse",e)}}function kNe(t,n){if(1&t&&(b(0,"strong",3),N(1),x()),2&t){const e=B();C(1),kt(e.header)}}function DNe(t,n){}function TNe(t,n){if(1&t){const e=yt();b(0,"div",4),Z(1,DNe,0,0,"ng-template",5),b(2,"button",6),be("click",function(){return $e(e),Be(B().hide())}),x()()}if(2&t){const e=B(),i=qs(1);C(1),S("ngTemplateOutlet",e.contentHeaderTpl||i)}}function ENe(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B().$implicit;Fd(B().highlightClass),C(1),kt(e)}}function ANe(t,n){1&t&&N(0),2&t&&kt(B().$implicit)}function MNe(t,n){if(1&t&&(Z(0,ENe,2,3,"span",1),Z(1,ANe,1,1,"ng-template",null,2,Uo)),2&t){const e=n.odd,i=qs(2);S("ngIf",e)("ngIfElse",i)}}function Oa(t){return parseInt(`${t}`,10)}function DU(t){return null!=t?`${t}`:""}function t2(t,n,e=0){return Math.max(Math.min(t,n),e)}function fm(t){return"string"==typeof t}function ds(t){return!isNaN(Oa(t))}function Qo(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function pm(t){return null!=t}function Av(t){return ds(t)?`0${t}`.slice(-2):""}function EU(t,n){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(n)>=0}function Mv(t){return(t||document.body).getBoundingClientRect()}function AU(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const MU={animation:!0,transitionTimerDelayMs:5},RNe=()=>{},{transitionTimerDelayMs:LNe}=MU,Qy=new Map,Qs=(t,n,e,i)=>{let r=i.context||{};const o=Qy.get(n);if(o)switch(i.runningTransition){case"continue":return Vh;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Qy.delete(n)}const s=e(n,i.animation,r)||RNe;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),Rn(void 0).pipe(function PNe(t){return n=>new en(e=>n.subscribe({next:s=>t.run(()=>e.next(s)),error:s=>t.run(()=>e.error(s)),complete:()=>t.run(()=>e.complete())}))}(t));const a=new _r,l=new _r,c=a.pipe(function M3e(...t){return n=>rC(n,Rn(...t))}(!0));Qy.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const u=function jNe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const d=Ma(n,"transitionend").pipe(us(c),cs(({target:f})=>f===n));aU(zy(u+LNe).pipe(us(c)),d,l).pipe(us(c)).subscribe(()=>{Qy.delete(n),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()},cO=(t,n,e)=>{let{direction:i,maxSize:r,dimension:o}=e;const{classList:s}=t;function a(){s.add("collapse"),"show"===i?s.add("show"):s.remove("show")}if(n)return r||(r=function BNe(t,n){if(typeof navigator>"u")return"0px";const{classList:e}=t,i=e.contains("show");i||e.add("show"),t.style[n]="";const r=t.getBoundingClientRect()[n]+"px";return i||e.remove("show"),r}(t,o),e.maxSize=r,t.style[o]="show"!==i?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),Mv(t),s.add("collapsing")),t.style[o]="show"===i?r:"0px",()=>{a(),s.remove("collapsing"),t.style[o]=""};a()};let zf=(()=>{class t{constructor(){this.animation=MU.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),OU=(()=>{class t{constructor(e){this._ngbConfig=e,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),VNe=0,uO=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),IU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),NU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),dO=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+VNe++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new it,this.hidden=new it}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["ngb-panel"]],contentQueries:function(e,i,r){if(1&e&&(yi(r,IU,4),yi(r,uO,4),yi(r,NU,4)),2&e){let o;wn(o=Cn())&&(i.titleTpls=o),wn(o=Cn())&&(i.headerTpls=o),wn(o=Cn())&&(i.contentTpls=o)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),HNe=(()=>{class t{constructor(e){this._El=e,this.ngbRef=new it}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),FU=(()=>{class t{constructor(e,i){this.accordion=e,this.panel=i}set ngbPanelToggle(e){e&&(this.panel=e)}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>hO)),he(dO,9))},t.\u0275dir=sn({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,i){1&e&&be("click",function(){return i.accordion.toggle(i.panel.id)}),2&e&&(Pl("disabled",i.panel.disabled),ut("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),jn("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),hO=(()=>{class t{constructor(e,i,r){this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new it,this.shown=new it,this.hidden=new it,this.animation=e.animation,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const i=this._findPanelById(e);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){fm(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>{e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(Ks(1)).subscribe(()=>{this.panels.forEach(e=>{const i=e.panelDiv;i?e.initClassDone||(e.initClassDone=!0,Qs(this._ngZone,i,cO,{animation:!1,runningTransition:"continue",context:{direction:e.isOpen?"show":"hide",dimension:"height"}})):e.initClassDone=!1})})}_changeOpenState(e,i){if(null!=e&&!e.disabled&&e.isOpen!==i){let r=!1;this.panelChange.emit({panelId:e.id,nextState:i,preventDefault:()=>{r=!0}}),r||(e.isOpen=i,e.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(e,i=!0){this.panels.forEach(r=>{r.id!==e&&r.isOpen&&(r.isOpen=!1,r.transitionRunning=i)})}_findPanelById(e){return this.panels.find(i=>i.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}_runTransitions(e){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&Qs(this._ngZone,i.panelDiv,cO,{animation:e,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{i.transitionRunning=!1;const{id:o}=i;i.isOpen?(i.shown.emit(),this.shown.emit(o)):(i.hidden.emit(),this.hidden.emit(o))})})}}return t.\u0275fac=function(e){return new(e||t)(he(OU),he(ir),he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["ngb-accordion"]],contentQueries:function(e,i,r){if(1&e&&yi(r,dO,4),2&e){let o;wn(o=Cn())&&(i.panels=o)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,i){2&e&&ut("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[Is],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(e,i){1&e&&(Z(0,GOe,3,3,"ng-template",0,1,Uo),Z(2,JOe,4,11,"ng-template",2)),2&e&&(C(2),S("ngForOf",i.panels))},dependencies:[Ln,Eu,FU,HNe,uO,_n],encapsulation:2}),t})(),LU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[hO]}),t})();const YNe=({classList:t})=>{t.remove("show")};let XNe=(()=>{class t{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),po=(()=>{class t{constructor(e,i,r,o){this._renderer=i,this._element=r,this._zone=o,this.closed=new it,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=Qs(this._zone,this._element.nativeElement,YNe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(he(XNe),he(aa),he(Si),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&jn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[ei,Is],ngContentSelectors:Ky,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Cf(),Sf(0),Z(1,KOe,1,0,"button",0)),2&e&&(C(1),S("ngIf",i.dismissible))},dependencies:[_n],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),$U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[po]}),t})();var Gf=(()=>(function(t){t.START="start",t.END="end"}(Gf||(Gf={})),Gf))();const BU=({classList:t})=>t.contains("carousel-item-start")||t.contains("carousel-item-end"),Zy=t=>{t.remove("carousel-item-start"),t.remove("carousel-item-end")},n2=t=>{Zy(t),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},JNe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(BU(t)?Zy(i):(i.add("carousel-item-"+(e===Gf.START?"next":"prev")),Mv(t),i.add("carousel-item-"+e)),()=>{n2(i),i.add("active")}):(Zy(i),n2(i),void i.add("active"))},KNe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(BU(t)?Zy(i):i.add("carousel-item-"+e),()=>{n2(i),i.remove("active")}):(Zy(i),n2(i),void i.remove("active"))};let QNe=(()=>{class t{constructor(e){this._ngbConfig=e,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZNe=0,eFe=(()=>{class t{constructor(e){this.tplRef=e,this.id="ngb-slide-"+ZNe++,this.slid=new it}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"},standalone:!0}),t})(),tFe=(()=>{class t{constructor(e,i,r,o,s){this._platformId=i,this._ngZone=r,this._cd=o,this._container=s,this.NgbSlideEventSource=gm,this._destroy$=new _r,this._interval$=new Js(0),this._mouseHover$=new Js(!1),this._focused$=new Js(!1),this._pauseOnHover$=new Js(!1),this._pauseOnFocus$=new Js(!1),this._pause$=new Js(!1),this._wrap$=new Js(!1),this.slide=new it,this.slid=new it,this._transitionIds=null,this.animation=e.animation,this.interval=e.interval,this.wrap=e.wrap,this.keyboard=e.keyboard,this.pauseOnHover=e.pauseOnHover,this.pauseOnFocus=e.pauseOnFocus,this.showNavigationArrows=e.showNavigationArrows,this.showNavigationIndicators=e.showNavigationIndicators}set interval(e){this._interval$.next(e)}get interval(){return this._interval$.value}set wrap(e){this._wrap$.next(e)}get wrap(){return this._wrap$.value}set pauseOnHover(e){this._pauseOnHover$.next(e)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(e){this._pauseOnFocus$.next(e)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(e){this._mouseHover$.next(e)}get mouseHover(){return this._mouseHover$.value}set focused(e){this._focused$.next(e)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(gm.ARROW_LEFT)}arrowRight(){this.focus(),this.next(gm.ARROW_RIGHT)}ngAfterContentInit(){f7(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const e=iC([this.slide.pipe(vn(i=>i.current),sC(this.activeId)),this._wrap$,this.slides.changes.pipe(sC(null))]).pipe(vn(([i,r])=>{const o=this.slides.toArray(),s=this._getSlideIdxById(i);return r?o.length>1:si||r&&o||s&&a||!c?0:l),XC(),uc(i=>i>0?zy(i,i):lU),us(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(gm.TIMER)))}),this.slides.changes.pipe(us(this._destroy$)).subscribe(()=>{this._transitionIds?.forEach(e=>(t=>{Qy.get(t)?.complete()})(this._getSlideElement(e))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(Ks(1)).subscribe(()=>{for(const{id:e}of this.slides){const i=this._getSlideElement(e);e===this.activeId?i.classList.add("active"):i.classList.remove("active")}})})}ngAfterContentChecked(){let e=this._getSlideById(this.activeId);this.activeId=e?e.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const e=this._getSlideElement(this.activeId);e&&e.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(e,i){this._cycleToSelected(e,this._getSlideEventDirection(this.activeId,e),i)}prev(e){this._cycleToSelected(this._getPrevSlide(this.activeId),Gf.END,e)}next(e){this._cycleToSelected(this._getNextSlide(this.activeId),Gf.START,e)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(e,i,r){const o=this._transitionIds;if(o&&(o[0]!==e||o[1]!==this.activeId))return;let s=this._getSlideById(e);if(s&&s.id!==this.activeId){this._transitionIds=[this.activeId,e],this.slide.emit({prev:this.activeId,current:s.id,direction:i,paused:this._pause$.value,source:r});const a={animation:this.animation,runningTransition:"stop",context:{direction:i}},l=[],c=this._getSlideById(this.activeId);if(c){const f=Qs(this._ngZone,this._getSlideElement(c.id),KNe,a);f.subscribe(()=>{c.slid.emit({isShown:!1,direction:i,source:r})}),l.push(f)}const u=this.activeId;this.activeId=s.id;const d=this._getSlideById(this.activeId),h=Qs(this._ngZone,this._getSlideElement(s.id),JNe,a);h.subscribe(()=>{d?.slid.emit({isShown:!0,direction:i,source:r})}),l.push(h),JC(...l).pipe(Ks(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:u,current:s.id,direction:i,paused:this._pause$.value,source:r})})}this._cd.markForCheck()}_getSlideEventDirection(e,i){return this._getSlideIdxById(e)>this._getSlideIdxById(i)?Gf.END:Gf.START}_getSlideById(e){return this.slides.find(i=>i.id===e)||null}_getSlideIdxById(e){const i=this._getSlideById(e);return null!=i?this.slides.toArray().indexOf(i):-1}_getNextSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return r===i.length-1?this.wrap?i[0].id:i[i.length-1].id:i[r+1].id}_getPrevSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return 0===r?this.wrap?i[i.length-1].id:i[0].id:i[r-1].id}_getSlideElement(e){return this._container.nativeElement.querySelector(`#slide-${e}`)}}return t.\u0275fac=function(e){return new(e||t)(he(QNe),he(oy),he(ir),he(Ns),he(Si))},t.\u0275cmp=$t({type:t,selectors:[["ngb-carousel"]],contentQueries:function(e,i,r){if(1&e&&yi(r,eFe,4),2&e){let o;wn(o=Cn())&&(i.slides=o)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(e,i){1&e&&be("keydown.arrowLeft",function(){return i.keyboard&&i.arrowLeft()})("keydown.arrowRight",function(){return i.keyboard&&i.arrowRight()})("mouseenter",function(){return i.mouseHover=!0})("mouseleave",function(){return i.mouseHover=!1})("focusin",function(){return i.focused=!0})("focusout",function(){return i.focused=!1}),2&e&&(ut("aria-activedescendant","slide-"+i.activeId),tr("display","block"))},inputs:{animation:"animation",activeId:"activeId",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],standalone:!0,features:[Is],decls:6,vars:6,consts:function(){let n,e,i;return n=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number: Slide ${"\ufffd0\ufffd"}:INTERPOLATION: of ${"\ufffd1\ufffd"}:INTERPOLATION_1: `,e=$localize`:@@ngb.carousel.previous:Previous`,i=$localize`:@@ngb.carousel.next:Next`,[["role","tablist",1,"carousel-indicators"],["type","button","data-bs-target","","role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","type","button",3,"click",4,"ngIf"],["class","carousel-control-next","type","button",3,"click",4,"ngIf"],["type","button","data-bs-target","","role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"visually-hidden"],n,[3,"ngTemplateOutlet"],["type","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],e,["type","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],i]},template:function(e,i){1&e&&(b(0,"div",0),Z(1,QOe,1,5,"button",1),x(),b(2,"div",2),Z(3,eIe,4,4,"div",3),x(),Z(4,tIe,4,0,"button",4),Z(5,nIe,4,0,"button",5)),2&e&&(jn("visually-hidden",!i.showNavigationIndicators),C(1),S("ngForOf",i.slides),C(2),S("ngForOf",i.slides),C(1),S("ngIf",i.showNavigationArrows),C(1),S("ngIf",i.showNavigationArrows))},dependencies:[Ln,Eu,_n],encapsulation:2,changeDetection:0}),t})();var gm=(()=>(function(t){t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator"}(gm||(gm={})),gm))();let VU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[tFe]}),t})(),HU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();class Zs{constructor(n,e,i){this.year=Qo(n)?n:null,this.month=Qo(e)?e:null,this.day=Qo(i)?i:null}static from(n){return n instanceof Zs?n:n?new Zs(n.year,n.month,n.day):null}equals(n){return null!=n&&this.year===n.year&&this.month===n.month&&this.day===n.day}before(n){return!!n&&(this.year===n.year?this.month===n.month?this.day!==n.day&&this.dayn.day:this.month>n.month:this.year>n.year)}}function Ov(t,n){return!function nFe(t,n){return!t&&!n||!!t&&!!n&&t.equals(n)}(t,n)}function UU(t,n){return!(!t&&!n||t&&n&&t.year===n.year&&t.month===n.month)}function i2(t,n,e){return t&&n&&t.before(n)?n:t&&e&&t.after(e)?e:t||null}function pO(t,n){const{minDate:e,maxDate:i,disabled:r,markDisabled:o}=n;return!(null==t||r||o&&o(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function zU(t){return new Zs(t.getFullYear(),t.getMonth()+1,t.getDate())}function r2(t){const n=new Date(t.year,t.month-1,t.day,12);return isNaN(n.getTime())||n.setFullYear(t.year),n}let o2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function dFe(){return new hFe}()},providedIn:"root"}),t})(),hFe=(()=>{class t extends o2{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",r=1){let o=r2(e),s=!0,a=o.getMonth();switch(i){case"y":o.setFullYear(o.getFullYear()+r);break;case"m":a+=r,o.setMonth(a),a%=12,a<0&&(a+=12);break;case"d":o.setDate(o.getDate()+r),s=!1;break;default:return e}return s&&o.getMonth()!==a&&o.setDate(0),zU(o)}getPrev(e,i="d",r=1){return this.getNext(e,i,-r)}getWeekday(e){let r=r2(e).getDay();return 0===r?7:r}getWeekNumber(e,i){7===i&&(i=0);const s=r2(e[(11-i)%7]);s.setDate(s.getDate()+4-(s.getDay()||7));const a=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((a-s.getTime())/864e5)/7)+1}getToday(){return zU(new Date)}isValid(e){if(!(e&&Qo(e.year)&&Qo(e.month)&&Qo(e.day)&&0!==e.year))return!1;const i=r2(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),vm=(()=>{class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function fFe(t){return new pFe(t)}(vt(ac)),i},providedIn:"root"}),t})(),pFe=(()=>{class t extends vm{constructor(e){super(),this._locale=e,this._monthsShort=YA(e,Ro.Standalone,Vi.Abbreviated),this._monthsFull=YA(e,Ro.Standalone,Vi.Wide)}getWeekdayLabel(e,i){const r=WB(this._locale,Ro.Standalone,void 0===i?Vi.Short:i);return r.map((s,a)=>r[(a+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){return YB(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}return t.\u0275fac=function(e){return new(e||t)(vt(ac))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),mO=(()=>{class t{constructor(e,i){this._calendar=e,this._i18n=i,this._VALIDATORS={dayTemplateData:r=>{if(this._state.dayTemplateData!==r)return{dayTemplateData:r}},displayMonths:r=>{if(Qo(r=Oa(r))&&r>0&&this._state.displayMonths!==r)return{displayMonths:r}},disabled:r=>{if(this._state.disabled!==r)return{disabled:r}},firstDayOfWeek:r=>{if(Qo(r=Oa(r))&&r>=0&&this._state.firstDayOfWeek!==r)return{firstDayOfWeek:r}},focusVisible:r=>{if(this._state.focusVisible!==r&&!this._state.disabled)return{focusVisible:r}},markDisabled:r=>{if(this._state.markDisabled!==r)return{markDisabled:r}},maxDate:r=>{const o=this.toValidDate(r,null);if(Ov(this._state.maxDate,o))return{maxDate:o}},minDate:r=>{const o=this.toValidDate(r,null);if(Ov(this._state.minDate,o))return{minDate:o}},navigation:r=>{if(this._state.navigation!==r)return{navigation:r}},outsideDays:r=>{if(this._state.outsideDays!==r)return{outsideDays:r}},weekdays:r=>{const o=!0===r||!1===r?Vi.Short:r,s=!0!==r&&!1!==r||r;if(this._state.weekdayWidth!==o||this._state.weekdaysVisible!==s)return{weekdayWidth:o,weekdaysVisible:s}}},this._model$=new _r,this._dateSelect$=new _r,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:Vi.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(cs(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(cs(e=>null!==e))}set(e){let i=Object.keys(e).map(r=>this._VALIDATORS[r](e[r])).reduce((r,o)=>({...r,...o}),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){const i=this.toValidDate(e,null);null!=i&&!this._state.disabled&&Ov(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){pO(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const i=this.toValidDate(e,this._calendar.getToday());null!=i&&!this._state.disabled&&(!this._state.firstDate||UU(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){const r=this.toValidDate(e,null);null!=r&&!this._state.disabled&&(Ov(this._state.selectedDate,r)&&this._nextState({selectedDate:r}),i.emitEvent&&pO(r,this._state)&&this._dateSelect$.next(r))}toValidDate(e,i){const r=Zs.from(e);return void 0===i&&(i=this._calendar.getToday()),this._calendar.isValid(r)?r:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){const{months:i,displayMonths:r,selectedDate:o,focusDate:s,focusVisible:a,disabled:l,outsideDays:c}=e;e.months.forEach(u=>{u.weeks.forEach(d=>{d.days.forEach(h=>{s&&(h.context.focused=s.equals(h.date)&&a),h.tabindex=!l&&s&&h.date.equals(s)&&s.month===u.number?0:-1,!0===l&&(h.context.disabled=!0),void 0!==o&&(h.context.selected=null!==o&&o.equals(h.date)),u.number!==h.date.month&&(h.hidden="hidden"===c||"collapsed"===c||r>1&&h.date.after(i[0].firstDate)&&h.date.before(i[r-1].lastDate))})})})}_updateState(e){const i=Object.assign({},this._state,e);let r=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(function iFe(t,n){if(n&&t&&n.before(t))throw new Error(`'maxDate' ${n} should be greater than 'minDate' ${t}`)}(i.minDate,i.maxDate),i.focusDate=i2(i.focusDate,i.minDate,i.maxDate),i.firstDate=i2(i.firstDate,i.minDate,i.maxDate),r=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(r=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=i2(i.focusDate,i.minDate,i.maxDate),r=i.focusDate,0!==i.months.length&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=i2(i.firstDate,i.minDate,i.maxDate),r=i.firstDate),r){const s=function lFe(t,n,e,i,r){const{displayMonths:o,months:s}=e,a=s.splice(0,s.length);return Array.from({length:o},(c,u)=>{const d=Object.assign(t.getNext(n,"m",u),{day:1});if(s[u]=null,!r){const h=a.findIndex(f=>f.firstDate.equals(d));-1!==h&&(s[u]=a.splice(h,1)[0])}return d}).forEach((c,u)=>{null===s[u]&&(s[u]=function cFe(t,n,e,i,r={}){const{dayTemplateData:o,minDate:s,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u,weekdayWidth:d,weekdaysVisible:h}=e,f=t.getToday();r.firstDate=null,r.lastDate=null,r.number=n.month,r.year=n.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],n=function uFe(t,n,e){const i=t.getDaysPerWeek(),r=new Zs(n.year,n.month,1),o=t.getWeekday(r)%i;return t.getPrev(r,"d",(i+o-e)%i)}(t,n,l),h||(r.weekdays.length=0);for(let p=0;pv.date),l),m.collapsed="collapsed"===u&&g[0].date.month!==r.number&&g[g.length-1].date.month!==r.number}return r}(t,c,e,i,a.shift()||{}))}),s}(this._calendar,r,i,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e);i.months=s,i.firstDate=s[0].firstDate,i.lastDate=s[s.length-1].lastDate,"selectedDate"in e&&!pO(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=r);const a=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,l=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;"select"===i.navigation?(("minDate"in e||"maxDate"in e||0===i.selectBoxes.years.length||a)&&(i.selectBoxes.years=function oFe(t,n,e){if(!t)return[];const i=n?Math.max(n.year,t.year-500):t.year-10,o=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,s=Array(o);for(let a=0;as===e.month);r=r.slice(o)}if(i&&n.year===i.year){const o=r.findIndex(s=>s===i.month);r=r.slice(0,o+1)}return r}(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},("arrows"===i.navigation||"select"===i.navigation)&&(l||a||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||function aFe(t,n,e){const i=Object.assign(t.getPrev(n,"m"),{day:1});return null!=e&&(i.year===e.year&&i.month(function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(Iv||(Iv={})),Iv))();let mFe=(()=>{class t{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return t.\u0275fac=function(e){return new(e||t)(he(vm))},t.\u0275cmp=$t({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,i){2&e&&jn("bg-primary",i.selected)("text-white",i.selected)("text-muted",i.isMuted())("outside",i.isMuted())("active",i.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[Is],attrs:iIe,decls:1,vars:1,template:function(e,i){1&e&&N(0),2&e&&kt(i.i18n.getDayNumerals(i.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),gFe=(()=>{class t{constructor(e,i){this.i18n=e,this._renderer=i,this.select=new it,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new Zs(this.date.year,Oa(e),1))}changeYear(e){this.select.emit(new Zs(Oa(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return t.\u0275fac=function(e){return new(e||t)(he(vm),he(aa))},t.\u0275cmp=$t({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,i){if(1&e&&(jo(rIe,7,Si),jo(oIe,7,Si)),2&e){let r;wn(r=Cn())&&(i.monthSelect=r.first),wn(r=Cn())&&(i.yearSelect=r.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[Is],decls:6,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.select-month:Select month`,e=$localize`:@@ngb.datepicker.select-month:Select month`,i=$localize`:@@ngb.datepicker.select-year:Select year`,r=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",n,"title",e,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",i,"title",r,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,i){1&e&&(b(0,"select",0,1),be("change",function(o){return i.changeMonth(o.target.value)}),Z(2,sIe,2,3,"option",2),x(),b(3,"select",3,4),be("change",function(o){return i.changeYear(o.target.value)}),Z(5,aIe,2,2,"option",2),x()),2&e&&(S("disabled",i.disabled),C(2),S("ngForOf",i.months),C(1),S("disabled",i.disabled),C(2),S("ngForOf",i.years))},dependencies:[Ln],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0}),t})(),vFe=(()=>{class t{constructor(e){this.i18n=e,this.navigation=Iv,this.months=[],this.navigate=new it,this.select=new it}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return t.\u0275fac=function(e){return new(e||t)(he(vm))},t.\u0275cmp=$t({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[Is],decls:8,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.previous-month:Previous month`,e=$localize`:@@ngb.datepicker.previous-month:Previous month`,i=$localize`:@@ngb.datepicker.next-month:Next month`,r=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",n,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",i,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,i){1&e&&(b(0,"div",0)(1,"button",1),be("click",function(o){return i.onClickPrev(o)}),ge(2,"span",2),x()(),Z(3,lIe,1,4,"ngb-datepicker-navigation-select",3),Z(4,hIe,1,1,null,4),b(5,"div",5)(6,"button",6),be("click",function(o){return i.onClickNext(o)}),ge(7,"span",2),x()()),2&e&&(C(1),S("disabled",i.prevDisabled),C(2),S("ngIf",i.showSelect),C(1),S("ngIf",!i.showSelect),C(2),S("disabled",i.nextDisabled))},dependencies:[_n,Ln,gFe],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0}),t})();var Or=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(Or||(Or={})),Or))();let yFe=(()=>{class t{processKey(e,i){const{state:r,calendar:o}=i;switch(e.which){case Or.PageUp:i.focusDate(o.getPrev(r.focusedDate,e.shiftKey?"y":"m",1));break;case Or.PageDown:i.focusDate(o.getNext(r.focusedDate,e.shiftKey?"y":"m",1));break;case Or.End:i.focusDate(e.shiftKey?r.maxDate:r.lastDate);break;case Or.Home:i.focusDate(e.shiftKey?r.minDate:r.firstDate);break;case Or.ArrowLeft:i.focusDate(o.getPrev(r.focusedDate,"d",1));break;case Or.ArrowUp:i.focusDate(o.getPrev(r.focusedDate,"d",o.getDaysPerWeek()));break;case Or.ArrowRight:i.focusDate(o.getNext(r.focusedDate,"d",1));break;case Or.ArrowDown:i.focusDate(o.getNext(r.focusedDate,"d",o.getDaysPerWeek()));break;case Or.Enter:case Or.Space:i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),gO=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=Vi.Short}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function _Fe(){return new bFe}()},providedIn:"root"}),t})(),bFe=(()=>{class t extends vO{fromModel(e){return e&&Qo(e.year)&&Qo(e.month)&&Qo(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&Qo(e.year)&&Qo(e.month)&&Qo(e.day)?{year:e.year,month:e.month,day:e.day}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),GU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0}),t})(),yO=(()=>{class t{constructor(e,i,r,o){this.i18n=e,this.datepicker=i,this._keyboardService=r,this._service=o}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}}return t.\u0275fac=function(e){return new(e||t)(he(vm),he(Mi(()=>s2)),he(yFe),he(mO))},t.\u0275cmp=$t({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,i){1&e&&be("keydown",function(o){return i.onKeyDown(o)})},inputs:{month:"month"},standalone:!0,features:[Is],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(Z(0,mIe,3,2,"div",0),Z(1,xIe,1,1,"ng-template",1)),2&e&&(S("ngIf",i.viewModel.weekdays.length>0),C(1),S("ngForOf",i.viewModel.weeks))},dependencies:[_n,Ln,Eu],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2}),t})(),s2=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this._service=e,this._calendar=i,this._i18n=r,this._elementRef=a,this._ngbDateAdapter=l,this._ngZone=c,this.injector=Fi(la),this._controlValue=null,this._destroyed$=new _r,this._publicState={},this.navigate=new it,this.dateSelect=new it,this.onChange=u=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(u=>this[u]=o[u]),e.dateSelect$.pipe(us(this._destroyed$)).subscribe(u=>{this.dateSelect.emit(u)}),e.model$.pipe(us(this._destroyed$)).subscribe(u=>{const d=u.firstDate,h=this.model?this.model.firstDate:null;this._publicState={maxDate:u.maxDate,minDate:u.minDate,firstDate:u.firstDate,lastDate:u.lastDate,focusedDate:u.focusDate,months:u.months.map(v=>v.firstDate)};let f=!1;if(!d.equals(h)&&(this.navigate.emit({current:h?{year:h.year,month:h.month}:null,next:{year:d.year,month:d.month},preventDefault:()=>f=!0}),f&&null!==h))return void this._service.open(h);const p=u.selectedDate,m=u.focusDate,g=this.model?this.model.focusDate:null;this.model=u,Ov(p,this._controlValue)&&(this._controlValue=p,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(p))),Ov(m,g)&&g&&u.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(e){this._service.focus(Zs.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Ks(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(Zs.from(e?e.day?e:{...e,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Ma(this._contentEl.nativeElement,"focusin"),i=Ma(this._contentEl.nativeElement,"focusout"),{nativeElement:r}=this._elementRef;Dt(e,i).pipe(cs(({target:o,relatedTarget:s})=>!(EU(o,"ngb-dp-day")&&EU(s,"ngb-dp-day")&&r.contains(o)&&r.contains(s))),us(this._destroyed$)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===o})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(r=>r in e).forEach(r=>i[r]=this[r]),this._service.set(i),"startDate"in e){const{currentValue:r,previousValue:o}=e.startDate;UU(o,r)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Iv.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Iv.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=Zs.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}return t.\u0275fac=function(e){return new(e||t)(he(mO),he(o2),he(vm),he(gO),he(Ns),he(Si),he(vO),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(e,i,r){if(1&e&&yi(r,GU,7),2&e){let o;wn(o=Cn())&&(i.contentTemplateFromContent=o.first)}},viewQuery:function(e,i){if(1&e&&(jo(wIe,7),jo(CIe,7)),2&e){let r;wn(r=Cn())&&(i._defaultDayTemplate=r.first),wn(r=Cn())&&(i._contentEl=r.first)}},hostVars:2,hostBindings:function(e,i){2&e&&jn("disabled",i.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[Qr([{provide:$l,useExisting:Mi(()=>t),multi:!0},mO]),ei,Is],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,i){if(1&e&&(Z(0,SIe,1,5,"ng-template",null,0,Uo),Z(2,TIe,1,1,"ng-template",null,1,Uo),b(4,"div",2),Z(5,EIe,1,7,"ngb-datepicker-navigation",3),x(),b(6,"div",4,5),Z(8,AIe,0,0,"ng-template",6),x(),Z(9,MIe,0,0,"ng-template",7)),2&e){const r=qs(3);C(5),S("ngIf","none"!==i.navigation),C(1),jn("ngb-dp-months",!i.contentTemplate),C(2),S("ngTemplateOutlet",i.contentTemplate||(null==i.contentTemplateFromContent?null:i.contentTemplateFromContent.templateRef)||r)("ngTemplateOutletContext",nr(7,kU,i))("ngTemplateOutletInjector",i.injector),C(1),S("ngTemplateOutlet",i.footerTemplate)}},dependencies:[_n,Ln,Eu,mFe,yO,vFe],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0}),t})();const a2=(t,n)=>!!n&&n.some(e=>e.contains(t)),WU=(t,n)=>!n||null!=function FNe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),xFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),wFe=t=>xFe?()=>setTimeout(()=>t(),100):t;function _O(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(wFe(()=>{const c=Ma(n,"keydown").pipe(us(r),cs(h=>h.which===Or.Escape),xs(h=>h.preventDefault())),u=Ma(n,"mousedown").pipe(vn(h=>{const f=h.target;return 2!==h.button&&!a2(f,s)&&("inside"===e?a2(f,o)&&WU(f,a):"outside"===e?!a2(f,o):WU(f,a)||!a2(f,o))}),us(r)),d=Ma(n,"mouseup").pipe(X3(u),cs(([h,f])=>f),J3(0),us(r));aU([c.pipe(vn(h=>0)),d.pipe(vn(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const qU=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function YU(t){const n=Array.from(t.querySelectorAll(qU)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}let CFe=(()=>{class t{constructor(e){this._element=e.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const SFe=/\s+/,kFe=/ +/gi,DFe={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},EFe=/^left/,AFe=/^right/,MFe=/^start/,OFe=/^end/;function JU({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split(SFe),o=i.findIndex(c=>"auto"===c);o>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==i.find(u=>-1!==u.search("^"+c))&&i.splice(o++,1,c)});const s=i.map(c=>function TFe(t,n){const[e,i]=DFe[t];return n&&i||e}(c,e.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const u=new RegExp(n+"(-[a-z]+)*","gi"),d=c.elements.popper,h=c.placement;let f=d.className;f=f.replace(u,""),f+=` ${function IFe(t,n){let[e,i]=n.split("-");const r=e.replace(EFe,"start").replace(AFe,"end");let o=[r];if(i){let s=i;("left"===e||"right"===e)&&(s=s.replace(MFe,"top").replace(OFe,"bottom")),o.push(`${r}-${s}`)}return t&&(o=o.map(s=>`${t}-${s}`)),o.join(" ")}(n,h)}`,f=f.trim().replace(kFe," "),d.className=f}},dOe,mOe,_Oe,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function KU(t){return t}function bO(){const t=Fi(CFe);let n=null;return{createPopper(e){if(!n){let r=(e.updatePopperOptions||KU)(JU(e,t));n=BOe(e.hostElement,e.targetElement,r)}},update(){n&&n.update()},setOptions(e){if(n){let r=(e.updatePopperOptions||KU)(JU(e,t));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}new Date(1882,10,12),new Date(2174,10,25);let sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[s2,yO]}),t})(),UFe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Wf=(()=>{class t{constructor(e,i){this.elementRef=e,this._renderer=i,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(e,i){2&e&&(Pl("tabIndex",i.disabled?-1:0),jn("disabled",i.disabled))},inputs:{disabled:"disabled"},standalone:!0}),t})(),qf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>ju)),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&yi(r,Wf,4),2&e){let o;wn(o=Cn())&&(i.menuItems=o)}},hostVars:4,hostBindings:function(e,i){1&e&&be("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&jn("dropdown-menu",!0)("show",i.dropdown.isOpen())},standalone:!0}),t})(),d2=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>ju)),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ut("aria-expanded",i.dropdown.isOpen())},standalone:!0}),t})(),bm=(()=>{class t extends d2{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>ju)),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&be("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ut("aria-expanded",i.dropdown.isOpen())},standalone:!0,features:[Qr([{provide:d2,useExisting:Mi(()=>t)}]),pi]}),t})(),ju=(()=>{class t{constructor(e,i,r,o,s,a){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._destroyCloseHandlers$=new _r,this._bodyContainer=null,this._open=!1,this.openChange=new it,this.placement=i.placement,this.popperOptions=i.popperOptions,this.container=i.container,this.autoClose=i.autoClose,this._positioning=bO(),this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic"}ngAfterContentInit(){this._ngZone.onStable.pipe(Ks(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),e.dropdownClass){const{currentValue:i,previousValue:r}=e.dropdownClass;this._applyCustomDropdownClass(i,r)}e.autoClose&&this._open&&(this.autoClose=e.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:e=>this.popperOptions(function ZU(t){return n=>(n.modifiers.push(UOe,{name:"offset",options:{offset:()=>t}}),n)}([0,2])(e))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),_O(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==Or.Space&&i!==Or.Enter){if(i!==Or.Tab){if(a||s){if(this.open(),r.length){switch(i){case Or.ArrowDown:o=Math.min(o+1,r.length-1);break;case Or.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case Or.Home:o=0;break;case Or.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(qU);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Ma(e.target,"focusout").pipe(Ks(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Ma(s,"click").pipe(Ks(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;this._menu&&e.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1055"),i.appendChild(o,r),i.appendChild(this._document.body,o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,i){const r="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;r&&(i&&this._renderer.removeClass(r,i),e&&this._renderer.addClass(r,e))}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown");const{nativeElement:s}=i;"static"===this.display?(i.placement=null,r.setAttribute(s,"data-bs-popper","static")):(i.placement=e,r.removeAttribute(s,"data-bs-popper"));const a=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,a);const l=this._bodyContainer;l&&(r.removeClass(l,"dropup"),r.removeClass(l,"dropdown"),r.addClass(l,a))}}}return t.\u0275fac=function(e){return new(e||t)(he(Ns),he(UFe),he(co),he(ir),he(Si),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(yi(r,qf,5),yi(r,d2,5)),2&e){let o;wn(o=Cn())&&(i._menu=o.first),wn(o=Cn())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&jn("show",i.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[ei]}),t})(),az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();class xm{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class zFe{constructor(n,e,i,r,o,s){this._componentType=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,o=this._ngZone.onStable.pipe(Ks(1),et(()=>Qs(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(n=!1){return this._windowRef?Qs(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(xs(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Rn(void 0)}_getContentRef(n,e){if(n){if(n instanceof oo){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new xm([i.rootNodes],i)}return new xm([[this._renderer.createText(`${n}`)]])}return new xm([])}}let GFe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Ks(1)).subscribe(()=>{Qs(this._zone,this._el.nativeElement,(e,i)=>{i&&Mv(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Qs(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(Fd("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),jn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Is],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class lz{update(n){}close(n){}dismiss(n){}}const WFe=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],qFe=["animation","backdropClass"];class YFe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new _r,this._dismissed=new _r,this._hidden=new _r,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}_applyWindowOptions(n,e){WFe.forEach(i=>{pm(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){qFe.forEach(i=>{pm(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(us(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(us(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function TU(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Rn(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),JC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var n_=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(n_||(n_={})),n_))();let XFe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new _r,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new it,this.shown=new _r,this.hidden=new _r}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":fm(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Ks(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=JC(Qs(this._zone,e,()=>e.classList.remove("show"),i),Qs(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};JC(Qs(this._zone,this._elRef.nativeElement,(o,s)=>{s&&Mv(o),o.classList.add("show")},e),Qs(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Ma(e,"keydown").pipe(us(this._closed$),cs(r=>r.which===Or.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(n_.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Ma(this._dialogEl.nativeElement,"mousedown").pipe(us(this._closed$),xs(()=>i=!1),uc(()=>Ma(e,"mouseup").pipe(us(this._closed$),Ks(1))),cs(({target:r})=>e===r)).subscribe(()=>{i=!0}),Ma(e,"click").pipe(us(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(n_.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=YU(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Qs(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(he(co),he(Si),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&jo(OIe,7),2&e){let r;wn(r=Cn())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ut("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Fd("modal d-block"+(i.windowClass?" "+i.windowClass:"")),jn("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Is],ngContentSelectors:Ky,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cf(),b(0,"div",0,1)(2,"div",2),Sf(3),x()()),2&e&&Fd("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),JFe=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(e>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=s),r.overflow=o}}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),KFe=(()=>{class t{constructor(e,i,r,o,s,a,l){this._applicationRef=e,this._injector=i,this._environmentInjector=r,this._document=o,this._scrollBar=s,this._rendererFactory=a,this._ngZone=l,this._activeWindowCmptHasChanged=new _r,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new it,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Ma(n,"focusin").pipe(us(e),vn(o=>o.target));Ma(n,"keydown").pipe(us(e),cs(o=>o.which===Or.Tab),X3(r)).subscribe(([o,s])=>{const[a,l]=YU(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Ma(n,"click").pipe(us(e),X3(r),vn(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){const o=r.container instanceof HTMLElement?r.container:pm(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new lz,l=(e=r.injector||e).get(Lc,null)||this._environmentInjector,c=this._getContentRef(e,l,i,a,r);let u=!1!==r.backdrop?this._attachBackdrop(o):void 0,d=this._attachWindowComponent(o,c.nodes),h=new YFe(d,c,u,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(Ks(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=f=>{h.close(f)},a.dismiss=f=>{h.dismiss(f)},a.update=f=>{h.update(f)},h.update(r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=UA(GFe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=UA(XFe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_getContentRef(e,i,r,o,s){return r?r instanceof oo?this._createFromTemplateRef(r,o):fm(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new xm([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new xm([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new xm([[i]])}_createFromComponent(e,i,r,o,s){const l=UA(r,{environmentInjector:i,elementInjector:la.create({providers:[{provide:lz,useValue:o}],parent:e})}),c=l.location.nativeElement;return s.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new xm([[c]],l.hostView,l)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(vt(Ph),vt(la),vt(Lc),vt(co),vt(JFe),vt(zg),vt(ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),SO=(()=>{class t{constructor(e,i,r){this._injector=e,this._modalStack=i,this._config=r}open(e,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(vt(la),vt(KFe),vt(QFe))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[SO]}),t})(),ZFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const uz=t=>pm(t)&&""!==t;let ePe=0,dz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbNavContent",""]],standalone:!0}),t})(),Wh=(()=>{class t{constructor(e,i){this._nav=e,this.elementRef=i,this.disabled=!1,this.shown=new it,this.hidden=new it}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){pm(this.domId)||(this.domId="ngb-nav-"+ePe++)}get active(){return this._nav.activeId===this.id}get id(){return uz(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(pm(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>Ud)),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&yi(r,dz,4),2&e){let o;wn(o=Cn())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&jn("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0}),t})(),Ud=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new it,this.shown=new it,this.hidden=new it,this.destroy$=new _r,this.navItemChange$=new _r,this.navChange=new it,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case Or.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case Or.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case Or.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case Or.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case Or.Home:s=0;break;case Or.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!pm(this.activeId)){const e=this.items.first?this.items.first.id:null;uz(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(us(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(wf("role"),he(ZFe),he(Ns),he(co))},t.\u0275dir=sn({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(yi(r,Wh,4),yi(r,Yf,5)),2&e){let o;wn(o=Cn())&&(i.items=o),wn(o=Cn())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&be("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ut("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),jn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[ei]}),t})(),Yf=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(wf("role"),he(Wh),he(Ud),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(e,i){2&e&&(Pl("id",i.navItem.domId),ut("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),jn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))},standalone:!0}),t})(),i_=(()=>{class t{constructor(e,i){this.navItem=e,this.nav=i}}return t.\u0275fac=function(e){return new(e||t)(he(Wh),he(Ud))},t.\u0275dir=sn({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostBindings:function(e,i){1&e&&be("click",function(o){return i.nav.click(i.navItem),o.preventDefault()})},standalone:!0,features:[z1([Yf])]}),t})();const iPe=({classList:t})=>(t.remove("show"),()=>t.remove("active")),rPe=(t,n)=>{n&&Mv(t),t.classList.add("show")};let kO=(()=>{class t{constructor(e){this.elRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,i){2&e&&(Pl("id",i.item.panelDomId),ut("role",i.role?i.role:i.nav.roles?"tabpanel":void 0)("aria-labelledby",i.item.domId),jn("fade",i.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0}),t})(),hz=(()=>{class t{constructor(e,i){this._cd=e,this._ngZone=i,this._activePane=null}isPanelTransitioning(e){return this._activePane?.item===e}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(us(this.nav.destroy$),sC(this._activePane?.item||null),XC(),function L3e(t){return n=>n.lift(new $3e(t))}(1)).subscribe(e=>{const i={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Qs(this._ngZone,this._activePane.elRef.nativeElement,iPe,i).subscribe(()=>{const r=this._activePane?.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),Qs(this._ngZone,this._activePane.elRef.nativeElement,rPe,i).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.elRef.nativeElement.classList.add("show"),this._activePane?.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(i=>i.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(he(Ns),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,i){if(1&e&&jo(kO,5),2&e){let r;wn(r=Cn())&&(i._panes=r)}},hostVars:2,hostBindings:function(e,i){2&e&&jn("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},standalone:!0,features:[Is],attrs:IIe,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&Z(0,PIe,1,1,"ng-template",0),2&e&&S("ngForOf",i.nav.items)},dependencies:[kO,Ln,_n,Eu],encapsulation:2,changeDetection:0}),t})(),fz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[hz]}),t})(),oPe=(()=>{class t{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),pz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]],standalone:!0}),t})(),mz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationFirst",""]],standalone:!0}),t})(),gz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationLast",""]],standalone:!0}),t})(),vz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationNext",""]],standalone:!0}),t})(),yz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationNumber",""]],standalone:!0}),t})(),_z=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]],standalone:!0}),t})(),bz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationPages",""]],standalone:!0}),t})(),xz=(()=>{class t{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new it(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),i0&&this.pageCount>this.maxSize){let i=0,r=this.pageCount;[i,r]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(i,r),this._applyEllipses(i,r)}}}return t.\u0275fac=function(e){return new(e||t)(he(oPe))},t.\u0275cmp=$t({type:t,selectors:[["ngb-pagination"]],contentQueries:function(e,i,r){if(1&e&&(yi(r,pz,5),yi(r,mz,5),yi(r,gz,5),yi(r,vz,5),yi(r,yz,5),yi(r,_z,5),yi(r,bz,5)),2&e){let o;wn(o=Cn())&&(i.tplEllipsis=o.first),wn(o=Cn())&&(i.tplFirst=o.first),wn(o=Cn())&&(i.tplLast=o.first),wn(o=Cn())&&(i.tplNext=o.first),wn(o=Cn())&&(i.tplNumber=o.first),wn(o=Cn())&&(i.tplPrevious=o.first),wn(o=Cn())&&(i.tplPages=o.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},standalone:!0,features:[ei,Is],decls:20,vars:12,consts:function(){let n,e,i,r,o,s,a,l;return n=$localize`:@@ngb.pagination.first:««`,e=$localize`:@@ngb.pagination.previous:«`,i=$localize`:@@ngb.pagination.next:»`,r=$localize`:@@ngb.pagination.last:»»`,o=$localize`:@@ngb.pagination.first-aria:First`,s=$localize`:@@ngb.pagination.previous-aria:Previous`,a=$localize`:@@ngb.pagination.next-aria:Next`,l=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],n,e,i,r,["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"],["aria-label",l,"href","",1,"page-link",3,"click"]]},template:function(e,i){if(1&e&&(Z(0,jIe,2,0,"ng-template",null,0,Uo),Z(2,RIe,2,0,"ng-template",null,1,Uo),Z(4,LIe,2,0,"ng-template",null,2,Uo),Z(6,$Ie,2,0,"ng-template",null,3,Uo),Z(8,BIe,1,0,"ng-template",null,4,Uo),Z(10,VIe,1,1,"ng-template",null,5,Uo),Z(12,XIe,1,1,"ng-template",null,6,Uo),b(14,"ul"),Z(15,KIe,3,9,"li",7),Z(16,eNe,3,8,"li",7),Z(17,tNe,0,0,"ng-template",8),Z(18,iNe,3,9,"li",7),Z(19,oNe,3,9,"li",7),x()),2&e){const r=qs(13);C(14),Fd("pagination"+(i.size?" pagination-"+i.size:"")),C(1),S("ngIf",i.boundaryLinks),C(1),S("ngIf",i.directionLinks),C(1),S("ngTemplateOutlet",(null==i.tplPages?null:i.tplPages.templateRef)||r)("ngTemplateOutletContext",ey(8,sNe,i.page,i.pages,i.disabled)),C(1),S("ngIf",i.directionLinks),C(1),S("ngIf",i.boundaryLinks)}},dependencies:[_n,Ln,Eu],encapsulation:2,changeDetection:0}),t})(),wz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[xz]}),t})();class sPe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const aPe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Cz=t=>t>0?J3(t):n=>n;let Sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})(),hPe=(()=>{class t{constructor(){this.max=100,this.animated=!1,this.ariaLabel="progress bar",this.striped=!1,this.showValue=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fPe=(()=>{class t{constructor(e){this.value=0,this.max=e.max,this.animated=e.animated,this.ariaLabel=e.ariaLabel,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}set max(e){this._max=!ds(e)||e<=0?100:e}get max(){return this._max}getValue(){return t2(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}}return t.\u0275fac=function(e){return new(e||t)(he(hPe))},t.\u0275cmp=$t({type:t,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:5,hostBindings:function(e,i){2&e&&(ut("aria-valuenow",i.getValue())("aria-valuemax",i.max)("aria-label",i.ariaLabel),tr("height",i.height))},inputs:{max:"max",animated:"animated",ariaLabel:"ariaLabel",striped:"striped",showValue:"showValue",textType:"textType",type:"type",value:"value",height:"height"},standalone:!0,features:[Is],ngContentSelectors:Ky,decls:3,vars:11,consts:function(){let n;return n=$localize`:@@ngb.progressbar.value:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[4,"ngIf"],n]},template:function(e,i){1&e&&(Cf(),b(0,"div"),Z(1,cNe,3,3,"span",0),Sf(2),x()),2&e&&(function B6(t,n,e,i,r){ku(nc,Pd,Kg(zt(),t,n,e,i,r),!0)}("progress-bar",i.type?i.textType?" bg-"+i.type:" text-bg-"+i.type:"","",i.textType?" text-"+i.textType:"",""),tr("width",i.getPercentValue(),"%"),jn("progress-bar-animated",i.animated)("progress-bar-striped",i.striped),C(1),S("ngIf",i.showValue))},dependencies:[_n,d7],encapsulation:2,changeDetection:0}),t})(),kz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[fPe]}),t})(),pPe=(()=>{class t{constructor(){this.max=10,this.readonly=!1,this.resettable=!1,this.tabindex=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mPe=(()=>{class t{constructor(e,i){this._changeDetectorRef=i,this.contexts=[],this.disabled=!1,this.hover=new it,this.leave=new it,this.rateChange=new it(!0),this.onChange=r=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly,this.tabindex=e.tabindex}ariaValueText(e,i){return`${e} out of ${i}`}isInteractive(){return!this.readonly&&!this.disabled}enter(e){this.isInteractive()&&this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.isInteractive()&&this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case Or.ArrowDown:case Or.ArrowLeft:this.update(this.rate-1);break;case Or.ArrowUp:case Or.ArrowRight:this.update(this.rate+1);break;case Or.Home:this.update(0);break;case Or.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate),e.max&&this._updateMax()}ngOnInit(){this._setupContexts(),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,i=!0){const r=t2(e,this.max,0);this.isInteractive()&&this.rate!==r&&(this.rate=r,this.rateChange.emit(this.rate)),i&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}_updateState(e){this.nextRate=e,this.contexts.forEach((i,r)=>i.fill=Math.round(100*t2(e-r,1,0)))}_updateMax(){this.max>0&&(this._setupContexts(),this.update(this.rate))}_setupContexts(){this.contexts=Array.from({length:this.max},(e,i)=>({fill:0,index:i}))}}return t.\u0275fac=function(e){return new(e||t)(he(pPe),he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["ngb-rating"]],contentQueries:function(e,i,r){if(1&e&&yi(r,oo,5),2&e){let o;wn(o=Cn())&&(i.starTemplateFromContent=o.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(e,i){1&e&&be("blur",function(){return i.handleBlur()})("keydown",function(o){return i.handleKeyDown(o)})("mouseleave",function(){return i.reset()}),2&e&&(Pl("tabindex",i.disabled?-1:i.tabindex),ut("aria-valuemax",i.max)("aria-valuenow",i.nextRate)("aria-valuetext",i.ariaValueText(i.nextRate,i.max))("aria-disabled",!!i.readonly||null))},inputs:{max:"max",rate:"rate",readonly:"readonly",resettable:"resettable",starTemplate:"starTemplate",tabindex:"tabindex",ariaValueText:"ariaValueText"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},standalone:!0,features:[Qr([{provide:$l,useExisting:Mi(()=>t),multi:!0}]),ei,Is],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"visually-hidden"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(Z(0,uNe,1,1,"ng-template",null,0,Uo),Z(2,hNe,4,5,"ng-template",1)),2&e&&(C(2),S("ngForOf",i.contexts))},dependencies:[Ln,Eu],encapsulation:2,changeDetection:0}),t})(),Dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[mPe]}),t})();class Tz{constructor(n,e,i){this.hour=Oa(n),this.minute=Oa(e),this.second=Oa(i)}changeHour(n=1){this.updateHour((isNaN(this.hour)?0:this.hour)+n)}updateHour(n){this.hour=ds(n)?(n<0?24+n:n)%24:NaN}changeMinute(n=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+n)}updateMinute(n){ds(n)?(this.minute=n%60<0?60+n%60:n%60,this.changeHour(Math.floor(n/60))):this.minute=NaN}changeSecond(n=1){this.updateSecond((isNaN(this.second)?0:this.second)+n)}updateSecond(n){ds(n)?(this.second=n<0?60+n%60:n%60,this.changeMinute(Math.floor(n/60))):this.second=NaN}isValid(n=!0){return ds(this.hour)&&ds(this.minute)&&(!n||ds(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let gPe=(()=>{class t{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function vPe(){return new yPe}()},providedIn:"root"}),t})(),yPe=(()=>{class t extends Ez{fromModel(e){return e&&Qo(e.hour)&&Qo(e.minute)?{hour:e.hour,minute:e.minute,second:Qo(e.second)?e.second:null}:null}toModel(e){return e&&Qo(e.hour)&&Qo(e.minute)?{hour:e.hour,minute:e.minute,second:Qo(e.second)?e.second:null}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),Az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function _Pe(t){return new bPe(t)}(vt(ac)),i},providedIn:"root"}),t})(),bPe=(()=>{class t extends Az{constructor(e){super(),this._periods=GB(e,Ro.Standalone,Vi.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return t.\u0275fac=function(e){return new(e||t)(vt(ac))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const xPe=/[^0-9]/g;let wPe=(()=>{class t{constructor(e,i,r,o){this._config=e,this._ngbTimeAdapter=i,this._cd=r,this.i18n=o,this.onChange=s=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=Qo(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=Qo(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=Qo(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const i=this._ngbTimeAdapter.fromModel(e);this.model=i?new Tz(i.hour,i.minute,i.second):new Tz,!this.seconds&&(!i||!ds(i.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model?.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model?.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model?.changeSecond(e),this.propagateModelChange()}updateHour(e){const i=!!this.model&&this.model.hour>=12,r=Oa(e);this.model?.updateHour(this.meridian&&(i&&r<12||!i&&12===r)?r+12:r),this.propagateModelChange()}updateMinute(e){this.model?.updateMinute(Oa(e)),this.propagateModelChange()}updateSecond(e){this.model?.updateSecond(Oa(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(xPe,"")}formatHour(e){return ds(e)?Av(this.meridian?e%12==0?12:e%12:e%24):Av(NaN)}formatMinSec(e){return Av(ds(e)?e:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!ds(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model?.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return t.\u0275fac=function(e){return new(e||t)(he(gPe),he(Ez),he(Ns),he(Az))},t.\u0275cmp=$t({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},exportAs:["ngbTimepicker"],standalone:!0,features:[Qr([{provide:$l,useExisting:Mi(()=>t),multi:!0}]),ei,Is],decls:16,vars:25,consts:function(){let n,e,i,r,o,s,a,l,c,u,d,h,f,p;return n=$localize`:@@ngb.timepicker.HH:HH`,e=$localize`:@@ngb.timepicker.hours:Hours`,i=$localize`:@@ngb.timepicker.MM:MM`,r=$localize`:@@ngb.timepicker.minutes:Minutes`,o=$localize`:@@ngb.timepicker.increment-hours:Increment hours`,s=$localize`:@@ngb.timepicker.decrement-hours:Decrement hours`,a=$localize`:@@ngb.timepicker.increment-minutes:Increment minutes`,l=$localize`:@@ngb.timepicker.decrement-minutes:Decrement minutes`,c=$localize`:@@ngb.timepicker.SS:SS`,u=$localize`:@@ngb.timepicker.seconds:Seconds`,d=$localize`:@@ngb.timepicker.increment-seconds:Increment seconds`,h=$localize`:@@ngb.timepicker.decrement-seconds:Decrement seconds`,f=$localize`:@@ngb.timepicker.PM:${"\ufffd0\ufffd"}:INTERPOLATION:`,p=$localize`:@@ngb.timepicker.AM:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",e,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",i,"aria-label",r,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"visually-hidden"],o,[1,"chevron","ngb-tp-chevron","bottom"],s,a,l,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",c,"aria-label",u,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],d,h,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],f,p]},template:function(e,i){1&e&&(b(0,"fieldset",0)(1,"div",1)(2,"div",2),Z(3,fNe,4,7,"button",3),b(4,"input",4),be("change",function(o){return i.updateHour(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeHour(i.hourStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeHour(-i.hourStep),o.preventDefault()}),x(),Z(5,pNe,4,7,"button",3),x(),b(6,"div",5),N(7,":"),x(),b(8,"div",6),Z(9,mNe,4,7,"button",3),b(10,"input",7),be("change",function(o){return i.updateMinute(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeMinute(i.minuteStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeMinute(-i.minuteStep),o.preventDefault()}),x(),Z(11,gNe,4,7,"button",3),x(),Z(12,vNe,2,0,"div",8),Z(13,bNe,4,9,"div",9),Z(14,xNe,1,0,"div",8),Z(15,SNe,5,9,"div",10),x()()),2&e&&(jn("disabled",i.disabled),S("disabled",i.disabled),C(3),S("ngIf",i.spinners),C(1),jn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatHour(null==i.model?null:i.model.hour))("readOnly",i.readonlyInputs)("disabled",i.disabled),C(1),S("ngIf",i.spinners),C(4),S("ngIf",i.spinners),C(1),jn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatMinSec(null==i.model?null:i.model.minute))("readOnly",i.readonlyInputs)("disabled",i.disabled),C(1),S("ngIf",i.spinners),C(1),S("ngIf",i.seconds),C(1),S("ngIf",i.seconds),C(1),S("ngIf",i.meridian),C(1),S("ngIf",i.meridian))},dependencies:[_n],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}\n'],encapsulation:2}),t})(),Mz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[wPe]}),t})();const CPe=(t,n)=>{const{classList:e}=t;if(n)return e.add("fade"),Mv(t),e.add("show","showing"),()=>{e.remove("showing")};e.add("show")},SPe=({classList:t})=>(t.add("showing"),()=>{t.remove("show","showing")});let kPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),DPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["","ngbToastHeader",""]],standalone:!0}),t})(),TPe=(()=>{class t{constructor(e,i,r,o){this.ariaLive=e,this._zone=r,this._element=o,this.contentHeaderTpl=null,this.shown=new it,this.hidden=new it,null==this.ariaLive&&(this.ariaLive=i.ariaLive),this.delay=i.delay,this.autohide=i.autohide,this.animation=i.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(Ks(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const e=Qs(this._zone,this._element.nativeElement,SPe,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){const e=Qs(this._zone,this._element.nativeElement,CPe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}return t.\u0275fac=function(e){return new(e||t)(wf("aria-live"),he(kPe),he(ir),he(Si))},t.\u0275cmp=$t({type:t,selectors:[["ngb-toast"]],contentQueries:function(e,i,r){if(1&e&&yi(r,DPe,7,oo),2&e){let o;wn(o=Cn())&&(i.contentHeaderTpl=o.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(e,i){2&e&&(ut("aria-live",i.ariaLive),jn("fade",i.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[ei,Is],ngContentSelectors:Ky,decls:5,vars:1,consts:function(){let n;return n=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Cf(),Z(0,kNe,2,1,"ng-template",null,0,Uo),Z(2,TNe,3,1,"ng-template",1),b(3,"div",2),Sf(4),x()),2&e&&(C(2),S("ngIf",i.contentHeaderTpl||i.header))},dependencies:[_n,Eu],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2}),t})(),Oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[TPe]}),t})(),EPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),APe=0,MPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(e,i){2&e&&(Pl("id",i.id),Fd("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),jn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[Is],ngContentSelectors:Ky,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Cf(),ge(0,"div",0),b(1,"div",1),Sf(2),x())},encapsulation:2,changeDetection:0}),t})(),OPe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u){this._elementRef=e,this._renderer=i,this._ngZone=a,this._document=l,this._changeDetector=c,this.shown=new it,this.hidden=new it,this._ngbTooltipWindowId="ngb-tooltip-"+APe++,this._windowRef=null,this.animation=s.animation,this.autoClose=s.autoClose,this.placement=s.placement,this.popperOptions=s.popperOptions,this.triggers=s.triggers,this.container=s.container,this.disableTooltip=s.disableTooltip,this.tooltipClass=s.tooltipClass,this.openDelay=s.openDelay,this.closeDelay=s.closeDelay,this._popupService=new zFe(MPe,r,o,i,this._ngZone,u),this._positioning=bO()}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:o=>this.popperOptions(o)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),_O(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(e=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(e).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function dPe(t,n,e,i,r,o,s=0,a=0){const l=function lPe(t,n=aPe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new sPe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function cPe(t,n,e,i){return new en(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function uPe(t,n,e){return i=>{let r=null;const o=i.pipe(vn(l=>({open:l})),cs(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),Ge());return Dt(o.pipe(cs(l=>l.open),Cz(t)),o.pipe(cs(l=>!l.open),Cz(n))).pipe(cs(l=>l===r&&(r=null,l.open!==e())),vn(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(fm(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa),he(la),he(jl),he(EPe),he(ir),he(co),he(Ns),he(Ph))},t.\u0275dir=sn({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[ei]}),t})(),Iz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})(),IPe=(()=>{class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const i=DU(this.result),r=Array.isArray(this.term)?this.term:[this.term],o=c=>this.accentSensitive?c:AU(c),s=r.map(c=>function NNe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(o(DU(c)))).filter(c=>c),a=this.accentSensitive?i:AU(i),l=s.length?a.split(new RegExp(`(${s.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=l;else{let c=0;this.parts=l.map(u=>i.substring(c,c+=u.length))}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[ei,Is],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,i){1&e&&Z(0,MNe,3,2,"ng-template",0),2&e&&S("ngForOf",i.parts)},dependencies:[_n,Ln],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0}),t})();new Vn("live announcer delay",{providedIn:"root",factory:function NPe(){return 100}});let Nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[IPe]}),t})(),Fz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();const FPe=[LU,$U,VU,HU,sz,az,cz,fz,Fz,wz,Sz,kz,Dz,Mz,Oz,Iz,Nz];let PPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[FPe,LU,$U,VU,HU,sz,az,cz,fz,Fz,wz,Sz,kz,Dz,Mz,Oz,Iz,Nz]}),t})(),Pz=(()=>{class t{restrictedPages=new Map([["users",ii.USER_ROLE_ADMIN],["config",ii.USER_ROLE_DEVELOPER],["modules",ii.USER_ROLE_DEVELOPER],["apiexplorer",ii.USER_ROLE_DEVELOPER]]);static \u0275fac=function(i){return new(i||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jPe(t,n){if(1&t&&(oc(0,5),b(1,"a",27),ge(2,"img",28),b(3,"span",12),N(4),x()(),sc()),2&t){const e=B().$implicit;S("ngbNavItem",e.navItem),C(1),S("routerLink",e.routerLink),C(1),Jp("src","/static/svg/",e.icon,".svg",L1),C(2),kt(e.label)}}function RPe(t,n){1&t&&ge(0,"hr")}function LPe(t,n){if(1&t&&(Z(0,jPe,5,4,"ng-container",26),Z(1,RPe,1,0,"hr",25)),2&t){const e=n.$implicit;S("ngIf",B().getSessionRole()<=e.minRole),C(1),S("ngIf",e.separator)}}function $Pe(t,n){if(1&t&&(b(0,"div",29)(1,"h2",30),ge(2,"img",31),N(3,"An error has occurred!"),x(),b(4,"h6",32),N(5),x(),b(6,"p"),N(7,"Please refresh the page to try again."),x()()),2&t){const e=B();C(5),kt(e.error)}}function BPe(t,n){1&t&&(b(0,"div",33),ge(1,"img",34),x())}function VPe(t,n){1&t&&ge(0,"router-outlet")}const HPe=function(){return["/"]},UPe=function(){return["/login"]};let zPe=(()=>{class t{route;router;segment;consoleService;authService;routerSub;segmentRouterSub;loading=!0;error="";routes=[{navItem:"status",routerLink:["/status"],label:"Status",minRole:ii.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:ii.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:ii.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:ii.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:ii.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:ii.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:ii.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:ii.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:ii.USER_ROLE_READONLY,icon:"chat"},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:ii.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:ii.USER_ROLE_DEVELOPER,icon:"api-explorer"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.segment=r,this.consoleService=o,this.authService=s,this.loading=!1,this.routerSub=this.router.events.pipe(function h3e(t){let n=arguments.length,e=YC;_a(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new f3e(t,i,r,e))}}(2e3)).subscribe(a=>{if(0===a.length)return;const l=a[a.length-1];l instanceof mC&&(this.loading=!0),l instanceof Uh&&(this.loading=!1),l instanceof Sy&&(this.loading=!1),l instanceof vC&&(this.loading=!1,this.error=l.error)}),this.segmentRouterSub=i.events.pipe(XC((a,l)=>!(l instanceof Uh)||a.url===l.url)).subscribe(a=>{})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(UC),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:40,vars:11,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","https://cloud.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/docs","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(i,r){1&i&&(b(0,"div",0)(1,"div",1)(2,"nav",2,3),be("navChange",function(s){return r.onSidebarNavChange(s)}),b(4,"div",4),oc(5,5),b(6,"a",6),ge(7,"img",7)(8,"img",8),x(),sc(),ge(9,"hr"),Z(10,LPe,2,2,"ng-template",9),ge(11,"hr"),b(12,"a",10),ge(13,"img",11),b(14,"span",12),N(15,"Heroic Cloud"),x()(),b(16,"a",13),ge(17,"img",14),b(18,"span",12),N(19,"Documentation"),x()(),b(20,"a",15),ge(21,"img",16),b(22,"span",12),N(23,"Forum"),x()(),b(24,"a",17),ge(25,"img",18),b(26,"span",12),N(27,"Heroic Labs Blog"),x()(),ge(28,"hr"),b(29,"div",19),N(30),x(),oc(31,5),b(32,"a",20),be("click",function(){return r.logout()}),ge(33,"img",21),b(34,"span",12),N(35,"Logout"),x()(),sc(),x()(),b(36,"main",22),Z(37,$Pe,8,1,"div",23),Z(38,BPe,2,0,"div",24),Z(39,VPe,1,0,"router-outlet",25),x()()()),2&i&&(C(5),S("ngbNavItem","logo"),C(1),S("routerLink",pl(9,HPe)),C(4),S("ngForOf",r.routes),C(20),yn("Logged in as: ",r.getUsername(),""),C(1),S("ngbNavItem","logout"),C(1),S("routerLink",pl(10,UPe)),C(5),S("ngIf",r.error),C(1),S("ngIf",!r.error&&r.loading),C(1),S("ngIf",!r.error&&!r.loading))},dependencies:[am,Mu,Iy,Ln,_n,Ud,Wh,i_,Yf],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})}return t})(),GPe=(()=>{class t{authService;router;globals;constructor(e,i,r){this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||la.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class JPe extends XPe{}"function"==typeof SuppressedError&&SuppressedError;class xje{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new wje(n,this.dueTime,this.scheduler))}}class wje extends F{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Cje,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function Cje(t){t.debouncedNext()}function Sje(){}function OO(t){return null==t?Sje:function(){return this.querySelector(t)}}function Dje(){return[]}function $z(t){return null==t?Dje:function(){return this.querySelectorAll(t)}}function Bz(t){return function(){return this.matches(t)}}function Vz(t){return new Array(t.length)}function h2(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}h2.prototype={constructor:h2,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Hz="$";function Oje(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var IO="http://www.w3.org/1999/xhtml";const Uz={svg:"http://www.w3.org/2000/svg",xhtml:IO,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function f2(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Uz.hasOwnProperty(n)?{space:Uz[n],local:t}:t}function Wje(t){return function(){this.removeAttribute(t)}}function qje(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yje(t,n){return function(){this.setAttribute(t,n)}}function Xje(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Jje(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Kje(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function zz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Zje(t){return function(){this.style.removeProperty(t)}}function e4e(t,n,e){return function(){this.style.setProperty(t,n,e)}}function t4e(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function Fv(t,n){return t.style.getPropertyValue(n)||zz(t).getComputedStyle(t,null).getPropertyValue(n)}function i4e(t){return function(){delete this[t]}}function r4e(t,n){return function(){this[t]=n}}function o4e(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Gz(t){return t.trim().split(/^|\s+/)}function NO(t){return t.classList||new Wz(t)}function Wz(t){this._node=t,this._names=Gz(t.getAttribute("class")||"")}function qz(t,n){for(var e=NO(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Jz={},Rr=null;function P4e(t,n,e){return t=Kz(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function Kz(t,n,e){return function(i){var r=Rr;Rr=i;try{t.call(this,this.__data__,n,e)}finally{Rr=r}}}function R4e(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=_&&(_=y+1);!(k=g[_])&&++_=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function Lje(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=$je);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?Zje:"function"==typeof n?t4e:e4e)(t,n,e??"")):Fv(this.node(),t)},property:function s4e(t,n){return arguments.length>1?this.each((null==n?i4e:"function"==typeof n?o4e:r4e)(t,n)):this.node()[t]},classed:function u4e(t,n){var e=Gz(t+"");if(arguments.length<2){for(var i=NO(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?L4e:R4e,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?g2(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?g2(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=J4e.exec(t))?new gc(n[1],n[2],n[3],1):(n=K4e.exec(t))?new gc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Q4e.exec(t))?g2(n[1],n[2],n[3],n[4]):(n=Z4e.exec(t))?g2(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=eRe.exec(t))?dG(n[1],n[2]/100,n[3]/100,1):(n=tRe.exec(t))?dG(n[1],n[2]/100,n[3]/100,n[4]):oG.hasOwnProperty(t)?lG(oG[t]):"transparent"===t?new gc(NaN,NaN,NaN,0):null}function lG(t){return new gc(t>>16&255,t>>8&255,255&t,1)}function g2(t,n,e,i){return i<=0&&(t=n=e=NaN),new gc(t,n,e,i)}function c_(t,n,e,i){return 1===arguments.length?function iRe(t){return t instanceof s_||(t=wm(t)),t?new gc((t=t.rgb()).r,t.g,t.b,t.opacity):new gc}(t):new gc(t,n,e,i??1)}function gc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function cG(){return"#"+jO(this.r)+jO(this.g)+jO(this.b)}function uG(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function jO(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function dG(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Gd(t,n,e,i)}function hG(t){if(t instanceof Gd)return new Gd(t.h,t.s,t.l,t.opacity);if(t instanceof s_||(t=wm(t)),!t)return new Gd;if(t instanceof Gd)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Gd(s,a,l,t.opacity)}function Gd(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function RO(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function fG(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function LO(t){return function(){return t}}function mG(t,n){var e=n-t;return e?function pG(t,n){return function(e){return t+e*n}}(t,e):LO(isNaN(t)?n:t)}PO(s_,wm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:sG,formatHex:sG,formatHsl:function nRe(){return hG(this).formatHsl()},formatRgb:aG,toString:aG}),PO(gc,c_,rG(s_,{brighter:function(t){return t=null==t?m2:Math.pow(m2,t),new gc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new gc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cG,formatHex:cG,formatRgb:uG,toString:uG})),PO(Gd,function rRe(t,n,e,i){return 1===arguments.length?hG(t):new Gd(t,n,e,i??1)},rG(s_,{brighter:function(t){return t=null==t?m2:Math.pow(m2,t),new Gd(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Gd(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new gc(RO(t>=240?t-240:t+120,r,i),RO(t,r,i),RO(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const v2=function t(n){var e=function lRe(t){return 1==(t=+t)?mG:function(n,e){return e-n?function aRe(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):LO(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=c_(r)).r,(o=c_(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=mG(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function gG(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return fG((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Ru(i,r)})),e=BO.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--jv}()}finally{jv=0,function bRe(){for(var t,e,n=y2,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:y2=e);h_=t,VO(i)}(),Sm=0}}function _Re(){var t=f_.now(),n=t-_2;n>xG&&(b2-=n,_2=t)}function VO(t){jv||(u_&&(u_=clearTimeout(u_)),t-Sm>24?(t<1/0&&(u_=setTimeout(SG,t-f_.now()-b2)),d_&&(d_=clearInterval(d_))):(d_||(_2=f_.now(),d_=setInterval(_Re,xG)),jv=1,wG(SG)))}function kG(t,n,e){var i=new w2;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}w2.prototype=CG.prototype={constructor:w2,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?x2():+e)+(null==n?0:+n),!this._next&&h_!==this&&(h_?h_._next=this:y2=this,h_=this),this._call=t,this._time=e,VO()},stop:function(){this._call&&(this._call=null,this._time=1/0,VO())}};var xRe=iG("start","end","cancel","interrupt"),wRe=[],DG=0,TG=1,HO=2,C2=3,EG=4,UO=5,S2=6;function k2(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function CRe(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==TG)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===C2)return kG(s);f.state===EG?(f.state=S2,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uDG)throw new Error("too late; already scheduled");return e}function qh(t,n){var e=Lu(t,n);if(e.state>C2)throw new Error("too late; already running");return e}function Lu(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function GO(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>HO&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Ru(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Ru(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Ru(c,d)},{i:m-2,x:Ru(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?zO:qh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function LRe(t,n){var e=f2(t),i="transform"===e?ERe:NG;return this.attrTween(t,"function"==typeof n?(e.local?RRe:jRe)(e,i,YO(this,"attr."+t,n)):null==n?(e.local?NRe:IRe)(e):(e.local?PRe:FRe)(e,i,n))},attrTween:function URe(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=f2(t);return this.tween(e,(i.local?VRe:HRe)(i,n))},style:function fLe(t,n,e){var i="transform"==(t+="")?TRe:NG;return null==n?this.styleTween(t,function cLe(t,n){var e,i,r;return function(){var o=Fv(this,t),s=(this.style.removeProperty(t),Fv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,FG(t)):"function"==typeof n?this.styleTween(t,function dLe(t,n,e){var i,r,o;return function(){var s=Fv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=Fv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,YO(this,"style."+t,n))).each(function hLe(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=qh(this,t),c=l.on,u=null==l.value[o]?a||(a=FG(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function uLe(t,n,e){var i,o,r=e+"";return function(){var s=Fv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function gLe(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function mLe(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function pLe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function _Le(t){return this.tween("text","function"==typeof t?function yLe(t){return function(){var n=t(this);this.textContent=n??""}}(YO(this,"text",t)):function vLe(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function wLe(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function xLe(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function bLe(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function rLe(){return this.on("end.remove",function iLe(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function ORe(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Lu(this.node(),e).tween,r=0,o=i.length;r0&&(R=U-O),w<0?le=E-I:w>0&&(X=te-I),y=QO,$.attr("cursor",Xh.selection),Me());break;default:return}KO()},!0).on("keyup.brush",function gt(){switch(Rr.keyCode){case 16:V&&(re=de=V=!1,Me());break;case 18:y===$v&&(_<0?W=J:_>0&&(R=U),w<0?le=E:w>0&&(X=te),y=Lv,Me());break;case 32:y===QO&&(Rr.altKey?(_&&(W=J-O*_,R=U+O*_),w&&(le=E-I*w,X=te+I*w),y=$v):(_<0?W=J:_>0&&(R=U),w<0?le=E:w>0&&(X=te),y=Lv),$.attr("cursor",Xh[v]),Me());break;default:return}KO()},!0),function q4e(t){var n=t.document.documentElement,e=ua(t).on("dragstart.drag",FO,!0);"onselectstart"in n?e.on("selectstart.drag",FO,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Rr.view)}jG(),GO(g),c.call(g),Le.start()}function ie(){var Tt=Oe(g);V&&!re&&!de&&(Math.abs(Tt[0]-Xe[0])>Math.abs(Tt[1]-Xe[1])?de=!0:re=!0),Xe=Tt,q=!0,KO(),Me()}function Me(){var Tt;switch(O=Xe[0]-ye[0],I=Xe[1]-ye[1],y){case QO:case RG:_&&(O=Math.max(z-R,Math.min(P-W,O)),U=R+O,J=W+O),w&&(I=Math.max(G-X,Math.min(H-le,I)),te=X+I,E=le+I);break;case Lv:_<0?(O=Math.max(z-R,Math.min(P-R,O)),U=R+O,J=W):_>0&&(O=Math.max(z-W,Math.min(P-W,O)),U=R,J=W+O),w<0?(I=Math.max(G-X,Math.min(H-X,I)),te=X+I,E=le):w>0&&(I=Math.max(G-le,Math.min(H-le,I)),te=X,E=le+I);break;case $v:_&&(U=Math.max(z,Math.min(P,R-O*_)),J=Math.max(z,Math.min(P,W+O*_))),w&&(te=Math.max(G,Math.min(H,X-I*w)),E=Math.max(G,Math.min(H,le+I*w)))}Jn?1:t>=n?0:NaN}function iI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function VLe(t){return(n,e)=>nI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var rI=Math.sqrt(50),oI=Math.sqrt(10),sI=Math.sqrt(2);function VG(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=rI?10:o>=oI?5:o>=sI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=rI?10:o>=oI?5:o>=sI?2:1)}function aI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=rI?r*=10:o>=oI?r*=5:o>=sI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return uI.setTime(+o),dI.setTime(+s),t(uI),t(dI),Math.floor(e(uI,dI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var A2=da(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});A2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?da(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):A2:null};const ULe=A2;var UG=da(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Jh)},function(t,n){return(n-t)/Jh},function(t){return t.getUTCSeconds()});const g_=UG;var zG=da(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jh)},function(t,n){t.setTime(+t+n*Wc)},function(t,n){return(n-t)/Wc},function(t){return t.getMinutes()});const GG=zG;var WG=da(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jh-t.getMinutes()*Wc)},function(t,n){t.setTime(+t+n*Kh)},function(t,n){return(n-t)/Kh},function(t){return t.getHours()});const qG=WG;var YG=da(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Wc)/km,t=>t.getDate()-1);const XG=YG;function Dm(t){return da(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Wc)/lI})}var hI=Dm(0),JG=(Dm(1),Dm(2),Dm(3),Dm(4),Dm(5),Dm(6),da(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const KG=JG;var fI=da(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});fI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?da(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const QG=fI;var ZG=da(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Wc)},function(t,n){return(n-t)/Wc},function(t){return t.getUTCMinutes()});const JLe=ZG;var eW=da(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*Kh)},function(t,n){return(n-t)/Kh},function(t){return t.getUTCHours()});const KLe=eW;var tW=da(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/km},function(t){return t.getUTCDate()-1});const QLe=tW;function Tm(t){return da(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/lI})}var nW=Tm(0),iW=(Tm(1),Tm(2),Tm(3),Tm(4),Tm(5),Tm(6),da(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const o5e=iW;var pI=da(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});pI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?da(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const s5e=pI;function rW(t,n,e,i,r,o){const s=[[g_,1,Jh],[g_,5,5*Jh],[g_,15,15*Jh],[g_,30,30*Jh],[o,1,Wc],[o,5,5*Wc],[o,15,15*Wc],[o,30,30*Wc],[r,1,Kh],[r,3,3*Kh],[r,6,6*Kh],[r,12,12*Kh],[i,1,km],[i,2,2*km],[e,1,lI],[n,1,HG],[n,3,3*HG],[t,1,cI]];function l(c,u,d){const h=Math.abs(u-c)/d,f=iI(([,,g])=>g).right(s,h);if(f===s.length)return t.every(aI(c/cI,u/cI,d));if(0===f)return ULe.every(Math.max(aI(c,u,d),1));const[p,m]=s[h/s[f-1][2]0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return mI.setTime(+o),gI.setTime(+s),t(mI),t(gI),Math.floor(e(mI,gI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var oW=6e4,aW=6048e5;function Em(t){return Qh(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/aW})}var lW=Em(0),M2=Em(1),Bv=(Em(2),Em(3),Em(4)),cW=(Em(5),Em(6),Qh(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const uW=cW;function Am(t){return Qh(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*oW)/aW})}var dW=Am(0),O2=Am(1),Vv=(Am(2),Am(3),Am(4)),hW=(Am(5),Am(6),Qh(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*oW)/864e5},function(t){return t.getDate()-1}));const fW=hW;var vI=Qh(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});vI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qh(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const v_=vI;var yI=Qh(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});yI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qh(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const y_=yI;function _I(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function bI(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function __(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Hv,EW,pW={"-":"",_:" ",0:"0"},ha=/^\s*\d+/,y5e=/^%/,_5e=/[\\^$*+?|[\]().{}]/g;function Br(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function D5e(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function T5e(t,n,e){var i=ha.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function E5e(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function vW(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function A5e(t,n,e){var i=ha.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function yW(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function M5e(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function O5e(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function I5e(t,n,e){var i=ha.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function N5e(t,n,e){var i=ha.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function F5e(t,n,e){var i=y5e.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function P5e(t,n,e){var i=ha.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function j5e(t,n,e){var i=ha.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function _W(t,n){return Br(t.getDate(),n,2)}function R5e(t,n){return Br(t.getHours(),n,2)}function L5e(t,n){return Br(t.getHours()%12||12,n,2)}function $5e(t,n){return Br(1+fW.count(v_(t),t),n,3)}function bW(t,n){return Br(t.getMilliseconds(),n,3)}function B5e(t,n){return bW(t,n)+"000"}function V5e(t,n){return Br(t.getMonth()+1,n,2)}function H5e(t,n){return Br(t.getMinutes(),n,2)}function U5e(t,n){return Br(t.getSeconds(),n,2)}function z5e(t){var n=t.getDay();return 0===n?7:n}function G5e(t,n){return Br(dW.count(v_(t)-1,t),n,2)}function xW(t){var n=t.getDay();return n>=4||0===n?Vv(t):Vv.ceil(t)}function W5e(t,n){return t=xW(t),Br(Vv.count(v_(t),t)+(4===v_(t).getDay()),n,2)}function q5e(t){return t.getDay()}function Y5e(t,n){return Br(O2.count(v_(t)-1,t),n,2)}function X5e(t,n){return Br(t.getFullYear()%100,n,2)}function J5e(t,n){return Br((t=xW(t)).getFullYear()%100,n,2)}function K5e(t,n){return Br(t.getFullYear()%1e4,n,4)}function Q5e(t,n){var e=t.getDay();return Br((t=e>=4||0===e?Vv(t):Vv.ceil(t)).getFullYear()%1e4,n,4)}function Z5e(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Br(n/60|0,"0",2)+Br(n%60,"0",2)}function wW(t,n){return Br(t.getUTCDate(),n,2)}function e8e(t,n){return Br(t.getUTCHours(),n,2)}function t8e(t,n){return Br(t.getUTCHours()%12||12,n,2)}function n8e(t,n){return Br(1+uW.count(y_(t),t),n,3)}function CW(t,n){return Br(t.getUTCMilliseconds(),n,3)}function i8e(t,n){return CW(t,n)+"000"}function r8e(t,n){return Br(t.getUTCMonth()+1,n,2)}function o8e(t,n){return Br(t.getUTCMinutes(),n,2)}function s8e(t,n){return Br(t.getUTCSeconds(),n,2)}function a8e(t){var n=t.getUTCDay();return 0===n?7:n}function l8e(t,n){return Br(lW.count(y_(t)-1,t),n,2)}function SW(t){var n=t.getUTCDay();return n>=4||0===n?Bv(t):Bv.ceil(t)}function c8e(t,n){return t=SW(t),Br(Bv.count(y_(t),t)+(4===y_(t).getUTCDay()),n,2)}function u8e(t){return t.getUTCDay()}function d8e(t,n){return Br(M2.count(y_(t)-1,t),n,2)}function h8e(t,n){return Br(t.getUTCFullYear()%100,n,2)}function f8e(t,n){return Br((t=SW(t)).getUTCFullYear()%100,n,2)}function p8e(t,n){return Br(t.getUTCFullYear()%1e4,n,4)}function m8e(t,n){var e=t.getUTCDay();return Br((t=e>=4||0===e?Bv(t):Bv.ceil(t)).getUTCFullYear()%1e4,n,4)}function g8e(){return"+0000"}function kW(){return"%"}function DW(t){return+t}function TW(t){return Math.floor(+t/1e3)}function AW(t){return null===t?NaN:+t}!function b8e(t){Hv=function v5e(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=b_(r),u=x_(r),d=b_(o),h=x_(o),f=b_(s),p=x_(s),m=b_(a),g=x_(a),v=b_(l),y=x_(l),_={a:function H(Le){return s[Le.getDay()]},A:function le(Le){return o[Le.getDay()]},b:function E(Le){return l[Le.getMonth()]},B:function O(Le){return a[Le.getMonth()]},c:null,d:_W,e:_W,f:B5e,g:J5e,G:Q5e,H:R5e,I:L5e,j:$5e,L:bW,m:V5e,M:H5e,p:function I(Le){return r[+(Le.getHours()>=12)]},q:function q(Le){return 1+~~(Le.getMonth()/3)},Q:DW,s:TW,S:U5e,u:z5e,U:G5e,V:W5e,w:q5e,W:Y5e,x:null,X:null,y:X5e,Y:K5e,Z:Z5e,"%":kW},w={a:function V(Le){return s[Le.getUTCDay()]},A:function re(Le){return o[Le.getUTCDay()]},b:function de(Le){return l[Le.getUTCMonth()]},B:function Oe(Le){return a[Le.getUTCMonth()]},c:null,d:wW,e:wW,f:i8e,g:f8e,G:m8e,H:e8e,I:t8e,j:n8e,L:CW,m:r8e,M:o8e,p:function ye(Le){return r[+(Le.getUTCHours()>=12)]},q:function Xe(Le){return 1+~~(Le.getUTCMonth()/3)},Q:DW,s:TW,S:s8e,u:a8e,U:l8e,V:c8e,w:u8e,W:d8e,x:null,X:null,y:h8e,Y:p8e,Z:g8e,"%":kW},k={a:function U(Le,rt,$){var ne=f.exec(rt.slice($));return ne?(Le.w=p[ne[0].toLowerCase()],$+ne[0].length):-1},A:function G(Le,rt,$){var ne=d.exec(rt.slice($));return ne?(Le.w=h[ne[0].toLowerCase()],$+ne[0].length):-1},b:function X(Le,rt,$){var ne=v.exec(rt.slice($));return ne?(Le.m=y[ne[0].toLowerCase()],$+ne[0].length):-1},B:function te(Le,rt,$){var ne=m.exec(rt.slice($));return ne?(Le.m=g[ne[0].toLowerCase()],$+ne[0].length):-1},c:function P(Le,rt,$){return z(Le,n,rt,$)},d:vW,e:vW,f:N5e,g:gW,G:mW,H:yW,I:yW,j:A5e,L:I5e,m:E5e,M:M5e,p:function R(Le,rt,$){var ne=c.exec(rt.slice($));return ne?(Le.p=u[ne[0].toLowerCase()],$+ne[0].length):-1},q:T5e,Q:P5e,s:j5e,S:O5e,u:w5e,U:C5e,V:S5e,w:x5e,W:k5e,x:function W(Le,rt,$){return z(Le,e,rt,$)},X:function J(Le,rt,$){return z(Le,i,rt,$)},y:gW,Y:mW,Z:D5e,"%":F5e};function D(Le,rt){return function($){var je,gt,Tt,ne=[],ie=-1,Me=0,Ye=Le.length;for($ instanceof Date||($=new Date(+$));++ie53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Ye=(Me=bI(__(ne.y,0,1))).getUTCDay(),Me=Ye>4||0===Ye?M2.ceil(Me):M2(Me),Me=uW.offset(Me,7*(ne.V-1)),ne.y=Me.getUTCFullYear(),ne.m=Me.getUTCMonth(),ne.d=Me.getUTCDate()+(ne.w+6)%7):(Ye=(Me=_I(__(ne.y,0,1))).getDay(),Me=Ye>4||0===Ye?O2.ceil(Me):O2(Me),Me=fW.offset(Me,7*(ne.V-1)),ne.y=Me.getFullYear(),ne.m=Me.getMonth(),ne.d=Me.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Ye="Z"in ne?bI(__(ne.y,0,1)).getUTCDay():_I(__(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+7*ne.W-(Ye+5)%7:ne.w+7*ne.U-(Ye+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,bI(ne)):_I(ne)}}function z(Le,rt,$,ne){for(var je,gt,ie=0,Me=rt.length,Ye=$.length;ie=Ye)return-1;if(37===(je=rt.charCodeAt(ie++))){if(je=rt.charAt(ie++),!(gt=k[je in pW?rt.charAt(ie++):je])||(ne=gt(Le,$,ne))<0)return-1}else if(je!=$.charCodeAt(ne++))return-1}return ne}return _.x=D(e,_),_.X=D(i,_),_.c=D(n,_),w.x=D(e,w),w.X=D(i,w),w.c=D(n,w),{format:function(Le){var rt=D(Le+="",_);return rt.toString=function(){return Le},rt},parse:function(Le){var rt=L(Le+="",!1);return rt.toString=function(){return Le},rt},utcFormat:function(Le){var rt=D(Le+="",w);return rt.toString=function(){return Le},rt},utcParse:function(Le){var rt=L(Le+="",!0);return rt.toString=function(){return Le},rt}}}(t),EW=Hv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const x8e=iI(nI).right,OW=(iI(AW),x8e);function w8e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function S8e(t){return+t}var IW=[0,1];function Uv(t){return t}function xI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function C8e(t){return function(){return t}}(isNaN(n)?NaN:.5)}function D8e(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?T8e:D8e,l=c=null,d}function d(h){return null==h||isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Ru)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,S8e),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=w8e,u()},d.clamp=function(h){return arguments.length?(s=!!h||Uv,u()):s!==Uv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Uv,Uv)}function w_(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function M8e(t){return new Date(t)}function O8e(t){return t instanceof Date?+t:+new Date(+t)}function PW(t,n,e,i,r,o,s,a,l,c){var u=FW(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),_=c("%B"),w=c("%Y");function k(D){return(l(D)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function I2(t){if(!(n=I8e.exec(t)))throw new Error("invalid format: "+t);var n;return new wI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function wI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function N2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function zv(t){return(t=N2(Math.abs(t)))?t[1]:NaN}function RW(t,n){var e=N2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}I2.prototype=wI.prototype,wI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const LW={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function N8e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return RW(100*t,n)},r:RW,s:function L8e(t,n){var e=N2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(jW=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+N2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function $W(t){return t}var F2,CI,HW,BW=Array.prototype.map,VW=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function z8e(t){var n=t.domain;return t.ticks=function(e){var i=n();return function HLe(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0){let l=Math.round(t/a),c=Math.round(n/a);for(l*an&&--c,s=new Array(o=c-l+1);++rn&&--c,s=new Array(o=c-l+1);++r0;){if((c=VG(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function mo(){var t=FW();return t.copy=function(){return NW(t,mo())},w_.apply(t,arguments),z8e(t)}function UW(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(BW.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?$W:function j8e(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(BW.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=I2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,_=d.precision,w=d.trim,k=d.type;"n"===k?(y=!0,k="g"):LW[k]||(void 0===_&&(_=12),w=!0,k="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var D="$"===m?e:"#"===m&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",L="$"===m?i:/[%p]/.test(k)?s:"",z=LW[k],R=/[defgprs%]/.test(k);function U(G){var P,W,J,X=D,te=L;if("c"===k)te=z(G)+te,G="";else{var H=(G=+G)<0||1/G<0;if(G=isNaN(G)?l:z(Math.abs(G),_),w&&(G=function R8e(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(G)),H&&0==+G&&"+"!==p&&(H=!1),X=(H?"("===p?p:a:"-"===p||"("===p?"":p)+X,te=("s"===k?VW[8+jW/3]:"")+te+(H&&"("===p?")":""),R)for(P=-1,W=G.length;++P(J=G.charCodeAt(P))||J>57){te=(46===J?r+G.slice(P+1):G.slice(P))+te,G=G.slice(0,P);break}}y&&!g&&(G=n(G,1/0));var le=X.length+G.length+te.length,E=le>1)+X+G+te+E.slice(le);break;default:G=E+X+G+te}return o(G)}return _=void 0===_?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),U.toString=function(){return d+""},U}return{format:c,formatPrefix:function u(d,h){var f=c(((d=I2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(zv(h)/3))),m=Math.pow(10,-p),g=VW[8+p/3];return function(v){return f(m*v)+g}}}}(t),CI=F2.format,HW=F2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const zW=Symbol("implicit");function SI(){var t=new Map,n=[],e=[],i=zW;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==zW)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return SI(n,e).unknown(i)},w_.apply(r,arguments),r}function Ia(){var o,s,t=SI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function WW(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],aNm)if(Math.abs(u*a-l*c)>Nm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((kI-Math.acos((p+d-m)/(2*g*v)))/2),_=y/v,w=y/g;Math.abs(_-1)>Nm&&(this._+="L"+(t+_*c)+","+(n+_*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+w*a)+","+(this._y1=n+w*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Nm||Math.abs(this._y1-c)>Nm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%DI+DI),d>W8e?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Nm&&(this._+="A"+e+","+e+",0,"+ +(d>=kI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const EI=YW;function uo(t){return function(){return t}}function XW(t){return t[0]}function JW(t){return t[1]}function P2(){var t=XW,n=JW,e=uo(!0),i=null,r=Im,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=EI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],_[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),_[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):_[d]))}if(v)return a=null,v+""||null}function c(){return P2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:uo(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:uo(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:uo(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:uo(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:uo(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:uo(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:uo(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function KW(){}function AI(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function QW(t,n){this._context=t,this._k=(1-n)/6}function ZW(t,n){this._context=t,this._k=(1-n)/6}function eq(t){this._curve=t}function u6e(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function oq(t,n){var r,s,a,l,c,e=new D_(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=M6e);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new D_(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(sq)}function M6e(t){return t.children}function O6e(t){t.data=t.data.data}function sq(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function D_(t){this.data=t,this.depth=this.height=0,this.parent=null}QW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:AI(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:AI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new QW(i,n)}return e.tension=function(i){return t(+i)},e}(0),ZW.prototype={areaStart:KW,areaEnd:KW,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:AI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new ZW(i,n)}return e.tension=function(i){return t(+i)},e}(0),function tq(t){function n(e){return new eq(t(e))}return n._curve=t,n}(Im),eq.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function f6e(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,_,w,k,D,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),D=g*g*k,(_=Math.max(y/D,D/v))>w){g-=c;break}w=_}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),D_.prototype=oq.prototype={constructor:D_,count:function v6e(){return this.eachAfter(g6e)},each:function y6e(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function x6e(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function w6e(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function C6e(t){for(var n=this,e=function S6e(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function k6e(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function D6e(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function T6e(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function E6e(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function A6e(){return oq(this).eachBefore(O6e)}};const j6e=["caretElm"];function R6e(t,n){}const L6e=function(t){return{model:t}};function $6e(t,n){if(1&t&&(b(0,"span"),Z(1,R6e,0,0,"ng-template",5),x()),2&t){const e=B();C(1),S("ngTemplateOutlet",e.template)("ngTemplateOutletContext",nr(2,L6e,e.context))}}function B6e(t,n){1&t&&ge(0,"span",6),2&t&&S("innerHTML",B().title,qx)}function V6e(t,n){if(1&t&&(st(),Up(),ge(0,"ngx-charts-scale-legend",4)),2&t){const e=B();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function H6e(t,n){if(1&t){const e=yt();st(),Up(),b(0,"ngx-charts-legend",5),be("labelClick",function(r){return $e(e),Be(B().legendLabelClick.emit(r))})("labelActivate",function(r){return $e(e),Be(B().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return $e(e),Be(B().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=B();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const cq=["*"],U6e=["ngx-charts-axis-label",""],uq=["ticksel"],z6e=["ngx-charts-x-axis-ticks",""];function G6e(t,n){if(1&t&&(st(),b(0,"g",3)(1,"title"),N(2),x(),b(3,"text",4),N(4),x()()),2&t){const e=n.$implicit,i=B();ut("transform",i.tickTransform(e)),C(2),kt(i.tickFormat(e)),C(1),tr("font-size","12px"),ut("text-anchor",i.textAnchor)("transform",i.textTransform),C(1),yn(" ",i.tickTrim(i.tickFormat(e))," ")}}function W6e(t,n){if(1&t&&(st(),b(0,"g"),ge(1,"line",6),x()),2&t){const e=B(2);ut("transform",e.gridLineTransform()),C(1),ut("y1",-e.gridLineHeight)}}function q6e(t,n){if(1&t&&(st(),b(0,"g"),Z(1,W6e,2,2,"g",5),x()),2&t){const e=n.$implicit,i=B();ut("transform",i.tickTransform(e)),C(1),S("ngIf",i.showGridLines)}}const Y6e=["ngx-charts-x-axis",""];function X6e(t,n){if(1&t){const e=yt();st(),b(0,"g",2),be("dimensionsChanged",function(r){return $e(e),Be(B().emitTicksHeight(r))}),x()}if(2&t){const e=B();S("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function J6e(t,n){if(1&t&&(st(),ge(0,"g",3)),2&t){const e=B();S("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const K6e=["ngx-charts-y-axis-ticks",""];function Q6e(t,n){if(1&t&&(st(),b(0,"g",4)(1,"title"),N(2),x(),b(3,"text",5),N(4),x()()),2&t){const e=n.$implicit,i=B();ut("transform",i.transform(e)),C(2),kt(i.tickFormat(e)),C(1),tr("font-size","12px"),ut("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),C(1),yn(" ",i.tickTrim(i.tickFormat(e))," ")}}function Z6e(t,n){if(1&t&&(st(),ge(0,"path",6)),2&t){const e=B();ut("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function e$e(t,n){1&t&&(st(),ge(0,"line",9)),2&t&&ut("x2",B(3).gridLineWidth)}function t$e(t,n){1&t&&(st(),ge(0,"line",9)),2&t&&ut("x2",-B(3).gridLineWidth)}function n$e(t,n){if(1&t&&(st(),b(0,"g"),Z(1,e$e,1,1,"line",8),Z(2,t$e,1,1,"line",8),x()),2&t){const e=B(2);ut("transform",e.gridLineTransform()),C(1),S("ngIf","left"===e.orient),C(1),S("ngIf","right"===e.orient)}}function i$e(t,n){if(1&t&&(st(),b(0,"g"),Z(1,n$e,3,3,"g",7),x()),2&t){const e=n.$implicit,i=B();ut("transform",i.transform(e)),C(1),S("ngIf",i.showGridLines)}}function r$e(t,n){if(1&t&&(st(),b(0,"g")(1,"title"),N(2),x(),b(3,"text",11),N(4),x()()),2&t){const e=B(2).$implicit,i=B();C(2),kt(i.tickTrim(i.tickFormat(e.value))),C(1),ut("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),C(1),yn(" ",e.name," ")}}function o$e(t,n){if(1&t&&(st(),b(0,"g"),ge(1,"line",10),Z(2,r$e,5,6,"g",7),x()),2&t){const e=B().$implicit,i=B();ut("transform",i.transform(e.value)),C(1),ut("x2",i.gridLineWidth)("transform",i.gridLineTransform()),C(1),S("ngIf",i.showRefLabels)}}function s$e(t,n){if(1&t&&(st(),b(0,"g"),Z(1,o$e,3,4,"g",7),x()),2&t){const e=B();C(1),S("ngIf",e.showRefLines)}}const a$e=["ngx-charts-y-axis",""];function l$e(t,n){if(1&t){const e=yt();st(),b(0,"g",2),be("dimensionsChanged",function(r){return $e(e),Be(B().emitTicksWidth(r))}),x()}if(2&t){const e=B();S("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function c$e(t,n){if(1&t&&(st(),ge(0,"g",3)),2&t){const e=B();S("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const u$e=["ngx-charts-circle-series",""];function d$e(t,n){if(1&t&&(st(),ge(0,"rect",4)),2&t){const e=B(2);S("@animationState","active"),ut("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const h$e=function(t){return{name:t}};function f$e(t,n){if(1&t){const e=yt();st(),b(0,"g")(1,"defs"),ge(2,"g",1),x(),Z(3,d$e,1,6,"rect",2),b(4,"g",3),be("select",function(){$e(e);const r=B();return Be(r.onClick(r.circle.data))})("activate",function(){return $e(e),Be(B().activateCircle())})("deactivate",function(){return $e(e),Be(B().deactivateCircle())}),x()()}if(2&t){const e=B();C(2),S("name",e.gradientId)("stops",e.circle.gradientStops),C(1),S("ngIf",e.barVisible&&"standard"===e.type),C(1),jn("active",e.isActive(nr(18,h$e,e.circle.seriesName))),S("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const p$e=["ngx-charts-circle",""],y$e=["ngx-charts-svg-linear-gradient",""];function _$e(t,n){if(1&t&&(st(),ge(0,"stop")),2&t){const e=n.$implicit;tr("stop-color",e.color)("stop-opacity",e.opacity),ut("offset",e.offset+"%")}}const w$e=["ngx-charts-area",""];function C$e(t,n){if(1&t&&(st(),b(0,"defs"),ge(1,"g",2),x()),2&t){const e=B();C(1),S("name",e.gradientId)("stops",e.gradientStops)}}const k$e=["tooltipAnchor"],D$e=["ngx-charts-tooltip-area",""];function T$e(t,n){if(1&t&&(b(0,"div",6),ge(1,"span",7),N(2),x()),2&t){const e=n.$implicit,i=B(2);C(1),tr("background-color",e.color),C(1),yn(" ",i.getToolTipText(e)," ")}}function E$e(t,n){if(1&t&&(st(),Up(),b(0,"div",4),Z(1,T$e,3,3,"div",5),x()),2&t){const e=n.model;C(1),S("ngForOf",e)}}const A$e=["ngx-charts-timeline",""];function M$e(t,n){if(1&t&&(b(0,"header",4)(1,"span",5),N(2),x()()),2&t){const e=B();C(2),kt(e.title)}}function O$e(t,n){if(1&t){const e=yt();b(0,"li",6)(1,"ngx-charts-legend-entry",7),be("select",function(r){return $e(e),Be(B().labelClick.emit(r))})("activate",function(r){return $e(e),Be(B().activate(r))})("deactivate",function(r){return $e(e),Be(B().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=B();C(1),S("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Rs=["tooltipTemplate"],B2=["seriesTooltipTemplate"],Co=function(t,n){return[t,n]},ZBe=["ngx-charts-line",""];function e7e(t,n){if(1&t){const e=yt();st(),b(0,"g",7),be("dimensionsChanged",function(r){return $e(e),Be(B().updateXAxisHeight(r))}),x()}if(2&t){const e=B();S("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function t7e(t,n){if(1&t){const e=yt();st(),b(0,"g",8),be("dimensionsChanged",function(r){return $e(e),Be(B().updateYAxisWidth(r))}),x()}if(2&t){const e=B();S("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function n7e(t,n){if(1&t&&(st(),b(0,"g"),ge(1,"g",9),x()),2&t){const e=n.$implicit,i=B();S("@animationState","active"),C(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function i7e(t,n){if(1&t){const e=yt();st(),b(0,"g")(1,"g",13),be("select",function(r){return $e(e),Be(B(2).onClick(r))})("activate",function(r){return $e(e),Be(B(2).onActivate(r))})("deactivate",function(r){return $e(e),Be(B(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=B(2);C(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function r7e(t,n){if(1&t){const e=yt();st(),b(0,"g",10),be("mouseleave",function(){return $e(e),Be(B().hideCircles())}),b(1,"g",11),be("hover",function(r){return $e(e),Be(B().updateHoveredVertical(r))}),x(),Z(2,i7e,2,9,"g",12),x()}if(2&t){const e=B();C(1),S("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),C(1),S("ngForOf",e.results)}}function o7e(t,n){if(1&t&&(st(),b(0,"g"),ge(1,"g",15),x()),2&t){const e=n.$implicit,i=B(2);C(1),S("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function s7e(t,n){if(1&t){const e=yt();st(),b(0,"g",14),be("onDomainChange",function(r){return $e(e),Be(B().updateDomain(r))}),Z(1,o7e,2,8,"g",4),x()}if(2&t){const e=B();S("results",e.results)("view",Mr(10,Co,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ut("transform",e.timelineTransform),C(1),S("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const a7e=["ngx-charts-line-series",""];function l7e(t,n){if(1&t&&(st(),ge(0,"g",4)),2&t){const e=B();S("name",e.gradientId)("stops",e.gradientStops)}}function c7e(t,n){if(1&t&&(st(),ge(0,"g",5)),2&t){const e=B();jn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),S("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let pq=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function r9e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new JPe(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new jz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(vt(Ph),vt(Hg),vt(la))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function o9e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function s9e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:o9e(o.value,t,n)}),this[r]}}}}var Ls=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Ls||(Ls={})),Ls))();const Xf=7;function mq(t,n,e){return"top"===e?t.top-Xf:"bottom"===e?t.top+t.height-n.height+Xf:"center"===e?t.top+t.height/2-n.height/2:void 0}function gq(t,n,e){return"left"===e?t.left-Xf:"right"===e?t.left+t.width-n.width+Xf:"center"===e?t.left+t.width/2-n.width/2:void 0}class vc{static calculateVerticalAlignment(n,e,i){let r=mq(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Xf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Xf),"center"===r&&(o=e.height/2-i.height/2);const s=mq(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=gq(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Xf),"right"===r&&(o=e.width-n.width/2-i.width/2-Xf),"center"===r&&(o=e.width/2-i.width/2);const s=gq(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===Ls.right?(a=-7,s=vc.calculateVerticalCaret(i,e,r,o)):n===Ls.left?(a=e.width,s=vc.calculateVerticalCaret(i,e,r,o)):n===Ls.top?(s=e.height,a=vc.calculateHorizontalCaret(i,e,r,o)):n===Ls.bottom&&(s=-7,a=vc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===Ls.right?(a=i.left+i.width+r,s=vc.calculateVerticalAlignment(i,e,o)):n===Ls.left?(a=i.left-e.width-r,s=vc.calculateVerticalAlignment(i,e,o)):n===Ls.top?(s=i.top-e.height-r,a=vc.calculateHorizontalAlignment(i,e,o)):n===Ls.bottom&&(s=i.top+i.height+r,a=vc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(vc.shouldFlip(i,e,n,r)){if(n===Ls.right)return Ls.left;if(n===Ls.left)return Ls.right;if(n===Ls.top)return Ls.bottom;if(n===Ls.bottom)return Ls.top}return n}}let a9e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=vc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=vc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=vc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa))},t.\u0275cmp=$t({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&jo(j6e,5),2&e){let r;wn(r=Cn())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&be("resize",function(){return i.onWindowResize()},0,d8),2&e&&Fd(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(b(0,"div"),ge(1,"span",0,1),b(3,"div",2),Z(4,$6e,2,4,"span",3),Z(5,B6e,1,1,"span",4),x()()),2&e&&(C(1),function $6(t,n,e){ku(nc,Pd,Jg(zt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),S("hidden",!i.showCaret),C(3),S("ngIf",!i.title),C(1),S("ngIf",i.title))},dependencies:[_n,Eu],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function Rz(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o}([s9e(100)],t.prototype,"onWindowResize",null),t})();class l9e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let II=(()=>{class t extends l9e{constructor(e){super(e),this.type=a9e}}return t.\u0275fac=function(e){return new(e||t)(vt(pq))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),Zo=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new it,this.legendLabelActivate=new it,this.legendLabelDeactivate=new it}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[Qr([II]),ei],ngContentSelectors:cq,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Cf(),b(0,"div",0),st(),b(1,"svg",1),Sf(2),x(),Z(3,V6e,1,5,"ngx-charts-scale-legend",2),Z(4,H6e,1,7,"ngx-charts-legend",3),x()),2&e&&(tr("width",i.view[0],"px"),S("@animationState","active")("@.disabled",!i.animations),C(1),ut("width",i.chartWidth)("height",i.view[1]),C(2),S("ngIf",i.showLegend&&"scaleLegend"===i.legendType),C(1),S("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[_n,Eq,Mq]},encapsulation:2,data:{animation:[Ka("animationState",[ka(":enter",[kr({opacity:0}),Sa("500ms 100ms",kr({opacity:1}))])])]},changeDetection:0}),t})(),c9e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new it,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(ir))},t.\u0275dir=sn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),es=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new it}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new c9e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new xje(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(ir),he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[ei],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"div")},encapsulation:2}),t})(),NI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[ei],attrs:U6e,decls:2,vars:6,template:function(e,i){1&e&&(st(),b(0,"text"),N(1),x()),2&e&&(ut("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),C(1),yn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Jf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function vq(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new it,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=vq(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Jf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&jo(uq,5),2&e){let r;wn(r=Cn())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:z6e,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(st(),b(0,"g",null,0),Z(2,G6e,5,7,"g",1),x(),Z(3,q6e,2,2,"g",2)),2&e&&(C(2),S("ngForOf",i.ticks),C(1),S("ngForOf",i.ticks))},dependencies:[Ln,_n],encapsulation:2,changeDetection:0}),t})(),Vl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new it,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&jo(yq,5),2&e){let r;wn(r=Cn())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:Y6e,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(st(),b(0,"g"),Z(1,X6e,1,12,"g",0),Z(2,J6e,1,5,"g",1),x()),2&e&&(ut("class",i.xAxisClassName)("transform",i.transform),C(1),S("ngIf",i.xScale),C(1),S("ngIf",i.showLabel))},dependencies:[_n,NI,yq],encapsulation:2,changeDetection:0}),t})();let _q=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new it,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function Zh(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=vq(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Jf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&jo(uq,5),2&e){let r;wn(r=Cn())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:K6e,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(st(),b(0,"g",null,0),Z(2,Q6e,5,9,"g",1),x(),Z(3,Z6e,1,2,"path",2),Z(4,i$e,2,2,"g",3),Z(5,s$e,2,1,"g",3)),2&e&&(C(2),S("ngForOf",i.ticks),C(1),S("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),C(1),S("ngForOf",i.ticks),C(1),S("ngForOf",i.referenceLines))},dependencies:[Ln,_n],encapsulation:2,changeDetection:0}),t})(),yl=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new it,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&jo(_q,5),2&e){let r;wn(r=Cn())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:a$e,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(st(),b(0,"g"),Z(1,l$e,1,14,"g",0),Z(2,c$e,1,5,"g",1),x()),2&e&&(ut("class",i.yAxisClassName)("transform",i.transform),C(1),S("ngIf",i.yScale),C(1),S("ngIf",i.showLabel))},dependencies:[_n,NI,_q],encapsulation:2,changeDetection:0}),t})(),bq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Mf]}),t})();var V2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(V2||(V2={})),V2))(),H2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(H2||(H2={})),H2))(),Kf=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(Kf||(Kf={})),Kf))();let $u=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ls.top,this.tooltipAlignment=H2.center,this.tooltipType=V2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Kf.all,this.tooltipImmediateExit=!1,this.show=new it,this.hide=new it}get listensForFocus(){return this.tooltipShowEvent===Kf.all||this.tooltipShowEvent===Kf.focus}get listensForHover(){return this.tooltipShowEvent===Kf.all||this.tooltipShowEvent===Kf.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(he(II),he(jl),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&be("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),xq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[pq,II],imports:[Mf]}),t})();function Na(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function ea(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const wq={};function _l(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,wq[t]?_l():(wq[t]=!0,t)}let RI,T_=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new it,this.activate=new it,this.deactivate=new it,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+_l().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=Na(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${ea(r)} \u2022 ${ea(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:u$e,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&Z(0,f$e,5,20,"g",0),2&e&&S("ngIf",i.circle)},dependencies:function(){return[_n,$u,U2,Pm]},encapsulation:2,data:{animation:[Ka("animationState",[ka(":enter",[kr({opacity:0}),Sa(250,kr({opacity:1}))])])]},changeDetection:0}),t})(),U2=(()=>{class t{constructor(){this.select=new it,this.activate=new it,this.deactivate=new it}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&be("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:p$e,decls:1,vars:8,template:function(e,i){1&e&&(st(),ge(0,"circle")),2&e&&ut("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),Pm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[ei],attrs:y$e,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(st(),b(0,"linearGradient",0),Z(1,_$e,1,5,"stop",1),x()),2&e&&(S("id",i.name),ut("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),C(1),S("ngForOf",i.stops))},dependencies:[Ln],encapsulation:2,changeDetection:0}),t})(),jI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new it,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+_l().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=ua(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[ei],attrs:w$e,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(Z(0,C$e,2,2,"defs",0),st(),ge(1,"path",1)),2&e&&(S("ngIf",i.gradient),C(1),tr("opacity",i.opacity),ut("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[_n,Pm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?RI=window:typeof global<"u"&&(RI=global);const Tq=RI.MouseEvent;function LI(t,n=!1,e=!0){if("function"==typeof Tq)return new Tq(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let E_=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new it}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=LI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=LI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=LI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&jo(k$e,5),2&e){let r;wn(r=Cn())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:D$e,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","'auto'",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(st(),b(0,"g")(1,"rect",0),be("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),Z(2,E$e,2,1,"ng-template",null,1,Uo),ge(4,"rect",2,3),x()),2&e){const r=qs(3);C(1),ut("x",0)("width",i.dims.width)("height",i.dims.height),C(3),tr("opacity",i.anchorOpacity)("pointer-events","none"),S("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ut("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[Ln,$u],encapsulation:2,data:{animation:[Ka("animationState",[ka("inactive => active",[kr({opacity:0}),Sa(250,kr({opacity:.7}))]),ka("active => inactive",[kr({opacity:.7}),Sa(250,kr({opacity:0}))])])]},changeDetection:0}),t})(),A_=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new it,this.onDomainChange=new it,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+_l().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=Mm().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=mo().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=Om().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function BLe(){return tI(T2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Rr.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),ua(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),ua(this.element).select(".brush").call(this.brush),ua(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[ei],attrs:A$e,ngContentSelectors:cq,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Cf(),st(),b(0,"g",0)(1,"filter"),ge(2,"feColorMatrix",1),x(),b(3,"g",2),Sf(4),x(),ge(5,"rect",3)(6,"g",4),x()),2&e&&(ut("transform",i.transform),C(1),ut("id",i.filterId),C(4),ut("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Eq=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new it,this.labelActivate=new it,this.labelDeactivate=new it,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=Na(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[ei],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(b(0,"div"),Z(1,M$e,3,1,"header",0),b(2,"div",1)(3,"ul",2),Z(4,O$e,2,4,"li",3),x()()()),2&e&&(tr("width",i.width,"px"),C(1),S("ngIf",(null==i.title?null:i.title.length)>0),C(2),tr("max-height",i.height-45,"px"),jn("horizontal-legend",i.horizontal),C(1),S("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[Ln,_n,Aq]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Aq=(()=>{class t{constructor(){this.isActive=!1,this.select=new it,this.activate=new it,this.deactivate=new it,this.toggle=new it}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&be("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(b(0,"span",0),be("click",function(){return i.select.emit(i.formattedLabel)}),b(1,"span",1),be("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),b(2,"span",2),N(3),x()()),2&e&&(jn("active",i.isActive),S("title",i.formattedLabel),C(1),tr("background-color",i.color),C(2),yn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Mq=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(he(B7))},t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[ei],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"span"),N(3),x()(),ge(4,"div",2),b(5,"div",1)(6,"span"),N(7),x()()()),2&e&&(tr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),jn("horizontal-legend",i.horizontal),C(3),kt(i.valueRange[1].toLocaleString()),C(1),tr("background",i.gradient),C(3),kt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Bu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Mf,bq,xq,Mf,bq,xq]}),t})();let Iq=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class fs{constructor(n,e,i,r){"string"==typeof n&&(n=Iq.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=Iq.find(o=>o.name===n)),"quantile"===e)r=WW().range(n.domain).domain(i);else if("ordinal"===e)r=SI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=UW(0,1,1/o.length);r=mo().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=mo().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=mo().domain(this.domain).range([0,1]),r=Ia().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let u9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),Fq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),h9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),m9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),Rq=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new it,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=ua(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[ei],attrs:ZBe,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(st(),ge(0,"path",0)),2&e&&(S("@animationState","active"),ut("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[Ka("animationState",[ka(":enter",[kr({strokeDasharray:2e3,strokeDashoffset:2e3}),Sa(1e3,kr({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),g9e=(()=>{class t extends es{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=Im,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new it,this.deactivate=new it,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function hs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+_l().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function G2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function Qf(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=Mm().range([0,i]).domain(e):"linear"===this.scaleType?(r=mo().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=Om().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=mo().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new fs(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(yi(r,Rs,5),yi(r,B2,5)),2&e){let o;wn(o=Cn())&&(i.tooltipTemplate=o.first),wn(o=Cn())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&be("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[pi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(b(0,"ngx-charts-chart",0),be("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),st(),b(1,"defs")(2,"clipPath"),ge(3,"rect"),x()(),b(4,"g",1),Z(5,e7e,1,10,"g",2),Z(6,t7e,1,12,"g",3),b(7,"g"),Z(8,n7e,2,11,"g",4),Z(9,r7e,3,9,"g",5),x()(),Z(10,s7e,2,13,"g",6),x()),2&e&&(S("view",Mr(17,Co,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),C(2),ut("id",i.clipPathId),C(1),ut("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),C(1),ut("transform",i.transform),C(1),S("ngIf",i.xAxis),C(1),S("ngIf",i.yAxis),C(1),ut("clip-path",i.clipPath),C(1),S("ngForOf",i.results)("ngForTrackBy",i.trackBy),C(1),S("ngIf",!i.tooltipDisabled),C(1),S("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[Ln,_n,Vl,yl,E_,Zo,T_,A_,v9e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[Ka("animationState",[ka(":leave",[kr({opacity:1}),Sa(500,kr({opacity:0}))])])]},changeDetection:0}),t})(),v9e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return P2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Gv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Gv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function $I(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function VI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function BI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+_l().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[ei],attrs:a7e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(st(),b(0,"g")(1,"defs"),Z(2,l7e,1,2,"g",0),x(),ge(3,"g",1)(4,"g",2),Z(5,c7e,1,9,"g",3),x()),2&e&&(C(2),S("ngIf",i.hasGradient),C(1),jn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),C(1),jn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),C(1),S("ngIf",i.hasRange))},dependencies:[_n,jI,Pm,Rq],encapsulation:2,changeDetection:0}),t})(),Lq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})();Math;let GI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),w9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu,GI,Lq]}),t})(),D9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),A9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),I9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu,GI,Fq]}),t})(),F9e=(()=>{class t{constructor(){!function N9e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu,u9e,Fq,h9e,m9e,Lq,w9e,D9e,GI,A9e,I9e]}),t})();function P9e(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function j9e(t,n){1&t&&ge(0,"img",31)}function R9e(t,n){1&t&&ge(0,"img",32)}function L9e(t,n){1&t&&ge(0,"img",33)}function $9e(t,n){1&t&&ge(0,"img",34)}function B9e(t,n){if(1&t&&(b(0,"tr",24)(1,"td"),oc(2,25),Z(3,j9e,1,0,"img",26),Z(4,R9e,1,0,"img",27),Z(5,L9e,1,0,"img",28),Z(6,$9e,1,0,"img",29),sc(),b(7,"span"),N(8),x()(),b(9,"td"),N(10),b(11,"span",30),N(12),x()(),b(13,"td"),N(14),b(15,"span",30),N(16),x()(),b(17,"td"),N(18),b(19,"span",30),N(20),x()(),b(21,"td"),N(22),b(23,"span",30),N(24),x()()()),2&t){const e=n.$implicit,i=B(2);C(2),S("ngSwitch",e.health),C(1),S("ngSwitchCase",0),C(1),S("ngSwitchCase",1),C(1),S("ngSwitchCase",2),C(1),S("ngSwitchCase",3),C(2),kt(e.name),C(2),yn("",e.session_count," "),C(1),S("hidden",!i.showDelta),C(1),yn("(",i.getMaxSessionCount()-e.session_count," delta)"),C(2),yn("",e.presence_count," "),C(1),S("hidden",!i.showDelta),C(1),yn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),C(2),yn("",e.match_count," "),C(1),S("hidden",!i.showDelta),C(1),yn("(",i.getMaxMatchCount()-e.match_count," delta)"),C(2),yn("",e.goroutine_count," "),C(1),S("hidden",!i.showDelta),C(1),yn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function V9e(t,n){if(1&t&&(b(0,"tbody"),Z(1,B9e,25,18,"tr",22),b(2,"tr",3),ge(3,"td",23),b(4,"th",3),N(5),x(),b(6,"th",3),N(7),x(),b(8,"th",3),N(9),x(),b(10,"th",3),N(11),x()()()),2&t){const e=B();C(1),S("ngForOf",e.statusData.nodes),C(4),kt(e.getTotalSessionCount()),C(2),kt(e.getMaxPresenceCount()),C(2),kt(e.getTotalMatchCount()),C(2),kt(e.getTotalGorountineCount())}}function H9e(t,n){if(1&t&&(b(0,"option",35),N(1),x()),2&t){const e=n.$implicit,i=B();kf("value",e),C(1),kt(i.ranges[e])}}const Y2=function(t){return{"background-color":t}};function U9e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),N(4),x()()),2&t){const e=n.$implicit;C(2),S("ngStyle",nr(3,Y2,e.color)),C(2),Tf("",e.series,": ",e.value,"")}}function z9e(t,n){if(1&t&&(b(0,"div",39),N(1),Z(2,U9e,5,5,"span",40),x()),2&t){const e=n.model;C(1),yn(" ",e[0].name.toLocaleString()," "),C(1),S("ngForOf",e)}}function G9e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",37),Z(2,z9e,3,2,"ng-template",null,38,Uo),x()()),2&t){const e=B();C(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function W9e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),N(4),x()()),2&t){const e=n.$implicit;C(2),S("ngStyle",nr(3,Y2,e.color)),C(2),Tf("",e.series,": ",e.value,"")}}function q9e(t,n){if(1&t&&(b(0,"div",39),N(1),Z(2,W9e,5,5,"span",40),x()),2&t){const e=n.model;C(1),yn(" ",e[0].name.toLocaleString()," "),C(1),S("ngForOf",e)}}function Y9e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",43),Z(2,q9e,3,2,"ng-template",null,38,Uo),x()()),2&t){const e=B();C(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function X9e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),N(4),x()()),2&t){const e=n.$implicit;C(2),S("ngStyle",nr(3,Y2,e.color)),C(2),Tf("",e.series,": ",e.value,"")}}function J9e(t,n){if(1&t&&(b(0,"div",39),N(1),Z(2,X9e,5,5,"span",40),x()),2&t){const e=n.model;C(1),yn(" ",e[0].name.toLocaleString()," "),C(1),S("ngForOf",e)}}function K9e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",44),Z(2,J9e,3,2,"ng-template",null,38,Uo),x()()),2&t){const e=B();C(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function Q9e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),N(4),x()()),2&t){const e=n.$implicit;C(2),S("ngStyle",nr(3,Y2,e.color)),C(2),Tf("",e.series,": ",e.value,"")}}function Z9e(t,n){if(1&t&&(b(0,"div",39),N(1),Z(2,Q9e,5,5,"span",40),x()),2&t){const e=n.model;C(1),yn(" ",e[0].name.toLocaleString()," "),C(1),S("ngForOf",e)}}function eVe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",45),Z(2,Z9e,3,2,"ng-template",null,38,Uo),x()()),2&t){const e=B();C(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let tVe=(()=>{class t{route;consoleService;formBuilder;error="";showDelta=!1;statusData;rateGraphData=[];latencyGraphData=[];inputGraphData=[];outputGraphData=[];rangeForm;ranges={1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"};rangesKeys=Object.keys(this.ranges).map(e=>+e);colorScheme={domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]};samples=60;refreshTimer;$refreshTimer;constructor(e,i,r){this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=zy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=zy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}static \u0275fac=function(i){return new(i||t)(he(Pr),he(bi),he(vl))};static \u0275cmp=$t({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Status"),x(),Z(2,P9e,4,2,"ngb-alert",1),b(3,"table",2),be("mouseover",function(){return r.showDelta=!0})("mouseout",function(){return r.showDelta=!1}),b(4,"thead",3)(5,"tr")(6,"th",4),N(7,"Node name"),x(),b(8,"th",4),N(9,"Sessions"),x(),b(10,"th",4),N(11,"Presences"),x(),b(12,"th",4),N(13,"Authoritative Matches"),x(),b(14,"th",4),N(15,"Goroutines"),x()()(),Z(16,V9e,12,5,"tbody",5),x(),b(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),N(21,"View:"),x(),b(22,"div",9)(23,"select",10),be("change",function(s){return r.setRange(s)}),Z(24,H9e,2,2,"option",11),mA(25,"sortNumbers"),x()()()()(),b(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),N(30,"Processing Latency"),x(),b(31,"small"),N(32," (ms)"),x()()(),b(33,"div",13)(34,"div",14)(35,"h5",15),N(36,"Rate"),x(),b(37,"small"),N(38," (rpc/s)"),x()()()(),b(39,"div",12)(40,"div",16),Z(41,G9e,4,12,"div",17),x(),b(42,"div",16),Z(43,Y9e,4,12,"div",17),x()(),b(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),N(48,"Input"),x(),b(49,"small"),N(50," (kb/s)"),x()()(),b(51,"div",13)(52,"div",14)(53,"h5",15),N(54,"Output"),x(),b(55,"small"),N(56," (kb/s)"),x()()()(),b(57,"div",12)(58,"div",16),Z(59,K9e,4,12,"div",17),x(),b(60,"div",16),Z(61,eVe,4,12,"div",17),x()()),2&i&&(C(2),S("ngIf",r.error),C(14),S("ngIf",r.statusData),C(1),S("formGroup",r.rangeForm),C(7),S("ngForOf",gA(25,8,r.rangesKeys)),C(17),S("ngIf",r.latencyGraphData.length>0),C(2),S("ngIf",r.rateGraphData.length>0),C(16),S("ngIf",r.inputGraphData.length>0),C(2),S("ngIf",r.outputGraphData.length>0))},dependencies:function(){return[Ln,_n,c7,Nw,a7,po,ju,OPe,g9e,el,VC,HC,Cv,Qa,Za,ca,Aa,iVe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})}return t})(),nVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(et(r=>Rn(r.nodes.map(o=>o.name)))).pipe(Ll(r=>(e.data={...e.data,error:r},Rn([]))))}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iVe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=cl({name:"sortNumbers",type:t,pure:!1})}return t})();var rVe=ke(870),WI=ke(327);const oVe=["fileSelector"];function sVe(t,n){if(1&t&&(b(0,"div",8),N(1),x()),2&t){const e=B(2);C(1),kt(e.dropZoneLabel)}}function aVe(t,n){if(1&t){const e=yt();b(0,"div")(1,"input",9),be("click",function(r){return $e(e),Be(B(2).openFileSelector(r))}),x()()}if(2&t){const e=B(2);C(1),kf("value",e.browseBtnLabel),S("className",e.browseBtnClassName)}}function lVe(t,n){if(1&t&&(Z(0,sVe,2,1,"div",6),Z(1,aVe,2,2,"div",7)),2&t){const e=B();S("ngIf",e.dropZoneLabel),C(1),S("ngIf",e.showBrowseBtn)}}function cVe(t,n){}const uVe=function(t){return{openFileSelector:t}};class X2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let Gq=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),Wq=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new it,this.onFileOver=new it,this.onFileLeave=new it,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new X2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=zy(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new X2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new X2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(he(ir),he(aa))},t.\u0275cmp=$t({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&yi(r,Gq,5,oo),2&e){let o;wn(o=Cn())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&jo(oVe,7),2&e){let r;wn(r=Cn())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(b(0,"div",0),be("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),b(1,"div",1)(2,"input",2,3),be("change",function(o){return i.uploadFiles(o)}),x(),Z(4,lVe,2,2,"ng-template",null,4,Uo),Z(6,cVe,0,0,"ng-template",5),x()()),2&e){const r=qs(5);jn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),S("className",i.dropZoneClassName),C(1),S("className",i.contentClassName),C(1),S("accept",i.accept)("multiple",i.multiple),ut("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),C(4),S("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",nr(13,uVe,i.openFileSelector))}},dependencies:[_n,Eu],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),dVe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t,bootstrap:function(){return[Wq]}}),t.\u0275inj=wi({imports:[Mf]}),t})();function hVe(t,n){1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),N(3,"Failed to retrieve configuration."),x()()),2&t&&S("dismissible",!1)}function fVe(t,n){if(1&t&&(b(0,"span",33),N(1),x()),2&t){const e=B(2).$implicit;S("id",e.name),C(1),kt(e.value)}}function pVe(t,n){1&t&&(b(0,"span",34),N(1,"(empty)"),x()),2&t&&S("id",B(2).$implicit.name)}function mVe(t,n){if(1&t&&(b(0,"div",35)(1,"b"),N(2),x(),b(3,"label",27)(4,"a",28),ge(5,"img",10),x()()()),2&t){const e=B(2).index,i=B();C(2),kt(i.flatConfig[e+1].name),C(1),S("for",i.flatConfig[e+1].name),C(1),Jp("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",i.flatConfig[e+1].name,"",L1)}}function gVe(t,n){if(1&t&&(b(0,"span",33),N(1),x()),2&t){const e=B(3).index,i=B();S("id",i.flatConfig[e+1].name),C(1),kt(i.flatConfig[e+1].value)}}function vVe(t,n){if(1&t&&(b(0,"span",34),N(1,"(empty)"),x()),2&t){const e=B(3).index;S("id",B().flatConfig[e+1].name)}}function yVe(t,n){if(1&t&&(b(0,"div",36),Z(1,gVe,2,2,"span",29),Z(2,vVe,2,1,"span",30),x()),2&t){const e=B(2).index,i=B();C(1),S("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),C(1),S("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function _Ve(t,n){if(1&t&&(b(0,"div",26)(1,"div",7)(2,"b"),N(3),x(),b(4,"label",27)(5,"a",28),ge(6,"img",10),x()()(),b(7,"div",7),Z(8,fVe,2,2,"span",29),Z(9,pVe,2,1,"span",30),x(),Z(10,mVe,6,3,"div",31),Z(11,yVe,3,2,"div",32),x()),2&t){const e=B(),i=e.index,r=e.$implicit,o=B();jn("border-top-0",i>0),C(3),kt(r.name),C(1),S("for",r.name),C(1),Jp("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",r.value.name,"",L1),C(3),S("ngIf",!o.isEmpty(r.value)),C(1),S("ngIf",o.isEmpty(r.value)),C(1),S("ngIf",i{class t{config;route;httpClient;modalService;consoleService;formBuilder;configError="";uploadError="";deleteError="";jsonConfig;flatConfig;nakamaVersion;file;uploading=!1;uploadSuccess=!1;deleteSuccess=!1;deleting=!1;confirmDeleteForm;apiConfig;constructor(e,i,r,o,s,a){this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",wo.compose([wo.required,wo.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,rVe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});WI.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(J3(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(he(W3),he(Pr),he(qC),he(SO),he(bi),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:43,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height",""],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["confirmDelete",""],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],[1,"mt-2"],["autocomplete","off",3,"formGroup"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(i,r){if(1&i){const o=yt();Z(0,hVe,4,1,"ngb-alert",0),b(1,"h2",1),N(2,"Server Configuration"),x(),b(3,"div",2)(4,"h5")(5,"b"),N(6,"Server version:"),x(),N(7),x(),b(8,"button",3),be("click",function(){return r.exportYaml()}),N(9,"Export Configuration"),x()(),b(10,"div",4),Z(11,bVe,2,1,"ng-container",5),b(12,"div",6)(13,"div",7)(14,"b"),N(15,"runtime.env"),x(),b(16,"label",8)(17,"a",9),ge(18,"img",10),x()()(),b(19,"div",11),Z(20,wVe,2,1,"div",12),Z(21,CVe,3,0,"div",12),x()()(),b(22,"h5",13),N(23,"Import storage data"),x(),b(24,"p"),N(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),Z(26,SVe,6,2,"ngb-alert",0),Z(27,kVe,4,1,"ngb-alert",14),b(28,"ngx-file-drop",15),be("onFileDrop",function(a){return r.dropped(a)}),Z(29,DVe,2,0,"ng-template",16),x(),b(30,"h5",13),N(31,"Delete all data"),x(),Z(32,TVe,6,2,"ngb-alert",0),Z(33,EVe,4,1,"ngb-alert",14),b(34,"div",17)(35,"div"),ge(36,"img",18),b(37,"small",19),N(38,"Warning - this operation is not reversible!"),x()(),Z(39,MVe,19,5,"ng-template",null,20,Uo),b(41,"button",21),be("click",function(){$e(o);const a=qs(40);return Be(r.openDeleteDataModal(a))}),N(42,"Delete all"),x()()}2&i&&(S("ngIf",r.configError),C(7),yn(" ",r.nakamaVersion,""),C(4),S("ngForOf",r.flatConfig),C(9),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&r.jsonConfig.runtime.env.length>0),C(1),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&0===r.jsonConfig.runtime.env.length),C(5),S("ngIf",r.uploadError),C(1),S("ngIf",r.uploadSuccess),C(1),S("disabled",r.uploading),C(4),S("ngIf",r.deleteError),C(1),S("ngIf",r.deleteSuccess),C(8),S("disabled",r.deleting))},dependencies:[Wq,Gq,Af,Ln,_n,po,el,Ta,Qa,Za,ca,Aa],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})}return t})(),IVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function NVe(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function FVe(t,n){1&t&&(b(0,"tr")(1,"td",51),N(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(C(1),S("colSpan",4))}function PVe(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td"),N(2),x(),b(3,"td"),N(4),x(),b(5,"td")(6,"span",36),N(7,"Administrator"),x(),b(8,"span",36),N(9,"Developer"),x(),b(10,"span",36),N(11,"Maintainer"),x(),b(12,"span",36),N(13,"View Only"),x()(),b(14,"td")(15,"button",52),be("click",function(){const o=$e(e).$implicit;return Be(B().deleteUser(o.username))}),N(16,"Delete"),x()()()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.username),C(2),kt(e.email),C(2),S("hidden",e.role!==i.adminRole),C(2),S("hidden",e.role!==i.developerRole),C(2),S("hidden",e.role!==i.maintainerRole),C(2),S("hidden",e.role!==i.readonlyRole)}}function jVe(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),N(3,"An error occurred:"),x(),b(4,"p",53),N(5),x()()),2&t){const e=B();S("dismissible",!1),C(5),kt(e.userCreateError)}}const qI=function(t){return{"is-invalid":t}};let RVe=(()=>{class t{route;consoleService;formBuilder;error="";userCreateError="";users=[];createUserForm;adminRole=ii.USER_ROLE_ADMIN;developerRole=ii.USER_ROLE_DEVELOPER;maintainerRole=ii.USER_ROLE_MAINTAINER;readonlyRole=ii.USER_ROLE_READONLY;constructor(e,i,r){this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",wo.required],email:["",[wo.required,wo.email]],password:["",wo.compose([wo.required,wo.minLength(8)])],role:[+this.readonlyRole,wo.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}deleteUser(e){this.error="",this.consoleService.deleteUser("",e).pipe(et(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=ii.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=ii.USER_ROLE_ADMIN;break;case 2:e=ii.USER_ROLE_DEVELOPER;break;case 3:e=ii.USER_ROLE_MAINTAINER;break;case 4:e=ii.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value}).pipe(et(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(bi),he(vl))};static \u0275cmp=$t({type:t,selectors:[["app-users"]],decls:121,vars:25,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type","dismissible"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"text-muted",3,"colSpan"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Management"),x(),Z(2,NVe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th",4),N(7,"Username"),x(),b(8,"th"),N(9,"Email"),x(),b(10,"th",5),N(11,"Role"),x(),b(12,"th",6),N(13,"Action"),x()()(),b(14,"tbody"),Z(15,FVe,3,1,"tr",7),Z(16,PVe,17,6,"tr",8),x()(),b(17,"h5",9),N(18,"Add new user"),x(),b(19,"ngb-alert",10)(20,"h6",11),N(21,"User roles"),x(),b(22,"div",12)(23,"div",13)(24,"div",14),ge(25,"img",15),b(26,"h6",16),N(27,"Administrator"),x()(),b(28,"small"),N(29," Owners have complete control over the server, its users and resources. "),x()(),b(30,"div",13)(31,"div",14),ge(32,"img",17),b(33,"h6",16),N(34,"Developer"),x()(),b(35,"small"),N(36," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),b(37,"div",13)(38,"div",14),ge(39,"img",18),b(40,"h6",16),N(41,"Maintainer"),x()(),b(42,"small"),N(43," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),b(44,"div",13)(45,"div",14),ge(46,"img",19),b(47,"h6",16),N(48,"View Only"),x()(),b(49,"small"),N(50," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),Z(51,jVe,6,2,"ngb-alert",1),b(52,"div",20)(53,"form",21),be("ngSubmit",function(){return r.addUser()}),b(54,"div",22)(55,"div",23)(56,"div",24)(57,"label",25),N(58,"Email"),x()(),b(59,"div",26),ge(60,"input",27),b(61,"div",28),N(62,"Email is required"),x()()()(),b(63,"div",22)(64,"div",23)(65,"div",24)(66,"label",29),N(67,"Username"),x()(),b(68,"div",26),ge(69,"input",30),b(70,"div",28),N(71,"Username is required"),x()()()(),b(72,"div",22)(73,"div",23)(74,"div",24)(75,"label",31),N(76,"Password"),x()(),b(77,"div",26),ge(78,"input",32),b(79,"div",28),N(80,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),b(81,"div",22)(82,"div",23)(83,"div",24)(84,"label",33),N(85,"Role"),x()(),b(86,"div",26)(87,"div",34)(88,"button",35)(89,"span",36),N(90,"Administrator"),x(),b(91,"span",36),N(92,"Developer"),x(),b(93,"span",36),N(94,"Maintainer"),x(),b(95,"span",36),N(96,"View Only"),x()(),b(97,"div",37),ge(98,"button",38),b(99,"div",39)(100,"button",40),be("click",function(){return r.f.role.setValue(+r.adminRole)}),N(101,"Administrator"),x(),b(102,"button",40),be("click",function(){return r.f.role.setValue(+r.developerRole)}),N(103,"Developer"),x(),b(104,"button",40),be("click",function(){return r.f.role.setValue(+r.maintainerRole)}),N(105,"Maintainer"),x(),b(106,"button",40),be("click",function(){return r.f.role.setValue(+r.readonlyRole)}),N(107,"View Only"),x()()()(),b(108,"div",28),N(109,"Role is required"),x()()()(),b(110,"div",41)(111,"div",42),ge(112,"div",24),b(113,"div",26)(114,"div",43),ge(115,"input",44),b(116,"label",45),N(117,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),b(118,"div",46)(119,"button",47),N(120,"Save"),x()()()()),2&i&&(C(2),S("ngIf",r.error),C(13),S("ngIf",0===r.users.length),C(1),S("ngForOf",r.users),C(3),S("type","secondary")("dismissible",!1),C(32),S("ngIf",r.userCreateError),C(2),S("formGroup",r.createUserForm),C(7),S("ngClass",nr(19,qI,r.f.email.dirty&&r.f.email.errors)),C(1),S("hidden",r.f.email.disabled||r.f.email.valid||r.f.email.pristine),C(8),S("ngClass",nr(21,qI,r.f.username.dirty&&r.f.username.errors)),C(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),C(8),S("ngClass",nr(23,qI,r.f.password.dirty&&r.f.password.errors)),C(1),S("hidden",r.f.password.disabled||r.f.password.valid||r.f.password.pristine),C(10),S("hidden",r.f.role.value!==+r.adminRole),C(2),S("hidden",r.f.role.value!==+r.developerRole),C(2),S("hidden",r.f.role.value!==+r.maintainerRole),C(2),S("hidden",r.f.role.value!==+r.readonlyRole),C(13),S("hidden",r.f.role.disabled||r.f.role.valid||r.f.role.pristine),C(11),S("disabled",r.createUserForm.invalid))},dependencies:[Af,Ln,_n,po,ju,bm,qf,Wf,el,Ta,MC,Qa,Za,Hf,ca,Aa],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})}return t})(),LVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $Ve(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Failed to retrieve runtime information: ",e.error,"")}}function BVe(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td",13),N(4),x()()),2&t){const e=n.$implicit;C(2),kt(e.path),C(2),kt(e.mod_time)}}function VVe(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No Go modules were found."),x(),ge(3,"td"),x())}function HVe(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td",13),N(4),x()()),2&t){const e=n.$implicit;C(2),kt(e.path),C(2),kt(e.mod_time)}}function UVe(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No Lua modules were found."),x(),ge(3,"td"),x())}function zVe(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td",13),N(4),x()()),2&t){const e=n.$implicit;C(2),kt(e.path),C(2),kt(e.mod_time)}}function GVe(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No JavaScript modules were found."),x(),ge(3,"td"),x())}const YI=function(){return["/apiexplorer"]},XI=function(t){return{endpoint:t}};function WVe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),N(3),x()(),b(4,"td",15)(5,"a",16),N(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;C(3),kt(e),C(2),S("routerLink",pl(3,YI))("queryParams",nr(4,XI,e))}}function qVe(t,n){1&t&&(b(0,"tr")(1,"td",17),N(2,"No Go RPC functions were found."),x()())}function YVe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),N(3),x()(),b(4,"td",15)(5,"a",16),N(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;C(3),kt(e),C(2),S("routerLink",pl(3,YI))("queryParams",nr(4,XI,e))}}function XVe(t,n){1&t&&(b(0,"tr")(1,"td",17),N(2,"No Lua RPC functions were found."),x()())}function JVe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),N(3),x()(),b(4,"td",15)(5,"a",16),N(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;C(3),kt(e),C(2),S("routerLink",pl(3,YI))("queryParams",nr(4,XI,e))}}function KVe(t,n){1&t&&(b(0,"tr")(1,"td",17),N(2,"No JavaScript RPC functions were found."),x()())}let QVe=(()=>{class t{route;consoleService;error="";runtimeInfo;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(he(Pr),he(bi))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Runtime Modules"),x(),Z(2,$Ve,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),N(7,"Go Modules"),x(),b(8,"th",4),N(9,"Last Modified"),x()()(),b(10,"tbody"),Z(11,BVe,5,2,"tr",5),Z(12,VVe,4,0,"tr",6),x(),b(13,"thead",3)(14,"tr")(15,"th",7),N(16,"Lua Modules"),x()()(),b(17,"tbody"),Z(18,HVe,5,2,"tr",5),Z(19,UVe,4,0,"tr",6),x(),b(20,"thead",3)(21,"tr")(22,"th",7),N(23,"JavaScript Modules"),x()()(),b(24,"tbody"),Z(25,zVe,5,2,"tr",5),Z(26,GVe,4,0,"tr",6),x()(),b(27,"h4",8),N(28,"Registered RPC Functions"),x(),b(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),N(33,"Go RPC Functions"),x()()(),b(34,"tbody"),Z(35,WVe,7,6,"tr",5),Z(36,qVe,3,0,"tr",6),x(),b(37,"thead",3)(38,"tr")(39,"th",7),N(40,"Lua RPC Functions"),x()()(),b(41,"tbody"),Z(42,YVe,7,6,"tr",5),Z(43,XVe,3,0,"tr",6),x(),b(44,"thead",3)(45,"tr")(46,"th",7),N(47,"JavaScript RPC Functions"),x()()(),b(48,"tbody"),Z(49,JVe,7,6,"tr",5),Z(50,KVe,3,0,"tr",6),x()()),2&i&&(C(2),S("ngIf",r.error),C(9),S("ngForOf",r.runtimeInfo.go_modules),C(1),S("ngIf",0===r.runtimeInfo.go_modules.length),C(6),S("ngForOf",r.runtimeInfo.lua_modules),C(1),S("ngIf",0===r.runtimeInfo.lua_modules.length),C(6),S("ngForOf",r.runtimeInfo.js_modules),C(1),S("ngIf",0===r.runtimeInfo.js_modules.length),C(9),S("ngForOf",r.runtimeInfo.go_rpc_functions),C(1),S("ngIf",0===r.runtimeInfo.go_rpc_functions.length),C(6),S("ngForOf",r.runtimeInfo.lua_rpc_functions),C(1),S("ngIf",0===r.runtimeInfo.lua_rpc_functions.length),C(6),S("ngForOf",r.runtimeInfo.js_rpc_functions),C(1),S("ngIf",0===r.runtimeInfo.js_rpc_functions.length))},dependencies:[Mu,Ln,_n,po],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})}return t})(),ZVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eHe(t,n){1&t&&(b(0,"span"),N(1,"Filter by collection"),x())}function tHe(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B();C(1),kt(e.f.collection.value)}}function nHe(t,n){if(1&t){const e=yt();b(0,"button",34),be("click",function(){const o=$e(e).$implicit;return Be(B().f.collection.setValue(o))}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function iHe(t,n){if(1&t&&(b(0,"ngb-alert",35),ge(1,"img",36),b(2,"h6",37),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error when querying storage objects: ",e.error,"")}}function rHe(t,n){1&t&&(b(0,"th",38),N(1,"Remove"),x())}function oHe(t,n){1&t&&(b(0,"tr")(1,"td",39),N(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function sHe(t,n){if(1&t){const e=yt();b(0,"td",42)(1,"button",43),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteObject(r,s,a))}),N(2,"Delete"),x()()}}function aHe(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",40),be("click",function(){const o=$e(e).$implicit;return Be(B().viewObject(o))}),N(2),x(),b(3,"td",40),be("click",function(){const o=$e(e).$implicit;return Be(B().viewObject(o))}),N(4),x(),b(5,"td",40),be("click",function(){const o=$e(e).$implicit;return Be(B().viewObject(o))}),N(6),x(),b(7,"td",40),be("click",function(){const o=$e(e).$implicit;return Be(B().viewObject(o))}),N(8),x(),Z(9,sHe,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.collection),C(2),kt(e.key),C(2),kt(e.user_id),C(2),kt(e.update_time),C(1),S("ngIf",i.deleteAllowed())}}let lHe=(()=>{class t{route;router;consoleService;authService;formBuilder;systemUserId="00000000-0000-0000-0000-000000000000";error="";collections=[];objects=[];objectCount=0;nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Storage Objects"),x(),b(2,"h6",1),N(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),be("ngSubmit",function(){return r.search(0)}),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),Z(12,eHe,2,0,"span",10),Z(13,tHe,2,1,"span",10),x(),b(14,"div",11)(15,"button",12),be("click",function(){return r.f.collection.reset()}),N(16,"\u2718 Deselect collection"),x(),ge(17,"div",13),Z(18,nHe,2,1,"button",14),x()()(),ge(19,"input",15)(20,"input",16),b(21,"div",17)(22,"span",18),be("click",function(){return r.f.user_id.setValue(r.systemUserId)}),ge(23,"img",19),x()(),b(24,"div",17)(25,"button",20),be("click",function(){return r.search(0)}),N(26,"Search"),x()()()()(),b(27,"div",21)(28,"div",22)(29,"button",23),be("click",function(){return r.search(0)}),ge(30,"img",24),x(),b(31,"button",23),be("click",function(){return r.search(1)}),ge(32,"img",25),x()()()()(),Z(33,iHe,4,2,"ngb-alert",26),b(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),N(39,"Collection Name"),x(),b(40,"th"),N(41,"Key Name"),x(),b(42,"th",30),N(43,"User ID"),x(),b(44,"th",31),N(45,"Last Update"),x(),Z(46,rHe,2,0,"th",32),x()(),b(47,"tbody"),Z(48,oHe,3,0,"tr",10),Z(49,aHe,10,5,"tr",33),x()()()),2&i&&(C(3),yn("",r.objectCount," objects found."),C(4),S("formGroup",r.searchForm),C(4),S("disabled",0===r.collections.length),C(1),S("ngIf",!r.f.collection.value||""===r.f.collection.value),C(1),S("ngIf",r.f.collection.value&&""!==r.f.collection.value),C(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),C(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),C(1),S("ngForOf",r.collections),C(7),S("disabled",r.disableSearch()),C(4),S("disabled",0===r.objects.length),C(2),S("disabled",""===r.nextCursor),C(2),S("ngIf",r.error),C(13),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.objects.length),C(1),S("ngForOf",r.objects))},dependencies:[Ln,_n,po,ju,bm,qf,Wf,el,Ta,Qa,Za,ca,Aa],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),cHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var JI,qq,Yq,Xq,Jq,Kq,Qq,Zq,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,_Y,bY,xY,wY,CY,SY,kY,DY,TY,EY,AY,MY,OY,IY,NY,FY,PY,jY,RY,LY,$Y,BY,VY,HY,UY,zY,GY,WY,qY,YY,XY,JY,KY,QY,ZY,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,_X,bX,xX,wX,CX,SX,kX,DX,TX,EX,AX,MX,OX,IX,NX,FX,PX,jX,RX,LX,$X,BX,VX,HX,UX,zX,GX,WX,qX,YX,XX,JX,KX,QX,ZX,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,_J,bJ,xJ,wJ,CJ,SJ,kJ,DJ,TJ,EJ,AJ,MJ,OJ,IJ,NJ,FJ,PJ,jJ,RJ,LJ,$J,BJ,VJ,HJ,UJ,zJ,GJ,WJ,qJ,YJ,XJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,_K,bK,xK,wK,CK,SK,kK,DK,TK,EK,AK,MK,OK,IK,NK,FK,PK,jK,RK,LK,$K,BK,VK,HK,UK,zK,GK,WK,qK,YK,XK,JK,KK,QK,ZK,eQ,tQ,nQ,iQ,rQ,oQ,sQ,aQ,lQ,cQ,uQ,dQ,hQ,fQ,pQ,mQ,gQ,vQ,yQ,_Q,bQ,xQ,wQ,CQ,SQ,kQ,DQ,TQ,EQ,AQ,MQ,OQ,IQ,NQ,FQ,PQ,jQ,RQ,LQ,$Q,BQ,VQ,HQ,UQ,zQ,GQ,WQ,qQ,YQ,XQ,JQ,KQ,QQ,ZQ,eZ,tZ,nZ,iZ,rZ,dHe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],hHe=["mainAxis","crossAxis","limiter"];function M_(t){var n="function"==typeof Map?new Map:void 0;return M_=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return KI(e,arguments,Wi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),O_(r,e)},M_(t)}function KI(t,n,e){return(KI=uZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&O_(a,o.prototype),a}).apply(null,arguments)}function Ee(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function oZ(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Re(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=J2(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function pn(){pn=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(X,te,P){X[te]=P.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(X,te,P){return Object.defineProperty(X,te,{value:P,enumerable:!0,configurable:!0,writable:!0}),X[te]}try{l({},"")}catch{l=function(te,P,W){return te[P]=W}}function c(X,te,P,W){var H=Object.create((te&&te.prototype instanceof h?te:h).prototype),le=new R(W||[]);return i(H,"_invoke",{value:k(X,P,le)}),H}function u(X,te,P){try{return{type:"normal",arg:X.call(te,P)}}catch(W){return{type:"throw",arg:W}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(U([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function _(X){["next","throw","return"].forEach(function(te){l(X,te,function(P){return this._invoke(te,P)})})}function w(X,te){function P(J,H,le,E){var O=u(X[J],X,H);if("throw"!==O.type){var I=O.arg,q=I.value;return q&&"object"==mn(q)&&e.call(q,"__await")?te.resolve(q.__await).then(function(V){P("next",V,le,E)},function(V){P("throw",V,le,E)}):te.resolve(q).then(function(V){I.value=V,le(I)},function(V){return P("throw",V,le,E)})}E(O.arg)}var W;i(this,"_invoke",{value:function(J,H){function le(){return new te(function(E,O){P(J,H,E,O)})}return W=W?W.then(le,le):le()}})}function k(X,te,P){var W="suspendedStart";return function(J,H){if("executing"===W)throw new Error("Generator is already running");if("completed"===W){if("throw"===J)throw H;return{value:void 0,done:!0}}for(P.method=J,P.arg=H;;){var le=P.delegate;if(le){var E=D(le,P);if(E){if(E===d)continue;return E}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if("suspendedStart"===W)throw W="completed",P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);W="executing";var O=u(X,te,P);if("normal"===O.type){if(W=P.done?"completed":"suspendedYield",O.arg===d)continue;return{value:O.arg,done:P.done}}"throw"===O.type&&(W="completed",P.method="throw",P.arg=O.arg)}}}function D(X,te){var P=te.method,W=X.iterator[P];if(void 0===W)return te.delegate=null,"throw"===P&&X.iterator.return&&(te.method="return",te.arg=void 0,D(X,te),"throw"===te.method)||"return"!==P&&(te.method="throw",te.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var J=u(W,X.iterator,te.arg);if("throw"===J.type)return te.method="throw",te.arg=J.arg,te.delegate=null,d;var H=J.arg;return H?H.done?(te[X.resultName]=H.value,te.next=X.nextLoc,"return"!==te.method&&(te.method="next",te.arg=void 0),te.delegate=null,d):H:(te.method="throw",te.arg=new TypeError("iterator result is not an object"),te.delegate=null,d)}function L(X){var te={tryLoc:X[0]};1 in X&&(te.catchLoc=X[1]),2 in X&&(te.finallyLoc=X[2],te.afterLoc=X[3]),this.tryEntries.push(te)}function z(X){var te=X.completion||{};te.type="normal",delete te.arg,X.completion=te}function R(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(L,this),this.reset(!0)}function U(X){if(X){var te=X[o];if(te)return te.call(X);if("function"==typeof X.next)return X;if(!isNaN(X.length)){var P=-1,W=function J(){for(;++P=0;--W){var J=this.tryEntries[W],H=J.completion;if("root"===J.tryLoc)return P("end");if(J.tryLoc<=this.prev){var le=e.call(J,"catchLoc"),E=e.call(J,"finallyLoc");if(le&&E){if(this.prev=0;--P){var W=this.tryEntries[P];if(W.tryLoc<=this.prev&&e.call(W,"finallyLoc")&&this.prev=0;--te){var P=this.tryEntries[te];if(P.finallyLoc===X)return this.complete(P.completion,P.afterLoc),z(P),d}},catch:function(X){for(var te=this.tryEntries.length-1;te>=0;--te){var P=this.tryEntries[te];if(P.tryLoc===X){var W=P.completion;if("throw"===W.type){var J=W.arg;z(P)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(X,te,P){return this.delegate={iterator:U(X),resultName:te,nextLoc:P},"next"===this.method&&(this.arg=void 0),d}},t}function sZ(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Ki(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){sZ(o,i,r,s,a,"next",l)}function a(l){sZ(o,i,r,s,a,"throw",l)}s(void 0)})}}function Un(t,n){return lZ(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||J2(t,n)||aZ()}function aZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lZ(t){if(Array.isArray(t))return t}function cZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function Qe(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wi(t){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function Ce(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function dZ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function Yd(t,n){return new t(n)}var N_,Q2=new Map,tN=0;function SZ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function yHe(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=eN(t),m=Q2.get(p)||function _He(t,n){var e={stylesheet:gHe(n),rules:{}};return Q2.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),tN+=1,f}function F_(t){N_=t}function qv(){if(!N_)throw new Error("Function called outside component initialization");return N_}function qc(t){qv().$$.on_mount.push(t)}function Vu(t){qv().$$.on_destroy.push(t)}function kZ(){var t=qv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=CZ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function DZ(t,n){return qv().$$.context.set(t,n),n}function ma(t){return qv().$$.context.get(t)}function Z2(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Yv=[],Hi=[],eS=[],nN=[],TZ=Promise.resolve(),iN=!1;function EZ(){iN||(iN=!0,TZ.then(AZ))}function Ul(){return EZ(),TZ}function jm(t){eS.push(t)}function Hu(t){nN.push(t)}var tS,rN=new Set,Xv=0;function AZ(){if(0===Xv){var t=N_;do{try{for(;Xvl.start&&(a=d(l,_),l=null,oN(t,a.b,"start"),z&&(u(),c=SZ(t,s,a.b,a.duration,0,k,o.css))),a&&(U>=a.end?(L(s=a.b,1-s),oN(t,a.b,"end"),l||(a.b?u():--a.group.r||so(a.group.c)),a=null):U>=a.start&&(s=a.a+a.d*k((U-a.start)/a.duration),L(s,1-s))),!(!a&&!l)},0===I_.size&&ZI(_Z),new Promise(function(U){I_.add({c:p,f:U})}))}return{run:function(f){fa(o)?(tS||(tS=Promise.resolve()).then(function(){tS=null}),tS).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var sN=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function CHe(t,n){t.d(1),n.delete(t.key)}function aN(t,n){ae(t,1,1,function(){n.delete(t.key)})}function rS(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var _=d(r,o,p),w=e(_),k=s.get(w);k?i&&k.p(_,n):(k=c(w,_)).c(),v.set(w,g[p]=k),w in m&&y.set(w,Math.abs(p-m[w]))}var D=new Set,L=new Set;function z(P){K(P,1),P.m(a,u),s.set(P.key,P),u=P.first,f--}for(;h&&f;){var R=g[f-1],U=t[h-1],G=R.key,X=U.key;R===U?(u=R.first,h--,f--):v.has(X)?!s.has(G)||D.has(G)?z(R):L.has(X)?h--:y.get(G)>y.get(X)?(L.add(G),z(R)):(D.add(X),h--):(l(U,s),h--)}for(;h--;){var te=t[h];v.has(te.key)||l(te,s)}for(;f;)z(g[f-1]);return g}function Rm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function oS(t){return"object"===mn(t)&&null!==t?t:{}}function Uu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function ft(t){t&&t.c()}function dt(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||jm(function(){var a,l=t.$$.on_mount.map(mZ).filter(fa);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,ri(l)):so(l),t.$$.on_mount=[]}),s.forEach(jm)}function ht(t,n){var e=t.$$;null!==e.fragment&&(so(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Nn(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=N_;F_(t);var c=t.$$={fragment:null,ctx:[],props:o,update:jt,not_equal:r,bound:gZ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:gZ(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function SHe(t,n){-1===t.$$.dirty[0]&&(Yv.push(t),EZ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function THe(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function EHe(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?pZ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var MHe=sN.window;function OHe(t){di(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function OZ(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=t[1].closeButton&&IZ(t),w=t[2];return w&&(s=Yd(w,{})),{c:function(){n=ve("div"),e=ve("div"),i=ve("div"),_&&_.c(),r=tt(),o=ve("div"),s&&ft(s.$$.fragment),j(o,"class",a=So(t[1].classContent)+" svelte-n7cvum"),j(o,"style",t[9]),At(o,"content",!t[0]),j(i,"class",l=So(t[1].classWindow)+" svelte-n7cvum"),j(i,"role","dialog"),j(i,"aria-modal","true"),j(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),j(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),j(i,"style",t[8]),At(i,"window",!t[0]),j(e,"class",h=So(t[1].classWindowWrap)+" svelte-n7cvum"),j(e,"style",t[7]),At(e,"wrap",!t[0]),j(n,"id",f=t[1].id),j(n,"class",p=So(t[1].classBg)+" svelte-n7cvum"),j(n,"style",t[6]),At(n,"bg",!t[0])},m:function(k,D){Pe(k,n,D),ue(n,e),ue(e,i),_&&_.m(i,null),ue(i,r),ue(i,o),s&&dt(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[It(i,"introstart",function(){fa(t[13])&&t[13].apply(this,arguments)}),It(i,"outrostart",function(){fa(t[14])&&t[14].apply(this,arguments)}),It(i,"introend",function(){fa(t[15])&&t[15].apply(this,arguments)}),It(i,"outroend",function(){fa(t[16])&&t[16].apply(this,arguments)}),It(n,"mousedown",t[20]),It(n,"mouseup",t[21])],v=!0)},p:function(k,D){if((t=k)[1].closeButton?_?(_.p(t,D),2&D[0]&&K(_,1)):((_=IZ(t)).c(),K(_,1),_.m(i,r)):_&&(Rt(),ae(_,1,1,function(){_=null}),Lt()),w!==(w=t[2])){if(s){Rt();var L=s;ae(L.$$.fragment,1,0,function(){ht(L,1)}),Lt()}w?(ft((s=Yd(w,{})).$$.fragment),K(s.$$.fragment,1),dt(s,o,null)):s=null}(!g||2&D[0]&&a!==(a=So(t[1].classContent)+" svelte-n7cvum"))&&j(o,"class",a),(!g||512&D[0])&&j(o,"style",t[9]),(!g||3&D[0])&&At(o,"content",!t[0]),(!g||2&D[0]&&l!==(l=So(t[1].classWindow)+" svelte-n7cvum"))&&j(i,"class",l),(!g||2&D[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&j(i,"aria-label",c),(!g||2&D[0]&&u!==(u=t[1].ariaLabelledBy||null))&&j(i,"aria-labelledby",u),(!g||256&D[0])&&j(i,"style",t[8]),(!g||3&D[0])&&At(i,"window",!t[0]),(!g||2&D[0]&&h!==(h=So(t[1].classWindowWrap)+" svelte-n7cvum"))&&j(e,"class",h),(!g||128&D[0])&&j(e,"style",t[7]),(!g||3&D[0])&&At(e,"wrap",!t[0]),(!g||2&D[0]&&f!==(f=t[1].id))&&j(n,"id",f),(!g||2&D[0]&&p!==(p=So(t[1].classBg)+" svelte-n7cvum"))&&j(n,"class",p),(!g||64&D[0])&&j(n,"style",t[6]),(!g||3&D[0])&&At(n,"bg",!t[0])},i:function(k){g||(K(_),s&&K(s.$$.fragment,k),jm(function(){d||(d=iS(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),jm(function(){m||(m=iS(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(k){ae(_),s&&ae(s.$$.fragment,k),d||(d=iS(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=iS(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(k){k&&Fe(n),_&&_.d(),s&&ht(s),t[50](null),k&&d&&d.end(),t[51](null),t[52](null),k&&m&&m.end(),v=!1,so(y)}}}function IZ(t){var n,e,i,r,o,s=[NHe,IHe],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=br()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Rt(),ae(a[d],1,1,function(){a[d]=null}),Lt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),K(i,1),i.m(r.parentNode,r))},i:function(c){o||(K(i),o=!0)},o:function(c){ae(i),o=!1},d:function(c){a[e].d(c),c&&Fe(r)}}}function IHe(t){var n,e,i,r;return{c:function(){j(n=ve("button"),"class",e=So(t[1].classCloseButton)+" svelte-n7cvum"),j(n,"aria-label","Close modal"),j(n,"style",t[10]),j(n,"type","button"),At(n,"close",!t[0])},m:function(o,s){Pe(o,n,s),i||(r=It(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=So(o[1].classCloseButton)+" svelte-n7cvum")&&j(n,"class",e),1024&s[0]&&j(n,"style",o[10]),3&s[0]&&At(n,"close",!o[0])},i:jt,o:jt,d:function(o){o&&Fe(n),i=!1,r()}}}function NHe(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=Yd(r,o(t))),{c:function(){n&&ft(n.$$.fragment),e=br()},m:function(s,a){n&&dt(n,s,a),Pe(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){Rt();var l=n;ae(l.$$.fragment,1,0,function(){ht(l,1)}),Lt()}r?(ft((n=Yd(r,o(s))).$$.fragment),K(n.$$.fragment,1),dt(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&K(n.$$.fragment,s),i=!0)},o:function(s){n&&ae(n.$$.fragment,s),i=!1},d:function(s){s&&Fe(e),n&&ht(n,s)}}}function FHe(t){var n,e,i,r,o=t[2]&&OZ(t),s=t[49].default,a=Ss(s,t,t[48],null);return{c:function(){o&&o.c(),n=tt(),a&&a.c()},m:function(l,c){o&&o.m(l,c),Pe(l,n,c),a&&a.m(l,c),e=!0,i||(r=It(MHe,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&K(o,1)):((o=OZ(l)).c(),K(o,1),o.m(n.parentNode,n)):o&&(Rt(),ae(o,1,1,function(){o=null}),Lt()),a&&a.p&&(!e||131072&c[1])&&Ds(a,s,l,l[48],e?ks(s,l[48],c,null):Ts(l[48]),null)},i:function(l){e||(K(o),K(a,l),e=!0)},o:function(l){ae(o),ae(a,l),e=!1},d:function(l){o&&o.d(l),l&&Fe(n),a&&a.d(l),i=!1,r()}}}function NZ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(Qe(Qe({},e),{},{props:Qe(Qe({},n),e.props)}))}}function PHe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,_=void 0===y?{}:y,w=n.$$scope,k=kZ(),L=n.isTabbable,z=void 0===L?function(Ue){return Ue.tabIndex>=0&&!Ue.hidden&&!Ue.disabled&&"none"!==Ue.style.display&&"hidden"!==Ue.type&&Boolean(Ue.offsetWidth||Ue.offsetHeight||Ue.getClientRects().length)}:L,R=n.show,U=void 0===R?null:R,G=n.id,X=void 0===G?null:G,te=n.key,P=void 0===te?"simple-modal":te,W=n.ariaLabel,J=void 0===W?null:W,H=n.ariaLabelledBy,le=void 0===H?null:H,E=n.closeButton,O=void 0===E||E,I=n.closeOnEsc,q=void 0===I||I,V=n.closeOnOuterClick,re=void 0===V||V,de=n.styleBg,Oe=void 0===de?{}:de,ye=n.styleWindowWrap,Xe=void 0===ye?{}:ye,Le=n.styleWindow,rt=void 0===Le?{}:Le,$=n.styleContent,ne=void 0===$?{}:$,ie=n.styleCloseButton,Me=void 0===ie?{}:ie,Ye=n.classBg,je=void 0===Ye?null:Ye,gt=n.classWindowWrap,Tt=void 0===gt?null:gt,fn=n.classWindow,Hn=void 0===fn?null:fn,Zt=n.classContent,Ei=void 0===Zt?null:Zt,ln=n.classCloseButton,dr=void 0===ln?null:ln,wr=n.unstyled,sr=void 0!==wr&&wr,mr=n.setContext,gi=void 0===mr?DZ:mr,Vr=n.transitionBg,Mo=void 0===Vr?AHe:Vr,On=n.transitionBgProps,bt=void 0===On?{duration:250}:On,ai=n.transitionWindow,Ii=void 0===ai?Mo:ai,Cr=n.transitionWindowProps,vo=void 0===Cr?bt:Cr,Yo=n.disableFocusTrap,pt=void 0!==Yo&&Yo,In={id:X,ariaLabel:J,ariaLabelledBy:le,closeButton:O,closeOnEsc:q,closeOnOuterClick:re,styleBg:Oe,styleWindowWrap:Xe,styleWindow:rt,styleContent:ne,styleCloseButton:Me,classBg:je,classWindowWrap:Tt,classWindow:Hn,classContent:Ei,classCloseButton:dr,transitionBg:Mo,transitionBgProps:bt,transitionWindow:Ii,transitionWindowProps:vo,disableFocusTrap:pt,isTabbable:z,unstyled:sr},oi=Qe({},In),vi=null,Tr=function(Ue){return Ue?Object.keys(Ue).reduce(function(kn,ti){return"".concat(kn,"; ").concat((ci=ti,ci.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ue[ti]);var ci},""):""},Hr=function(Ue){return!!(Ue&&Ue.constructor&&Ue.call&&Ue.apply)},no=function(){e(6,a=Tr(Object.assign({},{width:window.innerWidth,height:window.innerHeight},oi.styleBg))),e(7,l=Tr(oi.styleWindowWrap)),e(8,c=Tr(oi.styleWindow)),e(9,u=Tr(oi.styleContent)),e(10,d=Tr(oi.styleCloseButton)),e(11,h=oi.transitionBg),e(12,f=oi.transitionWindow)},Hs=function(){},gr=Hs,Us=Hs,Ha=Hs,Ua=Hs,Mc=function(Ue){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ci=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,vi=NZ(Ue,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,oi=Qe(Qe({},In),ti)),no(),He(),e(13,gr=function(li){ci.onOpen&&ci.onOpen(li),k("open"),k("opening")}),e(14,Us=function(li){ci.onClose&&ci.onClose(li),k("close"),k("closing")}),e(15,Ha=function(li){ci.onOpened&&ci.onOpened(li),k("opened")}),e(16,Ua=function(li){ci.onClosed&&ci.onClosed(li),k("closed")})},xe=function(){var Ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};vi&&(e(14,Us=Ue.onClose||Us),e(16,Ua=Ue.onClosed||Ua),e(2,vi=null),We())},He=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},We=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};gi(P,{open:Mc,close:xe});var lt=!1;return Vu(function(){lt&&xe()}),qc(function(){e(47,lt=!0)}),t.$$set=function(Ue){"isTabbable"in Ue&&e(22,z=Ue.isTabbable),"show"in Ue&&e(23,U=Ue.show),"id"in Ue&&e(24,X=Ue.id),"key"in Ue&&e(25,P=Ue.key),"ariaLabel"in Ue&&e(26,J=Ue.ariaLabel),"ariaLabelledBy"in Ue&&e(27,le=Ue.ariaLabelledBy),"closeButton"in Ue&&e(28,O=Ue.closeButton),"closeOnEsc"in Ue&&e(29,q=Ue.closeOnEsc),"closeOnOuterClick"in Ue&&e(30,re=Ue.closeOnOuterClick),"styleBg"in Ue&&e(31,Oe=Ue.styleBg),"styleWindowWrap"in Ue&&e(32,Xe=Ue.styleWindowWrap),"styleWindow"in Ue&&e(33,rt=Ue.styleWindow),"styleContent"in Ue&&e(34,ne=Ue.styleContent),"styleCloseButton"in Ue&&e(35,Me=Ue.styleCloseButton),"classBg"in Ue&&e(36,je=Ue.classBg),"classWindowWrap"in Ue&&e(37,Tt=Ue.classWindowWrap),"classWindow"in Ue&&e(38,Hn=Ue.classWindow),"classContent"in Ue&&e(39,Ei=Ue.classContent),"classCloseButton"in Ue&&e(40,dr=Ue.classCloseButton),"unstyled"in Ue&&e(0,sr=Ue.unstyled),"setContext"in Ue&&e(41,gi=Ue.setContext),"transitionBg"in Ue&&e(42,Mo=Ue.transitionBg),"transitionBgProps"in Ue&&e(43,bt=Ue.transitionBgProps),"transitionWindow"in Ue&&e(44,Ii=Ue.transitionWindow),"transitionWindowProps"in Ue&&e(45,vo=Ue.transitionWindowProps),"disableFocusTrap"in Ue&&e(46,pt=Ue.disableFocusTrap),"$$scope"in Ue&&e(48,w=Ue.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&<&&(Hr(U)?Mc(U):xe())},[sr,oi,vi,i,r,o,a,l,c,u,d,h,f,gr,Us,Ha,Ua,Hr,xe,function(Ue){if(oi.closeOnEsc&&vi&&"Escape"===Ue.key&&(Ue.preventDefault(),xe()),vi&&"Tab"===Ue.key&&!oi.disableFocusTrap){var kn=o.querySelectorAll("*"),ti=Array.from(kn).filter(oi.isTabbable).sort(function(li,Sr){return li.tabIndex-Sr.tabIndex}),ci=ti.indexOf(document.activeElement);-1===ci&&Ue.shiftKey&&(ci=0),ci+=ti.length+(Ue.shiftKey?-1:1),ti[ci%=ti.length].focus(),Ue.preventDefault()}},function(Ue){!oi.closeOnOuterClick||Ue.target!==i&&Ue.target!==r||(v=Ue.target)},function(Ue){oi.closeOnOuterClick&&Ue.target===v&&(Ue.preventDefault(),xe())},z,U,X,P,J,le,O,q,re,Oe,Xe,rt,ne,Me,je,Tt,Hn,Ei,dr,gi,Mo,bt,Ii,vo,pt,lt,w,_,function(Ue){Hi[Ue?"unshift":"push"](function(){e(5,o=Ue)})},function(Ue){Hi[Ue?"unshift":"push"](function(){e(4,r=Ue)})},function(Ue){Hi[Ue?"unshift":"push"](function(){e(3,i=Ue)})}]}var Wo,Zr,zu,Xd,Gu,Yc,FZ=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,PHe,FHe,ps,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},OHe,[-1,-1,-1]),r}return Se(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Wo||(Wo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(Zr||(Zr={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(zu||(zu={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Xd||(Xd={})),function(t){t.key="key",t.value="value"}(Gu||(Gu={})),function(t){t.asc="asc",t.desc="desc"}(Yc||(Yc={}));var Lm=[{start:0,end:100}],$m={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},jHe=Qe(Qe({},$m),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),RHe=Qe(Qe({},$m),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),PZ=Qe(Qe({},$m),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),lN="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",cN="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",LHe="NO",uN="SELF",dN="NEXT_INSIDE",$He=(Hl(JI={},Yc.asc,"ascending"),Hl(JI,Yc.desc,"descending"),JI),BHe=0;function P_(){return++BHe}function np(t){return(np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function eo(t){return Array.isArray(t)}function ko(t){return null!==t&&"object"===np(t)&&t.constructor===Object}function jZ(t){return!(!t||"object"!==np(t))&&"add"===t.op}function RZ(t){return!(!t||"object"!==np(t))&&"remove"===t.op}function hN(t){return!(!t||"object"!==np(t))&&"replace"===t.op}function fN(t){return!(!t||"object"!==np(t))&&"copy"===t.op}function Jv(t){return!(!t||"object"!==np(t))&&"move"===t.op}function pN(t){return(pN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function VHe(t,n){return t===n}function LZ(t){return t.slice(0,t.length-1)}function $Z(t){return"object"===pN(t)&&null!==t}function j_(t){return(j_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function BZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function HHe(t,n,e){return r=function(o,s){if("object"!==j_(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==j_(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===j_(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function mN(t){if(eo(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(ko(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=Wu(t?t[r]:void 0,n.slice(1),e,i);if(ko(t)||eo(t))return gN(t,r,o);if(i){var s=UHe.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var UHe=/^\d+$/;function VZ(t,n,e){if(0===n.length)return e(t);if(!$Z(t))throw new Error("Path doesn't exist");var i=n[0];return gN(t,i,VZ(t[i],n.slice(1),e))}function vN(t,n){if(0===n.length)return t;if(!$Z(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=mN(t);return eo(i)&&i.splice(parseInt(e),1),ko(i)&&delete i[e],i}return t}var r=n[0];return gN(t,r,vN(t[r],n.slice(1)))}function yN(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return VZ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=mN(o);return s.splice(parseInt(r),0,e),s})}function Xc(t,n){return void 0!==t&&(0===n.length||null!==t&&Xc(t[n[0]],n.slice(1)))}function qu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function an(t){return t.map(HZ).join("")}function HZ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function _N(t,n){return t+HZ(n)}function Kv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function Yu(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:VHe;if(p.length=0?z=function(){var U="",G=!0;"-"==t[s]&&(U+=h()),U+="0"==t[s]?h():m(),"."==t[s]&&(U+=h()+m(),G=!1),"e"!=t[s]&&"E"!=t[s]||(U+=h(),"+"!=t[s]&&"-"!=t[s]||(U+=h()),U+=m(),G=!1);var X=+U;return a&&G&&(X>Number.MAX_SAFE_INTEGER||X="a"&&z<="f"?L+=z.charCodeAt()-ZHe+10:z>="0"&&z<="9"?L+=+z:w()}return String.fromCharCode(L)}function m(){for(var D="";t[s]>="0"&&t[s]<="9";)D+=h();if(D.length)return D;k(),_()}function g(D,L){v(D,L,y())}function v(D,L,z){i[D]=i[D]||{},i[D][L]=z}function y(){return{line:r,column:o,pos:s}}function _(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function w(){f(),_()}function k(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},sS.stringify=function(t,n,e){if(aS(t)){var i,r,o=0,s="object"==mn(e)?e.space:e;switch(mn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var tUe=/"|\\/g,nUe=/[\b]/g,iUe=/\f/g,rUe=/\n/g,oUe=/\r/g,sUe=/\t/g;function lS(t){return'"'+(t=t.replace(tUe,"\\$&").replace(iUe,"\\f").replace(nUe,"\\b").replace(rUe,"\\n").replace(oUe,"\\r").replace(sUe,"\\t"))+'"'}var aUe=/~/g,lUe=/\//g;function wN(t){return t.replace(aUe,"~0").replace(lUe,"~1")}function CN(t){return(CN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function SN(t){var n="function"==typeof Map?new Map:void 0;return SN=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return kN(e,arguments,$_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L_(r,e)},SN(t)}function kN(t,n,e){return(kN=XZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&L_(a,o.prototype),a}).apply(null,arguments)}function XZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function L_(t,n){return(L_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function $_(t){return($_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var ip=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&L_(l,c)}(a,SN(Error));var n,e,i,s=(n=a,e=XZ(),function(){var l,c=$_(n);if(e){var u=$_(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function cUe(t,n){if(n&&("object"===CN(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function cS(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function uS(t){return t>=48&&t<=57}function uUe(t){return t>=32&&t<=1114111}var dUe=/^[,:[\]{}()\n]$/;function JZ(t){return hUe.test(t)||t&&hS(t.charCodeAt(0))}var hUe=/^[[{\w-]$/;function fUe(t){return 10===t||13===t||9===t||8===t||12===t}function dS(t){return 32===t||10===t||9===t||13===t}function pUe(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function hS(t){return KZ(t)||DN(t)}function KZ(t){return 34===t||8220===t||8221===t}function DN(t){return 39===t||8216===t||8217===t||96===t||180===t}function B_(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function Bm(t,n){var e=t.length;if(!dS(t.charCodeAt(e-1)))return t+n;for(;dS(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function mUe(t,n,e){return t.substring(0,n)+t.substring(n+e)}var gUe={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},vUe={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Jd(t){var n=0,e="";r()||function(){throw new ip("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),JZ(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=Bm(e,",")),function(){for(var _=!0,w=!0;w;)_?_=!1:l(44)||(e=Bm(e,",")),w=r();w||(e=B_(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=B_(e,",")),n>=t.length)return e;function r(){o();var _=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var w=!0;n=49&&k<=57)for(n++;uS(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(w);uS(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(w);uS(t.charCodeAt(n));)n++;return n>w&&(e+=t.slice(w,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),_}function o(){var _=n,w=s();do{(w=a())&&(w=s())}while(w);return n>_}function s(){for(var _,w="";(_=dS(t.charCodeAt(n)))||pUe(t.charCodeAt(n));)w+=_?t[n]:" ",n++;return w.length>0&&(e+=w,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nw){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;dS(t.charCodeAt(n-1))&&n>0;)n--;var k=t.slice(w,n);return e+=JSON.stringify(k),!0}}function f(_){if(!uS(t.charCodeAt(n))){var w=t.slice(_,n);throw new ip("Invalid number '".concat(w,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(_){throw new ip("Invalid character "+JSON.stringify(_),n)}function m(){throw new ip("Object key expected",n)}function g(){throw new ip("Object value expected",n)}function v(){throw new ip("Colon expected",n)}function y(_){for(var w=_+2;/\w/.test(t[w]);)w++;var k=t.slice(_,w);throw new ip('Invalid unicode character "'.concat(k,'"'),n)}!function(){throw new ip("Unexpected character "+JSON.stringify(t[n]),n)}()}function yUe(t,n){return"*"===t[n]&&"/"===t[n+1]}function $s(t){return parseInt(t,10)}function TN(t){return _Ue.test(t)}var _Ue=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Do(t){return"object"===mn(t)&&null!==t&&t.constructor===Object}function Lo(t){return"object"===mn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function EN(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return EN(Number(t));try{var n=t&&t.valueOf();if(n!==t)return EN(n)}catch{return!1}return!1}function QZ(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function AN(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return mn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Do(t))return"object";var e=n.stringify(t);return e&&TN(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var bUe=/^https?:\/\/\S+$/;function fS(t){return"string"==typeof t&&bUe.test(t)}function Qv(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&(TN(e)?n.parse(e):t)}var xUe=/^-?[0-9]+$/,eee="object"==(typeof global>"u"?"undefined":mn(global))&&global&&global.Object===Object&&global,wUe="object"==(typeof self>"u"?"undefined":mn(self))&&self&&self.Object===Object&&self,va=eee||wUe||Function("return this")(),nl=va.Symbol,tee=Object.prototype,CUe=tee.hasOwnProperty,SUe=tee.toString,V_=nl?nl.toStringTag:void 0,kUe=Object.prototype.toString,nee=nl?nl.toStringTag:void 0;function bl(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":nee&&nee in Object(t)?function(n){var e=CUe.call(n,V_),i=n[V_];try{n[V_]=void 0;var r=!0}catch{}var o=SUe.call(n);return r&&(e?n[V_]=i:delete n[V_]),o}(t):kUe.call(t)}function ns(t){return null!=t&&"object"==mn(t)}function zl(t){return"symbol"==mn(t)||ns(t)&&"[object Symbol]"==bl(t)}function iee(t){return"number"==typeof t?t:zl(t)?NaN:+t}function qo(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var _ee=yee(fee),YUe=/\{\n\/\* \[wrapped with (.+)\] \*/,XUe=/,? & /,JUe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function _S(t){return function(){return t}}var KUe=function(){try{var t=Hm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),bS=KUe,QUe=bS?function(t,n){return bS(t,"toString",{configurable:!0,enumerable:!1,value:_S(n),writable:!0})}:il,IN=yee(QUe);function Kc(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var ZUe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function xee(t,n,e){var o,i=n+"";return IN(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(JUe,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return Kc(ZUe,function(s){var a="_."+s[0];o&s[1]&&!wS(r,a)&&r.push(a)}),r.sort()}((o=i.match(YUe))?o[1].split(XUe):[],e)))}function wee(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return ON(t)&&_ee(h,d),h.placeholder=i,xee(h,t,n)}function n0(t){return t.placeholder}var eze=/^(?:0|[1-9]\d*)$/;function rf(t,n){var e=mn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&eze.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function xl(t){return null!=t&&G_(t.length)&&!Qd(t)}function wl(t,n,e){if(!$o(e))return!1;var i=mn(n);return!!("number"==i?xl(e)&&rf(n,e.length):"string"==i&&n in e)&&Qc(e[n],t)}function r0(t){return cr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&wl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":mn(exports))&&exports&&!exports.nodeType&&exports,Aee=Eee&&"object"==(typeof module>"u"?"undefined":mn(module))&&module&&!module.nodeType&&module,Mee=Aee&&Aee.exports===Eee?va.Buffer:void 0,lf=(Mee?Mee.isBuffer:void 0)||SS,Bo={};function wc(t){return function(n){return t(n)}}Bo["[object Float32Array]"]=Bo["[object Float64Array]"]=Bo["[object Int8Array]"]=Bo["[object Int16Array]"]=Bo["[object Int32Array]"]=Bo["[object Uint8Array]"]=Bo["[object Uint8ClampedArray]"]=Bo["[object Uint16Array]"]=Bo["[object Uint32Array]"]=!0,Bo["[object Arguments]"]=Bo["[object Array]"]=Bo["[object ArrayBuffer]"]=Bo["[object Boolean]"]=Bo["[object DataView]"]=Bo["[object Date]"]=Bo["[object Error]"]=Bo["[object Function]"]=Bo["[object Map]"]=Bo["[object Number]"]=Bo["[object Object]"]=Bo["[object RegExp]"]=Bo["[object Set]"]=Bo["[object String]"]=Bo["[object WeakMap]"]=!1;var Oee="object"==(typeof exports>"u"?"undefined":mn(exports))&&exports&&!exports.nodeType&&exports,q_=Oee&&"object"==(typeof module>"u"?"undefined":mn(module))&&module&&!module.nodeType&&module,PN=q_&&q_.exports===Oee&&eee.process,Zc=function(){try{return q_&&q_.require&&q_.require("util").types||PN&&PN.binding&&PN.binding("util")}catch{}}(),Iee=Zc&&Zc.isTypedArray,Um=Iee?wc(Iee):function(t){return ns(t)&&G_(t.length)&&!!Bo[bl(t)]},cze=Object.prototype.hasOwnProperty;function Nee(t,n){var e=ji(t),i=!e&&op(t),r=!e&&!i&&lf(t),o=!e&&!i&&!r&&Um(t),s=e||i||r||o,a=s?FN(t.length,String):[],l=a.length;for(var c in t)!n&&!cze.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||rf(c,l))||a.push(c);return a}function Fee(t,n){return function(e){return t(n(e))}}var uze=Fee(Object.keys,Object),dze=Object.prototype.hasOwnProperty;function jN(t){if(!W_(t))return uze(t);var n=[];for(var e in Object(t))dze.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Bs(t){return xl(t)?Nee(t):jN(t)}var hze=Object.prototype.hasOwnProperty,fze=r0(function(t,n){if(W_(n)||xl(n))Zd(n,Bs(n),t);else for(var e in n)hze.call(n,e)&&z_(t,e,n[e])}),Pee=fze,pze=Object.prototype.hasOwnProperty;function Cl(t){return xl(t)?Nee(t,!0):function mze(t){if(!$o(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=W_(t),e=[];for(var i in t)("constructor"!=i||!n&&pze.call(t,i))&&e.push(i);return e}(t)}var gze=r0(function(t,n){Zd(n,Cl(n),t)}),kS=gze,vze=r0(function(t,n,e,i){Zd(n,Cl(n),t,i)}),o0=vze,yze=r0(function(t,n,e,i){Zd(n,Bs(n),t,i)}),jee=yze,_ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bze=/^\w*$/;function RN(t,n){if(ji(t))return!1;var e=mn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!zl(t))||bze.test(t)||!_ze.test(t)||null!=n&&t in Object(n)}var Y_=Hm(Object,"create"),xze=Object.prototype.hasOwnProperty,wze=Object.prototype.hasOwnProperty;function zm(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},cf.prototype.set=function(t,n){var e=this.__data__,i=DS(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var X_=Hm(va,"Map");function TS(t,n){var i,r,e=t.__data__;return("string"==(r=mn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function uf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?Fa(a,n-1,e,i,r):ap(r,a):i||(r[r.length]=a)}return r}function $N(t){return null!=t&&t.length?Fa(t,1):[]}function df(t){return IN(kee(t,void 0,$N),t+"")}var $ee=df(LN),AS=Fee(Object.getPrototypeOf,Object),Bee=Function.prototype.toString,Mze=Object.prototype.hasOwnProperty,Oze=Bee.call(Object);function a0(t){if(!ns(t)||"[object Object]"!=bl(t))return!1;var n=AS(t);if(null===n)return!0;var e=Mze.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Bee.call(e)==Oze}function MS(t){if(!ns(t))return!1;var n=bl(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!a0(t)}var Ize=cr(function(t,n){try{return xc(t,void 0,n)}catch(e){return MS(e)?e:new Error(e)}}),BN=Ize;function VN(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Gi(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var HN=cr(function(t,n,e){var i=1;if(e.length){var r=rp(e,n0(HN));i|=32}return sf(t,i,n,e,r)});HN.placeholder={};var UN=HN,Nze=df(function(t,n){return Kc(n,function(e){e=eh(e),af(t,e,UN(t[e],t))}),t}),Vee=Nze,zN=cr(function(t,n,e){var i=3;if(e.length){var r=rp(e,n0(zN));i|=32}return sf(n,i,t,e,r)});zN.placeholder={};var Hee=zN;function eu(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:eu(t,n,e)}var Fze=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function l0(t){return Fze.test(t)}var GN="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",WN="\\ud83c[\\udffb-\\udfff]",Uee="[^\\ud800-\\udfff]",zee="(?:\\ud83c[\\udde6-\\uddff]){2}",Gee="[\\ud800-\\udbff][\\udc00-\\udfff]",Wee="(?:"+GN+"|"+WN+")?",jze="[\\ufe0e\\ufe0f]?"+Wee+"(?:\\u200d(?:"+[Uee,zee,Gee].join("|")+")[\\ufe0e\\ufe0f]?"+Wee+")*",Rze="(?:"+[Uee+GN+"?",GN,zee,Gee,"[\\ud800-\\udfff]"].join("|")+")",Lze=RegExp(WN+"(?="+WN+")|"+Rze+jze,"g");function Ju(t){return l0(t)?function(n){return n.match(Lze)||[]}(t):function(n){return n.split("")}(t)}function qee(t){return function(n){var e=l0(n=Gr(n))?Ju(n):void 0,i=e?e[0]:n.charAt(0),r=e?lp(e,1).join(""):n.slice(1);return i[t]()+r}}var OS=qee("toUpperCase");function qN(t){return OS(Gr(t).toLowerCase())}function YN(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function ate(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=bc(e))==e?e:0),void 0!==n&&(n=(n=bc(n))==n?n:0),Wm(bc(t),n,e)}function Ku(t){var n=this.__data__=new cf(t);this.size=n.size}function lte(t,n){return t&&Zd(n,Bs(n),t)}Ku.prototype.clear=function(){this.__data__=new cf,this.size=0},Ku.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ku.prototype.get=function(t){return this.__data__.get(t)},Ku.prototype.has=function(t){return this.__data__.has(t)},Ku.prototype.set=function(t,n){var e=this.__data__;if(e instanceof cf){var i=e.__data__;if(!X_||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new uf(i)}return e.set(t,n),this.size=e.size,this};var cte="object"==(typeof exports>"u"?"undefined":mn(exports))&&exports&&!exports.nodeType&&exports,ute=cte&&"object"==(typeof module>"u"?"undefined":mn(module))&&module&&!module.nodeType&&module,dte=ute&&ute.exports===cte?va.Buffer:void 0,hte=dte?dte.allocUnsafe:void 0;function fte(t,n){if(n)return t.slice();var e=t.length,i=hte?hte(e):new t.constructor(e);return t.copy(i),i}function cp(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Ym:void 0;for(o.set(t,n),o.set(n,t);++d=n||w<0||d&&_-c>=o}function g(){var w,k,_=Q_();if(m(_))return v(_);a=setTimeout(g,(k=n-((w=_)-l),d?bGe(k,o-(w-c)):k))}function v(_){return a=void 0,h&&i?f(_):(i=r=void 0,s)}function y(){var _=Q_(),w=m(_);if(i=arguments,r=this,l=_,w){if(void 0===a)return function p(_){return c=_,a=setTimeout(g,n),u?f(_):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=bc(n)||0,$o(e)&&(u=!!e.leading,o=(d="maxWait"in e)?_Ge(bc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Q_())},y}function zte(t,n){return null==t||t!=t?n:t}var Gte=Object.prototype,xGe=Gte.hasOwnProperty,wGe=cr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&wl(n[0],n[1],r)&&(i=1);++e=200&&(o=J_,s=!1,n=new Ym(n));e:for(;++r=0&&t.slice(e,r)==n}function cne(t){return function(n){var i,r,o,e=th(n);return"[object Map]"==e?dF(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return qo(r,function(o){return[o,i[o]]})}(n,t(n))}}var US=cne(Bs),zS=cne(Cl),MGe=XN({"&":"&","<":"<",">":">",'"':""","'":"'"}),une=/[&<>"']/g,OGe=RegExp(une.source);function SF(t){return(t=Gr(t))&&OGe.test(t)?t.replace(une,MGe):t}var dne=/[\\^$.*+?()[\]{}|]/g,IGe=RegExp(dne.source);function hne(t){return(t=Gr(t))&&IGe.test(t)?t.replace(dne,"\\$&"):t}function fne(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Gi(l))<0&&(l+=c),l=a>l?0:kF(l);a-1?r[o?n[s]:s]:void 0}}var FGe=Math.max;function DF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Gi(e);return r<0&&(r=FGe(i+r,0)),xS(t,Ri(n),r)}var _ne=yne(DF);function bne(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function xne(t,n){return bne(t,Ri(n),nh)}var PGe=Math.max,jGe=Math.min;function TF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Gi(e),r=e<0?PGe(i+r,0):jGe(r,i-1)),xS(t,Ri(n),r,!0)}var wne=yne(TF);function Cne(t,n){return bne(t,Ri(n),CF)}function ta(t){return t&&t.length?t[0]:void 0}function Sne(t,n){var e=-1,i=xl(t)?Array(t.length):[];return up(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function f0(t,n){return(ji(t)?qo:Sne)(t,Ri(n))}function kne(t,n){return Fa(f0(t,n),1)}function Dne(t,n){return Fa(f0(t,n),1/0)}function Tne(t,n,e){return e=void 0===e?1:Gi(e),Fa(f0(t,n),e)}function Ene(t){return null!=t&&t.length?Fa(t,1/0):[]}function Ane(t,n){return null!=t&&t.length?Fa(t,n=void 0===n?1:Gi(n)):[]}function Mne(t){return sf(t,512)}var One=QN("floor");function Ine(t){return df(function(n){var e=n.length,i=e,r=Jc.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==yS(o))var s=new Jc([],!0)}for(i=s?i:e;++in}function WS(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=bc(n),e=bc(e)),t(n,e)}}var Hne=WS(EF),Une=WS(function(t,n){return t>=n}),$Ge=Object.prototype.hasOwnProperty;function BGe(t,n){return null!=t&&$Ge.call(t,n)}function zne(t,n){return null!=t&&Fte(t,n,BGe)}var VGe=Math.max,HGe=Math.min;function Gne(t,n,e){return n=Kd(n),void 0===e?(e=n,n=0):e=Kd(e),(i=t=bc(t))>=HGe(r=n,o=e)&&i-1:!!r&&t0(t,n,e)>-1}var zGe=Math.max;function qne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Gi(e);return r<0&&(r=zGe(i+r,0)),t0(t,n,r)}function qi(t){return null!=t&&t.length?eu(t,0,-1):[]}var GGe=Math.min;function MF(t,n,e){for(var i=e?wF:wS,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=qo(u,wc(n))),l=GGe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Ym(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function bie(t){return void 0===t}function xie(t){return ns(t)&&"[object WeakMap]"==th(t)}function wie(t){return ns(t)&&"[object WeakSet]"==bl(t)}function Cie(t){return Ri("function"==typeof t?t:tu(t,1))}var nWe=Array.prototype.join;function Sie(t,n){return null==t?"":nWe.call(t,n)}var iWe=u0(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),kie=iWe,rWe=RS(function(t,n,e){af(t,e,n)}),Die=rWe,oWe=Math.max,sWe=Math.min;function Tie(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Gi(e))<0?oWe(i+r,0):sWe(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):xS(t,bee,r,!0)}var aWe=u0(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),Eie=aWe,Aie=qee("toLowerCase");function FF(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function Gie(t,n){var e=t.length;if(e)return rf(n+=n<0?e:0,e)?t[n]:void 0}function Wie(t,n){return t&&t.length?Gie(t,Gi(n)):void 0}function qie(t){return t=Gi(t),cr(function(n){return Gie(n,t)})}function VF(t,n){return null==(t=tie(t,n=sp(n,t)))||delete t[eh(Fn(n))]}function dWe(t){return a0(t)?void 0:t}var hWe=df(function(t,n){var e={};if(null==t)return e;var i=!1;n=qo(n,function(o){return o=sp(o,t),i||(i=o.length>1),o}),Zd(t,nF(t),e),i&&(e=tu(e,7,dWe));for(var r=n.length;r--;)VF(e,n[r]);return e}),Yie=hWe;function ib(t,n,e,i){if(!$o(t))return t;for(var r=-1,o=(n=sp(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(Sne(t,function(o,s,a){return{criteria:qo(n,function(c){return c(o)}),index:++i,value:o}}))}function ere(t,n,e,i){return null==t?[]:(ji(n)||(n=null==n?[]:[n]),ji(e=i?void 0:e)||(e=null==e?[]:[e]),Zie(t,n,e))}function UF(t){return df(function(n){return n=qo(n,wc(Ri)),cr(function(e){var i=this;return t(n,function(r){return xc(r,i,e)})})})}var tre=UF(qo),pWe=Math.min,mWe=cr(function(t,n){var e=(n=1==n.length&&ji(n[0])?qo(n[0],wc(Ri)):qo(Fa(n,1),wc(Ri))).length;return cr(function(i){for(var r=-1,o=pWe(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=gWe(n/2))&&(t+=t)}while(n);return e}var vWe=mF("length"),GF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",WF="\\ud83c[\\udffb-\\udfff]",ore="[^\\ud800-\\udfff]",sre="(?:\\ud83c[\\udde6-\\uddff]){2}",are="[\\ud800-\\udbff][\\udc00-\\udfff]",lre="(?:"+GF+"|"+WF+")?",_We="[\\ufe0e\\ufe0f]?"+lre+"(?:\\u200d(?:"+[ore,sre,are].join("|")+")[\\ufe0e\\ufe0f]?"+lre+")*",bWe="(?:"+[ore+GF+"?",GF,sre,are,"[\\ud800-\\udfff]"].join("|")+")",cre=RegExp(WF+"(?="+WF+")|"+bWe+_We,"g");function v0(t){return l0(t)?function(n){for(var e=cre.lastIndex=0;cre.test(n);)++e;return e}(t):vWe(t)}var xWe=Math.ceil;function XS(t,n){var e=(n=void 0===n?" ":_c(n)).length;if(e<2)return e?zF(n,t):n;var i=zF(n,xWe(t/v0(n)));return l0(n)?lp(Ju(i),0,t).join(""):i.slice(0,t)}var wWe=Math.ceil,CWe=Math.floor;function ure(t,n,e){t=Gr(t);var i=(n=Gi(n))?v0(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return XS(CWe(r),e)+t+XS(wWe(r),e)}function dre(t,n,e){t=Gr(t);var i=(n=Gi(n))?v0(t):0;return n&&i-1;)a!==t&&vre.call(a,l,1),vre.call(t,l,1);return t}function ZF(t,n){return t&&t.length&&n&&n.length?QF(t,n):t}var yre=cr(ZF);function _re(t,n,e){return t&&t.length&&n&&n.length?QF(t,n,Ri(e)):t}function bre(t,n,e){return t&&t.length&&n&&n.length?QF(t,n,void 0,e):t}var AWe=Array.prototype.splice;function xre(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;rf(r)?AWe.call(t,r,1):VF(t,r)}}return t}var MWe=df(function(t,n){var e=null==t?0:t.length,i=LN(t,n);return xre(t,qo(n,function(r){return rf(r,e)?+r:r}).sort(Qie)),i}),wre=MWe,OWe=Math.floor,IWe=Math.random;function eP(t,n){return t+OWe(IWe()*(n-t+1))}var NWe=parseFloat,FWe=Math.min,PWe=Math.random;function Cre(t,n,e){if(e&&"boolean"!=typeof e&&wl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Kd(t),void 0===n?(n=t,t=0):n=Kd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=PWe();return FWe(t+r*(n-t+NWe("1e-"+((r+"").length-1))),n)}return eP(t,n)}var jWe=Math.ceil,RWe=Math.max;function Sre(t){return function(n,e,i){return i&&"number"!=typeof i&&wl(n,e,i)&&(e=i=void 0),n=Kd(n),void 0===e?(e=n,n=0):e=Kd(e),function(r,o,s,a){for(var l=-1,c=RWe(jWe((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&wl(t,n[0],n[1])?n=[]:e>2&&wl(n[0],n[1],n[2])&&(n=[n[0]]),Zie(t,Fa(n,1),[])}),nP=YWe,XWe=Math.floor,JWe=Math.min;function iP(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=zl(n),c=void 0===n;r>>1,s=t[o];null!==s&&!zl(s)&&(e?s<=n:s>>0)?(t=Gr(t))&&("string"==typeof n||null!=n&&!qS(n))&&!(n=_c(n))&&l0(t)?lp(Ju(t),0,e):t.split(n,e):[]}var KWe=Math.max;function ioe(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:KWe(Gi(n),0),cr(function(e){var i=e[n],r=lp(e,0,n);return i&&ap(r,i),xc(t,this,r)})}var QWe=u0(function(t,n,e){return t+(e?" ":"")+OS(n)}),roe=QWe;function ooe(t,n,e){return t=Gr(t),e=null==e?0:Wm(Gi(e),0,t.length),n=_c(n),t.slice(e,e+n.length)==n}function soe(){return{}}function aoe(){return""}function loe(){return!0}var coe=pS(function(t,n){return t-n},0);function uoe(t){return t&&t.length?jF(t,il):0}function doe(t,n){return t&&t.length?jF(t,Ri(n)):0}function hoe(t){var n=null==t?0:t.length;return n?eu(t,1,n):[]}function foe(t,n,e){return t&&t.length?eu(t,0,(n=e||void 0===n?1:Gi(n))<0?0:n):[]}function poe(t,n,e){var i=null==t?0:t.length;return i?eu(t,(n=i-(n=e||void 0===n?1:Gi(n)))<0?0:n,i):[]}function moe(t,n){return t&&t.length?VS(t,Ri(n),!1,!0):[]}function goe(t,n){return t&&t.length?VS(t,Ri(n)):[]}function voe(t,n){return n(t),t}var yoe=Object.prototype,ZWe=yoe.hasOwnProperty;function _oe(t,n,e,i){return void 0===t||Qc(t,yoe[e])&&!ZWe.call(i,e)?n:t}var eqe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function tqe(t){return"\\"+eqe[t]}var boe=/<%=([\s\S]+?)%>/g,ZS={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:boe,variable:"",imports:{_:{escape:SF}}},nqe=/\b__p \+= '';/g,iqe=/\b(__p \+=) '' \+/g,rqe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oqe=/[()=,{}\[\]\/\s]/,sqe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ek=/($^)/,aqe=/['\n\r\u2028\u2029\\]/g,xoe=Object.prototype.hasOwnProperty;function woe(t,n,e){var i=ZS.imports._.templateSettings||ZS;e&&wl(t,n,e)&&(n=void 0),t=Gr(t),n=o0({},n,i,_oe);var r,o,s=o0({},n.imports,i.imports,_oe),a=Bs(s),l=AF(s,a),c=0,u=n.interpolate||ek,d="__p += '",h=RegExp((n.escape||ek).source+"|"+u.source+"|"+(u===boe?sqe:ek).source+"|"+(n.evaluate||ek).source+"|$","g"),f=xoe.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,_,w,k){return y||(y=_),d+=t.slice(c,k).replace(aqe,tqe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),w&&(o=!0,d+="';\n"+w+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=k+g.length,g}),d+="';\n";var p=xoe.call(n,"variable")&&n.variable;if(p){if(oqe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(nqe,""):d).replace(iqe,"$1").replace(rqe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=BN(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,MS(m))throw m;return m}function rP(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return $o(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),h0(t,n,{leading:i,maxWait:n,trailing:r})}function y0(t,n){return n(t)}var lqe=Math.min;function oP(t,n){if((t=Gi(t))<1||t>9007199254740991)return[];var e=4294967295,i=lqe(t,4294967295);t-=4294967295;for(var r=FN(i,n=ih(n));++e-1;);return e}function Moe(t,n){for(var e=-1,i=t.length;++e-1;);return e}function Ooe(t,n,e){if((t=Gr(t))&&(e||void 0===n))return lee(t);if(!t||!(n=_c(n)))return t;var i=Ju(t),r=Ju(n);return lp(i,Moe(i,r),Aoe(i,r)+1).join("")}function Ioe(t,n,e){if((t=Gr(t))&&(e||void 0===n))return t.slice(0,aee(t)+1);if(!t||!(n=_c(n)))return t;var i=Ju(t);return lp(i,0,Aoe(i,Ju(n))+1).join("")}var cqe=/^\s+/;function Noe(t,n,e){if((t=Gr(t))&&(e||void 0===n))return t.replace(cqe,"");if(!t||!(n=_c(n)))return t;var i=Ju(t);return lp(i,Moe(i,Ju(n))).join("")}var uqe=/\w*$/;function Foe(t,n){var e=30,i="...";if($o(n)){var r="separator"in n?n.separator:r;e="length"in n?Gi(n.length):e,i="omission"in n?_c(n.omission):i}var o=(t=Gr(t)).length;if(l0(t)){var s=Ju(t);o=s.length}if(e>=o)return t;var a=e-v0(i);if(a<1)return i;var l=s?lp(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),qS(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Gr(uqe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(_c(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function Poe(t){return NN(t,1)}var dqe=XN({"&":"&","<":"<",">":">",""":'"',"'":"'"}),joe=/&(?:amp|lt|gt|quot|#39);/g,hqe=RegExp(joe.source);function Roe(t){return(t=Gr(t))&&hqe.test(t)?t.replace(joe,dqe):t}var fqe=d0&&1/FS(new d0([,-0]))[1]==1/0?function(t){return new d0(t)}:ho,pqe=fqe;function dp(t,n,e){var i=-1,r=wS,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=wF;else if(o>=200){var c=n?null:pqe(t);if(c)return FS(c);s=!1,r=J_,l=new Ym}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Dr&&rf(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:y0,args:[r],thisArg:void 0}),new Jc(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),Qoe=bqe;function Zoe(){return ZN(this)}function ese(){var t=this.__wrapped__;if(t instanceof Dr){var n=t;return this.__actions__.length&&(n=new Dr(this)),(n=n.reverse()).__actions__.push({func:y0,args:[JS],thisArg:void 0}),new Jc(n,this.__chain__)}return this.thru(JS)}function lP(t,n,e){var i=t.length;if(i<2)return i?dp(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,aP(t,e)}),lse=wqe,zn={chunk:ste,compact:Dte,concat:Tte,difference:Qte,differenceBy:Zte,differenceWith:ene,drop:nne,dropRight:ine,dropRightWhile:rne,dropWhile:one,fill:mne,findIndex:DF,findLastIndex:TF,first:ta,flatten:$N,flattenDeep:Ene,flattenDepth:Ane,fromPairs:$ne,head:ta,indexOf:qne,initial:qi,intersection:Yne,intersectionBy:Xne,intersectionWith:Jne,join:Sie,last:Fn,lastIndexOf:Tie,nth:Wie,pull:yre,pullAll:ZF,pullAllBy:_re,pullAllWith:bre,pullAt:wre,remove:Ore,reverse:JS,slice:zre,sortedIndex:qre,sortedIndexBy:Yre,sortedIndexOf:Xre,sortedLastIndex:Jre,sortedLastIndexBy:Kre,sortedLastIndexOf:Qre,sortedUniq:eoe,sortedUniqBy:toe,tail:hoe,take:foe,takeRight:poe,takeRightWhile:moe,takeWhile:goe,union:Loe,unionBy:$oe,unionWith:Boe,uniq:Voe,uniqBy:Hoe,uniqWith:Uoe,unzip:tk,unzipWith:aP,without:Joe,xor:tse,xorBy:nse,xorWith:ise,zip:rse,zipObject:sse,zipObjectDeep:ase,zipWith:lse},fo={countBy:Hte,each:HS,eachRight:eb,every:pne,filter:vne,find:_ne,findLast:wne,flatMap:kne,flatMapDeep:Dne,flatMapDepth:Tne,forEach:HS,forEachRight:eb,groupBy:p0,includes:Wne,invokeMap:iie,keyBy:Die,map:f0,orderBy:ere,partition:JF,reduce:Ere,reduceRight:Are,reject:Mre,sample:Lre,sampleSize:$re,shuffle:Hre,size:Ure,some:Wre,sortBy:nP},Cqe={now:Q_},gs={after:cee,ary:NN,before:VN,bind:UN,bindKey:Hee,curry:LS,curryRight:$S,debounce:h0,defer:Jte,delay:Kte,flip:Mne,memoize:s0,negate:g0,once:Kie,overArgs:nre,partial:YF,partialRight:pre,rearg:Dre,rest:Fre,spread:ioe,throttle:rP,unary:Poe,wrap:Koe},hi={castArray:rte,clone:Cte,cloneDeep:Ste,cloneDeepWith:lF,cloneWith:kte,conformsTo:$te,eq:Qc,gt:Hne,gte:Une,isArguments:op,isArray:ji,isArrayBuffer:oie,isArrayLike:xl,isArrayLikeObject:ms,isBoolean:sie,isBuffer:lf,isDate:lie,isElement:cie,isEmpty:Ui,isEqual:rr,isEqualWith:uie,isError:MS,isFinite:die,isFunction:Qd,isInteger:IF,isLength:G_,isMap:sF,isMatch:hie,isMatchWith:fie,isNaN:pie,isNative:mie,isNil:gie,isNull:vie,isNumber:NF,isObject:$o,isObjectLike:ns,isPlainObject:a0,isRegExp:qS,isSafeInteger:_ie,isSet:aF,isString:tb,isSymbol:zl,isTypedArray:Um,isUndefined:bie,isWeakMap:xie,isWeakSet:wie,lt:Mie,lte:Oie,toArray:$F,toFinite:Kd,toInteger:Gi,toLength:kF,toNumber:bc,toPlainObject:bF,toSafeInteger:Doe,toString:Gr},Sl={add:see,ceil:ote,divide:tne,floor:One,max:Pie,maxBy:jie,mean:Lie,meanBy:$ie,min:Uie,minBy:m0,multiply:zie,round:jre,subtract:coe,sum:uoe,sumBy:doe},Sqe=ate,kqe=Gne,Dqe=Cre,Oi={assign:Pee,assignIn:kS,assignInWith:o0,assignWith:jee,at:$ee,create:Ute,defaults:Wte,defaultsDeep:Yte,entries:US,entriesIn:zS,extend:kS,extendWith:o0,findKey:xne,findLastKey:Cne,forIn:Pne,forInRight:jne,forOwn:Rne,forOwnRight:Lne,functions:Bne,functionsIn:Vne,get:ES,has:zne,hasIn:jS,invert:Qne,invertBy:eie,invoke:nie,keys:Bs,keysIn:Cl,mapKeys:Iie,mapValues:PF,merge:Bie,mergeWith:xF,omit:Yie,omitBy:Jie,pick:mre,pickBy:HF,result:Pre,set:Bre,setWith:Vre,toPairs:US,toPairsIn:zS,transform:Eoe,unset:zoe,update:Woe,updateWith:qoe,values:Xm,valuesIn:Xoe},rh={at:Qoe,chain:ZN,commit:cF,lodash:pe,next:BF,plant:KF,reverse:ese,tap:voe,thru:y0,toIterator:sP,toJSON:Jm,value:Jm,valueOf:Jm,wrapperChain:Zoe},Wr={camelCase:ite,capitalize:qN,deburr:JN,endsWith:lne,escape:SF,escapeRegExp:hne,kebabCase:kie,lowerCase:Eie,lowerFirst:Aie,pad:ure,padEnd:dre,padStart:hre,parseInt:fre,repeat:Ire,replace:Nre,snakeCase:Gre,split:noe,startCase:roe,startsWith:ooe,template:woe,templateSettings:ZS,toLower:Soe,toUpper:Toe,trim:Ooe,trimEnd:Ioe,trimStart:Noe,truncate:Foe,unescape:Roe,upperCase:Yoe,upperFirst:OS,words:KN},to={attempt:BN,bindAll:Vee,cond:jte,conforms:Lte,constant:_S,defaultTo:zte,flow:Nne,flowRight:Fne,identity:il,iteratee:Cie,matches:Nie,matchesProperty:Fie,method:Vie,methodOf:Hie,mixin:RF,noop:ho,nthArg:qie,over:tre,overEvery:ire,overSome:rre,property:gF,propertyOf:gre,range:tP,rangeRight:kre,stubArray:IS,stubFalse:SS,stubObject:soe,stubString:aoe,stubTrue:loe,times:oP,toPath:koe,uniqueId:hp},Tqe=Math.max,Eqe=Math.min,Aqe=Math.min,Mqe=Array.prototype,cse=Object.prototype.hasOwnProperty,use=nl?nl.iterator:void 0,Oqe=Math.max,dse=Math.min,uP=function(t){return function(n,e,i){if(null==i){var r=$o(e),o=r&&Bs(e),s=o&&o.length&&GS(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}(RF);pe.after=gs.after,pe.ary=gs.ary,pe.assign=Oi.assign,pe.assignIn=Oi.assignIn,pe.assignInWith=Oi.assignInWith,pe.assignWith=Oi.assignWith,pe.at=Oi.at,pe.before=gs.before,pe.bind=gs.bind,pe.bindAll=to.bindAll,pe.bindKey=gs.bindKey,pe.castArray=hi.castArray,pe.chain=rh.chain,pe.chunk=zn.chunk,pe.compact=zn.compact,pe.concat=zn.concat,pe.cond=to.cond,pe.conforms=to.conforms,pe.constant=to.constant,pe.countBy=fo.countBy,pe.create=Oi.create,pe.curry=gs.curry,pe.curryRight=gs.curryRight,pe.debounce=gs.debounce,pe.defaults=Oi.defaults,pe.defaultsDeep=Oi.defaultsDeep,pe.defer=gs.defer,pe.delay=gs.delay,pe.difference=zn.difference,pe.differenceBy=zn.differenceBy,pe.differenceWith=zn.differenceWith,pe.drop=zn.drop,pe.dropRight=zn.dropRight,pe.dropRightWhile=zn.dropRightWhile,pe.dropWhile=zn.dropWhile,pe.fill=zn.fill,pe.filter=fo.filter,pe.flatMap=fo.flatMap,pe.flatMapDeep=fo.flatMapDeep,pe.flatMapDepth=fo.flatMapDepth,pe.flatten=zn.flatten,pe.flattenDeep=zn.flattenDeep,pe.flattenDepth=zn.flattenDepth,pe.flip=gs.flip,pe.flow=to.flow,pe.flowRight=to.flowRight,pe.fromPairs=zn.fromPairs,pe.functions=Oi.functions,pe.functionsIn=Oi.functionsIn,pe.groupBy=fo.groupBy,pe.initial=zn.initial,pe.intersection=zn.intersection,pe.intersectionBy=zn.intersectionBy,pe.intersectionWith=zn.intersectionWith,pe.invert=Oi.invert,pe.invertBy=Oi.invertBy,pe.invokeMap=fo.invokeMap,pe.iteratee=to.iteratee,pe.keyBy=fo.keyBy,pe.keys=Bs,pe.keysIn=Oi.keysIn,pe.map=fo.map,pe.mapKeys=Oi.mapKeys,pe.mapValues=Oi.mapValues,pe.matches=to.matches,pe.matchesProperty=to.matchesProperty,pe.memoize=gs.memoize,pe.merge=Oi.merge,pe.mergeWith=Oi.mergeWith,pe.method=to.method,pe.methodOf=to.methodOf,pe.mixin=uP,pe.negate=g0,pe.nthArg=to.nthArg,pe.omit=Oi.omit,pe.omitBy=Oi.omitBy,pe.once=gs.once,pe.orderBy=fo.orderBy,pe.over=to.over,pe.overArgs=gs.overArgs,pe.overEvery=to.overEvery,pe.overSome=to.overSome,pe.partial=gs.partial,pe.partialRight=gs.partialRight,pe.partition=fo.partition,pe.pick=Oi.pick,pe.pickBy=Oi.pickBy,pe.property=to.property,pe.propertyOf=to.propertyOf,pe.pull=zn.pull,pe.pullAll=zn.pullAll,pe.pullAllBy=zn.pullAllBy,pe.pullAllWith=zn.pullAllWith,pe.pullAt=zn.pullAt,pe.range=to.range,pe.rangeRight=to.rangeRight,pe.rearg=gs.rearg,pe.reject=fo.reject,pe.remove=zn.remove,pe.rest=gs.rest,pe.reverse=zn.reverse,pe.sampleSize=fo.sampleSize,pe.set=Oi.set,pe.setWith=Oi.setWith,pe.shuffle=fo.shuffle,pe.slice=zn.slice,pe.sortBy=fo.sortBy,pe.sortedUniq=zn.sortedUniq,pe.sortedUniqBy=zn.sortedUniqBy,pe.split=Wr.split,pe.spread=gs.spread,pe.tail=zn.tail,pe.take=zn.take,pe.takeRight=zn.takeRight,pe.takeRightWhile=zn.takeRightWhile,pe.takeWhile=zn.takeWhile,pe.tap=rh.tap,pe.throttle=gs.throttle,pe.thru=y0,pe.toArray=hi.toArray,pe.toPairs=Oi.toPairs,pe.toPairsIn=Oi.toPairsIn,pe.toPath=to.toPath,pe.toPlainObject=hi.toPlainObject,pe.transform=Oi.transform,pe.unary=gs.unary,pe.union=zn.union,pe.unionBy=zn.unionBy,pe.unionWith=zn.unionWith,pe.uniq=zn.uniq,pe.uniqBy=zn.uniqBy,pe.uniqWith=zn.uniqWith,pe.unset=Oi.unset,pe.unzip=zn.unzip,pe.unzipWith=zn.unzipWith,pe.update=Oi.update,pe.updateWith=Oi.updateWith,pe.values=Oi.values,pe.valuesIn=Oi.valuesIn,pe.without=zn.without,pe.words=Wr.words,pe.wrap=gs.wrap,pe.xor=zn.xor,pe.xorBy=zn.xorBy,pe.xorWith=zn.xorWith,pe.zip=zn.zip,pe.zipObject=zn.zipObject,pe.zipObjectDeep=zn.zipObjectDeep,pe.zipWith=zn.zipWith,pe.entries=Oi.toPairs,pe.entriesIn=Oi.toPairsIn,pe.extend=Oi.assignIn,pe.extendWith=Oi.assignInWith,uP(pe,pe),pe.add=Sl.add,pe.attempt=to.attempt,pe.camelCase=Wr.camelCase,pe.capitalize=Wr.capitalize,pe.ceil=Sl.ceil,pe.clamp=Sqe,pe.clone=hi.clone,pe.cloneDeep=hi.cloneDeep,pe.cloneDeepWith=hi.cloneDeepWith,pe.cloneWith=hi.cloneWith,pe.conformsTo=hi.conformsTo,pe.deburr=Wr.deburr,pe.defaultTo=to.defaultTo,pe.divide=Sl.divide,pe.endsWith=Wr.endsWith,pe.eq=hi.eq,pe.escape=Wr.escape,pe.escapeRegExp=Wr.escapeRegExp,pe.every=fo.every,pe.find=fo.find,pe.findIndex=zn.findIndex,pe.findKey=Oi.findKey,pe.findLast=fo.findLast,pe.findLastIndex=zn.findLastIndex,pe.findLastKey=Oi.findLastKey,pe.floor=Sl.floor,pe.forEach=fo.forEach,pe.forEachRight=fo.forEachRight,pe.forIn=Oi.forIn,pe.forInRight=Oi.forInRight,pe.forOwn=Oi.forOwn,pe.forOwnRight=Oi.forOwnRight,pe.get=Oi.get,pe.gt=hi.gt,pe.gte=hi.gte,pe.has=Oi.has,pe.hasIn=Oi.hasIn,pe.head=zn.head,pe.identity=il,pe.includes=fo.includes,pe.indexOf=zn.indexOf,pe.inRange=kqe,pe.invoke=Oi.invoke,pe.isArguments=hi.isArguments,pe.isArray=ji,pe.isArrayBuffer=hi.isArrayBuffer,pe.isArrayLike=hi.isArrayLike,pe.isArrayLikeObject=hi.isArrayLikeObject,pe.isBoolean=hi.isBoolean,pe.isBuffer=hi.isBuffer,pe.isDate=hi.isDate,pe.isElement=hi.isElement,pe.isEmpty=hi.isEmpty,pe.isEqual=hi.isEqual,pe.isEqualWith=hi.isEqualWith,pe.isError=hi.isError,pe.isFinite=hi.isFinite,pe.isFunction=hi.isFunction,pe.isInteger=hi.isInteger,pe.isLength=hi.isLength,pe.isMap=hi.isMap,pe.isMatch=hi.isMatch,pe.isMatchWith=hi.isMatchWith,pe.isNaN=hi.isNaN,pe.isNative=hi.isNative,pe.isNil=hi.isNil,pe.isNull=hi.isNull,pe.isNumber=hi.isNumber,pe.isObject=$o,pe.isObjectLike=hi.isObjectLike,pe.isPlainObject=hi.isPlainObject,pe.isRegExp=hi.isRegExp,pe.isSafeInteger=hi.isSafeInteger,pe.isSet=hi.isSet,pe.isString=hi.isString,pe.isSymbol=hi.isSymbol,pe.isTypedArray=hi.isTypedArray,pe.isUndefined=hi.isUndefined,pe.isWeakMap=hi.isWeakMap,pe.isWeakSet=hi.isWeakSet,pe.join=zn.join,pe.kebabCase=Wr.kebabCase,pe.last=Fn,pe.lastIndexOf=zn.lastIndexOf,pe.lowerCase=Wr.lowerCase,pe.lowerFirst=Wr.lowerFirst,pe.lt=hi.lt,pe.lte=hi.lte,pe.max=Sl.max,pe.maxBy=Sl.maxBy,pe.mean=Sl.mean,pe.meanBy=Sl.meanBy,pe.min=Sl.min,pe.minBy=Sl.minBy,pe.stubArray=to.stubArray,pe.stubFalse=to.stubFalse,pe.stubObject=to.stubObject,pe.stubString=to.stubString,pe.stubTrue=to.stubTrue,pe.multiply=Sl.multiply,pe.nth=zn.nth,pe.noop=to.noop,pe.now=Cqe.now,pe.pad=Wr.pad,pe.padEnd=Wr.padEnd,pe.padStart=Wr.padStart,pe.parseInt=Wr.parseInt,pe.random=Dqe,pe.reduce=fo.reduce,pe.reduceRight=fo.reduceRight,pe.repeat=Wr.repeat,pe.replace=Wr.replace,pe.result=Oi.result,pe.round=Sl.round,pe.sample=fo.sample,pe.size=fo.size,pe.snakeCase=Wr.snakeCase,pe.some=fo.some,pe.sortedIndex=zn.sortedIndex,pe.sortedIndexBy=zn.sortedIndexBy,pe.sortedIndexOf=zn.sortedIndexOf,pe.sortedLastIndex=zn.sortedLastIndex,pe.sortedLastIndexBy=zn.sortedLastIndexBy,pe.sortedLastIndexOf=zn.sortedLastIndexOf,pe.startCase=Wr.startCase,pe.startsWith=Wr.startsWith,pe.subtract=Sl.subtract,pe.sum=Sl.sum,pe.sumBy=Sl.sumBy,pe.template=Wr.template,pe.times=to.times,pe.toFinite=hi.toFinite,pe.toInteger=Gi,pe.toLength=hi.toLength,pe.toLower=Wr.toLower,pe.toNumber=hi.toNumber,pe.toSafeInteger=hi.toSafeInteger,pe.toString=hi.toString,pe.toUpper=Wr.toUpper,pe.trim=Wr.trim,pe.trimEnd=Wr.trimEnd,pe.trimStart=Wr.trimStart,pe.truncate=Wr.truncate,pe.unescape=Wr.unescape,pe.uniqueId=to.uniqueId,pe.upperCase=Wr.upperCase,pe.upperFirst=Wr.upperFirst,pe.each=fo.forEach,pe.eachRight=fo.forEachRight,pe.first=zn.head,uP(pe,(cP={},nh(pe,function(t,n){cse.call(pe.prototype,n)||(cP[n]=t)}),cP),{chain:!1}),pe.VERSION="4.17.21",(pe.templateSettings=Wr.templateSettings).imports._=pe,Kc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){pe[t].placeholder=pe}),Kc(["drop","take"],function(t,n){Dr.prototype[t]=function(e){e=void 0===e?1:Oqe(Gi(e),0);var i=this.__filtered__&&!n?new Dr(this):this.clone();return i.__filtered__?i.__takeCount__=dse(e,i.__takeCount__):i.__views__.push({size:dse(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Dr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Kc(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Dr.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:Ri(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),Kc(["head","last"],function(t,n){var e="take"+(n?"Right":"");Dr.prototype[t]=function(){return this[e](1).value()[0]}}),Kc(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Dr.prototype[t]=function(){return this.__filtered__?new Dr(this):this[e](1)}}),Dr.prototype.compact=function(){return this.filter(il)},Dr.prototype.find=function(t){return this.filter(t).head()},Dr.prototype.findLast=function(t){return this.reverse().find(t)},Dr.prototype.invokeMap=cr(function(t,n){return"function"==typeof t?new Dr(this):this.map(function(e){return nb(e,t,n)})}),Dr.prototype.reject=function(t){return this.filter(g0(Ri(t)))},Dr.prototype.slice=function(t,n){t=Gi(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Dr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Gi(n))<0?e.dropRight(-n):e.take(n-t)),e)},Dr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Dr.prototype.toArray=function(){return this.take(4294967295)},nh(Dr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=pe[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(pe.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Dr,c=a[0],u=l||ji(s),d=function(v){var y=r.apply(pe,ap([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Dr(this);var g=t.apply(s,a);return g.__actions__.push({func:y0,args:[d],thisArg:void 0}),new Jc(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),Kc(["pop","push","shift","sort","splice","unshift"],function(t){var n=Mqe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);pe.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(ji(o)?o:[],r)}return this[e](function(s){return n.apply(ji(s)?s:[],r)})}}),nh(Dr.prototype,function(t,n){var e=pe[n];if(e){var i=e.name+"";cse.call(e0,i)||(e0[i]=[]),e0[i].push({name:n,func:e})}}),e0[CS(void 0,2).name]=[{name:"wrapper",func:void 0}],Dr.prototype.clone=function(){var t=new Dr(this.__wrapped__);return t.__actions__=Gl(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Gl(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Gl(this.__views__),t},Dr.prototype.reverse=function(){if(this.__filtered__){var t=new Dr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Dr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=ji(t),i=n<0,r=e?t.length:0,o=function(k,D,L){for(var z=-1,R=L.length;++z1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Do(l)||n&&c.length>0)&&(e[an(c)]=!0),Do(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function fse(t){return Qe({},t)}function pse(t){return Object.values(t)}function mse(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(ri(o))),r}function hP(t,n){try{return n.parse(t)}catch{return n.parse(Jd(t))}}function gse(t,n){try{return hP(t,n)}catch{return}}function ik(t,n){t=t.replace(yse,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function vse(t){t=t.replace(yse,"");try{return Jd(t)}catch{}try{var n=Jd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Jd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var yse=/,\s*$/;function rk(t,n){var e=xse.exec(n);if(e){var i=$s(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return _0(t)?t:{text:e.stringify(t.json,null,n)}}function _se(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return pP(t)?t:{json:n.parse(t.text)}}function ok(t,n,e){return b0(t,n,e).text}function bse(t,n){return function Pqe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(_0(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Do(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var xse=/(position|char) (\d+)/,jqe=/line (\d+)/,Rqe=/column (\d+)/;function Cse(t){return Lqe.test(t)&&t.length>2}var Lqe=/^[[{]\S/;function mP(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?$qe:Bqe:e?Vqe:Hqe}var $qe={escapeValue:function(t){return Sse(Tse(String(t)))},unescapeValue:function(t){return Ese(kse(t))}},Bqe={escapeValue:function(t){return Tse(String(t))},unescapeValue:function(t){return Ese(t)}},Vqe={escapeValue:function(t){return Sse(String(t))},unescapeValue:function(t){return kse(t)}},Hqe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function Sse(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function kse(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return Dse[e]||e}catch{return n}})}var Dse={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Uqe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function Tse(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return Dse[n]||n})}function Ese(t){return t.replace(/\\["bfnrt\\]/g,function(n){return Uqe[n]||n})}function Km(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function Ase(t,n){return rb(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function Qm(t,n,e){return rb(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function rb(t,n){return!!gP(t,n)}function gP(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function Mse(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function sk(t,n,e){var i=x0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,Mse(r))}}function x0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function ak(t){var e=x0(t)?.document.activeElement;return!!e&&rb(e,function(i){return i===t})}function Ose(t,n){return gP(t,function(e){return e.nodeName===n})}function vP(t){return Qm(t,"data-type","selectable-key")?Zr.key:Qm(t,"data-type","selectable-value")?Zr.value:Qm(t,"data-type","insert-selection-area-inside")?Zr.inside:Qm(t,"data-type","insert-selection-area-after")?Zr.after:Zr.multi}function w0(t){return encodeURIComponent(an(t))}function Ise(t){var e=gP(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?qu(decodeURIComponent(e)):null}function fp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in Gqe||e.push(i),e.join(n)}var Gqe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},yP=sN.window;function Wqe(t){di(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function Nse(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&w>h,z="left"===v||_+u>window.innerWidth&&_>u;return{left:z?y.right-g:_+g,top:L?w-p:y.bottom+p,positionAbove:L,positionLeft:z}}if("number"==typeof n.left&&"number"==typeof n.top){var R=n.left,U=n.top,G=n.width,X=void 0===G?0:G,te=n.height,P=void 0===te?0:te;return{left:R,top:U,positionAbove:U+P>window.innerHeight&&U>P,positionLeft:R+X>window.innerWidth&&R>X}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function Xqe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!rb(l.target,function(c){return c===i})&&s(o.id)}return qc(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===fp(l)&&s(o.id)},function(l){a(l)},s,function(l){Hi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Hi[l?"unshift":"push"](function(){e(1,i=l)})}]}var Jqe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Xqe,qqe,ps,{popup:0,closeAbsolutePopup:6},Wqe),r}return Se(e)}();function Pse(t,n,e){var i=t.slice();return i[6]=n[e],i}function jse(t){var n,e;return n=new Jqe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Kqe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(eYe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var eYe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function ob(t){return{value:t,label:Ui(t)?"(whole item)":nu(Wl(t))}}function oh(t){return t.map(function(n){return bP.test(n)?"?.[".concat(n,"]"):_P.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var _P=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,bP=/^\d+$/;function sb(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function sh(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var tYe={id:"javascript",name:"JavaScript",description:"\n

\n Enter a JavaScript function to filter, sort, or transform the data.\n

\n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(oh(e.path)),a=function xP(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function ZZ(t){return xUe.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(oh(i.path),"\n")+" const valueB = b".concat(oh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(oh(i.path),"\n")+" const valueB = b".concat(oh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(oh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(oh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},nYe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},ab={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},lb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},iYe={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function rYe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var OYe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,MYe,AYe,Ti,{path:4,value:0,readOnly:1,onPatch:5,focus:6},EYe),r}return Se(e)}();function qse(t){for(var n=nP(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=uk(n,u);CP(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Do(l)&&i(o)){r[an(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=Re(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),Qe(Qe({},n),{},{expandedMap:r})}function Yse(t,n){var e=C0(t.expandedMap,n),i=C0(t.enforceStringMap,n),r=C0(t.visibleSectionsMap,n);return Qe(Qe({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Xse(t,n,e){if(e){var i=Qe({},t.enforceStringMap);return i[n]=e,Qe(Qe({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=Qe({},t.enforceStringMap);return delete r[n],Qe(Qe({},t),{},{enforceStringMap:r})}return t}function Jse(t,n,e){var i=Yu(t,e),r=e.reduce(function(o,s){return jZ(s)?Kse(i,o,s):RZ(s)?Qse(i,o,s):hN(s)?(u=(c=s).path,d=EP(a=i,(l=o).expandedMap),h=EP(a,l.enforceStringMap),f=EP(a,l.visibleSectionsMap),ko(c.value)||eo(c.value)||delete d[u],eo(c.value)||delete f[u],(ko(c.value)||eo(c.value))&&delete h[u],Qe(Qe({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):fN(s)||Jv(s)?function(a,l,c){if(Jv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=TP(kP(l.expandedMap,c.from),u),h=TP(kP(l.enforceStringMap,c.from),u),f=TP(kP(l.visibleSectionsMap,c.from),u),p=l;Jv(c)&&(p=Qse(a,p,{op:"remove",path:c.from}));var m=DP((p=Kse(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=DP(p.enforceStringMap,h),v=DP(p.visibleSectionsMap,f);return Qe(Qe({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function Kse(t,n,e){var i=Xu(t,e.path),r=qi(i),o=an(r);if(eo(Sn(t,r))){var s=$s(Fn(i)),a=S0(n.expandedMap,r,s,1),l=S0(n.enforceStringMap,r,s,1),c=S0(n.visibleSectionsMap,r,s,1);return c=Zse(c,o,function(u){return eae(u,s,1)}),Qe(Qe({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function Qse(t,n,e){var i=Xu(t,e.path),r=qi(i),o=an(r),s=Sn(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=C0(a,i),l=C0(l,i),c=C0(c,i),eo(s)){var u=$s(Fn(i));a=S0(a,r,u,-1),l=S0(l,r,u,-1),c=Zse(c=S0(c,r,u,-1),o,function(d){return eae(d,u,-1)})}return Qe(Qe({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function C0(t,n){var e={},i=an(n);return Object.keys(t).forEach(function(r){Kv(r,i)||(e[r]=t[r])}),e}function kP(t,n){var e={};return Object.keys(t).forEach(function(i){Kv(i,n)&&(e[i]=t[i])}),e}function DP(t,n){return Qe(Qe({},t),n)}function TP(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function S0(t,n,e,i){for(var r=n.length,o=an(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:an(u),value:t[c]}))}}if(0===s.length)return t;var h=Qe({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function EP(t,n){var e={};return Object.keys(n).filter(function(i){return Xc(t,Xu(t,i))}).forEach(function(i){e[i]=n[i]}),e}function Zse(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!rr(i,r)){var o=Qe({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function eae(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function hf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof Qv(o,i)}function cb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function AP(t,n){var e=[];return function i(r,o){e.push(o);var s=an(o);if(r&&!0===n.expandedMap[s]){if(eo(r)){var a=uk(n,s);CP(r,a,function(l){i(r[l],o.concat(String(l)))})}ko(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function tae(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:zu.value});var a=an(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:zu.inside}),eo(o)){var l=uk(n,a);CP(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:zu.after})})}ko(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:zu.key}),r(o[c],u),e&&i.push({path:u,type:zu.after})})}}(t,[]),i}function MP(t,n,e){var i=AP(t,n),r=i.map(an).indexOf(an(e));return-1!==r&&r0;){if(!0===t.pointersMap[an(i)])return!0;i.pop()}return vs(t)?e===Zr.key&&rr(t.focusPath,n):!(!Yi(t)||!(e===Zr.value&&rr(t.focusPath,n)||E0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===Zr.key||e===Zr.value||e===Zr.multi)))}function rae(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Ir(r)?r.focusPath:ta(r.paths),s=function FYe(t,n,e){var i=AP(t,n),r=i.map(an),o=an(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return Qu(r)||Vs(r)?Es(t,r.anchorPath,r.anchorPath):Es(t,r.anchorPath,l);if(vs(r)){var u=Sn(t,qi(s));return Array.isArray(u)||Ui(s)?fr(s,!1):ru(s,!1)}return Yi(r)?fr(s,!1):Qu(r)||Vs(r)?Es(t,o,o):Es(t,a,l)}function oae(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=tae(t,n,e),o=r.findIndex(function(s){return rr(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Sn(t,qi(r)))?fr(r,!1):ru(r,!1)}function T0(t,n){if(1===n.length){var e=ta(n);if("replace"===e.op||"move"===e.op)return fr(Xu(t,e.path),!1)}if(!Ui(n)&&n.every(function(s){return"move"===s.op})){var i=ta(n),r=n.slice(1);if((fN(i)||Jv(i))&&i.from!==i.path&&r.every(function(s){return(fN(s)||Jv(s))&&s.from===s.path}))return ru(Xu(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return Xu(t,s.path)});if(!Ui(o))return{type:Zr.multi,paths:o,anchorPath:ta(o),focusPath:Fn(o),pointersMap:sae(o)}}function sae(t){var n={};return t.forEach(function(e){n[an(e)]=!0}),n}function hk(t){return Hl({},an(t),!0)}function db(t){return void 0!==t&&(vs(t)||Yi(t)||Ir(t)&&1===t.paths.length)}function aae(t,n){return db(n)&&Lo(Sn(t,n.focusPath))?n.focusPath:qi(n.focusPath)}function E0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return Qe(Qe({},r),{},{active:o===n})});return Qe(Qe({},t),{},{items:i,itemsMap:p0(i,function(r){return an(r.path)}),activeItem:e,activeIndex:n})}function UYe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return Qe(Qe({},r),{},{active:o===n})});return Qe(Qe({},t),{},{items:i,itemsMap:p0(i,function(r){return an(r.path)}),activeItem:e,activeIndex:n})}function yae(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(ko(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else _ae(String(c),l,r,Gu.value,o)}(t.toLowerCase(),n),i}function _ae(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function FP(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function bae(t,n,e){var i=t;return eb(e,function(r){i=FP(i,n,r.start,r.end)}),i}function zYe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Gu.key){var c=qi(s),u=Sn(t,c),d=Fn(s),h=fb(c,Object.keys(u),d,FP(d,e,a,l));return{newSelection:T0(t,h),operations:h}}if(o===Gu.value){var f=Sn(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(an(s)));var p="string"==typeof f?f:String(f),m=an(s),g=hf(f,n.enforceStringMap,m,r),v=FP(p,e,a,l),y=[{op:"replace",path:an(s),value:g?v:Qv(v,r)}];return{newSelection:T0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function GYe(t,n,e,i,r){for(var o=yae(e,t,1/0),s=[],a=0;an.floating[o]&&(s=bk(s)),{main:s,cross:bk(s)}}var OXe={start:"end",end:"start"};function HP(t){return t.replace(/start|end/g,function(n){return OXe[n]})}var IXe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return Ki(pn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te,P,W,le,E,O,I,q,V,re;return pn().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,_=void 0===(y=u.fallbackAxisSideDirection)?"none":y,k=void 0===(w=u.flipAlignment)||w,D=oZ(u,dHe),L=ng(r),z=ng(a)===a,de.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return R=de.sent,U=m||(z||!k?[bk(a)]:(void 0,ye=bk(Oe=a),[HP(Oe),ye,HP(ye)])),m||"none"===_||U.push.apply(U,ri(function(Oe,ye,Xe,Le){var rt=yk(Oe),$=function(ne,ie,Me){var Ye=["left","right"],je=["right","left"];switch(ne){case"top":case"bottom":return Me?ie?je:Ye:ie?Ye:je;case"left":case"right":return ie?["top","bottom"]:["bottom","top"];default:return[]}}(ng(Oe),"start"===Xe,Le);return rt&&($=$.map(function(ne){return ne+"-"+rt}),ye&&($=$.concat($.map(HP)))),$}(a,k,_,R))),G=[a].concat(ri(U)),de.next=29,jae(n,D);case 29:if(X=de.sent,te=[],P=(null==(i=o.flip)?void 0:i.overflows)||[],h&&te.push(X[L]),p&&(W=MXe(r,s,R),te.push(X[W.main],X[W.cross])),P=[].concat(ri(P),[{placement:r,overflows:te}]),te.every(function(Oe){return Oe<=0})){de.next=48;break}if(O=((null==(le=o.flip)?void 0:le.index)||0)+1,!(I=G[O])){de.next=37;break}return de.abrupt("return",{data:{index:O,overflows:P},reset:{placement:I}});case 37:if(q=null==(E=P.filter(function(Oe){return Oe.overflows[0]<=0}).sort(function(Oe,ye){return Oe.overflows[1]-ye.overflows[1]})[0])?void 0:E.placement,q){de.next=46;break}de.t0=v,de.next="bestFit"===de.t0?42:"initialPlacement"===de.t0?45:46;break;case 42:return re=null==(V=P.map(function(Oe){return[Oe.placement,Oe.overflows.filter(function(ye){return ye>0}).reduce(function(ye,Xe){return ye+Xe},0)]}).sort(function(Oe,ye){return Oe[1]-ye[1]})[0])?void 0:V[0],re&&(q=re),de.abrupt("break",46);case 45:q=a;case 46:if(r===q){de.next=48;break}return de.abrupt("return",{reset:{placement:q}});case 48:return de.abrupt("return",{});case 49:case"end":return de.stop()}var Oe,ye},e)}))()}}},NXe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return Ki(pn().mark(function e(){var i,r,o;return pn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=Ki(pn().mark(function l(c,u){var d,h,f,p,m,g,v,y,_,w,k,D,L,z;return pn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return d=c.placement,h=c.platform,f=c.elements,R.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=R.sent,m=ng(d),g=yk(d),v="x"===_k(d),y=["left","top"].includes(m)?-1:1,_=p&&v?-1:1,w="function"==typeof u?u(c):u,k="number"==typeof w?{mainAxis:w,crossAxis:0,alignmentAxis:null}:Qe({mainAxis:0,crossAxis:0,alignmentAxis:null},w),D=k.mainAxis,L=k.crossAxis,z=k.alignmentAxis,R.abrupt("return",(g&&"number"==typeof z&&(L="end"===g?-1*z:z),v?{x:L*_,y:D*y}:{x:D*y,y:L*_}));case 14:case"end":return R.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function FXe(t){return"x"===t?"y":"x"}var PXe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return Ki(pn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,L;return pn().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(R){return{x:R.x,y:R.y}}}:h,p=oZ(a,hHe),m={x:r,y:o},z.next=14,jae(n,p);case 14:return g=z.sent,v=_k(ng(s)),y=FXe(v),_=m[v],w=m[y],c&&(_=Rae(_+g["y"===v?"top":"left"],_,_-g["y"===v?"bottom":"right"])),d&&(w=Rae(w+g["y"===y?"top":"left"],w,w-g["y"===y?"bottom":"right"])),L=f.fn(Qe(Qe({},n),{},(Hl(i={},v,_),Hl(i,y,w),i))),z.abrupt("return",Qe(Qe({},L),{},{data:{x:L.x-r,y:L.y-o}}));case 22:case"end":return z.stop()}},e)}))()}}};function Cc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function ch(t){return Cc(t).getComputedStyle(t)}var UP,Lae=Math.min,mb=Math.max,xk=Math.round;function $ae(t){var n=ch(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=xk(e)!==r||xk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function _p(t){return Vae(t)?(t.nodeName||"").toLowerCase():""}function Bae(){if(UP)return UP;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?UP=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function uh(t){return t instanceof Cc(t).HTMLElement}function ed(t){return t instanceof Cc(t).Element}function Vae(t){return t instanceof Cc(t).Node}function Hae(t){return typeof ShadowRoot<"u"&&(t instanceof Cc(t).ShadowRoot||t instanceof ShadowRoot)}function wk(t){var n=ch(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function jXe(t){return["table","td","th"].includes(_p(t))}function zP(t){var n=/firefox/i.test(Bae()),e=ch(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function GP(){return/^((?!chrome|android).)*safari/i.test(Bae())}function WP(t){return["html","body","#document"].includes(_p(t))}function Uae(t){return ed(t)?t:t.contextElement}var zae={x:1,y:1};function P0(t){var n=Uae(t);if(!uh(n))return zae;var e=n.getBoundingClientRect(),i=$ae(n),r=i.width,o=i.height,s=i.fallback,a=(s?xk(e.width):e.width)/r,l=(s?xk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function ig(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Uae(t),l=zae;n&&(i?ed(i)&&(l=P0(i)):l=P0(t));var c=a?Cc(a):window,u=GP()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=Cc(a),g=i&&ed(i)?Cc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=P0(v),_=v.getBoundingClientRect(),w=getComputedStyle(v);_.x+=(v.clientLeft+parseFloat(w.paddingLeft))*y.x,_.y+=(v.clientTop+parseFloat(w.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=_.x,h+=_.y,v=Cc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function bp(t){return((Vae(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ck(t){return ed(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gae(t){return ig(bp(t)).left+Ck(t).scrollLeft}function gb(t){if("html"===_p(t))return t;var n=t.assignedSlot||t.parentNode||Hae(t)&&t.host||bp(t);return Hae(n)?n.host:n}function Wae(t){var n=gb(t);return WP(n)?n.ownerDocument.body:uh(n)&&wk(n)?n:Wae(n)}function vb(t,n){var e;void 0===n&&(n=[]);var i=Wae(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Cc(i);return r?n.concat(o,o.visualViewport||[],wk(i)?i:[]):n.concat(i,vb(i))}function qae(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=Cc(l),d=bp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=GP();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=bp(t),c=bp(l),u=Ck(l),h=mb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=mb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Gae(l),m=-u.scrollTop,"rtl"===ch(d).direction&&(p+=mb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(ed(n))i=function(l,c){var u=ig(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=uh(l)?P0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=Qe({},n);if(GP()){var o,s,a=Cc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return BP(i)}function Yae(t,n){return uh(t)&&"fixed"!==ch(t).position?n?n(t):t.offsetParent:null}function Xae(t,n){for(var e=Cc(t),i=Yae(t,n);i&&jXe(i)&&"static"===ch(i).position;)i=Yae(i,n);return i&&("html"===_p(i)||"body"===_p(i)&&"static"===ch(i).position&&!zP(i))?e:i||function(r){for(var o=gb(r);uh(o)&&!WP(o);){if(zP(o))return o;o=gb(o)}return null}(t)||e}function RXe(t,n,e){var i=uh(n),r=bp(n),o=ig(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==_p(n)||wk(r))&&(s=Ck(n)),uh(n)){var l=ig(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Gae(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var LXe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=vb(c).filter(function(y){return ed(y)&&"body"!==_p(y)}),f=null,p="fixed"===ch(c).position,m=p?gb(c):c;ed(m)&&!WP(m);){var g=ch(m),v=zP(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=gb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(ri(o),[i]),l=s.reduce(function(c,u){var d=qae(n,u,r);return c.top=mb(d.top,c.top),c.right=Lae(d.right,c.right),c.bottom=Lae(d.bottom,c.bottom),c.left=mb(d.left,c.left),c},qae(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=uh(e),o=bp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==_p(e)||wk(o))&&(s=Ck(e)),uh(e))){var c=ig(e);a=P0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:ed,getDimensions:function(t){return uh(t)?$ae(t):t.getBoundingClientRect()},getOffsetParent:Xae,getDocumentElement:bp,getScale:P0,getElementRects:function(t){var n=this;return Ki(pn().mark(function e(){var i,r,o,s,a;return pn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Xae,a=n.getDimensions,l.t0=RXe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=Qe,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===ch(t).direction}};function VXe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==mn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function HXe(t){return qP.apply(this,arguments)}function qP(){return qP=Ki(pn().mark(function t(n){var e,i,r,o,s;return pn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==mn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),qP.apply(this,arguments)}function UXe(t){di(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function zXe(t){var n,e;return{c:function(){n=qd("svg"),j(e=qd("path"),"fill","currentColor"),j(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),j(n,"width","100%"),j(n,"height","100%"),j(n,"viewBox","0 0 20 20"),j(n,"focusable","false"),j(n,"aria-hidden","true"),j(n,"class","svelte-qbd276")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:jt,i:jt,o:jt,d:function(i){i&&Fe(n)}}}var GXe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,null,zXe,ps,{},UXe),r}return Se(e)}();function WXe(t){di(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function qXe(t){var n,e;return{c:function(){n=qd("svg"),j(e=qd("path"),"fill","currentColor"),j(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),j(n,"width","100%"),j(n,"height","100%"),j(n,"viewBox","-2 -2 50 50"),j(n,"focusable","false"),j(n,"aria-hidden","true"),j(n,"role","presentation"),j(n,"class","svelte-whdbu1")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:jt,i:jt,o:jt,d:function(i){i&&Fe(n)}}}var Sk=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,null,qXe,ps,{},WXe),r}return Se(e)}();function YXe(t){di(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function XXe(t){var n,e;return{c:function(){n=qd("svg"),j(e=qd("circle"),"class","circle_path svelte-1p3nqvd"),j(e,"cx","50"),j(e,"cy","50"),j(e,"r","20"),j(e,"fill","none"),j(e,"stroke","currentColor"),j(e,"stroke-width","5"),j(e,"stroke-miterlimit","10"),j(n,"class","loading svelte-1p3nqvd"),j(n,"viewBox","25 25 50 50")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:jt,i:jt,o:jt,d:function(i){i&&Fe(n)}}}var JXe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,null,XXe,ps,{},YXe),r}return Se(e)}();function KXe(t){di(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var QXe=function(t){return{value:8&t[0]}},Jae=function(t){return{value:t[3]}},ZXe=function(t){return{listOpen:64&t[0]}},Kae=function(t){return{listOpen:t[6]}},eJe=function(t){return{}},Qae=function(t){return{}},tJe=function(t){return{}},Zae=function(t){return{}},nJe=function(t){return{selection:8&t[0]}},ele=function(t){return{selection:t[3]}};function tle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var iJe=function(t){return{}},nle=function(t){return{}},rJe=function(t){return{selection:8&t[0]}},ile=function(t){return{selection:t[127],index:t[129]}},oJe=function(t){return{}},rle=function(t){return{}},sJe=function(t){return{}},ole=function(t){return{}};function sle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var aJe=function(t){return{item:16777216&t[0]}},ale=function(t){return{item:t[127],index:t[129]}},lJe=function(t){return{filteredItems:16777216&t[0]}},lle=function(t){return{filteredItems:t[24]}};function cle(t){var n,e,i,r,o,s,a=[dJe,uJe,cJe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=ve("div"),i&&i.c(),j(n,"class","svelte-select-list svelte-tyxmms"),At(n,"prefloat",t[28])},m:function(u,d){Pe(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[pa(t[49].call(null,n)),It(n,"scroll",t[41]),It(n,"pointerdown",ef(t[50])),It(n,"pointerup",tf(ef(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&(Rt(),ae(l[h],1,1,function(){l[h]=null}),Lt()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),K(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&At(n,"prefloat",u[28])},i:function(u){r||(K(i),r=!0)},o:function(u){ae(i),r=!1},d:function(u){u&&Fe(n),~e&&l[e].d(),t[91](null),o=!1,so(s)}}}function cJe(t){var n,e,i=t[83].empty,r=Ss(i,t,t[82],ole),o=r||{c:function(){(e=ve("div")).textContent="No options",j(e,"class","empty svelte-tyxmms")},m:function(s,a){Pe(s,e,a)},p:jt,d:function(s){s&&Fe(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Ds(r,i,s,s[82],n?ks(i,s[82],a,sJe):Ts(s[82]),ole)},i:function(s){n||(K(o,s),n=!0)},o:function(s){ae(o,s),n=!1},d:function(s){o&&o.d(s)}}}function uJe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(Ke,Xn)}:kn,ci=n.debounceWait,li=void 0===ci?300:ci,Sr=n.hideEmptyState,qr=void 0!==Sr&&Sr,fi=n.inputAttributes,vr=void 0===fi?{}:fi,Te=n.listAutoWidth,St=void 0===Te||Te,Vt=n.showChevron,rn=void 0!==Vt&&Vt,un=n.listOffset,ni=void 0===un?5:un,Ni=n.hoverItemIndex,$n=void 0===Ni?0:Ni,Zn=n.floatingConfig,Yn=void 0===Zn?{}:Zn,yr=n.class,Er=void 0===yr?"":yr;function Oo(Ke){var Xn=[],Qi={};Ke.forEach(function(xd){var jr=wr(xd);Xn.includes(jr)||(Xn.push(jr),Qi[jr]=[],jr&&Qi[jr].push(Object.assign(Hs(jr,xd),{id:jr,groupHeader:!0,selectable:Vr}))),Qi[jr].push(Object.assign({groupItem:!!jr},xd))});var zs=[];return mr(Xn).forEach(function(xd){Qi[xd]&&zs.push.apply(zs,ri(Qi[xd]))}),zs}function ra(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Xn=arguments.length>1?arguments[1]:void 0;e(7,$n=Ke<0?0:Ke),!Xn&&wr&&c[$n]&&!c[$n].selectable&&yo(1)}function pd(){var Ke=!0;if($){var Xn=[],Qi=[];$.forEach(function(zs){Xn.includes(zs[On])?Ke=!1:(Xn.push(zs[On]),Qi.push(zs))}),Ke||e(3,$=Qi)}return Ke}function fu(Ke){var Xn=Ke?Ke[On]:$[On];return fn.find(function(Qi){return Qi[On]===Xn})}function oa(Ke){return El.apply(this,arguments)}function El(){return(El=Ki(pn().mark(function Ke(Xn){var Qi;return pn().wrap(function(zs){for(;;)switch(zs.prev=zs.next){case 0:Qi=$[Xn],e(3,$=1===$.length?void 0:$.filter(function(xd){return xd!==Qi})),L("clear",Qi);case 3:case"end":return zs.stop()}},Ke)}))).apply(this,arguments)}function md(Ke){var Xn;Le&&I===(null===(Xn=document)||void 0===Xn?void 0:Xn.activeElement)||(Ke&&L("focus",Ke),I.focus(),e(2,Le=!0))}function Ms(Ke){return gd.apply(this,arguments)}function gd(){return(gd=Ki(pn().mark(function Ke(Xn){return pn().wrap(function(Qi){for(;;)switch(Qi.prev=Qi.next){case 0:if(!ui&&!dx){Qi.next=2;break}return Qi.abrupt("return");case 2:(Ue||Le)&&(L("blur",Xn),vd(),e(2,Le=!1),e(26,f=void 0),I.blur());case 3:case"end":return Qi.stop()}},Ke)}))).apply(this,arguments)}function vd(){e(4,ie=""),e(6,Ue=!1)}y=Ki(pn().mark(function Ke(){return pn().wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:e(78,p=$),e(79,m=ie),e(80,g=V);case 3:case"end":return Xn.stop()}},Ke)})),qv().$$.before_update.push(y),qc(function(){Ue&&e(2,Le=!0),Le&&I&&I.focus()});var on,CT=n.ariaValues,we=void 0===CT?function(Ke){return"Option ".concat(Ke,", selected.")}:CT,at=n.ariaListOpen,Mt=void 0===at?function(Ke,Xn){return"You are currently focused on option ".concat(Ke,". There are ").concat(Xn," results available.")}:at,Xt=n.ariaFocused,nn=void 0===Xt?function(){return"Select is focused, type to refine list, press down to open the menu."}:Xt,Bn=null;function si(){clearTimeout(on),on=setTimeout(function(){ui=!1},100)}Vu(function(){var Ke;null===(Ke=Bn)||void 0===Ke||Ke.remove()});var ui=!1;function Io(Ke){Ke&&!1!==Ke.selectable&&function(Xn){if(Xn){e(4,ie="");var Qi=Object.assign({},Xn);if(Qi.groupHeader&&!Qi.selectable)return;e(3,$=V?$?$.concat([Qi]):[Qi]:e(3,$=Qi)),setTimeout(function(){Hr&&vd(),e(26,f=void 0),L("change",$),L("select",Xn)})}}(Ke)}function Os(Ke){ui||e(7,$n=Ke)}function Xo(Ke){var zs,Xn=Ke.item,Qi=Ke.i;if(!1!==Xn?.selectable){if($&&!V&&$[On]===Xn[On])return vd();((zs=Xn).groupHeader&&zs.selectable||zs.selectable||!zs.hasOwnProperty("selectable"))&&(e(7,$n=Qi),Io(Xn)),dx=!1}}function yo(Ke){if(0===c.filter(function(Qi){return!Object.hasOwn(Qi,"selectable")||!0===Qi.selectable}).length)return e(7,$n=0);e(7,Ke>0&&$n===c.length-1?$n=0:Ke<0&&0===$n?$n=c.length-1:$n+=Ke);var Xn=c[$n];Xn&&!1===Xn.selectable&&(1!==Ke&&-1!==Ke||yo(Ke))}var Al=yd,Ch=yd;function yd(Ke){return{update:function(Xn){Xn.scroll&&(si(),Ke.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Ar={strategy:"absolute",placement:"bottom-start",middleware:[NXe(ni),IXe(),PXe()],autoUpdate:!1},Jl=Un(function BXe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return Qe(Qe(Qe({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=Qe({platform:LXe},d),p=Qe(Qe({},f.platform),{},{_c:h}),kXe(c,u,Qe(Qe({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){Vu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function $Xe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(ri(ed(t)?vb(t):t.contextElement?vb(t.contextElement):[]),ri(vb(n))):[];p.forEach(function(_){f&&_.addEventListener("scroll",e,{passive:!0}),l&&_.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),ed(t)&&!h&&g.observe(t),ed(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?ig(t):null;return h&&function _(){var w=ig(t);!y||w.x===y.x&&w.y===y.y&&w.width===y.width&&w.height===y.height||e(),y=w,m=requestAnimationFrame(_)}(),e(),function(){var _;p.forEach(function(w){f&&w.removeEventListener("scroll",e),l&&w.removeEventListener("resize",e)}),null==(_=g)||_.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Ar),3),pu=Jl[0],_d=Jl[1],Sh=Jl[2],bd=!0,dx=!1;return t.$$set=function(Ke){"justValue"in Ke&&e(53,R=Ke.justValue),"filter"in Ke&&e(54,G=Ke.filter),"getItems"in Ke&&e(55,te=Ke.getItems),"id"in Ke&&e(56,W=Ke.id),"name"in Ke&&e(8,H=Ke.name),"container"in Ke&&e(0,E=Ke.container),"input"in Ke&&e(1,I=Ke.input),"multiple"in Ke&&e(9,V=Ke.multiple),"multiFullItemClearable"in Ke&&e(10,de=Ke.multiFullItemClearable),"disabled"in Ke&&e(11,ye=Ke.disabled),"focused"in Ke&&e(2,Le=Ke.focused),"value"in Ke&&e(3,$=Ke.value),"filterText"in Ke&&e(4,ie=Ke.filterText),"placeholder"in Ke&&e(57,Ye=Ke.placeholder),"placeholderAlwaysShow"in Ke&&e(58,gt=Ke.placeholderAlwaysShow),"items"in Ke&&e(52,fn=Ke.items),"label"in Ke&&e(12,Zt=Ke.label),"itemFilter"in Ke&&e(59,ln=Ke.itemFilter),"groupBy"in Ke&&e(60,wr=Ke.groupBy),"groupFilter"in Ke&&e(61,mr=Ke.groupFilter),"groupHeaderSelectable"in Ke&&e(62,Vr=Ke.groupHeaderSelectable),"itemId"in Ke&&e(13,On=Ke.itemId),"loadOptions"in Ke&&e(63,ai=Ke.loadOptions),"containerStyles"in Ke&&e(14,Cr=Ke.containerStyles),"hasError"in Ke&&e(15,Yo=Ke.hasError),"filterSelectedItems"in Ke&&e(64,In=Ke.filterSelectedItems),"required"in Ke&&e(16,vi=Ke.required),"closeListOnChange"in Ke&&e(65,Hr=Ke.closeListOnChange),"createGroupHeaderItem"in Ke&&e(66,Hs=Ke.createGroupHeaderItem),"searchable"in Ke&&e(17,Us=Ke.searchable),"inputStyles"in Ke&&e(18,Ua=Ke.inputStyles),"clearable"in Ke&&e(68,xe=Ke.clearable),"loading"in Ke&&e(5,We=Ke.loading),"listOpen"in Ke&&e(6,Ue=Ke.listOpen),"debounce"in Ke&&e(69,ti=Ke.debounce),"debounceWait"in Ke&&e(70,li=Ke.debounceWait),"hideEmptyState"in Ke&&e(19,qr=Ke.hideEmptyState),"inputAttributes"in Ke&&e(71,vr=Ke.inputAttributes),"listAutoWidth"in Ke&&e(72,St=Ke.listAutoWidth),"showChevron"in Ke&&e(20,rn=Ke.showChevron),"listOffset"in Ke&&e(73,ni=Ke.listOffset),"hoverItemIndex"in Ke&&e(7,$n=Ke.hoverItemIndex),"floatingConfig"in Ke&&e(74,Yn=Ke.floatingConfig),"class"in Ke&&e(21,Er=Ke.class),"ariaValues"in Ke&&e(75,we=Ke.ariaValues),"ariaListOpen"in Ke&&e(76,Mt=Ke.ariaListOpen),"ariaFocused"in Ke&&e(77,nn=Ke.ariaFocused),"$$scope"in Ke&&e(82,k=Ke.$$scope)},t.$$.update=function(){var Ke,Xn,Qi,zs,xd,jr;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&$&&function(){if("string"==typeof $){var jr,Gs=(fn||[]).find(function(mu){return mu[On]===$});e(3,$=Gs||(Hl(jr={},On,$),Hl(jr,"label",$),jr))}else V&&Array.isArray($)&&$.length>0&&e(3,$=$.map(function(mu){return"string"==typeof mu?{value:mu,label:mu}:mu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!vr&&Us||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},vr)),W&&e(27,v.id=W,v),Us||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&$&&(Array.isArray($)?e(3,$=ri($)):e(3,$=[$])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&$&&e(3,$=null),520&t.$$.dirty[0]&&V&&$&&$.length>1&&pd(),8&t.$$.dirty[0]&&$&&(V?JSON.stringify($)!==JSON.stringify(p)&&pd()&&L("input",$):p&&JSON.stringify($[On])===JSON.stringify(p[On])||L("input",$)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!$&&V&&p&&L("input",$),6&t.$$.dirty[0]&&!Le&&I&&vd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&ie!==m&&(ai||0!==ie.length)&&(ai?ti(Ki(pn().mark(function jr(){var Gs;return pn().wrap(function(mu){for(;;)switch(mu.prev=mu.next){case 0:return e(5,We=!0),mu.next=3,te({dispatch:L,loadOptions:ai,convertStringItemsToObjects:_le,filterText:ie});case 3:(Gs=mu.sent)?(e(5,We=Gs.loading),e(6,Ue=Ue?Gs.listOpen:ie.length>0),e(2,Le=Ue&&Gs.focused),e(52,fn=wr?Oo(Gs.filteredItems):Gs.filteredItems)):(e(5,We=!1),e(2,Le=!0),e(6,Ue=!0));case 5:case"end":return mu.stop()}},jr)})),li):(e(6,Ue=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=G({loadOptions:ai,filterText:ie,items:fn,multiple:V,value:$,itemId:On,groupBy:wr,label:Zt,filterSelectedItems:In,itemFilter:ln,convertStringItemsToObjects:_le,filterGroupedItems:Oo})),16777800&t.$$.dirty[0]&&!V&&Ue&&$&&c&&(Ke=c.findIndex(function(jr){return jr[On]===$[On]}),ra(Ke,!0)),576&t.$$.dirty[0]&&Ue&&V&&e(7,$n=0),16&t.$$.dirty[0]&&ie&&e(7,$n=0),128&t.$$.dirty[0]&&L("hoverItem",$n),520&t.$$.dirty[0]&&e(25,i=V?$&&$.length>0:$),33554448&t.$$.dirty[0]&&e(35,r=i&&ie.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&xe&&!ye&&!We),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=gt&&V||V&&0===(null===(Xn=$)||void 0===Xn?void 0:Xn.length)?Ye:$?"":Ye),520&t.$$.dirty[0]&&e(32,a=$?(Qi=V&&$.length>0?$.map(function(jr){return jr[Zt]}).join(", "):$[Zt],we(Qi)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var jr=c[$n];return Ue&&jr?Mt(jr[Zt],c?c.length:0):nn()}()),2097152&t.$$.dirty[1]&&(jr=fn)&&0!==jr.length&&!jr.some(function(Gs){return"object"!==mn(Gs)})&&$&&(V?!$.some(function(Gs){return!Gs||!Gs[On]}):$[On])&&(Array.isArray($)?e(3,$=$.map(function(Gs){return fu(Gs)||Gs})):e(3,$=fu()||$)),8712&t.$$.dirty[0]&&e(53,R=V?$?$.map(function(jr){return jr[On]}):null:$&&$[On]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||$||L("input",$)),16777800&t.$$.dirty[0]&&Ue&&c&&!V&&!$&&ra(),16777216&t.$$.dirty[0]&&function(jr){Ue&&L("filter",jr)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&E&&void 0===(null===(zs=Yn)||void 0===zs?void 0:zs.autoUpdate)&&e(81,Ar.autoUpdate=!0,Ar),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&E&&Yn&&Sh(Object.assign(Ar,Yn)),8388608&t.$$.dirty[0]&&e(30,u=!!Bn),8388672&t.$$.dirty[0]&&function(jr,Gs){if(!jr||!Gs)return e(28,bd=!0);setTimeout(function(){e(28,bd=!1)},0)}(Bn,Ue),8388673&t.$$.dirty[0]&&Ue&&E&&Bn&&(xd=E.getBoundingClientRect().width,e(23,Bn.style.width=St?xd+"px":"auto",Bn)),128&t.$$.dirty[0]&&e(29,d=$n),70&t.$$.dirty[0]&&I&&Ue&&!Le&&md()},[E,I,Le,$,ie,We,Ue,$n,H,V,de,ye,Zt,On,Cr,Yo,vi,Us,Ua,qr,rn,Er,function(){L("clear",$),e(3,$=void 0),vd(),md()},Bn,c,i,f,v,bd,d,u,l,a,s,o,r,oa,function(Ke){if(Le)switch(Ke.stopPropagation(),Ke.key){case"Escape":Ke.preventDefault(),vd();break;case"Enter":if(Ke.preventDefault(),Ue){if(0===c.length)break;if($&&!V&&$[On]===c[$n][On]){vd();break}Io(c[$n])}break;case"ArrowDown":Ke.preventDefault(),Ue?yo(1):(e(6,Ue=!0),e(26,f=void 0));break;case"ArrowUp":Ke.preventDefault(),Ue?yo(-1):(e(6,Ue=!0),e(26,f=void 0));break;case"Tab":if(Ue&&Le){if(0===c.length||$&&$[On]===c[$n][On])return vd();Ke.preventDefault(),Io(c[$n]),vd()}break;case"Backspace":if(!V||ie.length>0)return;if(V&&$&&$.length>0){if(oa(void 0!==f?f:$.length-1),0===f||void 0===f)break;e(26,f=$.length>f?f-1:void 0)}break;case"ArrowLeft":if(!$||!V||ie.length>0)return;void 0===f?e(26,f=$.length-1):$.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!$||!V||ie.length>0||void 0===f)return;f===$.length-1?e(26,f=void 0):f<$.length-1&&e(26,f+=1)}},md,Ms,function(){ye||e(6,Ue=!Ue)},si,function(Ke){var Xn;Ue||Le||!E||E.contains(Ke.target)||null!==(Xn=Bn)&&void 0!==Xn&&Xn.contains(Ke.target)||Ms()},Os,Xo,function(Ke,Xn,Qi){if(!V)return Xn&&Xn[Qi]===Ke[Qi]},Al,Ch,pu,_d,function(){dx=!0},D,fn,R,G,te,W,Ye,gt,ln,wr,mr,Vr,ai,In,Hr,Hs,function(){return c},xe,ti,li,vr,St,ni,Yn,we,Mt,nn,p,m,g,Ar,k,w,function(Ke){Z2.call(this,t,Ke)},function(Ke){Z2.call(this,t,Ke)},function(Ke){Z2.call(this,t,Ke)},function(Ke){Z2.call(this,t,Ke)},function(Ke){return Os(Ke)},function(Ke){return Os(Ke)},function(Ke,Xn){return Xo({item:Ke,i:Xn})},function(Ke){Hi[Ke?"unshift":"push"](function(){e(23,Bn=Ke)})},function(Ke){return oa(Ke)},function(Ke){return de?oa(Ke):{}},function(Ke){Hi[Ke?"unshift":"push"](function(){e(1,I=Ke)})},function(){e(4,ie=this.value)},function(Ke){Hi[Ke?"unshift":"push"](function(){e(0,E=Ke)})}]}var rg=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,mJe,pJe,ps,{justValue:53,filter:54,getItems:55,id:56,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:57,placeholderAlwaysShow:58,items:52,label:12,itemFilter:59,groupBy:60,groupFilter:61,groupHeaderSelectable:62,itemId:13,loadOptions:63,containerStyles:14,hasError:15,filterSelectedItems:64,required:16,closeListOnChange:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},KXe,[-1,-1,-1,-1,-1]),r}return Se(e,[{key:"getFilteredItems",get:function(){return this.$$.ctx[67]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}]),e}();function gJe(t){di(t,"svelte-1kiph99","table.jse-transform-wizard.svelte-1kiph99.svelte-1kiph99{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-1kiph99 input.svelte-1kiph99{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-1kiph99 tr th.svelte-1kiph99{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99{flex:4;padding:4px 8px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);outline:none;background:var(--jse-input-background);color:inherit}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99:focus{border:var(--jse-input-border-focus)}")}function vJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te,P,W,J,H,le,E;function O(rt){t[16](rt)}var I={class:"jse-filter-path",showChevron:!0,items:t[7]};function q(rt){t[17](rt)}void 0!==t[0]&&(I.value=t[0]),a=new rg({props:I}),Hi.push(function(){return Uu(a,"value",O)});var V={class:"jse-filter-relation",showChevron:!0,items:t[8]};function re(rt){t[19](rt)}void 0!==t[1]&&(V.value=t[1]),u=new rg({props:V}),Hi.push(function(){return Uu(u,"value",q)});var de={class:"jse-sort-path",showChevron:!0,items:t[7]};function Oe(rt){t[20](rt)}void 0!==t[3]&&(de.value=t[3]),w=new rg({props:de}),Hi.push(function(){return Uu(w,"value",re)});var ye={class:"jse-sort-direction",showChevron:!0,items:t[9]};function Xe(rt){t[21](rt)}void 0!==t[4]&&(ye.value=t[4]),L=new rg({props:ye}),Hi.push(function(){return Uu(L,"value",Oe)});var Le={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:t[6]};return void 0!==t[5]&&(Le.value=t[5]),W=new rg({props:Le}),Hi.push(function(){return Uu(W,"value",Xe)}),{c:function(){n=ve("table"),e=ve("tr"),(i=ve("th")).textContent="Filter",r=tt(),o=ve("td"),s=ve("div"),ft(a.$$.fragment),c=tt(),ft(u.$$.fragment),h=tt(),f=ve("input"),p=tt(),m=ve("tr"),(g=ve("th")).textContent="Sort",v=tt(),y=ve("td"),_=ve("div"),ft(w.$$.fragment),D=tt(),ft(L.$$.fragment),R=tt(),U=ve("tr"),(G=ve("th")).textContent="Pick",X=tt(),te=ve("td"),P=ve("div"),ft(W.$$.fragment),j(i,"class","svelte-1kiph99"),j(f,"class","jse-filter-value svelte-1kiph99"),j(s,"class","jse-horizontal svelte-1kiph99"),j(g,"class","svelte-1kiph99"),j(_,"class","jse-horizontal svelte-1kiph99"),j(G,"class","svelte-1kiph99"),j(P,"class","jse-horizontal svelte-1kiph99"),j(n,"class","jse-transform-wizard svelte-1kiph99")},m:function(rt,$){Pe(rt,n,$),ue(n,e),ue(e,i),ue(e,r),ue(e,o),ue(o,s),dt(a,s,null),ue(s,c),dt(u,s,null),ue(s,h),ue(s,f),ep(f,t[2]),ue(n,p),ue(n,m),ue(m,g),ue(m,v),ue(m,y),ue(y,_),dt(w,_,null),ue(_,D),dt(L,_,null),ue(n,R),ue(n,U),ue(U,G),ue(U,X),ue(U,te),ue(te,P),dt(W,P,null),H=!0,le||(E=It(f,"input",t[18]),le=!0)},p:function(rt,$){var ne=Un($,1)[0],ie={};128&ne&&(ie.items=rt[7]),!l&&1&ne&&(l=!0,ie.value=rt[0],Hu(function(){return l=!1})),a.$set(ie);var Me={};!d&&2&ne&&(d=!0,Me.value=rt[1],Hu(function(){return d=!1})),u.$set(Me),4&ne&&f.value!==rt[2]&&ep(f,rt[2]);var Ye={};128&ne&&(Ye.items=rt[7]),!k&&8&ne&&(k=!0,Ye.value=rt[3],Hu(function(){return k=!1})),w.$set(Ye);var je={};!z&&16&ne&&(z=!0,je.value=rt[4],Hu(function(){return z=!1})),L.$set(je);var gt={};64&ne&&(gt.items=rt[6]),!J&&32&ne&&(J=!0,gt.value=rt[5],Hu(function(){return J=!1})),W.$set(gt)},i:function(rt){H||(K(a.$$.fragment,rt),K(u.$$.fragment,rt),K(w.$$.fragment,rt),K(L.$$.fragment,rt),K(W.$$.fragment,rt),H=!0)},o:function(rt){ae(a.$$.fragment,rt),ae(u.$$.fragment,rt),ae(w.$$.fragment,rt),ae(L.$$.fragment,rt),ae(W.$$.fragment,rt),H=!1},d:function(rt){rt&&Fe(n),ht(a),ht(u),ht(w),ht(L),ht(W),le=!1,E()}}}function yJe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=ga("jsoneditor:TransformWizard"),w=n.json,k=n.queryOptions,D=void 0===k?{}:k,L=n.onChange,z=["==","!=","<","<=",">",">="].map(function(W){return{value:W,label:W}}),R=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],U=null!==(i=D)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?ob(D.filter.path):null,G=null!==(o=D)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?z.find(function(W){var J;return W.value===(null===(J=D.filter)||void 0===J?void 0:J.relation)}):null,X=(null===(a=D)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",te=null!==(c=D)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?ob(D.sort.path):null,P=null!==(d=D)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?R.find(function(W){var J;return W.value===(null===(J=D.sort)||void 0===J?void 0:J.direction)}):null;return t.$$set=function(W){"json"in W&&e(11,w=W.json),"queryOptions"in W&&e(10,D=W.queryOptions),"onChange"in W&&e(12,L=W.onChange)},t.$$.update=function(){var W,J,H,le,E,O,I,q,V,re,de,Oe,ye,Xe,Le,rt,$,ne,ie,Me,Ye;2048&t.$$.dirty&&e(15,f=Array.isArray(w)),34816&t.$$.dirty&&e(14,p=f?dP(w):[]),34816&t.$$.dirty&&e(13,m=f?dP(w,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(ob)),8192&t.$$.dirty&&e(6,v=m?m.map(ob):[]),1088&t.$$.dirty&&e(5,y=null!==(W=D)&&void 0!==W&&null!==(J=W.projection)&&void 0!==J&&J.paths&&v?D.projection.paths.map(function(ie){return v.find(function(Me){return rr(Me.value,ie)})}).filter(function(ie){return!!ie}):null),1&t.$$.dirty&&(le=(null===(H=U)||void 0===H?void 0:H.value)||null,rr(null===(E=D)||void 0===E||null===(O=E.filter)||void 0===O?void 0:O.path,le)||(_("changeFilterPath",le),e(10,D=Wu(D,["filter","path"],le,!0)),L(D))),2&t.$$.dirty&&(q=(null===(I=G)||void 0===I?void 0:I.value)||null,rr(null===(V=D)||void 0===V||null===(re=V.filter)||void 0===re?void 0:re.relation,q)||(_("changeFilterRelation",q),e(10,D=Wu(D,["filter","relation"],q,!0)),L(D))),4&t.$$.dirty&&(rr(null===(Oe=D)||void 0===Oe||null===(ye=Oe.filter)||void 0===ye?void 0:ye.value,de=X||null)||(_("changeFilterValue",de),e(10,D=Wu(D,["filter","value"],de,!0)),L(D))),8&t.$$.dirty&&(ie=(null===(Xe=te)||void 0===Xe?void 0:Xe.value)||null,rr(null===(Me=D)||void 0===Me||null===(Ye=Me.sort)||void 0===Ye?void 0:Ye.path,ie)||(_("changeSortPath",ie),e(10,D=Wu(D,["sort","path"],ie,!0)),L(D))),16&t.$$.dirty&&(rt=(null===(Le=P)||void 0===Le?void 0:Le.value)||null,rr(null===($=D)||void 0===$||null===(ne=$.sort)||void 0===ne?void 0:ne.direction,rt)||(_("changeSortDirection",rt),e(10,D=Wu(D,["sort","direction"],rt,!0)),L(D))),32&t.$$.dirty&&function(ie){var Me,Ye;rr(null===(Me=D)||void 0===Me||null===(Ye=Me.projection)||void 0===Ye?void 0:Ye.paths,ie)||(_("changeProjectionPaths",ie),e(10,D=Wu(D,["projection","paths"],ie,!0)),L(D))}(y?y.map(function(ie){return ie.value}):null)},[U,G,X,te,P,y,v,g,z,R,D,w,L,m,p,f,function(W){e(0,U=W)},function(W){e(1,G=W)},function(){e(2,X=this.value)},function(W){e(3,te=W)},function(W){e(4,P=W)},function(W){e(5,y=W),e(10,D),e(6,v),e(13,m),e(15,f),e(11,w)}]}var _Je=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,yJe,vJe,Ti,{json:11,queryOptions:10,onChange:12},gJe),r}return Se(e)}();function bJe(t){di(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function ble(t,n,e){var i=t.slice();return i[5]=n[e],i}function xJe(t){var n,e;return n=new or({props:{data:lb}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function wJe(t){var n,e;return n=new or({props:{data:ab}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function xle(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[wJe,xJe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=ve("button"),i.c(),r=tt(),o=tn(d),s=tt(),j(n,"type","button"),j(n,"class","jse-query-language svelte-19cxesy"),j(n,"title",a="Select ".concat(t[5].name," as query language")),At(n,"selected",t[5].id===t[0])},m:function(g,v){Pe(g,n,v),f[e].m(n,null),ue(n,r),ue(n,o),ue(n,s),l=!0,c||(u=It(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):(Rt(),ae(f[y],1,1,function(){f[y]=null}),Lt(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),K(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&Wn(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&j(n,"title",a),(!l||3&v)&&At(n,"selected",t[5].id===t[0])},i:function(g){l||(K(i),l=!0)},o:function(g){ae(i),l=!1},d:function(g){g&&Fe(n),f[e].d(),c=!1,u()}}}function CJe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&wle(t);return s=new or({props:{data:F0}}),{c:function(){n=ve("div"),(e=ve("div")).textContent="Transform",i=tt(),u&&u.c(),r=tt(),o=ve("button"),ft(s.$$.fragment),j(e,"class","jse-title svelte-d01h2s"),j(o,"type","button"),j(o,"class","jse-close svelte-d01h2s"),j(n,"class","jse-header svelte-d01h2s")},m:function(d,h){Pe(d,n,h),ue(n,e),ue(n,i),u&&u.m(n,null),ue(n,r),ue(n,o),dt(s,o,null),a=!0,l||(c=It(o,"click",t[2]),l=!0)},p:function(d,h){var f=Un(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&K(u,1)):((u=wle(d)).c(),K(u,1),u.m(n,r)):u&&(Rt(),ae(u,1,1,function(){u=null}),Lt())},i:function(d){a||(K(u),K(s.$$.fragment,d),a=!0)},o:function(d){ae(u),ae(s.$$.fragment,d),a=!1},d:function(d){d&&Fe(n),u&&u.d(),ht(s),l=!1,c()}}}function EJe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=ma("simple-modal").close,c=ma("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(kJe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Hi[h?"unshift":"push"](function(){e(1,i=h)})}]}var AJe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,EJe,TJe,Ti,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},DJe),r}return Se(e)}(),YP=ga("jsoneditor:AutoScrollHandler"),MJe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},Cle=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||MJe,s=y.a11y||!1,mn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),mn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,mn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},kk=ga("jsoneditor:History");function Sle(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){kk("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){kk("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,kk("undo",h),a(),h}},redo:function d(){if(o())return kk("redo",e[i-=1]),a(),e[i]}}}function j0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var R0=ga("validation");function kle(t,n,e,i){return R0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function OJe(t,n,e,i){if(R0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Xd.info}]};if(0===t.length)return null;try{var r=j0(function(){return e.parse(t)},function(l){return R0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:j0(function(){return i.parse(t)},function(l){return R0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=j0(function(){return n(o)},function(l){return R0("validate: validated json in ".concat(l," ms"))});return Ui(s)?null:{validationErrors:s}}catch(l){var a=j0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Jd(c)),!0}catch{return!1}}(t,e)},function(c){return R0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:rk(t,l.message||l.toString()),isRepairable:a}}}var Dk=ga("jsoneditor:FocusTracker");function XP(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(Dk("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){Dk("blur"),l=!1,a()}))}(0,t.onMount)(function(){Dk("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){Dk("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function IJe(t){di(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function Dle(t,n,e){var i=t.slice();return i[8]=n[e],i}function Tle(t){var n,e;return n=new or({props:{data:t[1]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Ele(t){var n,e;return n=new or({props:{data:t[8].icon}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Ale(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&Ele(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=ve("button"),d&&d.c(),e=tt(),i=tn(u),r=tt(),j(n,"type","button"),j(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),j(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){Pe(p,n,m),d&&d.m(n,null),ue(n,e),ue(n,i),ue(n,r),a=!0,l||(c=[It(n,"click",h),It(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&K(d,1)):((d=Ele(t)).c(),K(d,1),d.m(n,e)):d&&(Rt(),ae(d,1,1,function(){d=null}),Lt()),(!a||8&m)&&u!==(u=t[8].text+"")&&Wn(i,u),(!a||8&m&&o!==(o=t[8].title))&&j(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(K(d),a=!0)},o:function(p){ae(d),a=!1},d:function(p){p&&Fe(n),d&&d.d(),l=!1,so(c)}}}function NJe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&Tle(t),f=t[3],p=[],m=0;m100&&Fle(t);return{c:function(){n=ve("table"),e=ve("tbody");for(var u=0;u100?c?c.p(u,d):((c=Fle(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&Ile(t);function y(){return t[6](t[7])}return{c:function(){n=ve("tr"),e=ve("td"),ft(i.$$.fragment),r=tt(),o=ve("td"),s=tn(m),a=tt(),l=ve("td"),c=tn(g),u=tt(),d=ve("td"),v&&v.c(),j(e,"class","jse-validation-error-icon svelte-1oe8e8r"),j(o,"class","svelte-1oe8e8r"),j(l,"class","svelte-1oe8e8r"),j(d,"class","jse-validation-error-action svelte-1oe8e8r"),j(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(_,w){Pe(_,n,w),ue(n,e),dt(i,e,null),ue(n,r),ue(n,o),ue(o,s),ue(n,a),ue(n,l),ue(l,c),ue(n,u),ue(n,d),v&&v.m(d,null),h=!0,f||(p=It(n,"click",y),f=!0)},p:function(_,w){t=_,(!h||1&w)&&m!==(m=nu(Wl(t[7].path))+"")&&Wn(s,m),(!h||1&w)&&g!==(g=t[7].message+"")&&Wn(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,w),1&w&&K(v,1)):((v=Ile(t)).c(),K(v,1),v.m(d,null)):v&&(Rt(),ae(v,1,1,function(){v=null}),Lt())},i:function(_){h||(K(i.$$.fragment,_),K(v),h=!0)},o:function(_){ae(i.$$.fragment,_),ae(v),h=!1},d:function(_){_&&Fe(n),ht(i),v&&v.d(),f=!1,p()}}}function Fle(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=ve("tr"),e=ve("td"),i=tt(),r=ve("td"),o=tt(),s=ve("td"),a=tn("(and "),l=tn(h),c=tn(" more errors)"),u=tt(),d=ve("td"),j(e,"class","svelte-1oe8e8r"),j(r,"class","svelte-1oe8e8r"),j(s,"class","svelte-1oe8e8r"),j(d,"class","svelte-1oe8e8r"),j(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){Pe(f,n,p),ue(n,e),ue(n,i),ue(n,r),ue(n,o),ue(n,s),ue(s,a),ue(s,l),ue(s,c),ue(n,u),ue(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&Wn(l,h)},d:function(f){f&&Fe(n)}}}function LJe(t){var n,e,i=!Ui(t[0]),r=i&&Ole(t);return{c:function(){r&&r.c(),n=br()},m:function(o,s){r&&r.m(o,s),Pe(o,n,s),e=!0},p:function(o,s){var a=Un(s,1)[0];1&a&&(i=!Ui(o[0])),i?r?(r.p(o,a),1&a&&K(r,1)):((r=Ole(o)).c(),K(r,1),r.m(n.parentNode,n)):r&&(Rt(),ae(r,1,1,function(){r=null}),Lt())},i:function(o){e||(K(r),e=!0)},o:function(o){ae(r),e=!1},d:function(o){r&&r.d(o),o&&Fe(n)}}}function $Je(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var JP=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,$Je,LJe,Ti,{validationErrors:0,selectError:1},PJe),r}return Se(e)}(),BJe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function VJe(t){di(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function HJe(t){var n,e,i,r,o,s,a,l,c;return s=new or({props:{data:F0}}),{c:function(){n=ve("div"),e=ve("div"),i=tn(t[0]),r=tt(),o=ve("button"),ft(s.$$.fragment),j(e,"class","jse-title svelte-d01h2s"),j(o,"type","button"),j(o,"class","jse-close svelte-d01h2s"),j(n,"class","jse-header svelte-d01h2s")},m:function(u,d){Pe(u,n,d),ue(n,e),ue(e,i),ue(n,r),ue(n,o),dt(s,o,null),a=!0,l||(c=It(o,"click",t[3]),l=!0)},p:function(u,d){var h=Un(d,1)[0];(!a||1&h)&&Wn(i,u[0])},i:function(u){a||(K(s.$$.fragment,u),a=!0)},o:function(u){ae(s.$$.fragment,u),a=!1},d:function(u){u&&Fe(n),ht(s),l=!1,c()}}}function UJe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=ma("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var KP=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,UJe,HJe,Ti,{title:0,onClose:1},VJe),r}return Se(e)}();function zJe(t){di(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function GJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z;return e=new KP({props:{title:"Copying and pasting"}}),{c:function(){n=ve("div"),ft(e.$$.fragment),i=tt(),r=ve("div"),(o=ve("div")).textContent="These actions are unavailable via the menu. Please use:",s=tt(),a=ve("div"),l=ve("div"),(c=ve("div")).textContent="".concat(t[1],"+C"),u=tn("\n for copy"),d=tt(),h=ve("div"),(f=ve("div")).textContent="".concat(t[1],"+X"),p=tn("\n for cut"),m=tt(),g=ve("div"),(v=ve("div")).textContent="".concat(t[1],"+V"),y=tn("\n for paste"),_=tt(),w=ve("div"),(k=ve("button")).textContent="Close",j(c,"class","jse-key svelte-1olothd"),j(l,"class","jse-shortcut"),j(f,"class","jse-key svelte-1olothd"),j(h,"class","jse-shortcut"),j(v,"class","jse-key svelte-1olothd"),j(g,"class","jse-shortcut"),j(a,"class","jse-shortcuts svelte-1olothd"),j(k,"type","button"),j(k,"class","jse-primary svelte-1olothd"),j(w,"class","jse-actions svelte-1olothd"),j(r,"class","jse-modal-contents svelte-1olothd"),j(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(R,U){Pe(R,n,U),dt(e,n,null),ue(n,i),ue(n,r),ue(r,o),ue(r,s),ue(r,a),ue(a,l),ue(l,c),ue(l,u),ue(a,d),ue(a,h),ue(h,f),ue(h,p),ue(a,m),ue(a,g),ue(g,v),ue(g,y),ue(r,_),ue(r,w),ue(w,k),D=!0,L||(z=It(k,"click",t[0]),L=!0)},p:jt,i:function(R){D||(K(e.$$.fragment,R),D=!0)},o:function(R){ae(e.$$.fragment,R),D=!1},d:function(R){R&&Fe(n),ht(e),L=!1,z()}}}function WJe(t){return[ma("simple-modal").close,BJe?"\u2318":"Ctrl"]}var Ple=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,WJe,GJe,Ti,{},zJe),r}return Se(e)}();function jle(t){return!!t&&("space"===t.type||!0===t.space)}function Tk(t){return!!t&&("separator"===t.type||!0===t.separator)}function yb(t){return!!t&&"function"==typeof t.onClick}function QP(t){return!!t&&"dropdown-button"===t.type&&yb(t.main)&&Array.isArray(t.items)}function Rle(t){return Do(t)&&Do(t.parseError)}function YJe(t){di(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var XJe=function(t){return{}},Lle=function(t){return{}};function $le(t,n,e){var i=t.slice();return i[3]=n[e],i}var JJe=function(t){return{}},Ble=function(t){return{}};function KJe(t){var n,e=zle(t[3])+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=zle(i[3])+"")&&Wn(n,e)},i:jt,o:jt,d:function(i){i&&Fe(n)}}}function QJe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&Vle(t),u=t[3].text&&Hle(t);return{c:function(){n=ve("button"),c&&c.c(),e=tt(),u&&u.c(),j(n,"type","button"),j(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),j(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){Pe(d,n,h),c&&c.m(n,null),ue(n,e),u&&u.m(n,null),s=!0,a||(l=It(n,"click",function(){fa(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&K(c,1)):((c=Vle(t)).c(),K(c,1),c.m(n,e)):c&&(Rt(),ae(c,1,1,function(){c=null}),Lt()),t[3].text?u?u.p(t,h):((u=Hle(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&j(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&j(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(K(c),s=!0)},o:function(d){ae(c),s=!1},d:function(d){d&&Fe(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function ZJe(t){var n;return{c:function(){j(n=ve("div"),"class","jse-space svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function eKe(t){var n;return{c:function(){j(n=ve("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function Vle(t){var n,e;return n=new or({props:{data:t[3].icon}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Hle(t){var n,e=t[3].text+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&Wn(n,e)},d:function(i){i&&Fe(n)}}}function Ule(t){var n,e,i,r,o,s,a,l=[eKe,ZJe,QJe,KJe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!Tk(d[3])),n?0:(null==e&&(e=!!jle(d[3])),e?1:(null==i&&(i=!!yb(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=br()},m:function(d,h){c[r].m(d,h),Pe(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):(Rt(),ae(c[f],1,1,function(){c[f]=null}),Lt(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),K(o,1),o.m(s.parentNode,s))},i:function(d){a||(K(o),a=!0)},o:function(d){ae(o),a=!1},d:function(d){c[r].d(d),d&&Fe(s)}}}function tKe(t){for(var n,e,i,r,o=t[2].left,s=Ss(o,t,t[1],Ble),a=t[0],l=[],c=0;c0&&_.height>0}),u),c=u(e);function u(y){var _=y.getBoundingClientRect();return{x:_.left+_.width/2,y:_.top+_.height/2,rect:_,element:y}}function d(y,_){var k=y.x-_.x,D=(y.y-_.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(k*k+D*D)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(m0(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(m0(g.filter(function(y){return o(y.element)}),h)||m0(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Hi[a?"unshift":"push"](function(){e(2,i=a)})}]}var ace=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,HKe,VKe,Ti,{items:0,tip:1},kKe),r}return Se(e)}();function UKe(t){var n,e;return n=new ace({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function zKe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L=n.json,z=n.documentState,R=n.parser,U=n.showTip,G=n.onCloseContextMenu,X=n.onEditKey,te=n.onEditValue,P=n.onToggleEnforceString,W=n.onCut,J=n.onCopy,H=n.onPaste,le=n.onRemove,E=n.onDuplicate,O=n.onExtract,I=n.onInsertBefore,q=n.onInsert,V=n.onConvert,re=n.onInsertAfter,de=n.onSort,Oe=n.onTransform;function ye(){G(),X()}function Xe(){G(),te()}function Le(){G(),P()}function rt(){G(),W(!0)}function $(){G(),W(!1)}function ne(){G(),J(!0)}function ie(){G(),J(!1)}function Me(){G(),H()}function Ye(){G(),le()}function je(){G(),E()}function gt(){G(),O()}function Tt(ln){G(),c?V(ln):q(ln)}function fn(){G(),de()}function Hn(){G(),Oe()}function Zt(){G(),I()}function Ei(){G(),re()}return t.$$set=function(ln){"json"in ln&&e(2,L=ln.json),"documentState"in ln&&e(3,z=ln.documentState),"parser"in ln&&e(4,R=ln.parser),"showTip"in ln&&e(0,U=ln.showTip),"onCloseContextMenu"in ln&&e(5,G=ln.onCloseContextMenu),"onEditKey"in ln&&e(6,X=ln.onEditKey),"onEditValue"in ln&&e(7,te=ln.onEditValue),"onToggleEnforceString"in ln&&e(8,P=ln.onToggleEnforceString),"onCut"in ln&&e(9,W=ln.onCut),"onCopy"in ln&&e(10,J=ln.onCopy),"onPaste"in ln&&e(11,H=ln.onPaste),"onRemove"in ln&&e(12,le=ln.onRemove),"onDuplicate"in ln&&e(13,E=ln.onDuplicate),"onExtract"in ln&&e(14,O=ln.onExtract),"onInsertBefore"in ln&&e(15,I=ln.onInsertBefore),"onInsert"in ln&&e(16,q=ln.onInsert),"onConvert"in ln&&e(17,V=ln.onConvert),"onInsertAfter"in ln&&e(18,re=ln.onInsertAfter),"onSort"in ln&&e(19,de=ln.onSort),"onTransform"in ln&&e(20,Oe=ln.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=z.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==L),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Ui(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Sn(L,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Do(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Ir(i)||vs(i)||Yi(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Ir(i)||Yi(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&db(i)&&!s&&!Array.isArray(Sn(L,qi(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&db(i)),136&t.$$.dirty[1]&&e(32,p=f&&!Lo(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?Zm(i)&&!Do(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,_=m?Zm(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,w=m?Zm(i)&&Lo(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,k=null!=i&&hf(a,z.enforceStringMap,an(i.focusPath),R)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,D=[{type:"row",items:[{type:"button",onClick:ye,icon:I0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:Xe,icon:I0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:I0,text:l,title:"Edit the value (Double-click on the value)",onClick:Xe,disabled:!f},{type:"button",icon:k?ab:lb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:Le,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:rt,icon:O0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:O0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:rt,disabled:!c},{type:"button",icon:O0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:$,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ne,icon:yp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:yp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ne,disabled:!c},{type:"button",icon:yp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:ie,disabled:!c}]},{type:"button",onClick:Me,icon:Dae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:je,icon:Nae,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:gt,icon:_Xe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:fn,icon:vk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:Hn,icon:pk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ye,icon:jP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return Tt("structure")},icon:m?gk:N0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return Tt("object")},icon:m?gk:N0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return Tt("array")},icon:m?gk:N0,text:"Array",title:g+" array",disabled:!_},{type:"button",onClick:function(){return Tt("value")},icon:m?gk:N0,text:"Value",title:g+" value",disabled:!w}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:Zt,icon:vXe,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Ei,icon:pXe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[U,D,L,z,R,G,X,te,P,W,J,H,le,E,O,I,q,V,re,de,Oe,s,c,w,g,m,_,y,v,d,u,o,p,k,f,l,h,i,a,r]}var GKe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,zKe,UKe,Ti,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Se(e)}();function WKe(t){di(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function lce(t,n,e){var i=t.slice();return i[13]=n[e],i}function cce(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=ve("button"),e=tn("show "),i=tn(c),r=tn("-"),o=tn(u),s=tt(),j(n,"type","button"),j(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){Pe(h,n,f),ue(n,e),ue(n,i),ue(n,r),ue(n,o),ue(n,s),a||(l=It(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&Wn(i,c),16&f&&u!==(u=t[13].end+"")&&Wn(o,u)},d:function(h){h&&Fe(n),a=!1,l()}}}function qKe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&_.end<=D.start)&&L.push(_),D.start>=(z?_.end:v.end)&&L.push(D),a=L))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var JKe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,XKe,qKe,Ti,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},WKe),r}return Se(e)}();function KKe(t){di(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function QKe(t){var n,e,i,r,o;return e=new or({props:{data:ou}}),{c:function(){n=ve("button"),ft(e.$$.fragment),j(n,"type","button"),j(n,"class","jse-context-menu-pointer svelte-1yzl4st"),j(n,"title",cN),At(n,"jse-selected",t[0])},m:function(s,a){Pe(s,n,a),dt(e,n,null),i=!0,r||(o=It(n,"click",t[1]),r=!0)},p:function(s,a){var l=Un(a,1)[0];(!i||1&l)&&At(n,"jse-selected",s[0])},i:function(s){i||(K(e.$$.fragment,s),i=!0)},o:function(s){ae(e.$$.fragment,s),i=!1},d:function(s){s&&Fe(n),ht(e),r=!1,o()}}}function ZKe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var xp=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,ZKe,QKe,Ti,{selected:0,onContextMenu:2},KKe),r}return Se(e)}();function eQe(t){di(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function tQe(t){var n,e,i,r,o,s,a,l=[rQe,iQe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=ve("div"),i.c(),j(n,"data-type","selectable-key"),j(n,"class",r=So(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){Pe(d,n,h),c[e].m(n,null),o=!0,s||(a=It(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):(Rt(),ae(c[f],1,1,function(){c[f]=null}),Lt(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),K(i,1),i.m(n,null)),(!o||1&h&&r!==(r=So(d[6](d[0]))+" svelte-24a1b2"))&&j(n,"class",r)},i:function(d){o||(K(i),o=!0)},o:function(d){ae(i),o=!1},d:function(d){d&&Fe(n),c[e].d(),s=!1,a()}}}function nQe(t){var n,e;return n=new hae({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function iQe(t){var n,e=Km(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){5&r&&e!==(e=Km(i[2].normalization.escapeValue(i[0]))+"")&&Wn(n,e)},i:jt,o:jt,d:function(i){i&&Fe(n)}}}function rQe(t){var n,e;return n=new kae({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function dce(t){var n,e;return n=new xp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function oQe(t){var n,e,i,r,o,s=[nQe,tQe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&dce(t);return{c:function(){e.c(),i=tt(),c&&c.c(),r=br()},m:function(u,d){a[n].m(u,d),Pe(u,i,d),c&&c.m(u,d),Pe(u,r,d),o=!0},p:function(u,d){var h=Un(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):(Rt(),ae(a[f],1,1,function(){a[f]=null}),Lt(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),K(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&(Rt(),ae(c,1,1,function(){c=null}),Lt()):c?(c.p(u,h),28&h&&K(c,1)):((c=dce(u)).c(),K(c,1),c.m(r.parentNode,r))},i:function(u){o||(K(e),K(c),o=!0)},o:function(u){ae(e),ae(c),o=!1},d:function(u){a[n].d(u),u&&Fe(i),c&&c.d(u),u&&Fe(r)}}}function sQe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&vs(l):void 0),2056&t.$$.dirty&&e(4,r=i&&mp(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(ru(o,!0)))},function(h){return lh("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=qi(o).concat(p);d.onSelect(f===dN?fr(m,!1):ru(m,!1)),f!==uN&&d.focus()},function(){d.onSelect(ru(o,!1)),d.focus()},o,s,l,u]}var aQe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,sQe,oQe,Ti,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},eQe),r}return Se(e)}();function hce(t,n,e){var i=t.slice();return i[8]=n[e],i}function fce(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=dk(u.selection),v=f.findIndex(function(U){return rr(U.path,g)}),y=0,_=v,w=function(){var U;return null===(U=f[_+1])||void 0===U?void 0:U.height};void 0!==w()&&Math.abs(m)>y+w()/2;)y+=w(),_+=1;var D=Sn(h,qi(g)),L=Array.isArray(D),z=null===(d=f[L?_:_+1])||void 0===d?void 0:d.path,R=_-v;return z?{beforePath:z,offset:R}:{append:!0,offset:R}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,_,w,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=qi(d.focusPath),g=Sn(u,m);if(!(p||f&&E0(f,m)&&f.length>m.length))return[];var v=k0(d),y=dk(d),_=Fn(v),w=Fn(y),k=f?f[m.length]:void 0;if(!ko(g)){if(eo(g)){var D=$s(_),L=$s(w),z=void 0!==k?$s(k):g.length;return oP(L-D+1,zU?[].concat(ri(R.slice(U,G+1)),ri(R.slice(X,R.length))).map(function(te){return eg(m,te)}):[].concat(ri(R.slice(X,U)),ri(R.slice(G+1,R.length))).map(function(te){return eg(m,te)}):[]}(n,o,s),l=Sn(n,qi(k0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=k0(m=u.selection),y=dk(m),_=f.findIndex(function(L){return rr(L.path,v)}),w=f.findIndex(function(L){return rr(L.path,y)}),Es(p,null===(d=f[_+g])||void 0===d?void 0:d.path,null===(h=f[w+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function dh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Kv(e,n)})}function hQe(t){di(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function fQe(t){var n,e,i,r,o,s;return e=new or({props:{data:tg}}),{c:function(){n=ve("button"),ft(e.$$.fragment),j(n,"type","button"),j(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){Pe(a,n,l),dt(e,n,null),r=!0,o||(s=[It(n,"click",function(){fa(t[0])&&t[0].apply(this,arguments)}),pa(i=PP.call(null,n,Qe({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Un(l,1)[0];t=a,i&&fa(i.update)&&2&c&&i.update.call(null,Qe({text:t[1]},t[2]))},i:function(a){r||(K(e.$$.fragment,a),r=!0)},o:function(a){ae(e.$$.fragment,a),r=!1},d:function(a){a&&Fe(n),ht(e),o=!1,so(s)}}}function pQe(t,n,e){var i,r=ma("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var B0=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,pQe,fQe,ps,{validationError:3,onExpand:0},hQe),r}return Se(e)}();function mQe(t){di(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var gQe=function(t){return{}},pce=function(t){return{}};function mce(t,n,e){var i=t.slice();return i[53]=n[e],i}var vQe=function(t){return{}},gce=function(t){return{}};function vce(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function yce(t,n,e){var i=t.slice();return i[50]=n[e],i}var yQe=function(t){return{}},_ce=function(t){return{}};function _Qe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Ir(t[7]))&&!t[7].edit&&rr(t[7].focusPath,t[1]),d=t[34].identifier,h=Ss(d,t,t[35],pce),f=!t[17]&&bce();o=new dQe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:wae(t[6],t[9]),context:t[8]}});var p=u&&xce(t),m=t[15]&&wce(t),g=!t[17]&&Cce(t);return{c:function(){n=ve("div"),e=ve("div"),h&&h.c(),i=tt(),f&&f.c(),r=tt(),ft(o.$$.fragment),s=tt(),p&&p.c(),a=tt(),m&&m.c(),l=tt(),g&&g.c(),j(e,"class","jse-contents svelte-1wlxti1"),j(n,"class","jse-contents-outer svelte-1wlxti1"),j(n,"style",t[18])},m:function(v,y){Pe(v,n,y),ue(n,e),h&&h.m(e,null),ue(e,i),f&&f.m(e,null),ue(e,r),dt(o,e,null),ue(e,s),p&&p.m(e,null),ue(n,a),m&&m.m(n,null),ue(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Ds(h,d,v,v[35],c?ks(d,v[35],y,gQe):Ts(v[35]),pce),v[17]?f&&(f.d(1),f=null):f||((f=bce()).c(),f.m(e,r));var _={};2&y[0]&&(_.path=v[1]),1&y[0]&&(_.value=v[0]),8192&y[0]&&(_.enforceString=v[13]),65664&y[0]&&(_.selection=v[16]?v[7]:void 0),576&y[0]&&(_.searchResultItems=wae(v[6],v[9])),256&y[0]&&(_.context=v[8]),o.$set(_),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(Yi(v[7])||Ir(v[7]))&&!v[7].edit&&rr(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&K(p,1)):((p=xce(v)).c(),K(p,1),p.m(e,null)):p&&(Rt(),ae(p,1,1,function(){p=null}),Lt()),v[15]?m?(m.p(v,y),32768&y[0]&&K(m,1)):((m=wce(v)).c(),K(m,1),m.m(n,l)):m&&(Rt(),ae(m,1,1,function(){m=null}),Lt()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=Cce(v)).c(),g.m(n,null)),(!c||262144&y[0])&&j(n,"style",v[18])},i:function(v){c||(K(h,v),K(o.$$.fragment,v),K(p),K(m),c=!0)},o:function(v){ae(h,v),ae(o.$$.fragment,v),ae(p),ae(m),c=!1},d:function(v){v&&Fe(n),h&&h.d(v),f&&f.d(),ht(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function bQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Ir(t[7]))&&!t[7].edit&&rr(t[7].focusPath,t[1]),w=[CQe,wQe],k=[];function D(E,O){return E[12]?0:1}r=D(t),o=k[r]=w[r](t);var L=t[34].identifier,z=Ss(L,t,t[35],gce),R=!t[17]&&Sce();function U(E,O){return E[12]?kQe:SQe}var G=U(t),X=G(t),te=_&&kce(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Dce(t);function W(E,O){return E[12]?TQe:E[17]?void 0:DQe}var J=W(t),H=J&&J(t),le=t[12]&&Tce(t);return{c:function(){n=ve("div"),e=ve("div"),i=ve("button"),o.c(),s=tt(),z&&z.c(),a=tt(),R&&R.c(),l=tt(),c=ve("div"),u=ve("div"),X.c(),d=tt(),te&&te.c(),h=tt(),P&&P.c(),f=tt(),H&&H.c(),p=tt(),le&&le.c(),m=br(),j(i,"type","button"),j(i,"class","jse-expand svelte-1wlxti1"),j(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),j(u,"class","jse-meta-inner svelte-1wlxti1"),j(c,"class","jse-meta svelte-1wlxti1"),j(c,"data-type","selectable-value"),j(e,"class","jse-header svelte-1wlxti1"),j(n,"class","jse-header-outer svelte-1wlxti1"),j(n,"style",t[18])},m:function(E,O){Pe(E,n,O),ue(n,e),ue(e,i),k[r].m(i,null),ue(e,s),z&&z.m(e,null),ue(e,a),R&&R.m(e,null),ue(e,l),ue(e,c),ue(c,u),X.m(u,null),ue(e,d),te&&te.m(e,null),ue(n,h),P&&P.m(n,null),ue(n,f),H&&H.m(n,null),Pe(E,p,O),le&&le.m(E,O),Pe(E,m,O),g=!0,v||(y=It(i,"click",t[21]),v=!0)},p:function(E,O){var I=r;(r=D(E))===I?k[r].p(E,O):(Rt(),ae(k[I],1,1,function(){k[I]=null}),Lt(),(o=k[r])?o.p(E,O):(o=k[r]=w[r](E)).c(),K(o,1),o.m(i,null)),z&&z.p&&(!g||16&O[1])&&Ds(z,L,E,E[35],g?ks(L,E[35],O,vQe):Ts(E[35]),gce),E[17]?R&&(R.d(1),R=null):R||((R=Sce()).c(),R.m(e,l)),G===(G=U(E))&&X?X.p(E,O):(X.d(1),(X=G(E))&&(X.c(),X.m(u,null))),65922&O[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Ir(E[7]))&&!E[7].edit&&rr(E[7].focusPath,E[1])),_?te?(te.p(E,O),65922&O[0]&&K(te,1)):((te=kce(E)).c(),K(te,1),te.m(e,null)):te&&(Rt(),ae(te,1,1,function(){te=null}),Lt()),!E[15]||E[12]&&E[15].isChildError?P&&(Rt(),ae(P,1,1,function(){P=null}),Lt()):P?(P.p(E,O),36864&O[0]&&K(P,1)):((P=Dce(E)).c(),K(P,1),P.m(n,f)),J===(J=W(E))&&H?H.p(E,O):(H&&H.d(1),(H=J&&J(E))&&(H.c(),H.m(n,null))),(!g||262144&O[0])&&j(n,"style",E[18]),E[12]?le?(le.p(E,O),4096&O[0]&&K(le,1)):((le=Tce(E)).c(),K(le,1),le.m(m.parentNode,m)):le&&(Rt(),ae(le,1,1,function(){le=null}),Lt())},i:function(E){g||(K(o),K(z,E),K(te),K(P),K(le),g=!0)},o:function(E){ae(o),ae(z,E),ae(te),ae(P),ae(le),g=!1},d:function(E){E&&Fe(n),k[r].d(),z&&z.d(E),R&&R.d(),X.d(),te&&te.d(),P&&P.d(),H&&H.d(),E&&Fe(p),le&&le.d(E),E&&Fe(m),v=!1,y()}}}function xQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Ir(t[7]))&&!t[7].edit&&rr(t[7].focusPath,t[1]),w=[MQe,AQe],k=[];function D(E,O){return E[12]?0:1}r=D(t),o=k[r]=w[r](t);var L=t[34].identifier,z=Ss(L,t,t[35],_ce),R=!t[17]&&Oce();function U(E,O){return E[12]?IQe:OQe}var G=U(t),X=G(t),te=_&&Ice(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Nce(t);function W(E,O){return E[12]?FQe:NQe}var J=W(t),H=J(t),le=t[12]&&Fce(t);return{c:function(){n=ve("div"),e=ve("div"),i=ve("button"),o.c(),s=tt(),z&&z.c(),a=tt(),R&&R.c(),l=tt(),c=ve("div"),u=ve("div"),X.c(),d=tt(),te&&te.c(),h=tt(),P&&P.c(),f=tt(),H.c(),p=tt(),le&&le.c(),m=br(),j(i,"type","button"),j(i,"class","jse-expand svelte-1wlxti1"),j(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),j(u,"class","jse-meta-inner svelte-1wlxti1"),j(u,"data-type","selectable-value"),j(c,"class","jse-meta svelte-1wlxti1"),j(e,"class","jse-header svelte-1wlxti1"),j(n,"class","jse-header-outer svelte-1wlxti1"),j(n,"style",t[18])},m:function(E,O){Pe(E,n,O),ue(n,e),ue(e,i),k[r].m(i,null),ue(e,s),z&&z.m(e,null),ue(e,a),R&&R.m(e,null),ue(e,l),ue(e,c),ue(c,u),X.m(u,null),ue(e,d),te&&te.m(e,null),ue(n,h),P&&P.m(n,null),ue(n,f),H.m(n,null),Pe(E,p,O),le&&le.m(E,O),Pe(E,m,O),g=!0,v||(y=It(i,"click",t[21]),v=!0)},p:function(E,O){var I=r;(r=D(E))===I?k[r].p(E,O):(Rt(),ae(k[I],1,1,function(){k[I]=null}),Lt(),(o=k[r])?o.p(E,O):(o=k[r]=w[r](E)).c(),K(o,1),o.m(i,null)),z&&z.p&&(!g||16&O[1])&&Ds(z,L,E,E[35],g?ks(L,E[35],O,yQe):Ts(E[35]),_ce),E[17]?R&&(R.d(1),R=null):R||((R=Oce()).c(),R.m(e,l)),G===(G=U(E))&&X?X.p(E,O):(X.d(1),(X=G(E))&&(X.c(),X.m(u,null))),65922&O[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Ir(E[7]))&&!E[7].edit&&rr(E[7].focusPath,E[1])),_?te?(te.p(E,O),65922&O[0]&&K(te,1)):((te=Ice(E)).c(),K(te,1),te.m(e,null)):te&&(Rt(),ae(te,1,1,function(){te=null}),Lt()),!E[15]||E[12]&&E[15].isChildError?P&&(Rt(),ae(P,1,1,function(){P=null}),Lt()):P?(P.p(E,O),36864&O[0]&&K(P,1)):((P=Nce(E)).c(),K(P,1),P.m(n,f)),J===(J=W(E))&&H?H.p(E,O):(H.d(1),(H=J(E))&&(H.c(),H.m(n,null))),(!g||262144&O[0])&&j(n,"style",E[18]),E[12]?le?(le.p(E,O),4096&O[0]&&K(le,1)):((le=Fce(E)).c(),K(le,1),le.m(m.parentNode,m)):le&&(Rt(),ae(le,1,1,function(){le=null}),Lt())},i:function(E){g||(K(o),K(z,E),K(te),K(P),K(le),g=!0)},o:function(E){ae(o),ae(z,E),ae(te),ae(P),ae(le),g=!1},d:function(E){E&&Fe(n),k[r].d(),z&&z.d(E),R&&R.d(),X.d(),te&&te.d(),P&&P.d(),H.d(),E&&Fe(p),le&&le.d(E),E&&Fe(m),v=!1,y()}}}function bce(t){var n;return{c:function(){(n=ve("div")).textContent=":",j(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&Fe(n)}}}function xce(t){var n,e,i;return e=new xp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=ve("div"),ft(e.$$.fragment),j(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),dt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(K(e.$$.fragment,r),i=!0)},o:function(r){ae(e.$$.fragment,r),i=!1},d:function(r){r&&Fe(n),ht(e)}}}function wce(t){var n,e;return n=new B0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Cce(t){var n,e,i;return{c:function(){j(n=ve("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=It(n,"click",t[30]),e=!0)},p:jt,d:function(r){r&&Fe(n),e=!1,i()}}}function wQe(t){var n,e;return n=new or({props:{data:gp}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function CQe(t){var n,e;return n=new or({props:{data:ou}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Sce(t){var n;return{c:function(){(n=ve("div")).textContent=":",j(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&Fe(n)}}}function SQe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=ve("div")).textContent="{",e=tt(),i=ve("button"),r=tn(d),o=tt(),s=tn(h),a=tt(),(l=ve("div")).textContent="}",j(n,"class","jse-bracket svelte-1wlxti1"),j(i,"type","button"),j(i,"class","jse-tag svelte-1wlxti1"),j(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){Pe(f,n,p),Pe(f,e,p),Pe(f,i,p),ue(i,r),ue(i,o),ue(i,s),Pe(f,a,p),Pe(f,l,p),c||(u=It(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&Wn(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&Wn(s,h)},d:function(f){f&&Fe(n),f&&Fe(e),f&&Fe(i),f&&Fe(a),f&&Fe(l),c=!1,u()}}}function kQe(t){var n;return{c:function(){(n=ve("div")).textContent="{",j(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},p:jt,d:function(e){e&&Fe(n)}}}function kce(t){var n,e,i;return e=new xp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=ve("div"),ft(e.$$.fragment),j(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),dt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(K(e.$$.fragment,r),i=!0)},o:function(r){ae(e.$$.fragment,r),i=!1},d:function(r){r&&Fe(n),ht(e)}}}function Dce(t){var n,e;return n=new B0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function DQe(t){var n,e,i;return{c:function(){j(n=ve("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=It(n,"click",t[30]),e=!0)},p:jt,d:function(r){r&&Fe(n),e=!1,i()}}}function TQe(t){var n,e,i;return{c:function(){j(n=ve("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),j(n,"data-type","insert-selection-area-inside")},m:function(r,o){Pe(r,n,o),e||(i=It(n,"click",t[29]),e=!0)},p:jt,d:function(r){r&&Fe(n),e=!1,i()}}}function Tce(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Vs(t[7])),c=l&&Ece(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=tt(),p&&p.c(),j(n,"class","jse-props svelte-1wlxti1"),j(o,"data-type","selectable-value"),j(o,"class","jse-footer svelte-1wlxti1"),j(r,"class","jse-footer-outer svelte-1wlxti1"),j(r,"style",t[18])},m:function(m,g){Pe(m,n,g),c&&c.m(n,null),ue(n,e);for(var v=0;v]',s=tt(),v&&v.c(),j(n,"class","jse-items svelte-1wlxti1"),j(o,"data-type","selectable-value"),j(o,"class","jse-footer svelte-1wlxti1"),j(r,"class","jse-footer-outer svelte-1wlxti1"),j(r,"style",t[18])},m:function(y,_){Pe(y,n,_),d&&d.m(n,null),ue(n,e);for(var w=0;w=je.start&&ne<=je.end});if(!ie)return null;hse(ie.start,Math.min(p.length,ie.end),function(je){return Xe(String(je))})}else Object.keys(p).forEach(Xe);return ye}(k,l||Lm);if(z("dragSelectionStart",{selection:k,items:I}),I){var q=k0(k),V=I.findIndex(function(de){return rr(de.path,q)}),re=tj({json:D.getJson(),documentState:D.getDocumentState(),deltaY:0,items:I}).offset;e(11,G={initialTarget:E.target,initialClientY:E.clientY,initialContentTop:W(),selectionStartIndex:V,selectionItemsCount:cae(k).length,items:I,offset:re,didMoveItems:!1}),na.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",le)}else z("Cannot drag the current selection (probably spread over multiple sections)")}else L(E)}},function(E){na.selecting||na.dragging||(E.stopPropagation(),Qm(E.target,"data-type","selectable-value")?e(10,R="hover-collection"):Qm(E.target,"data-type","insert-selection-area-inside")?e(10,R="hover-insert-inside"):Qm(E.target,"data-type","insert-selection-area-after")&&e(10,R="hover-insert-after"),clearTimeout(U))},function(E){E.stopPropagation(),U=setTimeout(function(){return e(10,R=void 0)})},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),D.onSelect(ff(m)))},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),D.onSelect(pf(m)))},function(E){D.onSelect(ff(m)),D.onContextMenu(E)},function(E){D.onSelect(pf(m)),D.onContextMenu(E)},L,h,f]}var nj=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,RQe,jQe,Ti,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},mQe,[-1,-1]),r}return Se(e)}(),LQe=nj,$Qe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},BQe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},ij={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},VQe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function HQe(t){var n,e;return n=new Ek({props:{items:t[0]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function UQe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,_=n.onRedo,w=n.onSort,k=n.onTransform,D=n.onContextMenu,L=n.onCopy,z=n.onRenderMenu;function R(){e(1,p=!p)}return t.$$set=function(U){"json"in U&&e(2,u=U.json),"selection"in U&&e(3,d=U.selection),"readOnly"in U&&e(4,h=U.readOnly),"showSearch"in U&&e(1,p=U.showSearch),"historyState"in U&&e(5,m=U.historyState),"onExpandAll"in U&&e(6,g=U.onExpandAll),"onCollapseAll"in U&&e(7,v=U.onCollapseAll),"onUndo"in U&&e(8,y=U.onUndo),"onRedo"in U&&e(9,_=U.onRedo),"onSort"in U&&e(10,w=U.onSort),"onTransform"in U&&e(11,k=U.onTransform),"onContextMenu"in U&&e(12,D=U.onContextMenu),"onCopy"in U&&e(13,L=U.onCopy),"onRenderMenu"in U&&e(14,z=U.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Ir(d)||vs(d)||Yi(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:$Qe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!Lo(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:BQe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!Lo(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:$P,title:"Search (Ctrl+F)",className:"jse-search",onClick:R,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:yp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:L,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:vk,title:"Sort",className:"jse-sort",onClick:w,disabled:h||void 0===u},{type:"button",icon:pk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:k,disabled:h||void 0===u},l,{type:"button",icon:Mae,title:cN,className:"jse-contextmenu",onClick:D},{type:"separator"},{type:"button",icon:LP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:RP,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:_,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=z(c)||c)},[o,p,u,d,h,m,g,v,y,_,w,k,D,L,z,s,a,l,c,r,i]}var zQe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,UQe,HQe,Ti,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Se(e)}();function GQe(t){di(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function Vce(t){var n;return{c:function(){(n=ve("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',j(n,"class","svelte-1q2qkk2")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&Fe(n)}}}function WQe(t){var n,e,i,r,o,s,a,l=!t[0]&&Vce();return{c:function(){n=ve("div"),e=ve("div"),i=tt(),r=ve("div"),o=tn("Empty document\n "),l&&l.c(),s=tt(),a=ve("div"),j(e,"class","jse-space jse-before svelte-1q2qkk2"),j(r,"class","jse-contents svelte-1q2qkk2"),j(a,"class","jse-space jse-after svelte-1q2qkk2"),j(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){Pe(c,n,u),ue(n,e),ue(n,i),ue(n,r),ue(r,o),l&&l.m(r,null),ue(n,s),ue(n,a)},p:function(c,u){Un(u,1),c[0]?l&&(l.d(1),l=null):l||((l=Vce()).c(),l.m(r,null))},i:jt,o:jt,d:function(c){c&&Fe(n),l&&l.d()}}}function qQe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var YQe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,qQe,WQe,Ti,{readOnly:0},GQe),r}return Se(e)}(),rj={},XQe={get exports(){return rj},set exports(t){rj=t}},Hce=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(eo(Sn(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function KQe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function QQe(t,n){return function(e,i){var r=Sn(e,t),o=Sn(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Sn(t,n);return[{op:"replace",path:an(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Do(t))return function JQe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Sn(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*oj(u,d)});for(var s=[],a=0;abb&&Wce();return{c:function(){n=ve("div");for(var d=0;dbb?u?u.p(d,f):((u=Wce()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:jt,o:jt,d:function(d){d&&Fe(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=Sn(l,g);if(Array.isArray(v))return tP(0,v.length).map(String);if(Do(v)){var y=Object.keys(v).slice(0);return y.sort(oj),y}return[]},function(g){return Xc(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Hi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Hi[g?"unshift":"push"](function(){e(4,o=g)})}]}var mZe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,pZe,fZe,Ti,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},uZe),r}return Se(e)}();function gZe(t){di(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function tue(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",P=!t[4]&&nue(t),W=[yZe,vZe],J=[];function H(E,O){return E[2]?0:1}a=H(t),l=J[a]=W[a](t),y=new or({props:{data:CXe}}),k=new or({props:{data:gXe}}),z=new or({props:{data:F0}});var le=t[0]&&!t[4]&&iue(t);return{c:function(){n=ve("div"),e=ve("form"),P&&P.c(),i=tt(),r=ve("div"),o=ve("div"),s=ve("div"),l.c(),c=tt(),u=ve("label"),d=ve("input"),h=tt(),f=ve("div"),p=tn(te),m=tn(t[10]),g=tt(),v=ve("button"),ft(y.$$.fragment),_=tt(),w=ve("button"),ft(k.$$.fragment),D=tt(),L=ve("button"),ft(z.$$.fragment),R=tt(),le&&le.c(),j(s,"class","jse-search-icon svelte-3lbrbf"),j(d,"class","jse-search-input svelte-3lbrbf"),j(d,"title","Enter text to search"),j(d,"type","text"),j(d,"placeholder","Find"),j(u,"class","jse-search-input-label svelte-3lbrbf"),j(u,"about","jse-search input"),j(f,"class","jse-search-count svelte-3lbrbf"),At(f,"jse-visible",""!==t[8]),j(v,"type","button"),j(v,"class","jse-search-next svelte-3lbrbf"),j(v,"title","Go to next search result (Enter)"),j(w,"type","button"),j(w,"class","jse-search-previous svelte-3lbrbf"),j(w,"title","Go to previous search result (Shift+Enter)"),j(L,"type","button"),j(L,"class","jse-search-clear svelte-3lbrbf"),j(L,"title","Close search box (Esc)"),j(o,"class","jse-search-section svelte-3lbrbf"),j(r,"class","jse-search-contents svelte-3lbrbf"),j(e,"class","jse-search-form svelte-3lbrbf"),j(n,"class","jse-search-box svelte-3lbrbf")},m:function(E,O){Pe(E,n,O),ue(n,e),P&&P.m(e,null),ue(e,i),ue(e,r),ue(r,o),ue(o,s),J[a].m(s,null),ue(o,c),ue(o,u),ue(u,d),ep(d,t[8]),ue(o,h),ue(o,f),ue(f,p),ue(f,m),ue(o,g),ue(o,v),dt(y,v,null),ue(o,_),ue(o,w),dt(k,w,null),ue(o,D),ue(o,L),dt(z,L,null),ue(r,R),le&&le.m(r,null),U=!0,G||(X=[It(d,"input",t[21]),pa(bZe.call(null,d)),It(v,"click",t[22]),It(w,"click",t[23]),It(L,"click",t[24]),It(e,"submit",t[12]),It(e,"keydown",t[13])],G=!0)},p:function(E,O){E[4]?P&&(Rt(),ae(P,1,1,function(){P=null}),Lt()):P?(P.p(E,O),16&O&&K(P,1)):((P=nue(E)).c(),K(P,1),P.m(e,i));var I=a;(a=H(E))===I?J[a].p(E,O):(Rt(),ae(J[I],1,1,function(){J[I]=null}),Lt(),(l=J[a])?l.p(E,O):(l=J[a]=W[a](E)).c(),K(l,1),l.m(s,null)),256&O&&d.value!==E[8]&&ep(d,E[8]),(!U||8&O)&&te!==(te=(-1!==E[3]?"".concat(E[3]+1,"/"):"")+"")&&Wn(p,te),(!U||1024&O)&&Wn(m,E[10]),(!U||256&O)&&At(f,"jse-visible",""!==E[8]),E[0]&&!E[4]?le?le.p(E,O):((le=iue(E)).c(),le.m(r,null)):le&&(le.d(1),le=null)},i:function(E){U||(K(P),K(l),K(y.$$.fragment,E),K(k.$$.fragment,E),K(z.$$.fragment,E),U=!0)},o:function(E){ae(P),ae(l),ae(y.$$.fragment,E),ae(k.$$.fragment,E),ae(z.$$.fragment,E),U=!1},d:function(E){E&&Fe(n),P&&P.d(),J[a].d(),ht(y),ht(k),ht(z),le&&le.d(),G=!1,so(X)}}}function nue(t){var n,e,i,r,o;return e=new or({props:{data:t[0]?ou:gp}}),{c:function(){n=ve("button"),ft(e.$$.fragment),j(n,"type","button"),j(n,"class","jse-replace-toggle svelte-3lbrbf"),j(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){Pe(s,n,a),dt(e,n,null),i=!0,r||(o=It(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?ou:gp),e.$set(l)},i:function(s){i||(K(e.$$.fragment,s),i=!0)},o:function(s){ae(e.$$.fragment,s),i=!1},d:function(s){s&&Fe(n),ht(e),r=!1,o()}}}function vZe(t){var n,e;return n=new or({props:{data:$P}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function yZe(t){var n,e;return n=new or({props:{data:fXe,spin:!0}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function iue(t){var n,e,i,r,o,s,a,l;return{c:function(){n=ve("div"),e=ve("input"),i=tt(),(r=ve("button")).textContent="Replace",o=tt(),(s=ve("button")).textContent="All",j(e,"class","jse-replace-input svelte-3lbrbf"),j(e,"title","Enter replacement text"),j(e,"type","text"),j(e,"placeholder","Replace"),j(r,"type","button"),j(r,"title","Replace current occurrence (Ctrl+Enter)"),j(r,"class","svelte-3lbrbf"),j(s,"type","button"),j(s,"title","Replace all occurrences"),j(s,"class","svelte-3lbrbf"),j(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){Pe(c,n,u),ue(n,e),ep(e,t[9]),ue(n,i),ue(n,r),ue(n,o),ue(n,s),a||(l=[It(e,"input",t[25]),It(r,"click",t[14]),It(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&ep(e,c[9])},d:function(c){c&&Fe(n),a=!1,so(l)}}}function _Ze(t){var n,e,i=t[1]&&tue(t);return{c:function(){i&&i.c(),n=br()},m:function(r,o){i&&i.m(r,o),Pe(r,n,o),e=!0},p:function(r,o){var s=Un(o,1)[0];r[1]?i?(i.p(r,s),2&s&&K(i,1)):((i=tue(r)).c(),K(i,1),i.m(n.parentNode,n)):i&&(Rt(),ae(i,1,1,function(){i=null}),Lt())},i:function(r){e||(K(i),e=!0)},o:function(r){ae(i),e=!1},d:function(r){i&&i.d(r),r&&Fe(n)}}}function bZe(t){t.select()}function xZe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?ho:g,y=n.onPrevious,_=void 0===y?ho:y,w=n.onNext,k=void 0===w?ho:w,D=n.onReplace,L=void 0===D?ho:D,z=n.onReplaceAll,R=void 0===z?ho:z,U=n.onClose,G=void 0===U?ho:U,X="",te="",P="";function W(){e(0,f=!f&&!m)}function J(){m||L(X,P)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,_=H.onPrevious),"onNext"in H&&e(6,k=H.onNext),"onReplace"in H&&e(18,L=H.onReplace),"onReplaceAll"in H&&e(19,R=H.onReplaceAll),"onClose"in H&&e(7,G=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=h0(v,300)),1048832&t.$$.dirty&&r(X),2&t.$$.dirty&&s&&""!==X&&v(X)},[f,s,a,d,m,_,k,G,X,P,i,W,function(H){H.preventDefault(),X!==te?(te=X,r.cancel(),v(X)):k()},function(H){H.stopPropagation();var le=fp(H);"Enter"===le&&(H.preventDefault(),k()),"Shift+Enter"===le&&(H.preventDefault(),_()),"Ctrl+Enter"===le&&(H.preventDefault(),f?J():k()),"Ctrl+H"===le&&(H.preventDefault(),W()),"Escape"===le&&(H.preventDefault(),G())},J,function(){m||R(X,P)},c,v,L,R,r,function(){e(8,X=this.value)},function(){return k()},function(){return _()},function(){return G()},function(){e(9,P=this.value)}]}var wZe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,xZe,_Ze,Ti,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},gZe),r}return Se(e)}(),rue=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function CZe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',j(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function $Ze(t){var n,e,i,r,o,s,a,l,c,u=[VZe,BZe],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=ve("label"),e=ve("input"),i=tt(),o.c(),s=br(),j(e,"type","text"),e.readOnly="readonly",j(e,"tabindex","-1"),j(e,"class","jse-hidden-input svelte-qojdc1"),j(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){Pe(f,n,p),ue(n,e),t[76](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=It(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Rt(),ae(d[m],1,1,function(){d[m]=null}),Lt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),K(o,1),o.m(s.parentNode,s))},i:function(f){a||(K(o),a=!0)},o:function(f){ae(o),a=!1},d:function(f){f&&Fe(n),t[76](null),f&&Fe(i),d[r].d(f),f&&Fe(s),l=!1,c()}}}function BZe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new wZe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new LQe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:ho}});var m=t[18]&&mue(t),g=t[23]&&gue(t);return f=new JP({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=ve("div"),ft(s.$$.fragment),a=tt(),l=ve("div"),ft(c.$$.fragment),u=tt(),m&&m.c(),d=tt(),g&&g.c(),h=tt(),ft(f.$$.fragment),j(o,"class","jse-search-box-container svelte-qojdc1"),j(l,"class","jse-contents svelte-qojdc1"),j(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){Pe(v,o,y),dt(s,o,null),Pe(v,a,y),Pe(v,l,y),dt(c,l,null),t[77](l),Pe(v,u,y),m&&m.m(v,y),Pe(v,d,y),g&&g.m(v,y),Pe(v,h,y),dt(f,v,y),p=!0},p:function(v,y){var _,w,k,D,L={};524288&y[0]&&(L.show=v[19]),131072&y[0]&&(L.resultCount=(null===(_=v[17])||void 0===_||null===(w=_.items)||void 0===w?void 0:w.length)||0),131072&y[0]&&(L.activeIndex=(null===(k=v[17])||void 0===k?void 0:k.activeIndex)||0),1048576&y[0]&&(L.showReplace=v[20]),2097152&y[0]&&(L.searching=v[21]),1&y[0]&&(L.readOnly=v[0]),s.$set(L);var z={};1024&y[0]&&(z.value=v[10]),65536&y[0]&&(z.expandedMap=v[16].expandedMap),65536&y[0]&&(z.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(z.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(z.validationErrorsMap=v[24]),131072&y[0]&&(z.searchResultItemsMap=null===(D=v[17])||void 0===D?void 0:D.itemsMap),65536&y[0]&&(z.selection=v[16].selection),8192&y[0]&&(z.context=v[13]),c.$set(z),v[18]?m?(m.p(v,y),262144&y[0]&&K(m,1)):((m=mue(v)).c(),K(m,1),m.m(d.parentNode,d)):m&&(Rt(),ae(m,1,1,function(){m=null}),Lt()),v[23]?g?(g.p(v,y),8388608&y[0]&&K(g,1)):((g=gue(v)).c(),K(g,1),g.m(h.parentNode,h)):g&&(Rt(),ae(g,1,1,function(){g=null}),Lt());var R={};4096&y[0]&&(R.validationErrors=v[12]),f.$set(R)},i:function(v){p||(K(s.$$.fragment,v),K(c.$$.fragment,v),K(m),K(g),K(f.$$.fragment,v),p=!0)},o:function(v){ae(s.$$.fragment,v),ae(c.$$.fragment,v),ae(m),ae(g),ae(f.$$.fragment,v),p=!1},d:function(v){v&&Fe(o),ht(s),v&&Fe(a),v&&Fe(l),ht(c),t[77](null),v&&Fe(u),m&&m.d(v),v&&Fe(d),g&&g.d(v),v&&Fe(h),ht(f,v)}}}function VZe(t){var n,e,i,r,o=[UZe,HZe],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=br()},m:function(l,c){s[n].m(l,c),Pe(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(Rt(),ae(s[u],1,1,function(){s[u]=null}),Lt(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),K(e,1),e.m(i.parentNode,i))},i:function(l){r||(K(e),r=!0)},o:function(l){ae(e),r=!1},d:function(l){s[n].d(l),l&&Fe(i)}}}function mue(t){var n,e;return n=new td({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:mk,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function gue(t){var n,e;return n=new td({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:pb,text:"Ok",onClick:t[8]},{icon:vp,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:pb,text:"Ok",onClick:i[8]},{icon:vp,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function HZe(t){var n,e,i,r;return n=new td({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:vp,text:"Repair manually",onClick:t[47]}]}}),i=new hue({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){ft(n.$$.fragment),e=tt(),ft(i.$$.fragment)},m:function(o,s){dt(n,o,s),Pe(o,e,s),dt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:vp,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(K(n.$$.fragment,o),K(i.$$.fragment,o),r=!0)},o:function(o){ae(n.$$.fragment,o),ae(i.$$.fragment,o),r=!1},d:function(o){ht(n,o),o&&Fe(e),ht(i,o)}}}function UZe(t){var n,e;return n=new YQe({props:{readOnly:t[0]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function zZe(t){var n,e,i,r,o,s,a,l,c=t[1]&&fue(t),u=t[2]&&pue(t),h=[];return o=h[r=t[25]?1:0]=[$Ze,LZe][r](t),{c:function(){n=ve("div"),c&&c.c(),e=tt(),u&&u.c(),i=tt(),o.c(),j(n,"class","jse-tree-mode svelte-qojdc1"),At(n,"no-main-menu",!t[1])},m:function(f,p){Pe(f,n,p),c&&c.m(n,null),ue(n,e),u&&u.m(n,null),ue(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[It(jZe,"mousedown",t[49]),It(n,"keydown",t[41]),It(n,"mousedown",t[42]),It(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&K(c,1)):((c=fue(f)).c(),K(c,1),c.m(n,e)):c&&(Rt(),ae(c,1,1,function(){c=null}),Lt()),f[2]?u?(u.p(f,p),4&p[0]&&K(u,1)):((u=pue(f)).c(),K(u,1),u.m(n,i)):u&&(Rt(),ae(u,1,1,function(){u=null}),Lt()),o.p(f,p),(!s||2&p[0])&&At(n,"no-main-menu",!f[1])},i:function(f){s||(K(c),K(u),K(o),s=!0)},o:function(f){ae(c),ae(u),ae(o),s=!1},d:function(f){f&&Fe(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,so(l)}}}function GZe(t,n,e){var i,r=ga("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=ma("simple-modal").open,h=hp(),f=hp(),p=ma("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=Cle(),_=n.readOnly,w=n.externalContent,k=n.mainMenuBar,D=n.navigationBar,L=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,R=n.parser,U=n.parseMemoizeOne,G=n.validator,X=n.validationParser,te=n.pathParser,P=n.indentation,W=n.onError,J=n.onChange,H=n.onChangeMode,le=n.onRenderValue,E=n.onRenderMenu,O=n.onClassName,I=n.onFocus,q=n.onBlur,V=n.onSortModal,re=n.onTransformModal,de=n.onJSONEditorModal,Oe=!1;XP({onMount:qc,onDestroy:Vu,getWindow:function(){return x0(l)},hasFocus:function(){return Oe&&document.hasFocus()||ak(l)},onFocus:function(){v=!0,I&&I()},onBlur:function(){v=!1,q&&q()}});var ye=void 0;function Xe(we){r("updateSelection",we);var at="function"==typeof we?we(ie.selection):we;rr(at,ie.selection)||e(16,ie=Qe(Qe({},ie),{},{selection:at}))}var Le,rt,$,ne=!1,ie=ck(),Me=!1,Ye=!1,je=!1,gt="";function Tt(we){return fn.apply(this,arguments)}function fn(){return(fn=Ki(pn().mark(function we(at){return pn().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return r("search text updated",at),e(74,gt=at),Mt.next=4,Ul();case 4:return Mt.next=6,dr();case 6:case"end":return Mt.stop()}},we)}))).apply(this,arguments)}function Hn(){return(Hn=Ki(pn().mark(function we(){return pn().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return e(17,Le=Le?HYe(Le):void 0),at.next=3,dr();case 3:case"end":return at.stop()}},we)}))).apply(this,arguments)}function Zt(){return(Zt=Ki(pn().mark(function we(){return pn().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return e(17,Le=Le?UYe(Le):void 0),at.next=3,dr();case 3:case"end":return at.stop()}},we)}))).apply(this,arguments)}function Ei(){return(Ei=Ki(pn().mark(function we(at,Mt){var Xt,nn,on,si;return pn().wrap(function(ui){for(;;)switch(ui.prev=ui.next){case 0:if(nn=null===(Xt=Le)||void 0===Xt?void 0:Xt.activeItem,r("handleReplace",{replacementText:Mt,activeItem:nn}),nn){ui.next=4;break}return ui.abrupt("return");case 4:return on=zYe(c,ie,Mt,nn,R),si=on.newSelection,Yn(on.operations,function(Io,Os){return{state:Qe(Qe({},Os),{},{selection:si})}}),ui.next=8,Ul();case 8:return ui.next=10,dr();case 10:case"end":return ui.stop()}},we)}))).apply(this,arguments)}function ln(){return(ln=Ki(pn().mark(function we(at,Mt){var Xt,on;return pn().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return r("handleReplaceAll",{text:at,replacementText:Mt}),Xt=GYe(c,ie,at,Mt,R),on=Xt.newSelection,Yn(Xt.operations,function(si,ui){return{state:Qe(Qe({},ui),{},{selection:on})}}),Bn.next=5,Ul();case 5:return Bn.next=7,dr();case 7:case"end":return Bn.stop()}},we)}))).apply(this,arguments)}function dr(){return wr.apply(this,arguments)}function wr(){return(wr=Ki(pn().mark(function we(){var at,Mt,Xt;return pn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(Mt=null===(at=Le)||void 0===at?void 0:at.activeItem,r("focusActiveSearchResult",Le),!Mt){nn.next=9;break}return e(16,ie=Qe(Qe({},SP(c,ie,Xt=Mt.path)),{},{selection:void 0})),nn.next=7,Ul();case 7:return nn.next=9,un(Xt);case 9:case"end":return nn.stop()}},we)}))).apply(this,arguments)}var gi,Vr,sr=Sle({onChange:function(we){e(22,mr=we)}}),mr=sr.getState(),Mo=rP(function(we,at){if(""===we)return r("clearing search result"),void(void 0!==Le&&e(17,Le=void 0));e(21,je=!0),setTimeout(function(){r("searching...",we);var nn,on,Bn,si,ui,Io,Os,Mt=yae(we,at,1e3);e(17,(nn=Mt,Bn=null!=(on=Le)&&on.activeItem?xae(on.activeItem):void 0,si=nn.findIndex(function(Xo){return rr(Bn,xae(Xo))}),ui=-1!==si?si:void 0!==on?.activeIndex&&on?.activeIndex0?0:-1,Os=(Io=nn.map(function(Xo,yo){return Qe(Qe({},Xo),{},{active:yo===ui})}))[ui],Le={items:Io,itemsMap:p0(Io,function(Xo){return an(Xo.path)}),activeItem:Os,activeIndex:ui})),e(21,je=!1)})},300),On=!1,bt=[],ai=xb(kle);function Ii(we,at,Mt,Xt){j0(function(){var nn;try{nn=ai(we,at,Mt,Xt)}catch(on){nn=[{path:[],message:"Failed to validate: "+on.message,severity:Xd.warning}]}rr(nn,bt)||(r("validationErrors changed:",nn),e(12,bt=nn))},function(nn){return r("validationErrors updated in ".concat(nn," ms"))})}function Cr(){return r("validate"),ye?{parseError:ye,isRepairable:!1}:(Ii(c,G,R,X),Ui(bt)?null:{validationErrors:bt})}function vo(){return c}function Yo(){return ie}function In(we){ne||(ne=!0,e(16,ie=iu(we,ie,[],bse({json:we},10240)?ah:ub)))}function oi(we){void 0!==ie.selection&&(ie.selection&&Xc(we,ie.selection.anchorPath)&&Xc(we,ie.selection.focusPath)||(r("clearing selection: path does not exist anymore",ie.selection),e(16,ie=Qe(Qe({},ie),{},{selection:D0(we,ie)}))))}function vi(we){var at=we.previousJson,Mt=we.previousState,Xt=we.previousText,nn=we.previousTextIsRepaired;void 0===at&&void 0===Xt||(void 0!==c?sr.add(void 0!==at?{undo:{patch:[{op:"replace",path:"",value:at}],state:rl(Mt),json:void 0,text:Xt,textIsRepaired:nn},redo:{patch:[{op:"replace",path:"",value:c}],state:rl(ie),json:void 0,text:u,textIsRepaired:On}}:{undo:{patch:void 0,json:void 0,text:Xt,state:rl(Mt),textIsRepaired:nn},redo:{patch:void 0,json:c,state:rl(ie),text:u,textIsRepaired:On}}):void 0!==at&&sr.add({undo:{patch:void 0,json:at,state:rl(Mt),text:Xt,textIsRepaired:nn},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:On,state:rl(ie)}}))}function Tr(we,at){if(r("patch",we,at),void 0===c)throw new Error("Cannot apply patch: no JSON");var Mt={json:c,text:u},Xt=c,nn=ie,on=u,Bn=On,si=gae(c,we),ui=Jse(c,ie,we),Io=T0(c,we),Os=function(Ch,yd){return void 0!==yd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?Qe(Qe({},Ch),{},{selection:yd}):Ch}(ui.documentState,Io,!1);r("patch updatedSelection",Io);var Xo="function"==typeof at?at(ui.json,Os):void 0;e(10,c=Xo&&void 0!==Xo.json?Xo.json:ui.json);var yo=Xo&&void 0!==Xo.state?Xo.state:Os;e(16,ie=yo),e(11,u=void 0),e(23,On=!1),e(18,$=void 0),oi(c),sr.add({undo:{patch:si,json:void 0,text:on,state:rl(nn),textIsRepaired:Bn},redo:{patch:we,json:void 0,state:rl(yo),text:u,textIsRepaired:On}});var Al={json:c,previousJson:Xt,undo:si,redo:we};return Zn(Mt,Al),Al}function Hr(){!_&&ie.selection&&Xe(ru(ie.selection.focusPath,!0))}function no(){if(!_&&ie.selection){var we=ie.selection.focusPath,at=Sn(c,we);Lo(at)?(r("openJSONEditorModal",{path:Mt=we,value:Xt=at}),Oe=!0,de({content:{json:Xt},path:Mt,onPatch:Vr.onPatch,onClose:function(){Oe=!1,Ms()}})):Xe(fr(we,!0))}var Mt,Xt}function Hs(){if(!_&&Yi(ie.selection)){var we=ie.selection.focusPath,at=an(we),Mt=Sn(c,we),Xt=!hf(Mt,ie.enforceStringMap,at,R),nn=Xt?String(Mt):Qv(String(Mt),R);r("handleToggleEnforceString",{enforceString:Xt,value:Mt,updatedValue:nn}),Yn([{op:"replace",path:at,value:nn}],function(on,Bn){return{state:Xse(Bn,at,Xt)}})}}function gr(){return Us.apply(this,arguments)}function Us(){return Us=Ki(pn().mark(function we(){var at,Mt=arguments;return pn().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return at=!(Mt.length>0&&void 0!==Mt[0])||Mt[0],Xt.next=3,aue({json:c,documentState:ie,indentation:at?P:void 0,readOnly:_,parser:R,onPatch:Yn});case 3:case"end":return Xt.stop()}},we)})),Us.apply(this,arguments)}function Ha(){return Ua.apply(this,arguments)}function Ua(){return Ua=Ki(pn().mark(function we(){var at,Mt=arguments;return pn().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(at=!(Mt.length>0&&void 0!==Mt[0])||Mt[0],void 0!==c){Xt.next=3;break}return Xt.abrupt("return");case 3:return Xt.next=5,lue({json:c,documentState:ie,indentation:at?P:void 0,parser:R});case 5:case"end":return Xt.stop()}},we)})),Ua.apply(this,arguments)}function Mc(){d(Ple,{},Qe(Qe({},$m),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Ms()}})}function xe(we,at){d(Wle,{text:we,onParse:ik,onRepair:vse,onApply:at},Qe(Qe({},$m),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ms()}})}function He(){uue({json:c,text:u,documentState:ie,keepSelection:!1,readOnly:_,onChange:J,onPatch:Yn})}function We(){!_&&void 0!==c&&ie.selection&&A0(ie.selection)&&!Ui(ie.selection.focusPath)&&(r("duplicate",{selection:ie.selection}),Yn(fae(c,cae(ie.selection))))}function lt(){_||!ie.selection||!Ir(ie.selection)&&!Yi(ie.selection)||Ui(ie.selection.focusPath)||(r("extract",{selection:ie.selection}),Yn(function(at,Mt){if(Yi(Mt))return[{op:"move",from:an(Mt.focusPath),path:""}];if(!Ir(Mt))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Xt=Sn(at,qi(Mt.focusPath));if(eo(Xt))return[{op:"replace",path:"",value:Mt.paths.map(function(on){var Bn=$s(Fn(on));return Xt[Bn]})}];if(ko(Xt)){var nn={};return Mt.paths.forEach(function(on){var Bn=String(Fn(on));nn[Bn]=Xt[Bn]}),[{op:"replace",path:"",value:nn}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Mt))}(c,ie.selection),function(at,Mt){if(Lo(at))return{state:pp(at,Mt,[])}}))}function Ue(we){void 0!==c&&Mk({insertType:we,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:yr})}function kn(we){vs(ie.selection)&&Xe(fr(ie.selection.focusPath,!1)),Ue(we)}function ti(we){if(!_&&ie.selection)if(Zm(ie.selection))try{var at=ie.selection.anchorPath,Mt=Sn(c,at),Xt=function(on,Bn,si){if("array"===Bn){if(Array.isArray(on))return on;if(Do(on))return pse(on);if("string"==typeof on)try{var ui=si.parse(on);if(Array.isArray(ui))return ui;if(Do(ui))return pse(ui)}catch{return[on]}return[on]}if("object"===Bn){if(Array.isArray(on))return fse(on);if(Do(on))return on;if("string"==typeof on)try{var Io=si.parse(on);if(Do(Io))return Io;if(Array.isArray(Io))return fse(Io)}catch{return{value:on}}return{value:on}}if("value"===Bn)return Lo(on)?si.stringify(on):on;throw new Error("Cannot convert ".concat(AN(on,si)," to ").concat(Bn))}(Mt,we,R);if(Xt===Mt)return;var nn=[{op:"replace",path:an(at),value:Xt}];r("handleConvert",{selection:ie.selection,path:at,type:we,operations:nn}),Yn(nn,function(on,Bn){return{state:pp(on,Bn,ie.selection.focusPath)}})}catch(on){W(on)}else W(new Error("Cannot convert current selection to ".concat(we)))}function ci(){var we=rae(c,ie,!1),at=qi(ie.selection.focusPath);!Ui(we.focusPath)&&rr(at,qi(we.focusPath))?Xe(pf(we.focusPath)):Xe(ff(at)),r("insert before",{selection:ie.selection,selectionBefore:we,parentPath:at}),Ul().then(El)}function li(){var we=Ir(ie.selection)?Fn(ie.selection.paths):ie.selection.focusPath;r("insert after",we),Xe(pf(we)),Ul().then(El)}function Sr(we){return qr.apply(this,arguments)}function qr(){return(qr=Ki(pn().mark(function we(at){return pn().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,due({char:at,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:yr,onSelect:Xe});case 2:case"end":return Mt.stop()}},we)}))).apply(this,arguments)}function fi(){if(!_&&sr.getState().canUndo){var we=sr.undo();if(we){var at={json:c,text:u};e(10,c=we.undo.patch?Yu(c,we.undo.patch):we.undo.json),e(16,ie=we.undo.state),e(11,u=we.undo.text),e(23,On=we.undo.textIsRepaired),r("undo",{item:we,json:c,documentState:ie}),Zn(at,{json:c,previousJson:at.json,redo:we.undo.patch,undo:we.redo.patch}),Ms(),ie.selection&&un(ie.selection.focusPath,!1)}}}function vr(){if(!_&&sr.getState().canRedo){var we=sr.redo();if(we){var at={json:c,text:u};e(10,c=we.redo.patch?Yu(c,we.redo.patch):we.redo.json),e(16,ie=we.redo.state),e(11,u=we.redo.text),e(23,On=we.redo.textIsRepaired),r("redo",{item:we,json:c,documentState:ie}),Zn(at,{json:c,previousJson:at.json,redo:we.redo.patch,undo:we.undo.patch}),Ms(),ie.selection&&un(ie.selection.focusPath,!1)}}}function Te(we){var at;_||void 0===c||(Oe=!0,V({id:h,json:c,rootPath:we,onSort:(at=Ki(pn().mark(function Mt(Xt){var nn;return pn().wrap(function(on){for(;;)switch(on.prev=on.next){case 0:r("onSort",we,nn=Xt.operations),Yn(nn,function(Bn,si){return{state:Qe(Qe({},pp(Bn,si,we)),{},{selection:fr(we,!1)})}});case 3:case"end":return on.stop()}},Mt)})),function(Mt){return at.apply(this,arguments)}),onClose:function(){Oe=!1,Ms()}}))}function St(){ie.selection&&Te(aae(c,ie.selection))}function Vt(we){var Mt=we.rootPath,Xt=we.onTransform,nn=we.onClose;void 0!==c&&Mt&&(Oe=!0,re({id:we.id||f,json:c,rootPath:Mt,onTransform:Xt?function(on){Xt({operations:on,json:c,transformedJson:Yu(c,on)})}:function(on){r("onTransform",Mt,on),Yn(on,function(Bn,si){return{state:Qe(Qe({},pp(Bn,si,Mt)),{},{selection:fr(Mt,!1)})}})},onClose:function(){Oe=!1,Ms(),nn&&nn()}}))}function rn(){ie.selection&&Vt({rootPath:aae(c,ie.selection)})}function un(we){return ni.apply(this,arguments)}function ni(){return ni=Ki(pn().mark(function we(at){var Mt,Xt,nn,on,si=arguments;return pn().wrap(function(ui){for(;;)switch(ui.prev=ui.next){case 0:return Mt=!(si.length>1&&void 0!==si[1])||si[1],e(16,ie=SP(c,ie,qi(at))),ui.next=4,Ul();case 4:if(!(Xt=Ni(at))){ui.next=14;break}if(r("scrollTo",{path:at,elem:Xt,refContents:s}),nn=s.getBoundingClientRect(),on=Xt.getBoundingClientRect(),Mt){ui.next=12;break}if(!(on.bottom>nn.top&&on.topMt.bottom-20&&y(at,{container:s,offset:-(Mt.height-nn-20),duration:0})}}function Zn(we,at){(void 0!==we.json||void 0!==we?.text)&&(void 0!==u?J({text:u,json:void 0},we,{contentErrors:Cr(),patchResult:at}):void 0!==c&&J({text:void 0,json:c},we,{contentErrors:Cr(),patchResult:at}))}function Yn(we,at){if(!_)return r("handlePatch",we,at),Tr(we,at)}function yr(we,at){var Mt=ie,Xt=c,nn=u,on={json:c,text:u},Bn=On,si=iu(c,ie,[],ah),ui="function"==typeof at?at(we,si):void 0;e(10,c=ui&&void 0!==ui.json?ui.json:we),e(16,ie=ui&&void 0!==ui.state?ui.state:si),e(11,u=void 0),e(23,On=!1),oi(c),vi({previousJson:Xt,previousState:Mt,previousText:nn,previousTextIsRepaired:Bn}),Zn(on,null)}function Er(we,at){r("handleChangeText");var Mt=ie,Xt=c,nn=u,on={json:c,text:u},Bn=On;try{e(10,c=U(we)),e(16,ie=iu(c,ie,[],ah)),e(11,u=void 0),e(23,On=!1)}catch{try{e(10,c=U(Jd(we))),e(16,ie=iu(c,ie,[],ah)),e(11,u=we),e(23,On=!0)}catch{e(10,c=void 0),e(16,ie=ck({json:c,expand:ah})),e(11,u=we),e(23,On=!1)}}if("function"==typeof at){var si=at(c,ie);e(10,c=si&&si.json?si.json:c),e(16,ie=si&&si.state?si.state:ie)}oi(c),vi({previousJson:Xt,previousState:Mt,previousText:nn,previousTextIsRepaired:Bn}),Zn(on,null)}function Oo(we,at){var Mt=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:we,expanded:at,recursive:Mt}),e(16,ie=at?Mt?iu(c,ie,we,ub):function NYe(t,n){return Qe(Qe({},t),{},{expandedMap:Qe(Qe({},t.expandedMap),{},Hl({},an(n),!0))})}(ie,we):Yse(ie,we)),ie.selection&&!at&&function PYe(t,n){return E0(t.focusPath,n)&&(t.focusPath.length>n.length||Vs(t))}(ie.selection,we)&&Xe(void 0),setTimeout(function(){ak(l)||Ms()})}function ra(we){r("openFind",{findAndReplace:we}),e(19,Me=!1),e(20,Ye=!1),Ul().then(function(){e(19,Me=!0),e(20,Ye=we)})}function pd(we,at){r("handleExpandSection",we,at);var nn,on,Bn,Mt=an(we);e(16,(on=Mt,Bn=at,ie=Qe(Qe({},nn=ie),{},{visibleSectionsMap:Qe(Qe({},nn.visibleSectionsMap),{},Hl({},on,qse(uk(nn,on).concat(Bn))))})))}function fu(we){r("pasted json as text",we),e(18,$=we)}function oa(we){Oe=!0;var Io=m(GKe,{json:c,documentState:ie,parser:R,showTip:we.showTip,onEditKey:Hr,onEditValue:no,onToggleEnforceString:Hs,onCut:gr,onCopy:Ha,onPaste:Mc,onRemove:He,onDuplicate:We,onExtract:lt,onInsertBefore:ci,onInsert:kn,onConvert:ti,onInsertAfter:li,onSort:St,onTransform:rn,onCloseContextMenu:function(){g(Io),Ms()}},{left:we.left,top:we.top,offsetTop:we.offsetTop,offsetLeft:we.offsetLeft,width:we.width,height:we.height,anchor:we.anchor,closeOnOuterClick:!0,onClose:function(){Oe=!1,Ms()}})}function El(we){if(!_&&!mp(ie.selection)){if(we&&(we.stopPropagation(),we.preventDefault()),we&&"contextmenu"===we.type&&we.target!==a)oa({left:we.clientX,top:we.clientY,width:260,height:336,showTip:!1});else{var at,Mt=null===(at=s)||void 0===at?void 0:at.querySelector(".jse-context-menu-pointer.jse-selected");if(Mt)oa({anchor:Mt,offsetTop:2,width:260,height:336,showTip:!1});else{var Xt,nn=null===(Xt=s)||void 0===Xt?void 0:Xt.getBoundingClientRect();nn&&oa({top:nn.top+2,left:nn.left+2,width:260,height:336,showTip:!1})}}return!1}}function md(){return(md=Ki(pn().mark(function we(){var at,Mt,Xt;return pn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return r("apply pasted json",$),Mt=(at=$).path,Xt=at.contents,Xe(fr(Mt,!1)),nn.next=5,Ul();case 5:Yn([{op:"replace",path:an(Mt),value:Xt}],function(on,Bn){return{state:pp(on,Bn,Mt)}});case 7:case"end":return nn.stop()}},we)}))).apply(this,arguments)}function Ms(){r("focus"),a&&(a.focus(),a.select())}function gd(we){return at=c,Mt=ie,nn=qi(Xt=we),on=[Fn(Xt)],(si=(Bn=Sn(at,nn))?MP(Bn,Mt,on):void 0)?fr(nn.concat(si),!1):pf(Xt);var at,Mt,Xt,nn,on,Bn,si}function vd(we){i&&i.onDrag(we)}function CT(){i&&i.onDragEnd()}return t.$$set=function(we){"readOnly"in we&&e(0,_=we.readOnly),"externalContent"in we&&e(50,w=we.externalContent),"mainMenuBar"in we&&e(1,k=we.mainMenuBar),"navigationBar"in we&&e(2,D=we.navigationBar),"escapeControlCharacters"in we&&e(51,L=we.escapeControlCharacters),"escapeUnicodeCharacters"in we&&e(52,z=we.escapeUnicodeCharacters),"parser"in we&&e(3,R=we.parser),"parseMemoizeOne"in we&&e(53,U=we.parseMemoizeOne),"validator"in we&&e(54,G=we.validator),"validationParser"in we&&e(55,X=we.validationParser),"pathParser"in we&&e(4,te=we.pathParser),"indentation"in we&&e(5,P=we.indentation),"onError"in we&&e(6,W=we.onError),"onChange"in we&&e(56,J=we.onChange),"onChangeMode"in we&&e(57,H=we.onChangeMode),"onRenderValue"in we&&e(58,le=we.onRenderValue),"onRenderMenu"in we&&e(7,E=we.onRenderMenu),"onClassName"in we&&e(59,O=we.onClassName),"onFocus"in we&&e(60,I=we.onFocus),"onBlur"in we&&e(61,q=we.onBlur),"onSortModal"in we&&e(62,V=we.onSortModal),"onTransformModal"in we&&e(63,re=we.onTransformModal),"onJSONEditorModal"in we&&e(64,de=we.onJSONEditorModal)},t.$$.update=function(){var we,at;3145728&t.$$.dirty[1]&&e(73,rt=mP({escapeControlCharacters:L,escapeUnicodeCharacters:z})),524288&t.$$.dirty[1]&&function pt(we){void 0!==we.json&&function(at){if(void 0!==at){var Mt=!rr(c,at);if(r("update external json",{isChanged:Mt,currentlyText:void 0===c}),Mt){var Xt={json:c,text:u},nn=ie,on=c,Bn=u,si=On;e(10,c=at),In(c),e(11,u=void 0),e(23,On=!1),oi(c),vi({previousJson:on,previousState:nn,previousText:Bn,previousTextIsRepaired:si}),Zn(Xt,null)}}}(we.json),void 0!==we.text&&function(at){if(void 0!==at&&void 0===w.json){var Mt=at!==u;if(r("update external text",{isChanged:Mt}),Mt){var Xt={json:c,text:u},nn=c,on=ie,Bn=u,si=On;try{e(10,c=U(at)),In(c),e(11,u=at),e(23,On=!1),ye=void 0}catch(ui){try{e(10,c=U(Jd(at))),In(c),e(11,u=at),e(23,On=!0),ye=void 0,oi(c)}catch{e(10,c=void 0),e(11,u=w.text),e(23,On=!1),ye=rk(u,ui.message||ui.toString())}}oi(c),vi({previousJson:nn,previousState:on,previousText:Bn,previousTextIsRepaired:si}),Zn(Xt,null)}}}(we.text)}(w),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&Mo(gt,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Ii(c,G,R,X),4096&t.$$.dirty[0]&&e(24,(at={},(we=bt).forEach(function(Mt){at[an(Mt.path)]=Mt}),we.forEach(function(Mt){for(var Xt=Mt.path;Xt.length>0;){var nn=an(Xt=qi(Xt));nn in at||(at[nn]={isChildError:!0,path:Xt,message:"Contains invalid data",severity:Xd.warning})}}),gi=at)),512&t.$$.dirty[0]&&(i=s?function(we){var at,Mt;function Xt(si){return si<20?200:si<50?400:1200}function nn(){we&&(we.scrollTop+=.05*(at||0))}function on(si){Mt&&si===at||(Bn(),YP("startAutoScroll",si),at=si,Mt=setInterval(nn,50))}function Bn(){Mt&&(YP("stopAutoScroll"),clearInterval(Mt),Mt=void 0,at=void 0)}return YP("createAutoScrollHandler",we),{onDrag:function(si){if(we){var ui=si.clientY,Io=we.getBoundingClientRect(),Os=Io.top,Xo=Io.bottom;uiXo?on(Xt(ui-Xo)):Bn()}},onDragEnd:function(){Bn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Vr={readOnly:_,parser:R,normalization:rt,getJson:vo,getDocumentState:Yo,findElement:Ni,findNextInside:gd,focus:Ms,onPatch:Yn,onInsert:Ue,onExpand:Oo,onSelect:Xe,onFind:ra,onExpandSection:pd,onPasteJson:fu,onRenderValue:le,onContextMenu:oa,onClassName:O||function(){},onDrag:vd,onDragEnd:CT}),8192&t.$$.dirty[0]&&r("context changed",Vr)},[_,k,D,R,te,P,W,E,function(){return On&&void 0!==c&&yr(c),{json:c,text:u}},s,c,u,bt,Vr,a,l,ie,Le,$,Me,Ye,je,mr,On,gi,o,Tt,function(){return Hn.apply(this,arguments)},function(){return Zt.apply(this,arguments)},function(we,at){return Ei.apply(this,arguments)},function(we,at){return ln.apply(this,arguments)},function(){e(19,Me=!1),e(20,Ye=!1),Tt(""),Ms()},function(we){r("select validation error",we),Xe(fr(we.path,!1)),un(we.path)},Ha,function(we){we.preventDefault(),cue({clipboardText:we.clipboardData.getData("text/plain"),json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onChangeText:Er,openRepairModal:xe})},fi,vr,function(){Te([])},function(){Vt({rootPath:[]})},function(){Oo([],!0,!0)},function(){Oo([],!1,!0)},function(we){var at=fp(we),Mt=we.shiftKey;if(r("keydown",{combo:at,key:we.key}),"Ctrl+X"===at&&(we.preventDefault(),gr(!0)),"Ctrl+Shift+X"===at&&(we.preventDefault(),gr(!1)),"Ctrl+C"===at&&(we.preventDefault(),Ha(!0)),"Ctrl+Shift+C"===at&&(we.preventDefault(),Ha(!1)),"Ctrl+D"===at&&(we.preventDefault(),We()),"Delete"!==at&&"Backspace"!==at||(we.preventDefault(),He()),"Insert"===at&&(we.preventDefault(),Ue("structure")),"Ctrl+A"===at&&(we.preventDefault(),Xe(fr([],!1))),"Ctrl+Q"===at&&El(we),"ArrowUp"===at||"Shift+ArrowUp"===at){we.preventDefault();var Xt=ie.selection?rae(c,ie,Mt,!0)||ie.selection:D0(c,ie);Xe(Xt),$n(Xt.focusPath)}if("ArrowDown"===at||"Shift+ArrowDown"===at){we.preventDefault();var nn=ie.selection?function(yo,Al){var Ch=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ar=Al.selection;if(!Ar)return null;var Jl=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Ir(Ar)?Ar.focusPath:Fn(Ar.paths),pu=MP(yo,Al,Jl),_d=pu,Sh=pu;if(null===pu||null==_d||null==Sh)return null;if(Ch){var bd=MP(yo,Lo(Sn(yo,Jl))?Yse(Al,Jl):Al,Jl);return null===bd?null:Qu(Ar)?Es(yo,bd,bd):Vs(Ar)?Es(yo,_d,Sh):Es(yo,Ar.anchorPath,bd)}if(vs(Ar)){var dx=Sn(yo,qi(pu));return Array.isArray(dx)?fr(Sh,!1):ru(Sh,!1)}return Yi(Ar)?fr(Sh,!1):Vs(Ar)?Es(yo,_d,Sh):Es(yo,pu,pu)}(c,ie,Mt,!0)||ie.selection:D0(c,ie);Xe(nn),$n(nn.focusPath)}if("ArrowLeft"===at||"Shift+ArrowLeft"===at){we.preventDefault();var on=ie.selection?function(yo,Al){var Ch=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ar=Al.selection;if(!Ar)return null;var Jl=oae(yo,Al,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),pu=Jl.caret,_d=Jl.previous;if(Ch)return Ir(Ar)?null:Es(yo,Ar.anchorPath,Ar.focusPath);if(pu&&_d)return OP(_d);var bd=Sn(yo,qi(Ar.focusPath));return Yi(Ar)&&Array.isArray(bd)?Es(yo,Ar.focusPath,Ar.focusPath):Ir(Ar)&&!Array.isArray(bd)?ru(Ar.focusPath,!1):null}(c,ie,Mt,!_)||ie.selection:D0(c,ie);Xe(on),$n(on.focusPath)}if("ArrowRight"===at||"Shift+ArrowRight"===at){we.preventDefault();var Bn=ie.selection&&void 0!==c?function(yo,Al){var Ch=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ar=Al.selection;if(!Ar)return null;var Jl=oae(yo,Al,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),pu=Jl.caret,_d=Jl.next;return Ch?Ir(Ar)?null:Es(yo,Ar.anchorPath,Ar.focusPath):pu&&_d?OP(_d):Ir(Ar)?fr(Ar.focusPath,!1):null}(c,ie,Mt,!_)||ie.selection:D0(c,ie);Xe(Bn),$n(Bn.focusPath)}if("Enter"===at&&ie.selection){if(!_&&Ir(ie.selection)&&1===ie.selection.paths.length){var si=ie.selection.focusPath,ui=Sn(c,qi(si));Array.isArray(ui)&&Xe(fr(si,!1))}!_&&vs(ie.selection)&&(we.preventDefault(),Xe(Qe(Qe({},ie.selection),{},{edit:!0}))),Yi(ie.selection)&&(we.preventDefault(),Lo(Sn(c,ie.selection.focusPath))?Oo(ie.selection.focusPath,!0):_||Xe(Qe(Qe({},ie.selection),{},{edit:!0})))}if(1===at.replace(/^Shift\+/,"").length&&ie.selection)return we.preventDefault(),void Sr(we.key);if("Enter"===at&&(Qu(ie.selection)||Vs(ie.selection)))return we.preventDefault(),void Sr("");if("Ctrl+Enter"===at&&Yi(ie.selection)){var Io=Sn(c,ie.selection.focusPath);fS(Io)&&window.open(String(Io),"_blank")}if("Escape"===at&&ie.selection&&(we.preventDefault(),Xe(void 0)),"Ctrl+F"===at&&(we.preventDefault(),ra(!1)),"Ctrl+H"===at&&(we.preventDefault(),ra(!0)),"Ctrl+Z"===at){we.preventDefault();var Os=document.activeElement;Os&&Os.blur&&Os.focus?(Os.blur(),setTimeout(function(){fi(),setTimeout(function(){return Os.select()})})):fi()}if("Ctrl+Shift+Z"===at){we.preventDefault();var Xo=document.activeElement;Xo&&Xo.blur&&Xo.focus?(Xo.blur(),setTimeout(function(){vr(),setTimeout(function(){return Xo.select()})})):vr()}},function(we){r("handleMouseDown",we),setTimeout(function(){setTimeout(function(){v||Ase(we.target,"BUTTON")||(Ms(),ie.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,ie=Qe(Qe({},ie),{},{selection:Es(c||{},[],[])}))))})})},El,function(we){_||oa({anchor:Ose(we.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return md.apply(this,arguments)},function(){r("clear pasted json"),e(18,$=void 0)},function(){H(Wo.text)},function(we){Xe(we),Ms(),un(we.focusPath)},function(we){!rb(we.target,function(Mt){return Mt===l})&&mp(ie.selection)&&(r("click outside the editor, stop edit mode"),Xe(function(Mt){return vs(Mt)||Yi(Mt)?Qe(Qe({},Mt),{},{edit:!1}):Mt}),v&&a&&(a.focus(),a.blur()),Ul().then(function(){setTimeout(function(){a&&a.blur()})}))},w,L,z,U,G,X,J,H,le,O,I,q,V,re,de,function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ub;r("expand");var at=Qe(Qe({},ie),{},{expandedMap:{},visibleSectionsMap:{}});e(16,ie=iu(c,at,[],we))},Cr,vo,Tr,Vt,un,Ni,Ms,rt,gt,function(we){e(19,Me=we)},function(we){Hi[we?"unshift":"push"](function(){e(14,a=we)})},function(we){Hi[we?"unshift":"push"](function(){e(9,s=we)})},function(we){Hi[we?"unshift":"push"](function(){e(15,l=we)})}]}var hj=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,GZe,zZe,Ti,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},RZe,[-1,-1,-1,-1,-1]),r}return Se(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function WZe(t){di(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function vue(t){var n,e,i,r,o,s=[YZe,qZe],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=br()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Rt(),ae(a[d],1,1,function(){a[d]=null}),Lt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),K(i,1),i.m(r.parentNode,r))},i:function(c){o||(K(i),o=!0)},o:function(c){ae(i),o=!1},d:function(c){a[e].d(c),c&&Fe(r)}}}function qZe(t){var n;return{c:function(){n=tn("(Only available for arrays, not for objects)")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function YZe(t){var n,e;return n=new _Je({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function yue(t){var n,e;return n=new hj({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:ho,onError:console.error,onChange:ho,onChangeMode:ho,onFocus:ho,onBlur:ho,onSortModal:ho,onTransformModal:ho,onJSONEditorModal:ho,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function XZe(t){var n,e;return{c:function(){n=ve("div"),e=tn(t[17]),j(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:function(i,r){131072&r[0]&&Wn(e,i[17])},i:jt,o:jt,d:function(i){i&&Fe(n)}}}function JZe(t){var n,e;return n=new hj({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:ho,onError:console.error,onChange:ho,onChangeMode:ho,onFocus:ho,onBlur:ho,onSortModal:ho,onTransformModal:ho,onJSONEditorModal:ho,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function KZe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te,P,W,J,H,le,E,O,I,q,V,re,de,Oe,ye,Xe,Le,rt,$,ne=t[21](t[0]).description+"";n=new AJe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new or({props:{data:t[15]?ou:gp}});var ie=t[15]&&vue(t);W=new or({props:{data:t[16]?ou:gp}});var Me=t[16]&&yue(t),Ye=[JZe,XZe],je=[];function gt(Tt,fn){return Tt[17]?1:0}return q=gt(t),V=je[q]=Ye[q](t),{c:function(){ft(n.$$.fragment),e=tt(),i=ve("div"),r=ve("div"),o=ve("div"),(s=ve("div")).innerHTML='
    Language
    ',a=tt(),l=ve("div"),c=tt(),(u=ve("div")).innerHTML='
    Path
    ',d=tt(),h=ve("input"),p=tt(),m=ve("div"),g=ve("div"),v=ve("button"),ft(y.$$.fragment),_=tn("\n Wizard"),w=tt(),ie&&ie.c(),k=tt(),(D=ve("div")).innerHTML='
    Query
    ',L=tt(),z=ve("textarea"),R=tt(),U=ve("div"),G=ve("div"),X=ve("div"),te=ve("div"),P=ve("button"),ft(W.$$.fragment),J=tn("\n Original"),H=tt(),Me&&Me.c(),le=tt(),E=ve("div"),(O=ve("div")).innerHTML='
    Preview
    ',I=tt(),V.c(),re=tt(),de=ve("div"),Oe=ve("button"),ye=tn("Transform"),j(s,"class","jse-label svelte-107mggt"),j(l,"class","jse-description svelte-107mggt"),j(u,"class","jse-label svelte-107mggt"),j(h,"class","jse-path svelte-107mggt"),j(h,"type","text"),h.readOnly=!0,j(h,"title","Selected path"),h.value=f=Ui(t[1])?"(whole document)":nu(Wl(t[1])),j(v,"type","button"),j(v,"class","svelte-107mggt"),j(g,"class","jse-label-inner svelte-107mggt"),j(m,"class","jse-label svelte-107mggt"),j(D,"class","jse-label svelte-107mggt"),j(z,"class","jse-query svelte-107mggt"),j(z,"spellcheck","false"),z.value=t[13],j(o,"class","jse-query-contents svelte-107mggt"),j(P,"type","button"),j(P,"class","svelte-107mggt"),j(te,"class","jse-label-inner svelte-107mggt"),j(X,"class","jse-label svelte-107mggt"),j(G,"class","jse-original-data svelte-107mggt"),At(G,"jse-hide",!t[16]),j(O,"class","jse-label svelte-107mggt"),j(E,"class","jse-preview-data svelte-107mggt"),j(U,"class","jse-data-contents svelte-107mggt"),At(U,"jse-hide-original-data",!t[16]),j(r,"class","jse-main-contents svelte-107mggt"),j(Oe,"type","button"),j(Oe,"class","jse-primary svelte-107mggt"),Oe.disabled=Xe=!!t[17],j(de,"class","jse-actions svelte-107mggt"),j(i,"class","jse-modal-contents svelte-107mggt")},m:function(Tt,fn){dt(n,Tt,fn),Pe(Tt,e,fn),Pe(Tt,i,fn),ue(i,r),ue(r,o),ue(o,s),ue(o,a),ue(o,l),l.innerHTML=ne,ue(o,c),ue(o,u),ue(o,d),ue(o,h),ue(o,p),ue(o,m),ue(m,g),ue(g,v),dt(y,v,null),ue(v,_),ue(o,w),ie&&ie.m(o,null),ue(o,k),ue(o,D),ue(o,L),ue(o,z),ue(r,R),ue(r,U),ue(U,G),ue(G,X),ue(X,te),ue(te,P),dt(W,P,null),ue(P,J),ue(G,H),Me&&Me.m(G,null),ue(U,le),ue(U,E),ue(E,O),ue(E,I),je[q].m(E,null),ue(i,re),ue(i,de),ue(de,Oe),ue(Oe,ye),Le=!0,rt||($=[It(v,"click",t[25]),It(z,"input",t[23]),It(P,"click",t[26]),It(Oe,"click",t[24]),pa(ZZe.call(null,Oe))],rt=!0)},p:function(Tt,fn){var Hn={};512&fn[0]&&(Hn.queryLanguages=Tt[9]),1&fn[0]&&(Hn.queryLanguageId=Tt[0]),n.$set(Hn),(!Le||1&fn[0])&&ne!==(ne=Tt[21](Tt[0]).description+"")&&(l.innerHTML=ne),(!Le||2&fn[0]&&f!==(f=Ui(Tt[1])?"(whole document)":nu(Wl(Tt[1])))&&h.value!==f)&&(h.value=f);var Zt={};32768&fn[0]&&(Zt.data=Tt[15]?ou:gp),y.$set(Zt),Tt[15]?ie?(ie.p(Tt,fn),32768&fn[0]&&K(ie,1)):((ie=vue(Tt)).c(),K(ie,1),ie.m(o,k)):ie&&(Rt(),ae(ie,1,1,function(){ie=null}),Lt()),(!Le||8192&fn[0])&&(z.value=Tt[13]);var Ei={};65536&fn[0]&&(Ei.data=Tt[16]?ou:gp),W.$set(Ei),Tt[16]?Me?(Me.p(Tt,fn),65536&fn[0]&&K(Me,1)):((Me=yue(Tt)).c(),K(Me,1),Me.m(G,null)):Me&&(Rt(),ae(Me,1,1,function(){Me=null}),Lt()),(!Le||65536&fn[0])&&At(G,"jse-hide",!Tt[16]);var ln=q;(q=gt(Tt))===ln?je[q].p(Tt,fn):(Rt(),ae(je[ln],1,1,function(){je[ln]=null}),Lt(),(V=je[q])?V.p(Tt,fn):(V=je[q]=Ye[q](Tt)).c(),K(V,1),V.m(E,null)),(!Le||65536&fn[0])&&At(U,"jse-hide-original-data",!Tt[16]),(!Le||131072&fn[0]&&Xe!==(Xe=!!Tt[17]))&&(Oe.disabled=Xe)},i:function(Tt){Le||(K(n.$$.fragment,Tt),K(y.$$.fragment,Tt),K(ie),K(W.$$.fragment,Tt),K(Me),K(V),Le=!0)},o:function(Tt){ae(n.$$.fragment,Tt),ae(y.$$.fragment,Tt),ae(ie),ae(W.$$.fragment,Tt),ae(Me),ae(V),Le=!1},d:function(Tt){ht(n,Tt),Tt&&Fe(e),Tt&&Fe(i),ht(y),ie&&ie.d(),ht(W),Me&&Me.d(),je[q].d(),rt=!1,so($)}}}function QZe(t){var n,e,i,r,o;return e=new Rse({props:{$$slots:{default:[KZe]},$$scope:{ctx:t}}}),{c:function(){n=ve("div"),ft(e.$$.fragment),j(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){Pe(s,n,a),dt(e,n,null),i=!0,r||(o=pa(Ak.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(K(e.$$.fragment,s),i=!0)},o:function(s){ae(e.$$.fragment,s),i=!1},d:function(s){s&&Fe(n),ht(e),r=!1,o()}}}function ZZe(t){t.focus()}function eet(t,n,e){var i,r,o=ga("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+P_():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,_=n.queryLanguageId,w=n.onChangeQueryLanguage,k=n.onRenderValue,D=n.onClassName,L=n.onTransform,z=ma("simple-modal").close,R="".concat(a,":").concat(an(u)),U=Zu[R]||{},G=!1!==Zu.showWizard,X=!1!==Zu.showOriginal,te=U.queryOptions||{},P=_===U.queryLanguageId&&U.query?U.query:le(_).createQuery(l,U.queryOptions||{}),W=U.isManual||!1,J=void 0,H={text:""};function le(O){return y.find(function(I){return I.id===O})||y[0]}var E=h0(function(O,I){try{o("previewTransform",{query:I});var q=le(_).executeQuery(O,I,p);e(18,H={json:q}),e(17,J=void 0)}catch(V){e(18,H={text:""}),e(17,J=V.toString())}},300);return t.$$set=function(O){"id"in O&&e(28,a=O.id),"json"in O&&e(29,l=O.json),"rootPath"in O&&e(1,u=O.rootPath),"indentation"in O&&e(2,d=O.indentation),"escapeControlCharacters"in O&&e(3,h=O.escapeControlCharacters),"escapeUnicodeCharacters"in O&&e(4,f=O.escapeUnicodeCharacters),"parser"in O&&e(5,p=O.parser),"parseMemoizeOne"in O&&e(6,m=O.parseMemoizeOne),"validationParser"in O&&e(7,g=O.validationParser),"pathParser"in O&&e(8,v=O.pathParser),"queryLanguages"in O&&e(9,y=O.queryLanguages),"queryLanguageId"in O&&e(0,_=O.queryLanguageId),"onChangeQueryLanguage"in O&&e(30,w=O.onChangeQueryLanguage),"onRenderValue"in O&&e(10,k=O.onRenderValue),"onClassName"in O&&e(11,D=O.onClassName),"onTransform"in O&&e(31,L=O.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Sn(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&E(i,P),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,Zu[R]={queryOptions:te,query:P,queryLanguageId:_,isManual:W},Zu),o("store state in memory",R,Zu[R]))},[_,u,d,h,f,p,m,g,v,y,k,D,te,P,i,G,X,J,H,r,z,le,function(O){e(12,te=O),e(13,P=le(_).createQuery(l,O)),e(33,W=!1),o("updateQueryByWizard",{queryOptions:te,query:P,isManual:W})},function(O){e(13,P=O.target.value),e(33,W=!0),o("handleChangeQuery",{query:P,isManual:W})},function(){try{o("handleTransform",{query:P});var O=le(_).executeQuery(i,P,p);L([{op:"replace",path:an(u),value:O}]),z()}catch(I){console.error(I),e(18,H={text:""}),e(17,J=I.toString())}},function(){e(15,G=!G),e(32,Zu.showWizard=G,Zu)},function(){e(16,X=!X),e(32,Zu.showOriginal=X,Zu)},function(O){o("handleChangeQueryLanguage",O),e(0,_=O),w(O);var I=le(_);e(13,P=I.createQuery(l,te)),e(33,W=!1)},a,l,w,L,Zu,W]}var tet=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,eet,QZe,Ti,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},WZe,[-1,-1]),r}return Se(e)}(),wp={};function net(t){di(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function _ue(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new rg({props:c}),Hi.push(function(){return Uu(o,"value",l)}),{c:function(){n=ve("tr"),(e=ve("th")).textContent="Property",i=tt(),r=ve("td"),ft(o.$$.fragment),j(e,"class","svelte-1y818v2"),j(r,"class","svelte-1y818v2")},m:function(u,d){Pe(u,n,d),ue(n,e),ue(n,i),ue(n,r),dt(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],Hu(function(){return s=!1})),o.$set(h)},i:function(u){a||(K(o.$$.fragment,u),a=!0)},o:function(u){ae(o.$$.fragment,u),a=!1},d:function(u){u&&Fe(n),ht(o)}}}function bue(t){var n,e;return{c:function(){n=ve("div"),e=tn(t[5]),j(n,"class","jse-error svelte-1y818v2")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:function(i,r){32&r&&Wn(e,i[5])},d:function(i){i&&Fe(n)}}}function iet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te,P,W,J;e=new KP({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&_ue(t);function le(I){t[15](I)}var E={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(E.value=t[2]),k=new rg({props:E}),Hi.push(function(){return Uu(k,"value",le)});var O=t[5]&&bue(t);return{c:function(){n=ve("div"),ft(e.$$.fragment),i=tt(),r=ve("div"),o=ve("table"),(s=ve("colgroup")).innerHTML=' \n ',a=tt(),l=ve("tbody"),c=ve("tr"),(u=ve("th")).textContent="Path",d=tt(),h=ve("td"),f=ve("input"),m=tt(),H&&H.c(),g=tt(),v=ve("tr"),(y=ve("th")).textContent="Direction",_=tt(),w=ve("td"),ft(k.$$.fragment),L=tt(),z=ve("div"),O&&O.c(),R=tt(),U=ve("div"),G=ve("button"),X=tn("Sort"),j(u,"class","svelte-1y818v2"),j(f,"class","jse-path svelte-1y818v2"),j(f,"type","text"),f.readOnly=!0,j(f,"title","Selected path"),f.value=p=Ui(t[0])?"(whole document)":nu(Wl(t[0])),j(h,"class","svelte-1y818v2"),j(y,"class","svelte-1y818v2"),j(w,"class","svelte-1y818v2"),j(o,"class","svelte-1y818v2"),j(z,"class","jse-space svelte-1y818v2"),j(G,"type","button"),j(G,"class","jse-primary svelte-1y818v2"),G.disabled=te=!!t[4]&&!t[1],j(U,"class","jse-actions svelte-1y818v2"),j(r,"class","jse-modal-contents svelte-1y818v2"),j(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(I,q){Pe(I,n,q),dt(e,n,null),ue(n,i),ue(n,r),ue(r,o),ue(o,s),ue(o,a),ue(o,l),ue(l,c),ue(c,u),ue(c,d),ue(c,h),ue(h,f),ue(l,m),H&&H.m(l,null),ue(l,g),ue(l,v),ue(v,y),ue(v,_),ue(v,w),dt(k,w,null),ue(r,L),ue(r,z),O&&O.m(z,null),ue(r,R),ue(r,U),ue(U,G),ue(G,X),P=!0,W||(J=[It(G,"click",t[8]),pa(ret.call(null,G)),pa(Ak.call(null,n,t[6]))],W=!0)},p:function(I,q){var V=Un(q,1)[0],re={};16&V&&(re.title=I[4]?"Sort array items":"Sort object keys"),e.$set(re),(!P||1&V&&p!==(p=Ui(I[0])?"(whole document)":nu(Wl(I[0])))&&f.value!==p)&&(f.value=p),I[4]&&(I[3].length>1||void 0===I[1])?H?(H.p(I,V),26&V&&K(H,1)):((H=_ue(I)).c(),K(H,1),H.m(l,g)):H&&(Rt(),ae(H,1,1,function(){H=null}),Lt());var de={};!D&&4&V&&(D=!0,de.value=I[2],Hu(function(){return D=!1})),k.$set(de),I[5]?O?O.p(I,V):((O=bue(I)).c(),O.m(z,null)):O&&(O.d(1),O=null),(!P||18&V&&te!==(te=!!I[4]&&!I[1]))&&(G.disabled=te)},i:function(I){P||(K(e.$$.fragment,I),K(H),K(k.$$.fragment,I),P=!0)},o:function(I){ae(e.$$.fragment,I),ae(H),ae(k.$$.fragment,I),P=!1},d:function(I){I&&Fe(n),ht(e),H&&H.d(),ht(k),O&&O.d(),W=!1,so(J)}}}function ret(t){t.focus()}function oet(t,n,e){var i,r,o,s=ga("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=ma("simple-modal").close,h="".concat(a,":").concat(an(c)),f=Sn(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=wp[h]&&wp[h].selectedProperty||void 0,v=wp[h]&&wp[h].selectedDirection||p,y=void 0;return t.$$set=function(_){"id"in _&&e(9,a=_.id),"json"in _&&e(10,l=_.json),"rootPath"in _&&e(0,c=_.rootPath),"onSort"in _&&e(11,u=_.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?dP(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(ob):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,wp[h]={selectedProperty:g,selectedDirection:v},wp),s("store state in memory",h,wp[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var _,w;e(5,y=void 0);var k=null===(_=g)||void 0===_?void 0:_.value,D=null===(w=v)||void 0===w?void 0:w.value,L=Uce(l,c,k,D);u({operations:L,rootPath:c,itemPath:k,direction:D}),d()}catch(z){e(5,y=z.toString())}},a,l,u,wp,r,function(_){e(1,g=_),e(3,o),e(13,r),e(4,i)},function(_){e(2,v=_)}]}var set=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,oet,iet,Ti,{id:9,json:10,rootPath:0,onSort:11},net),r}return Se(e)}();function hh(){}function Ik(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function aet(t){var n,e;return n=new Ek({props:{items:t[0]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function cet(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,_=n.canTransform,w=n.onRenderMenu;return t.$$set=function(k){"readOnly"in k&&e(1,s=k.readOnly),"onFormat"in k&&e(2,a=k.onFormat),"onCompact"in k&&e(3,l=k.onCompact),"onSort"in k&&e(4,c=k.onSort),"onTransform"in k&&e(5,u=k.onTransform),"onToggleSearch"in k&&e(6,d=k.onToggleSearch),"onUndo"in k&&e(7,h=k.onUndo),"onRedo"in k&&e(8,f=k.onRedo),"canUndo"in k&&e(9,p=k.canUndo),"canRedo"in k&&e(10,m=k.canRedo),"canFormat"in k&&e(11,g=k.canFormat),"canCompact"in k&&e(12,v=k.canCompact),"canSort"in k&&e(13,y=k.canSort),"canTransform"in k&&e(14,_=k.canTransform),"onRenderMenu"in k&&e(15,w=k.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:ij,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:VQe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:vk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:pk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!_},{type:"button",icon:$P,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:LP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:RP,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=w(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,r]}var uet=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,cet,aet,Ti,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Se(e)}(),ao=function(){function t(){Ce(this,t)}return Se(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),Nk.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),Nk.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new Cb(this),o=new Cb(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new Cb(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new wue(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Cue(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new nd(n):Nk.from(nd.split(n,[])):t.empty}}]),t}(),nd=function(t){xt(e,ao);var n=wt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function det(t){var n,e=-1,i=Re(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return Ce(this,e),(r=n.call(this)).text=i,r.length=o,r}return Se(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new het(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(xue(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=Fk(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return hr(Wi(e.prototype),"replace",this).call(this,i,r,o);var s=Fk(this.text,Fk(o.text,xue(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):Nk.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=Re(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),Nk=function(t){xt(e,ao);var n=wt(e);function e(i,r){var o;Ce(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=Re(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Se(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return hr(Wi(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return hr(Wi(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Un(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(R,U){return R+U.length+1},-1),s=0,a=Re(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(R){a.e(R)}finally{a.f()}if(s<32){var c,u=[],d=Re(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(R){d.e(R)}finally{d.f()}return new nd(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,_=[];function w(R){var U;if(R.lines>p&&R instanceof e){var G,X=Re(R.children);try{for(X.s();!(G=X.n()).done;)w(G.value)}catch(te){X.e(te)}finally{X.f()}}else R.lines>m&&(v>m||!v)?(k(),g.push(R)):R instanceof nd&&v&&(U=_[_.length-1])instanceof nd&&R.lines+U.lines<=32?(v+=R.lines,y+=R.length+1,_[_.length-1]=new nd(U.text.concat(R.text),U.length+1+R.length)):(v+R.lines>f&&k(),v+=R.lines,y+=R.length+1,_.push(R))}function k(){0!=v&&(g.push(1==_.length?_[0]:e.from(_,y)),y=-1,v=_.length=0)}var D,L=Re(i);try{for(L.s();!(D=L.n()).done;)w(D.value)}catch(R){L.e(R)}finally{L.f()}return k(),1==g.length?g[0]:new e(g,o)}}]),e}();function Fk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;Ce(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof nd?n.text.length:n.children.length)<<1]}return Se(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof nd?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof nd){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof nd?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),wue=function(){function t(n,e,i){Ce(this,t),this.value="",this.done=!1,this.cursor=new Cb(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Se(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),Cue=function(){function t(n){Ce(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Se(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(ao.prototype[Symbol.iterator]=function(){return this.iter()},Cb.prototype[Symbol.iterator]=wue.prototype[Symbol.iterator]=Cue.prototype[Symbol.iterator]=function(){return this});for(var het=function(){function t(n,e,i,r){Ce(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Se(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),H0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),Pk=1;Pkt)return H0[n-1]<=t;return!1}function Sue(t){return t>=127462&&t<=127487}function Dl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?pet:kue)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function kue(t,n,e){if(n==t.length)return n;n&&Due(t.charCodeAt(n))&&Tue(t.charCodeAt(n-1))&&n--;var i=Pa(t,n);for(n+=Sc(i);n=0&&Sue(Pa(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function pet(t,n,e){for(;n>0;){var i=kue(t,n-2,e);if(i=56320&&t<57344}function Tue(t){return t>=55296&&t<56320}function Pa(t,n){var e=t.charCodeAt(n);if(!Tue(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return Due(i)?i-56320+(e-55296<<10)+65536:e}function fj(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Sc(t){return t<65536?1:2}var pj=/\r\n?|\n/,Tl=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Tl||(Tl={})),U0=function(){function t(n){Ce(this,t),this.sections=n}return Se(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tl.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Tl.Simple&&c>=n&&(i==Tl.TrackDel&&rn||i==Tl.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),id=function(t){xt(e,U0);var n=wt(e);function e(i,r){var o;return Ce(this,e),(o=n.call(this,i)).inserted=r,o}return Se(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return mj(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return gj(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){mj(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return U0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new Sb(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&Cp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var _=y?"string"==typeof y?ao.of(y.split(o||pj)):y:ao.empty,w=_.length;if(m==v&&0==w)return;ml&&ol(s,m-l,-1),ol(s,v-m,w),Cp(a,s,_),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function Cp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function gj(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new Sb(t),a=new Sb(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);ol(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?id.createSet(r,o):U0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new Sb(t),s=new Sb(n),a=!1;;){if(o.done&&s.done)return r?id.createSet(i,r):U0.create(i);if(0==o.ins)ol(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;ol(i,l,u,a),r&&u&&Cp(r,i,s.text)}else-1==s.ins?(ol(i,o.off?0:o.len,l,a),r&&Cp(r,i,o.textBit(l))):(ol(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&Cp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else ol(i,0,s.ins,a),r&&Cp(r,i,s.text),s.next()}}var Sb=function(){function t(n){Ce(this,t),this.set=n,this.i=0,this.next()}return Se(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?ao.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?ao.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),jk=function(){function t(n,e,i){Ce(this,t),this.from=n,this.to=e,this.flags=i}return Se(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return Qt.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return Qt.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Qt.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),Qt=function(){function t(n,e){Ce(this,t),this.ranges=n,this.mainIndex=e}return Se(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return jk.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return jk.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function Aue(t,n){var e,i=Re(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var vj=0,Kn=function(){function t(n,e,i,r,o){Ce(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=vj++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Se(t,[{key:"of",value:function(n){return new Rk([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rk(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rk(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:yj),!!n.static,n.enables)}}]),t}();function yj(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var Rk=function(){function t(n,e,i,r){Ce(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=vj++}return Se(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=Re(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||_j(m,h)){var v=o(m);if(c?!Mue(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var _=Lk(g,y);if(r.dependencies.every(function(w){return w instanceof Kn?g.facet(w)===m.facet(w):!(w instanceof ja)||g.field(w,!1)==m.field(w,!1)})||(c?Mue(v=o(m),_,s):s(v=o(m),_)))return m.values[l]=_,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function Mue(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,Oue.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(vj++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function kb(t){return function(n){return new Iue(n,t)}}var z0={highest:kb(0),high:kb(1),default:kb(2),low:kb(3),lowest:kb(4)},Iue=Se(function t(n,e){Ce(this,t),this.inner=n,this.prec=e}),Sp=function(){function t(){Ce(this,t)}return Se(t,[{key:"of",value:function(n){return new xj(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),xj=Se(function t(n,e){Ce(this,t),this.compartment=n,this.inner=e}),Nue=function(){function t(n,e,i,r,o,s){for(Ce(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,w,k,D,L,z,o=[],s=Object.create(null),a=new Map,l=Re((w=n,k=e,D=a,L=[[],[],[],[],[]],z=new Map,function R(U,G){var X=z.get(U);if(null!=X){if(X<=G)return;var te=L[X].indexOf(U);te>-1&&L[X].splice(te,1),U instanceof xj&&D.delete(U.compartment)}if(z.set(U,G),Array.isArray(U)){var P,W=Re(U);try{for(W.s();!(P=W.n()).done;)R(P.value,G)}catch(le){W.e(le)}finally{W.f()}}else if(U instanceof xj){if(D.has(U.compartment))throw new RangeError("Duplicate use of compartment in extensions");var J=k.get(U.compartment)||U.inner;D.set(U.compartment,J),R(J,G)}else if(U instanceof Iue)R(U.inner,U.prec);else if(U instanceof ja)L[G].push(U),U.provides&&R(U.provides,G);else if(U instanceof Rk)L[G].push(U),U.facet.extensions&&R(U.facet.extensions,2);else{var H=U.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(U,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));R(H,G)}}(w,2),L.reduce(function(U,G){return U.concat(G)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof ja?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(w){l.e(w)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var w=m[p];u[w.id]=h.length<<1,h.push(function(k){return w.slot(k)})},p=0,m=o;p>1;function O(I){for(var q=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function Lk(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var Fue=Kn.define(),Pue=Kn.define({combine:function(t){return t.some(function(n){return n})},static:!0}),jue=Kn.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),Rue=Kn.define(),Lue=Kn.define(),$ue=Kn.define(),Bue=Kn.define({combine:function(t){return!!t.length&&t[0]}}),kp=function(){function t(n,e){Ce(this,t),this.type=n,this.value=e}return Se(t,null,[{key:"define",value:function(){return new yet}}]),t}(),yet=function(){function t(){Ce(this,t)}return Se(t,[{key:"of",value:function(n){return new kp(this,n)}}]),t}(),_et=function(){function t(n){Ce(this,t),this.map=n}return Se(t,[{key:"of",value:function(n){return new ur(this,n)}}]),t}(),ur=function(){function t(n,e){Ce(this,t),this.type=n,this.value=e}return Se(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new _et((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=Re(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();ur.reconfigure=ur.define(),ur.appendConfig=ur.define();var ql=function(){function t(n,e,i,r,o,s){Ce(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&Aue(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Se(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=Re(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function bet(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=Vue(u,wj(l,h,a.changes.newLength),!0))}return u==a?a:ql.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=Re(c.facet(Rue));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:bet(u,h))}}catch(_){d.e(_)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=id.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=ql.create(c,f,a.selection&&a.selection.map(p),ur.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Lue),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof ql?y:Array.isArray(y)&&1==y.length&&y[0]instanceof ql?y[0]:Hue(c,G0(y),!1)}return a}(s):s)}ql.time=kp.define(),ql.userEvent=kp.define(),ql.addToHistory=kp.define(),ql.remote=kp.define();var xet=[];function G0(t){return null==t?xet:Array.isArray(t)?t:[t]}var Cj,is=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(is||(is={})),wet=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{Cj=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Eo=function(){function t(n,e,i,r,o,s){Ce(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return Db(this,i),Lk(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof id?n:id.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return ao.of(n.split(this.facet(t.lineSeparator)||pj))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(Db(this,e),Lk(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof ja&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Bue)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=Re(this.facet(Fue));try{for(s.s();!(i=s.n()).done;){var a,c=Re((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function Cet(t){return function(n){if(!/\S/.test(n))return is.Space;if(function(i){if(Cj)return Cj.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||wet.test(o)))return!0}return!1}(n))return is.Word;for(var e=0;e-1)return is.Word;return is.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=Dl(i,a,!1);if(s(i.slice(c,a))!=is.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:Qt.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Nue.resolve(n.extensions||[],new Map),i=n.doc instanceof ao?n.doc:ao.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||pj)),r=n.selection?n.selection instanceof Qt?n.selection:Qt.single(n.selection.anchor,n.selection.head):Qt.single(0);return Aue(r,i.length),e.staticFacet(Pue)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function au(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=Re(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();sg.prototype.startSide=sg.prototype.endSide=0,sg.prototype.point=!1,sg.prototype.mapMode=Tl.TrackDel;var Sj=function(){function t(n,e,i){Ce(this,t),this.from=n,this.to=e,this.value=i}return Se(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function kj(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var ket=function(){function t(n,e,i,r){Ce(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),Vo=function(){function t(n,e,i,r){Ce(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=Re(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(kj)),this.isEmpty)return i.length?t.of(i):this;for(var d=new zue(this,null,-1).goto(0),h=0,f=[],p=new ag;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Dj.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Dj.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Uue(s,a,i),c=new Tb(s,l,o),u=new Tb(a,l,o);i.iterGaps(function(d,h,f){return Gue(c,d,u,h,f,r)}),i.empty&&0==i.length&&Gue(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Uue(o,s),l=new Tb(o,a,0).goto(i),c=new Tb(s,a,0).goto(i);;){if(l.to!=c.to||!Ej(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new Tb(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new ag,o=Re(n instanceof Sj?[n]:i?function Det(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(kj);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();Vo.empty=new Vo([],[],null,-1),Vo.empty.nextLayer=Vo.empty;var ag=function(){function t(){Ce(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Se(t,[{key:"finishChunk",value:function(n){this.chunks.push(new ket(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(Vo.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=Vo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Uue(t,n,e){var i,r=new Map,o=Re(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;Ce(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Se(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=Re(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)Tj(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=Re(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)Tj(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),Tj(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new zue(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function Tj(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var Tb=function(){function t(n,e,i){Ce(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Dj.from(n,e,i)}return Se(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){$k(this.active,n),$k(this.activeTo,n),$k(this.activeRank,n),this.minActive=Wue(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&$k(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Gue(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&Ej(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!Ej(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function Ej(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function Wue(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=Dl(t,r)}return!0===i?-1:t.length}for(var que=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),Mj=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Yue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Dp=function(){function t(n,e){Ce(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==mn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Se(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Yue[que]||1;return Yue[que]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[Mj]||new Tet(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),Vk=null,Tet=function(){function t(n){if(Ce(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(Vk)return n.adoptedStyleSheets=[Vk.sheet].concat(n.adoptedStyleSheets),n[Mj]=Vk;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),Vk=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[Mj]=this}return Se(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Xue=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),Eet=typeof navigator<"u"&&/Mac/.test(navigator.platform),Aet=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Met=Eet||Xue&&+Xue[1]<57,Ra=0;Ra<10;Ra++)Tp[48+Ra]=Tp[96+Ra]=String(Ra);for(Ra=1;Ra<=24;Ra++)Tp[Ra+111]="F"+Ra;for(Ra=65;Ra<=90;Ra++)Tp[Ra]=String.fromCharCode(Ra+32),Ab[Ra]=String.fromCharCode(Ra);for(var Oj in Tp)Ab.hasOwnProperty(Oj)||(Ab[Oj]=Tp[Oj]);function Hk(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function W0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function Uk(t,n){if(!n.anchorNode)return!1;try{return W0(t,n.anchorNode)}catch{return!1}}function Mb(t){return 3==t.nodeType?Y0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function zk(t,n,e,i){return!!e&&(Jue(t,n,e,i,-1)||Jue(t,n,e,i,1))}function Gk(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function Jue(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:Ob(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=Gk(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?Ob(t):0}}}function Ob(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var Kue={left:0,right:0,top:0,bottom:0};function Ij(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function Oet(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var Que,Iet=function(){function t(){Ce(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Se(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),q0=null;function Zue(t){if(t.setActive)return t.setActive();if(q0)return t.focus(q0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==q0?{get preventScroll(){return q0={preventScroll:!0},!0}}:void 0),!q0){q0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=Que||(Que=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function X0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function ede(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var kc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Ce(this,t),this.node=n,this.offset=e,this.precise=i}return Se(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,Gk(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,Gk(n)+1,e)}}]),t}(),Nj=[],ys=function(){function t(){Ce(this,t),this.parent=null,this.dom=null,this.dirty=2}return Se(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=Re(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=Re(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=tde(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=tde(i)}else if(1&this.dirty){var u,d=Re(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==Ob(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nj;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function tde(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}ys.prototype.breakAfter=0;var nde=function(){function t(n,e,i){Ce(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Se(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function ide(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),Qn={mac:cde||/Mac/.test(Dc.platform),windows:/Win/.test(Dc.platform),linux:/Linux|X11/.test(Dc.platform),ie:Wk,ie_version:ode?Fj.documentMode||6:jj?+jj[1]:Pj?+Pj[1]:0,gecko:sde,gecko_version:sde?+(/Firefox\/(\d+)/.exec(Dc.userAgent)||[0,0])[1]:0,chrome:!!Rj,chrome_version:Rj?+Rj[1]:0,ios:cde,android:/Android\b/.test(Dc.userAgent),webkit:ade,safari:lde,webkit_version:ade?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=Fj.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},Ib=function(t){xt(e,ys);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).text=i,r}return Se(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new kc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return Lj(this.dom,i,r)}}]),e}(),lg=function(t){xt(e,ys);var n=wt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Ce(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=Re(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(En(r))}catch(u){l.e(u)}finally{l.f()}return r}return Se(e,[{key:"setAttrs",value:function(i){if(ede(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),hr(Wi(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return hde(this,i)}},{key:"coordsAt",value:function(i,r){return pde(this,i,r)}}]),e}();function Lj(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?Qn.chrome||Qn.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return Qn.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?Ij(l,s<0):l||null}var $j=function(t){xt(e,ys);var n=wt(e);function e(i,r,o){var s;return Ce(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Se(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:Ij(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){hr(Wi(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),ude=function(t){xt(e,$j);var n=wt(e);function e(){return Ce(this,e),n.apply(this,arguments)}return Se(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?Bj(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new kc(s,Math.min(a,s.nodeValue.length))}):new kc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?dde(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?Bj(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return Lj(a,l,c)}):Lj(a,i,r)}},{key:"destroy",value:function(){var i;hr(Wi(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function Bj(t,n,e,i,r,o){if(e instanceof lg){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=ys.get(s);if(!a)return o(t,n);var l=W0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return ao.empty}}]),e}();function hde(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof lg&&r.length&&(i=r[r.length-1])instanceof lg&&i.mark.eq(n.mark)?fde(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function pde(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new mde(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new Nb(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=gde(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new Nb(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new Gj(i)}},{key:"set",value:function(i){return Vo.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();mi.none=Vo.empty;var mde=function(t){xt(e,mi);var n=wt(e);function e(i){var r;Ce(this,e);var o=gde(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Se(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&Uj(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return hr(Wi(e.prototype),"range",this).call(this,i,r)}}]),e}();mde.prototype.point=!1;var Gj=function(t){xt(e,mi);var n=wt(e);function e(i){return Ce(this,e),n.call(this,-2e8,-2e8,null,i)}return Se(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&Uj(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return hr(Wi(e.prototype),"range",this).call(this,i,r)}}]),e}();Gj.prototype.mapMode=Tl.TrackBefore,Gj.prototype.point=!0;var Nb=function(t){xt(e,mi);var n=wt(e);function e(i,r,o,s,a,l){var c;return Ce(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Tl.TrackBefore:Tl.TrackAfter:Tl.TrackDel,c}return Se(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return hr(Wi(e.prototype),"range",this).call(this,i,r)}}]),e}();function gde(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function Wj(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}Nb.prototype.point=!0;var rd=function(t){xt(e,ys);var n=wt(e);function e(){var i;return Ce(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),rde(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){Uj(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){fde(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=Hj(r,this.attrs||{})),o&&(this.attrs=Hj({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return hde(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(ede(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(zj(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),hr(Wi(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&ys.get(s)instanceof lg;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=ys.get(s))||void 0===o?void 0:o.isEditable)||Qn.ios&&this.children.some(function(l){return l instanceof Ib})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof Ib)||/[^ -~]/.test(s.text))return null;var a=Mb(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return pde(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return go.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),qj=function(t){xt(e,ys);var n=wt(e);function e(i,r,o){var s;return Ce(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(qk(new Vj(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(qk(new Ib(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof Nb){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof Nb)if(i.block){var l=i.type;l!=go.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new qj(i.widget||new vde("div"),a,l))}else{var c=$j.create(i.widget||new vde("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(qk(new Vj(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(qk(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=Vo.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function qk(t,n){var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)t=new lg(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var vde=function(t){xt(e,Ep);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).tag=i,r}return Se(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),yde=Kn.define(),_de=Kn.define(),bde=Kn.define(),xde=Kn.define(),Yj=Kn.define(),wde=Kn.define(),Cde=Kn.define(),Sde=Kn.define({combine:function(t){return t.some(function(n){return n})}}),kde=Kn.define({combine:function(t){return t.some(function(n){return n})}}),Dde=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;Ce(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Se(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),Tde=ur.define({map:function(t,n){return t.map(n)}});function Tc(t,n,e){var i=t.facet(xde);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var Yk=Kn.define({combine:function(t){return!t.length||t[0]}}),Pet=0,Fb=Kn.define(),ya=function(){function t(n,e,i,r){Ce(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Se(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(Pet++,n,i.eventHandlers,function(a){var l=[Fb.of(a)];return s&&l.push(Pb.of(function(c){var u=c.plugin(a);return u?s(u):mi.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),Xj=function(){function t(n){Ce(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Se(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Tc(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){Tc(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){Tc(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),Ede=Kn.define(),Jj=Kn.define(),Pb=Kn.define(),Ade=Kn.define(),Mde=Kn.define(),jb=Kn.define(),J0=function(){function t(n,e,i,r){Ce(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Se(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),Ode=function(){function t(n,e,i){Ce(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=id.empty(this.startState.doc.length);var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new J0(l,c,u,d))}),this.changedRanges=a}return Se(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),rs=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(rs||(rs={})),Kj=rs.LTR,jet=rs.RTL;function Ide(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),os=[];function Rde(t){return[new K0(0,t,0)]}var Lde="";function Vet(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=K0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=Dl(t.text,s,u);if(Lde=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return Qt.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=Re(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=ys.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Bde(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Vde=Se(function t(n,e){Ce(this,t),this.node=n,this.offset=e,this.pos=-1}),Hde=function(t){xt(e,ys);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).view=i,r.compositionDeco=mi.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new rd],r.children[0].setParent(En(r)),r.updateDeco(),r.updateInner([new J0(0,0,0,i.state.doc.length)],0),r}return Se(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=mi.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=zde(a);if(!c)return mi.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new $de([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=Fet.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,_=v.off,w=o.findPos(l,-1);ide(this,w.i,w.off,y,_,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(Qn.gecko&&a.empty&&function Het(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new kc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&zk(l.node,l.offset,d.anchorNode,d.anchorOffset)&&zk(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){Qn.android&&Qn.chrome&&i.dom.contains(d.focusNode)&&function Wet(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=Hk(i.view.root);if(h)if(a.empty){if(Qn.gecko){var f=function zet(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new kc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new kc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=Hk(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=rd.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||Uk(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=ys.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=go.WidgetBefore&&a.type!=go.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==go.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==rs.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?Mb(g):[];if(v.length){var y=v[v.length-1],_=u?y.right-m.left:m.right-y.left;_>c&&(c=_,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?rs.RTL:rs.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof rd){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=Mb(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new nde(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(mi.replace({widget:new Ude(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return mi.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(Pb).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=Re(this.view.state.facet(Mde).map(function(w){return w(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(w){f.e(w)}finally{f.f()}!function(w,k,D,L,z,R,U,G){for(var X=w.ownerDocument,te=X.defaultView||window,P=w;P;)if(1==P.nodeType){var W=void 0,J=P==X.body;if(J)W=Oet(te);else{if(P.scrollHeight<=P.clientHeight&&P.scrollWidth<=P.clientWidth){P=P.assignedSlot||P.parentNode;continue}var H=P.getBoundingClientRect();W={left:H.left,right:H.left+P.clientWidth,top:H.top,bottom:H.top+P.clientHeight}}var le=0,E=0;if("nearest"==z)k.top0&&k.bottom>W.bottom+E&&(E=k.bottom-W.bottom+E+U)):k.bottom>W.bottom&&(E=k.bottom-W.bottom+U,D<0&&k.top-E0&&k.right>W.right+le&&(le=k.right-W.right+le+R)):k.right>W.right&&(le=k.right-W.right+R,D<0&&k.left0&&e<=0)n=Ob(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var Get=function(){function t(){Ce(this,t),this.changes=[]}return Se(t,[{key:"compareRange",value:function(n,e){Wj(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){Wj(n,e,this.changes)}}]),t}();function qet(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function Yet(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function e4(t,n){return t.topn.top+1}function Wde(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function t4(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=Mb(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&e4(c,m)?c=qde(c,m.bottom):u&&e4(u,m)&&(u=Wde(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var _=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Yde(i,_,e):d&&"false"!=i.contentEditable?t4(i,_,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Yde(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((Qn.chrome||Qn.gecko)&&Y0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Xde(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=go.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:Jde(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,_=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var w=m.caretPositionFromPoint(c,u);w&&(y=w.offsetNode,_=w.offset)}else if(m.caretRangeFromPoint){var k=m.caretRangeFromPoint(c,u);k&&(_=k.startOffset,(!t.contentDOM.contains(y=k.startContainer)||Qn.safari&&function Xet(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return Y0(t,i-1,i).getBoundingClientRect().left>e}(y,_,c)||Qn.chrome&&function Jet(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():Y0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,_,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var D=rd.find(t.docView,p);if(!D)return d>r.top+r.height/2?r.to:r.from;var L=t4(D.dom,c,u);y=L.node,_=L.offset}var z=t.docView.nearest(y);if(!z)return null;if(z.isWidget){var R=z.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+Aj(s,o,t.state.tabSize)}function Kde(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=Vet(r,o,s,a,e),u=Lde;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=Qt.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function n4(t,n,e){for(var i=t.state.facet(Ade).map(function(a){return a(t)});;){var r,o=!1,s=Re(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?Qt.cursor(a,1):Qt.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var Qet=function(){function t(n){var e=this;Ce(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=ia[s];n.contentDOM.addEventListener(s,function(l){ehe(n,l)&&i(a,l)},i4[s]),e.registeredEvents.push(s)};for(var o in ia)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(ia.mousedown,s)}),Qn.chrome&&102==Qn.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,Qn.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Se(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=Re(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){ehe(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=Re(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){Tc(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=Re(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){Tc(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,X0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(Qn.safari&&!Qn.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),Qde=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Zet="dthko",Zde=[16,17,18,20,91,92,224,225];function Xk(t){return.7*t+8}var ett=function(){function t(n,e,i,r){Ce(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Eo.allowMultipleSelections)&&(a=e,(l=n.state.facet(yde)).length?l[0](a):Qn.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(_de);return l.length?l[0](a):Qn.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=Hk(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=uhe(e))&&null}return Se(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-Xk(o.left-n.clientX):n.clientX>=o.right&&(i=Xk(n.clientX-o.right)),n.clientY<=o.top?r=-Xk(o.top-n.clientY):n.clientY>=o.bottom&&(r=Xk(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function ehe(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=ys.get(i))&&e.ignoreEvent(n))return!1;return!0}var ia=Object.create(null),i4=Object.create(null),the=Qn.ie&&Qn.ie_version<15||Qn.ios&&Qn.webkit_version<604;function nhe(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=r4&&i.selection.ranges.every(function(c){return c.empty})&&r4==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:Qt.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:Qt.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function ihe(t,n,e,i){if(1==i)return Qt.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return Qt.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=Dl(h.text,f,!1):m=Dl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=Dl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=Re(t.state.facet(bde));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=she(s=t,a=n),c=uhe(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=she(s,d),m=ihe(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=ihe(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(_){return _.eq(m)})?function(_,w){for(var k=0;;k++)if(_.ranges[k].eq(w))return Qt.create(_.ranges.slice(0,k).concat(_.ranges.slice(k+1)),_.mainIndex==k?0:_.mainIndex-(_.mainIndex>k?1:0))}(u,m):f?u.addRange(m):Qt.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new ett(t,n,i,o)),o&&t.observer.ignore(function(){return Zue(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var rhe=function(t,n){return t>=n.top&&t<=n.bottom},ohe=function(t,n,e){return rhe(n,e)&&t>=e.left&&t<=e.right};function ttt(t,n,e,i){var r=rd.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&ohe(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&ohe(e,i,a)?1:s&&rhe(i,s)?-1:1}function she(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:ttt(t,e,n.clientX,n.clientY)}}var ntt=Qn.ie&&Qn.ie_version<=11,ahe=null,lhe=0,che=0;function uhe(t){if(!ntt)return t.detail;var n=ahe,e=che;return ahe=t,che=Date.now(),lhe=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(lhe+1)%3:1}function dhe(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}ia.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},ia.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&dhe(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(_){g.e(_)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){r4=o?i:null;var s=the?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var hhe=kp.define();function fhe(t,n){var e,i=[],r=Re(t.facet(Cde));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:hhe.of(!0)}):null}function phe(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=fhe(t.state,n);e?t.dispatch(e):t.update([])}},10)}ia.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),phe(t)},ia.blur=function(t){t.observer.clearSelectionRange(),phe(t)},ia.compositionstart=ia.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},ia.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,Qn.chrome&&Qn.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},ia.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},ia.beforeinput=function(t,n){var e,i;if(Qn.chrome&&Qn.android&&(i=Qde.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var mhe=["pre-wrap","normal","pre-line","break-spaces"],itt=function(){function t(n){Ce(this,t),this.lineWrapping=n,this.doc=ao.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Se(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return mhe.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;Ce(this,t),this.length=n,this.height=e,this.flags=i}return Se(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Ho.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Ho.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),ph=function(t){xt(e,ghe);var n=wt(e);function e(i,r){var o;return Ce(this,e),(o=n.call(this,i,r,go.Text)).collapsed=0,o.widgetHeight=0,o}return Se(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof Q0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof Q0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):od.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),Q0=function(t){xt(e,od);var n=wt(e);function e(i){return Ce(this,e),n.call(this,i,0)}return Se(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new cg(f.from,f.length,m,p,go.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new cg(v.from,v.length,o+u*g,u,go.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Ho.ByHeight)return this.blockAt(i,o,s,a);if(r==Ho.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new cg(c,l.to-c,0,0,go.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new cg(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,go.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new cg(m.from,m.length,p,v,go.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return od.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new ph(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=od.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),ott=function(t){xt(e,od);var n=wt(e);function e(i,r,o){var s;return Ce(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Se(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Ho.ByPosNoHeight?Ho.ByPosNoHeight:Ho.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Ho.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=Re(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&vhe(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?od.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function vhe(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof Q0&&(i=t[n+1])instanceof Q0&&t.splice(n-1,3,new Q0(e.length+1+i.length))}var stt=function(){function t(n,e){Ce(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Se(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof ph?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new ph(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new ph(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new Q0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof ph)return n;var e=new ph(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=go.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=go.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof ph||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function utt(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var o4=function(){function t(n,e,i){Ce(this,t),this.from=n,this.to=e,this.size=i}return Se(t,[{key:"draw",value:function(n){return mi.replace({widget:new dtt(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new Jk(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?_he:new ftt(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:Rb(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(Pb).filter(function(c){return"function"!=typeof c});var o=J0.extendWithRanges(n.changedRanges,function att(t,n,e){var i=new ltt;return Vo.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:id.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(kde)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?rs.RTL:rs.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?utt:ctt)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var _=n.docView.measureTextSize(),w=_.lineHeight,k=_.charWidth;(s=w>0&&r.refresh(o,w,k,v/k,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var D,L=Re(this.viewports);try{for(L.s();!(D=L.n()).done;){var z=D.value,R=z.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(z);this.heightMap=(s?od.empty().applyChanges(this.stateDeco,ao.empty,this.heightOracle,[new J0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new rtt(z.from,R))}}catch(G){L.e(G)}finally{L.f()}r.heightChanged&&(c|=2)}var U=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return U&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||U)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new Jk(r.lineAt(this.visibleTop-1e3*i,Ho.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Ho.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Ho.ByPos,o,0,0);l=new Jk(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Ho.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Ho.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=rs.LTR&&!r)return[];var l,c=[],u=function X(te,P,W,J){if(!(P-tete&&I=W.from&&re.to<=W.to&&Math.abs(re.from-te)de})});if(!q){if(P=P})){var V=e.moveToLineBoundary(Qt.cursor(P),!1,!0).head;V>te&&(P=V)}q=new o4(te,P,i.gapSize(W,te,P,J))}c.push(q)}},d=Re(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||Rb(this.heightMap.lineAt(n,Ho.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return Rb(this.heightMap.lineAt(this.scaler.fromDOM(n),Ho.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return Rb(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),Jk=Se(function t(n,e){Ce(this,t),this.from=n,this.to=e});function htt(t,n,e){var i=[],r=t,o=0;return Vo.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function Qk(t,n){var e,i=0,r=Re(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var _he={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},ftt=function(){function t(n,e,i){Ce(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Ho.ByPos,n,0,0).top,p=e.lineAt(h,Ho.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=Re(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Se(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),a4=Dp.newName(),bhe=Dp.newName(),xhe=Dp.newName(),whe={"&light":"."+bhe,"&dark":"."+xhe};function l4(t,n,e){return new Dp(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var ptt=l4("."+a4,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},whe),mtt=Se(function t(n,e,i,r){Ce(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,_=m.focusOffset;return g&&(p.push(new Vde(g,v)),y==g&&_==v||p.push(new Vde(y,_))),p}(n),c=new $de(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?Qt.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!W0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!W0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=Qt.single(h,d)}});function Che(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||Qn.android&&n.text.length0&&J>0&&R.charCodeAt(W-1)==U.charCodeAt(J-1);)W--,J--;return"end"==X&&(G-=W+Math.max(0,P-Math.min(W,J))-P),W=W?P-G:0)+(J-W),W=P):J=J?P-G:0)+(W-J),J=P),{from:P,toA:W,toB:J}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(Qn.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:ao.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(Yk)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(Qn.mac||Qn.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=Qt.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:ao.of([" "])}):Qn.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=Qt.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:ao.of([" "])}),e){var d=t.state;if(Qn.ios&&t.inputState.flushIOSKey(t)||Qn.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&X0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&X0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&X0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(wde).some(function(R){return R(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),_=zde(t)||t.state.doc.lineAt(r.head),w=r.to-e.to,k=r.to-r.from;h=d.changeByRange(function(R){if(R.from==r.from&&R.to==r.to)return{changes:g,range:v||R.map(g)};var U=R.to-w,G=U-y.length;if(R.to-R.from!=k||t.state.sliceDoc(G,U)!=y||_&&R.to>=_.from&&R.from<=_.to)return{range:R};var X=d.changes({from:G,to:U,insert:e.insert}),te=R.to-r.to;return{changes:X,range:v?Qt.range(Math.max(0,v.anchor+te),Math.max(0,v.head+te)):R.map(X)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var D="input.type";return t.composing&&(D+=".compose",t.inputState.compositionFirstChange&&(D+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:D}),!0}if(i&&!i.main.eq(r)){var L=!1,z="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(L=!0),z=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:L,userEvent:z}),!0}return!1}var gtt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},c4=Qn.ie&&Qn.ie_version<=11,vtt=function(){function t(n){var e=this;Ce(this,t),this.view=n,this.active=!1,this.selectionRange=new Iet,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(Qn.ie&&Qn.ie_version<=11||Qn.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),c4&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Se(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(Yk)?i.root.activeElement==this.dom:Uk(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(Qn.ie&&Qn.ie_version<=11||Qn.android&&Qn.chrome)&&!i.state.selection.main.empty&&r.focusNode&&zk(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=Qn.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(zk(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||Hk(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=Uk(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=Re(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=Re(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&Uk(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new mtt(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=Che(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=She(e,n.previousSibling||n.target.previousSibling,-1),r=She(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=Re(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function She(t,n,e){for(;n;){var i=ys.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Gn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ce(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function Net(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new yhe(e.state||Eo.create(e)),this.plugins=this.state.facet(Fb).map(function(s){return new Xj(s)});var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new vtt(this),this.inputState=new Qet(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Hde(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Se(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof ql?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=Re(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(R){l.e(R)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(R){return R.annotation(hhe)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=fhe(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Eo.phrases)!=this.state.facet(Eo.phrases))return this.setState(a);(i=Ode.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=Re(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var _=y.state.selection.main;m=new Dde(_.empty?_:Qt.cursor(_.head,_.head>_.anchor?-1:1))}var w,k=Re(y.effects);try{for(k.s();!(w=k.n()).done;){var D=w.value;D.is(Tde)&&(m=D.value)}}catch(R){k.e(R)}finally{k.f()}}}catch(R){v.e(R)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=Dhe.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(jb)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(R){return R.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(Zk)!=i.state.facet(Zk)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var L,z=Re(this.state.facet(Yj));try{for(z.s();!(L=z.n()).done;)(0,L.value)(i)}catch(R){z.e(R)}finally{z.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!Che(e,p)&&f.force&&X0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new yhe(n),this.plugins=n.facet(Fb).map(function(a){return new Xj(a)}),this.pluginMap.clear();var o,s=Re(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Hde(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(Fb),i=n.state.facet(Fb);if(e!=i){var r,o=[],s=Re(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new Xj(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=Re(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=Re(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(R){try{return R.read(n)}catch(U){return Tc(n.state,U),khe}}),g=Ode.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var _=0;_1||k<-1)&&(this.scrollDOM.scrollTop+=k,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var D,L=Re(this.state.facet(Yj));try{for(L.s();!(D=L.n()).done;)(0,D.value)(i)}catch(R){L.e(R)}finally{L.f()}}}}},{key:"themeClasses",get:function(){return a4+" "+(this.state.facet(s4)?xhe:bhe)+" "+this.state.facet(Zk)}},{key:"updateAttrs",value:function(){var n=this,e=The(this,Ede,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Yk)?"true":"false",class:"cm-content",style:"".concat(Qn.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),The(this,Jj,i);var r=this.observer.ignore(function(){var o=zj(n.contentDOM,n.contentAttrs,i),s=zj(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=Re(n);try{for(r.s();!(e=r.n()).done;){var o,s=Re(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(jb),Dp.mount(this.root,this.styleModules.concat(ptt).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==rs.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return Qt.cursor(l,e?-1:1)}var c=rd.find(t.docView,n.head);return Qt.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return n4(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return Qt.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var _=u+(v+y)*c,w=Xde(r,{x:g,y:_},!1,c);if(_h.bottom||(c<0?wl))return Qt.cursor(w,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Xde(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return Ij(i,o[K0.find(o,n-r.from,-1,e)].dir==rs.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(Sde)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>ytt)return Rde(n.length);var e,i=this.textDirectionAt(n.from),r=Re(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==Kj?1:2,d=l==Kj?2:1;if(!a||1==u&&!Bet.test(a))return Rde(c);for(var h=0,f=u,p=u;h=0;te-=3)if(fh[te+1]==-z){var P=fh[te+2],W=2&P?u:4&P?1&P?d:u:0;W&&(os[U]=os[fh[te]]=W),G=te;break}}else{if(189==fh.length)break;fh[G++]=U,fh[G++]=L,fh[G++]=X}else if(2==(R=os[U])||1==R){var J=R==u;X=J?0:1;for(var H=G-3;H>=0;H-=3){var le=fh[H+2];if(2&le)break;if(J)fh[H+2]|=2;else{if(4&le)break;fh[H+2]|=4}}}for(var E=0;EOe;){for(var Le=Xe,rt=2!=os[--Xe];Xe>Oe&&rt==(2!=os[Xe-1]);)Xe--;re.push(new K0(Xe,Le,rt?2:1))}else re.push(new K0(Oe,de,0))}else for(var $=0;$Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){Zue(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=Re(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Tde.of(new Dde("number"==typeof n?Qt.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return ya.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=Dp.newName(),r=[Zk.of(i),jb.of(l4(".".concat(i),n))];return e&&e.dark&&r.push(s4.of(!0)),r}},{key:"baseTheme",value:function(n){return z0.lowest(jb.of(l4("."+a4,n,whe)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&ys.get(i)||ys.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Gn.styleModule=jb,Gn.inputHandler=wde,Gn.focusChangeEffect=Cde,Gn.perLineTextDirection=Sde,Gn.exceptionSink=xde,Gn.updateListener=Yj,Gn.editable=Yk,Gn.mouseSelectionStyle=bde,Gn.dragMovesSelection=_de,Gn.clickAddsSelectionRange=yde,Gn.decorations=Pb,Gn.atomicRanges=Ade,Gn.scrollMargins=Mde,Gn.darkTheme=s4,Gn.contentAttributes=Jj,Gn.editorAttributes=Ede,Gn.lineWrapping=Gn.contentAttributes.of({class:"cm-lineWrapping"}),Gn.announce=ur.define();var ytt=4096,khe={},Dhe=function(){function t(n,e,i,r){Ce(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Se(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:rs.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&Hj(s,e)}return e}var _tt=Qn.mac?"mac":Qn.windows?"win":Qn.linux?"linux":"key";function eD(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var xtt=z0.default(Gn.domEventHandlers({keydown:function(t,n){return Mhe(Ahe(n.state),t,n,"editor")}})),tD=Kn.define({enables:xtt}),Ehe=new WeakMap;function Ahe(t){var n=t.facet(tD),e=Ehe.get(n);return e||Ehe.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_tt,s=Object.create(null),a=Object.create(null),l=function(D,L){var z=a[D];if(null==z)a[D]=L;else if(z!=L)throw new Error("Key binding "+D+" is used both as a regular binding and as a multi-stroke prefix")},c=function(D,L,z,R){for(var U,G,X=s[D]||(s[D]=Object.create(null)),te=L.split(/ (?!$)/).map(function(le){return function btt(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==rs.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=Ohe(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=Nhe(t,i),f=Nhe(t,r),p=h.type==go.Text?h:null,m=f.type==go.Text?f:null;if(t.lineWrapping&&(p&&(p=Ihe(t,i,p)),m&&(m=Ihe(t,r,m))),p&&m&&p.from==m.from)return w(k(e.from,e.to,p));var g=p?k(e.from,null,p):D(h,!1),v=m?k(null,e.to,m):D(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(_(u,g.bottom,d,v.top)):g.bottomW&&le.from=O)break;Oe>E&&te(Math.max(de,E),null==L&&de<=W,Math.min(Oe,O),null==z&&Oe>=J,re.dir)}}catch(ye){V.e(ye)}finally{V.f()}if((E=q.to+1)>=O)break}}}catch(ye){H.e(ye)}finally{H.f()}return 0==X.length&&te(W,null==L,J,null==z,t.textDirection),{top:U,bottom:G,horizontal:X}}function D(L,z){var R=a.top+(z?L.top:L.bottom);return{top:R,bottom:R,horizontal:[]}}}(n,e,i)}}]),t}();function Ohe(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==rs.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function Ihe(t,n,e){var i=Qt.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:go.Text}}function Nhe(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=Re(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==go.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var Ctt=function(){function t(n,e){Ce(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Se(t,[{key:"update",value:function(n){n.startState.facet(nD)!=n.state.facet(nD)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(nD);e0&&void 0!==arguments[0]?arguments[0]:{}),ktt,Dtt,Ttt,kde.of(!0)]}function jhe(t){return t.startState.facet(Lb)!=t.state.facet(Lb)}var ktt=Fhe({above:!0,markers:function(t){var n,e=t.state,i=e.facet(Lb),r=[],o=Re(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||Phe:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:Qt.cursor(s.head,s.head>s.anchor?-1:1),d=Re(u4.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=jhe(t);return e&&Rhe(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){Rhe(n.state,t)},class:"cm-cursorLayer"});function Rhe(t,n){n.style.animationDuration=t.facet(Lb).cursorBlinkRate+"ms"}var Dtt=Fhe({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:u4.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||jhe(t)},class:"cm-selectionLayer"}),Lhe={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Phe&&(Lhe[".cm-line"].caretColor="transparent !important");var Ttt=z0.highest(Gn.theme(Lhe)),$he=ur.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),$b=ja.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is($he)?i.value:e},t)}}),Ett=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Se(t,[{key:"update",value:function(n){var e,i=n.state.field($b);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field($b)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field($b),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field($b)!=n&&this.view.dispatch({effects:$he.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Bhe(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var Att=function(){function t(n){Ce(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Se(t,[{key:"createDeco",value:function(n){var e,i=this,r=new ag,o=r.add.bind(r),s=Re(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=Re(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(_){m.e(_)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Bhe(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=Re(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),d4=null!=/x/.unicode?"gu":"g",Mtt=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",d4),Ott={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},h4=null,iD=Kn.define({combine:function(t){var n=au(t,{render:null,specialChars:Mtt,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==h4&&typeof document<"u"&&document.body){var i=document.body.style;h4=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return h4||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,d4)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,d4)),n}});function Itt(){return[iD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Vhe||(Vhe=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.decorations=mi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(iD)),this.decorations=this.decorator.createDeco(n)}return Se(t,[{key:"makeDecorator",value:function(n){var e=this;return new Att({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Pa(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=Eb(l.text,c,o-l.from);return mi.replace({widget:new Ptt((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=mi.replace({widget:new Ftt(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(iD);n.startState.facet(iD)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var Vhe=null,Ftt=function(t){xt(e,Ep);var n=wt(e);function e(i,r){var o;return Ce(this,e),(o=n.call(this)).options=i,o.code=r,o}return Se(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(Ott[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Ptt=function(t){xt(e,Ep);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).width=i,r}return Se(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),jtt=mi.line({class:"cm-activeLine"}),Rtt=ya.fromClass(function(){function t(n){Ce(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=Re(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(jtt.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return mi.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Hhe(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):Eb(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function $tt(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Gn.mouseSelectionStyle.of(function(e,i){return n(i)?function Ltt(t,n){var e=Hhe(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Hhe(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(Qt.range(y.from+m,y.to+g))}else for(var _=Math.min(u.col,d.col),w=Math.max(u.col,d.col),k=h;k<=f;k++){var D=c.doc.line(k),L=Aj(D.text,_,c.tabSize,!0);if(L<0)p.push(Qt.cursor(D.to));else{var z=Aj(D.text,w,c.tabSize);p.push(Qt.range(D.from+L,D.from+z))}}return p}(t.state,e,a);return l.length?Qt.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var Btt={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},Vtt={style:"cursor: crosshair"};function Htt(){var n=Un(Btt[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=ya.fromClass(function(){function o(s){Ce(this,o),this.view=s,this.isDown=!1}return Se(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Gn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?Vtt:null})]}var Uhe=function(){function t(n,e,i){Ce(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Se(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=Re(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Se(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(f4);if(r.position!=this.position){this.position=r.position;var o,s=Re(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=Re(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=Re(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(f4).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=zhe.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||Gtt,v=this.view.textDirection==rs.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),_=!!a.above;!a.strictSide&&(_?u.top-(d.bottom-d.top)-g.yr.bottom)&&_==r.bottom-u.bottom>u.top-r.top&&(_=!_);var w=(_?u.top-r.top:r.bottom-u.bottom)-f;if(wy&&R.topk&&(k=_?R.top-m-2-f:R.bottom+f+2)}}catch(U){z.e(U)}finally{z.f()}}"absolute"==this.position?(c.style.top=k-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=k+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:k,right:D,bottom:k+m}),c.classList.toggle("cm-tooltip-above",_),c.classList.toggle("cm-tooltip-below",!_),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),ztt=Gn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Gtt={x:0,y:0},rD=Kn.define({enables:[Ghe,ztt]}),oD=Kn.define(),Wtt=function(){function t(n){var e=this;Ce(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Uhe(n,oD,function(i){return e.createHostedView(i)})}return Se(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),qtt=rD.compute([oD],function(t){var n=t.facet(oD).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,ri(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,ri(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:Wtt.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),Ytt=function(){function t(n,e,i,r,o){Ce(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Se(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==rs.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=ur.define(),i=ja.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Tl.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=Re(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(Ktt)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return oD.from(r)}});return[i,ya.define(function(r){return new Ytt(r,t,i,e,n.hoverTime||300)}),qtt]}var Ktt=ur.define(),qhe=Kn.define({combine:function(t){var n,e,i,r=Re(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function Bb(t,n){var e=t.plugin(Yhe),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Yhe=ya.fromClass(function(){function t(n){Ce(this,t),this.input=n.state.facet(Vb),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(qhe);this.top=new sD(n,!0,e.topContainer),this.bottom=new sD(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=Re(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Se(t,[{key:"update",value:function(n){var e=n.state.facet(qhe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new sD(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new sD(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(Vb);if(i!=this.input){var r,o=i.filter(function(w){return w}),s=[],a=[],l=[],c=[],u=Re(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(w){u.e(w)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),efe=function(){function t(n,e){var i=this;Ce(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=Qhe(e.markers(n)),e.initialSpacer&&(this.spacer=new tfe(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Se(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=Qhe(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!Vo.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=Re(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),tfe=function(){function t(n,e,i,r){Ce(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Se(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Khe(),nnt]}function nfe(t){for(var n=9;ni&&(i=s,e.push(rnt.range(s)))}}catch(a){r.e(a)}finally{r.f()}return Vo.of(e)}),snt=0,v4=Se(function t(n,e){Ce(this,t),this.from=n,this.to=e}),pr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ce(this,t),this.id=snt++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Se(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=lu.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();pr.closedBy=new pr({deserialize:function(t){return t.split(" ")}}),pr.openedBy=new pr({deserialize:function(t){return t.split(" ")}}),pr.group=new pr({deserialize:function(t){return t.split(" ")}}),pr.contextHash=new pr({perNode:!0}),pr.lookAhead=new pr({perNode:!0}),pr.mounted=new pr({perNode:!0});var ant=Object.create(null),lu=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Ce(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Se(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(pr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):ant,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=Re(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=Re(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(pr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();lu.none=new lu("",Object.create(null),0,8);var La,lnt=function(){function t(n){Ce(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=lD.get(this)||this.topNode,r=new dD(i);return r.moveTo(n,e),lD.set(this,r._tree),r}},{key:"topNode",get:function(){return new zb(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e1(lD.get(this)||this.topNode,n,e,!1);return lD.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e1(ife.get(this)||this.topNode,n,e,!0);return ife.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|La.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:b4(lu.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(lu.none,i,r,o)})}}],[{key:"build",value:function(n){return function dnt(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new cnt(e,e.length):e,d=i.types,h=0,f=0;function p(k,D,L,z,R){for(var U=u.id,G=u.start,X=u.end,te=u.size,P=f;te<0;){if(u.next(),-1==te)return L.push(a[U]),void z.push(G-k);if(-3==te)return void(h=U);if(-4==te)return void(f=U);throw new RangeError("Unrecognized record size: ".concat(te))}var J,H,rt,le=d[U],E=G-k;if(X-G<=o&&(H=function(rt,$){var ne=u.fork(),ie=0,Me=0,Ye=0,je=ne.end-o,gt={size:0,start:0,skip:0};e:for(var Tt=ne.pos-rt;ne.pos>Tt;){var fn=ne.size;if(ne.id==$&&fn>=0)gt.size=ie,gt.start=Me,gt.skip=Ye,Ye+=4,ie+=4,ne.next();else{var Hn=ne.pos-fn;if(fn<0||Hn=c?4:0,Ei=ne.start;for(ne.next();ne.pos>Hn;){if(ne.size<0){if(-3!=ne.size)break e;Zt+=4}else ne.id>=c&&(Zt+=4);ne.next()}Me=Ei,ie+=fn,Ye+=Zt}}return($<0||ie==rt)&&(gt.size=ie,gt.start=Me,gt.skip=Ye),gt.size>4?gt:void 0}(u.pos-D,R))){for(var O=new Uint16Array(H.size-H.skip),I=u.pos-H.size,q=O.length;u.pos>I;)q=v(H.start,O,q);J=new Ub(O,X-H.start,i),E=H.start-k}else{var V=u.pos-te;u.next();for(var re=[],de=[],Oe=U>=c?U:-1,ye=0,Xe=X;u.pos>V;)Oe>=0&&u.id==Oe&&u.size>=0?(u.end<=Xe-o&&(m(re,de,G,ye,u.end,Xe,Oe,P),ye=re.length,Xe=u.end),u.next()):p(G,V,re,de,Oe);if(Oe>=0&&ye>0&&ye-1&&ye>0){var Le=(rt=le,function($,ne,ie){var Me,Ye,je=0,gt=$.length-1;if(gt>=0&&(Me=$[gt])instanceof $a){if(!gt&&Me.type==rt&&Me.length==ie)return Me;(Ye=Me.prop(pr.lookAhead))&&(je=ne[gt]+Me.length+Ye)}return g(rt,$,ne,ie,je)});J=b4(le,re,de,0,re.length,0,X-G,Le,Le)}else J=g(le,re,de,X-G,P-X)}L.push(J),z.push(E)}function m(k,D,L,z,R,U,G,X){for(var te=[],P=[];k.length>z;)te.push(k.pop()),P.push(D.pop()+L-R);k.push(g(i.types[G],te,P,U-R,X-U)),D.push(R-L)}function g(k,D,L,z){var R=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,U=arguments.length>5?arguments[5]:void 0;if(h){var G=[pr.contextHash,h];U=U?[G].concat(U):[G]}if(R>25){var X=[pr.lookAhead,R];U=U?[X].concat(U):[X]}return new $a(k,D,L,z,U)}function v(k,D,L){var z=u.id,R=u.start,U=u.end,G=u.size;if(u.next(),G>=0&&z4)for(var te=u.pos-(G-4);u.pos>te;)L=v(k,D,L);D[--L]=X,D[--L]=U-k,D[--L]=R-k,D[--L]=z}else-3==G?h=z:-4==G&&(f=z);return L}for(var y=[],_=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,_,-1);var w=null!==(n=t.length)&&void 0!==n?n:y.length?_[0]+y[0].length:0;return new $a(d[t.topID],y.reverse(),_.reverse(),w)}(n)}}]),t}();$a.empty=new $a(lu.none,[],[],0);var cnt=function(){function t(n,e){Ce(this,t),this.buffer=n,this.index=e}return Se(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),Ub=function(){function t(n,e,i){Ce(this,t),this.buffer=n,this.length=e,this.set=i}return Se(t,[{key:"type",get:function(){return lu.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function ofe(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function e1(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(rfe(r,i,h,h+d.length))if(d instanceof Ub){if(o&La.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new y4(new unt(s,d,n,h),null,f)}else if(o&La.IncludeAnonymous||!d.type.isAnonymous||_4(d)){var p=void 0;if(!(o&La.IgnoreMounts)&&d.props&&(p=d.prop(pr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&La.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&La.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&La.IgnoreOverlays)&&(i=this._tree.prop(pr.mounted))&&i.overlay){var o,s=n-this.from,a=Re(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new dD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return e1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return e1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return ofe(this,n)}},{key:"getChild",value:function(n){var r=cD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return cD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return uD(this,n)}}]),t}();function cD(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function uD(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var unt=Se(function t(n,e,i,r){Ce(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),y4=function(){function t(n,e,i){Ce(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&La.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new dD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new $a(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return e1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return e1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return ofe(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=cD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return cD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return uD(this,n)}}]),t}(),dD=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Ce(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof zb)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof zb?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&La.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&La.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&La.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&La.IncludeAnonymous||u instanceof Ub||!u.type.isAnonymous||_4(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return uD(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function _4(t){return t.children.some(function(n){return n instanceof Ub||!n.type.isAnonymous||_4(n)})}var sfe=new WeakMap;function hD(t,n){if(!t.isAnonymous||n instanceof Ub||n.type!=t)return 1;var e=sfe.get(n);if(null==e){e=1;var i,r=Re(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof $a)){e=1;break}e+=hD(t,o)}}catch(s){r.e(s)}finally{r.f()}sfe.set(n,e)}return e}function b4(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;L+=z}if(w==k+1){if(L>d){var R=m[k];p(R.children,R.positions,0,R.children.length,g[k]+_);continue}h.push(m[k])}else h.push(b4(t,m,g,k,w,D,g[w-1]+m[w-1].length-D,null,l));f.push(D+_-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var fD=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Ce(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Se(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=Re(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:lfe.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),pnt=0,lfe=function(){function t(){Ce(this,t),this.instances=[],this.id=pnt++}return Se(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,_){return y==v[_]});var g,v});if(i)return i;var r,o=[],s=new Mp(o,n,e),a=Re(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=cfe(e),u=Re(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=Re(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function cfe(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new mnt(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return dfe.add(n)}var dfe=new pr,mnt=function(){function t(n,e,i,r){Ce(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Se(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new ynt(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var x4,ynt=function(){function t(n,e,i){Ce(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Se(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function(L){return!L.scope||L.scope(s)}));for(var c=r,u=s.prop(dfe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=gnt(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(pr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function(L){return!L.scope||L.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var _=v=w)&&n.nextSibling()););if(!_||w>i)break;(y=_.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,_.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),xn=Mp.define,pD=xn(),Op=xn(),ffe=xn(Op),pfe=xn(Op),Ip=xn(),mD=xn(Ip),w4=xn(Ip),gh=xn(),ug=xn(gh),vh=xn(),yh=xn(),C4=xn(),Gb=xn(C4),gD=xn(),dn={comment:pD,lineComment:xn(pD),blockComment:xn(pD),docComment:xn(pD),name:Op,variableName:xn(Op),typeName:ffe,tagName:xn(ffe),propertyName:pfe,attributeName:xn(pfe),className:xn(Op),labelName:xn(Op),namespace:xn(Op),macroName:xn(Op),literal:Ip,string:mD,docString:xn(mD),character:xn(mD),attributeValue:xn(mD),number:w4,integer:xn(w4),float:xn(w4),bool:xn(Ip),regexp:xn(Ip),escape:xn(Ip),color:xn(Ip),url:xn(Ip),keyword:vh,self:xn(vh),null:xn(vh),atom:xn(vh),unit:xn(vh),modifier:xn(vh),operatorKeyword:xn(vh),controlKeyword:xn(vh),definitionKeyword:xn(vh),moduleKeyword:xn(vh),operator:yh,derefOperator:xn(yh),arithmeticOperator:xn(yh),logicOperator:xn(yh),bitwiseOperator:xn(yh),compareOperator:xn(yh),updateOperator:xn(yh),definitionOperator:xn(yh),typeOperator:xn(yh),controlOperator:xn(yh),punctuation:C4,separator:xn(C4),bracket:Gb,angleBracket:xn(Gb),squareBracket:xn(Gb),paren:xn(Gb),brace:xn(Gb),content:gh,heading:ug,heading1:xn(ug),heading2:xn(ug),heading3:xn(ug),heading4:xn(ug),heading5:xn(ug),heading6:xn(ug),contentSeparator:xn(gh),list:xn(gh),quote:xn(gh),emphasis:xn(gh),strong:xn(gh),link:xn(gh),monospace:xn(gh),strikethrough:xn(gh),inserted:xn(),deleted:xn(),changed:xn(),invalid:xn(),meta:gD,documentMeta:xn(gD),annotation:xn(gD),processingInstruction:xn(gD),definition:Mp.defineModifier(),constant:Mp.defineModifier(),function:Mp.defineModifier(),standard:Mp.defineModifier(),local:Mp.defineModifier(),special:Mp.defineModifier()};hfe([{tag:dn.link,class:"tok-link"},{tag:dn.heading,class:"tok-heading"},{tag:dn.emphasis,class:"tok-emphasis"},{tag:dn.strong,class:"tok-strong"},{tag:dn.keyword,class:"tok-keyword"},{tag:dn.atom,class:"tok-atom"},{tag:dn.bool,class:"tok-bool"},{tag:dn.url,class:"tok-url"},{tag:dn.labelName,class:"tok-labelName"},{tag:dn.inserted,class:"tok-inserted"},{tag:dn.deleted,class:"tok-deleted"},{tag:dn.literal,class:"tok-literal"},{tag:dn.string,class:"tok-string"},{tag:dn.number,class:"tok-number"},{tag:[dn.regexp,dn.escape,dn.special(dn.string)],class:"tok-string2"},{tag:dn.variableName,class:"tok-variableName"},{tag:dn.local(dn.variableName),class:"tok-variableName tok-local"},{tag:dn.definition(dn.variableName),class:"tok-variableName tok-definition"},{tag:dn.special(dn.variableName),class:"tok-variableName2"},{tag:dn.definition(dn.propertyName),class:"tok-propertyName tok-definition"},{tag:dn.typeName,class:"tok-typeName"},{tag:dn.namespace,class:"tok-namespace"},{tag:dn.className,class:"tok-className"},{tag:dn.macroName,class:"tok-macroName"},{tag:dn.propertyName,class:"tok-propertyName"},{tag:dn.operator,class:"tok-operator"},{tag:dn.comment,class:"tok-comment"},{tag:dn.meta,class:"tok-meta"},{tag:dn.invalid,class:"tok-invalid"},{tag:dn.punctuation,class:"tok-punctuation"}]);var t1=new pr,_nt=new pr,sd=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Ce(this,t),this.data=n,this.name=r,Eo.prototype.hasOwnProperty("tree")||Object.defineProperty(Eo.prototype,"tree",{get:function(){return sl(this)}}),this.parser=e,this.extension=[Np.of(this),Eo.languageData.of(function(o,s,a){var l=mfe(o,s,a),c=l.type.prop(t1);if(!c)return[];var u=o.facet(c),d=l.type.prop(_nt);if(d){var h,f=l.resolve(s-l.from,a),p=Re(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Se(t,[{key:"isActiveAt",value:function(n,e){return mfe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(t1)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(Np);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(t1)!=e.data){var l=s.prop(pr.mounted);if(l){if(l.tree.prop(t1)==e.data){if(l.overlay){var c,u=Re(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),Wb=null,wnt=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;Ce(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Se(t,[{key:"startParse",value:function(){return this.parser.startParse(new xnt(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=$a.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(fD.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=Wb;Wb=this;try{return n()}finally{Wb=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=gfe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=fD.applyChanges(i,l),r=$a.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=Re(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=gfe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],$a.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){xt(r,afe);var i=wt(r);function r(){return Ce(this,r),i.apply(this,arguments)}return Se(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=Wb;if(u){var d,h=Re(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new $a(lu.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return Wb}}]),t}();function gfe(t,n,e){return fD.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var S4=function(){function t(n){Ce(this,t),this.context=n,this.tree=n.tree}return Se(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=wnt.create(n.facet(Np).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();sd.state=ja.define({create:S4.init,update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(sd.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(Np)!=n.state.facet(Np)?S4.init(n.state):t.apply(n)}});var vfe=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(vfe=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var k4=typeof navigator<"u"&&null!==(x4=navigator.scheduling)&&void 0!==x4&&x4.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,Cnt=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Se(t,[{key:"update",value:function(n){var e=this.view.state.field(sd.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(sd.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=vfe(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return k4&&k4()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:sd.setState.of(new S4(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return Tc(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),Np=Kn.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[sd.state,Cnt,Gn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),Snt=Se(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ce(this,t),this.language=n,this.support=e,this.extension=[n,e]}),knt=Kn.define(),vD=Kn.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function n1(t){var n=t.facet(vD);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function qb(t,n){var e="",i=t.tabSize,r=t.facet(vD)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};Ce(this,t),this.state=n,this.options=e,this.unit=n1(n)}return Se(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return Eb(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),yfe=new pr;function Dnt(t){var n=t.type.prop(yfe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(pr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),_=v.lastChild;if(!y)return null;for(var w=g.options.simulateBreak,k=g.state.doc.lineAt(y.from),D=null==w||w<=k.from?k.to:Math.min(k.to,w),L=y.to;;){var z=v.childAfter(L);if(!z||z==_)return null;if(!z.type.isSkipped)return z.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var Mnt=Kn.define(),xfe=new pr;function _D(t,n,e){var i,r=Re(t.facet(Mnt));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=sl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function wfe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var bD=ur.define({map:wfe}),Yb=ur.define({map:wfe});function Cfe(t){var n,e=[],i=Re(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var dg=ja.define({create:function(){return mi.none},update:function(t,n){t=t.map(n.changes);var e,i=Re(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(bD)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[Efe.range(a.value.from,a.value.to)]}):a.is(Yb)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Gn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function Sfe(t,n){return t.field(dg,!1)?n:n.concat(ur.appendConfig.of(Tfe()))}function kfe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Gn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var Ont=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=Re(Cfe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=_D(t.state,i.from,i.to);if(r)return t.dispatch({effects:Sfe(t.state,[bD.of(r),kfe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(dg,!1))return!1;var n,e=[],i=Re(Cfe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=xD(t.state,r.from,r.to);o&&e.push(Yb.of(o),kfe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},Nnt),t),e=new T4(n,!0),i=new T4(n,!1),r=ya.fromClass(function(){function s(a){Ce(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Se(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(Np)!=a.state.facet(Np)||a.startState.field(dg,!1)!=a.state.field(dg,!1)||sl(a.startState)!=sl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new ag,u=Re(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=xD(a.state,d.from,d.to)?i:_D(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,Jhe({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||Vo.empty},initialSpacer:function(){return new T4(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=xD(s.state,a.from,a.to);if(c)return s.dispatch({effects:Yb.of(c)}),!0;var u=_D(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:bD.of(u)}),!0)}})}),Tfe()]}var Pnt=Gn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),E4=function(){function t(n,e){var i;function r(a){var l=Dp.newName();return(i||(i=Object.create(null)))["."+l]=a,l}Ce(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof sd?function(a){return a.prop(t1)==s.data}:s?function(a){return a==s}:void 0,this.style=hfe(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new Dp(i):null,this.themeType=e.themeType}return Se(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),A4=Kn.define(),Afe=Kn.define({combine:function(t){return t.length?[t[0]]:null}});function M4(t){var n=t.facet(A4);return n.length?n:t.facet(Afe)}function Mfe(t,n){var e,i=[Rnt];return t instanceof E4&&(t.module&&i.push(Gn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?Afe.of(t):e?A4.computeN([Gn.darkTheme],function(r){return r.facet(Gn.darkTheme)==("dark"==e)?[t]:[]}):A4.of(t)),i}var jnt=function(){function t(n){Ce(this,t),this.markCache=Object.create(null),this.tree=sl(n.state),this.decorations=this.buildDeco(n,M4(n.state))}return Se(t,[{key:"update",value:function(n){var e=sl(n.state),i=M4(n.state),r=i!=M4(n.startState);e.length0&&_h(n.state,s.head-1,1,r)||r.afterCursor&&(_h(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),znt]}var Wnt=new pr;function O4(t,n,e){var i=t.prop(n<0?pr.openedBy:pr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function I4(t){var n=t.type.prop(Wnt);return n?n(t.node):t}function _h(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=sl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=O4(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return qnt(0,0,e,l,u,c,o)}}return function Ynt(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function qnt(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(Nfe.push(t),console.warn(n))}function Znt(t,n){var e,i=null,r=Re(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||dn[o];s?"function"==typeof s?i?i=s(i):F4(o,"Modifier ".concat(o," used at start of tag")):i?F4(o,"Tag ".concat(o," used as modifier")):i=s:F4(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=lu.define({id:Ife.length,name:a,props:[ufe(Hl({},a,i))]});return Ife.push(l),l.id}function P4(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var eit=P4(function rit(t,n){var e,r=[],o=-1,s=Re(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=j4(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var te,P=[],W=Re(r);try{for(W.s();!(te=W.n()).done;){var J=te.value,H=J.line,le=J.comment;if(le>=0){var O=H.from+le,I=O+J.token.length;" "==H.text[I-H.from]&&I++,P.push({from:O,to:I})}}}catch(q){W.e(q)}finally{W.f()}return{changes:P}}return null},0),tit=P4(jfe,0),nit=P4(function(t,n){return jfe(t,n,function(e){var i,r=[],o=Re(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function j4(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function jfe(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return j4(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function iit(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Gn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?$4:"historyRedo"==n.inputType?CD:null;return!!i&&(n.preventDefault(),i(e))}})]}function wD(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(L4,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var $4=wD(0,!1),CD=wD(1,!1),lit=wD(0,!0),cit=wD(1,!0);function Lfe(t){return function(n){var e=n.field(L4,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var uit=Lfe(0),dit=Lfe(1),mf=function(){function t(n,e,i,r,o){Ce(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Se(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&id.fromJSON(n.changes),[],n.mapped&&U0.fromJSON(n.mapped),n.startSelection&&Qt.fromJSON(n.startSelection),n.selectionsAfter.map(Qt.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=cu,o=Re(n.startState.facet(sit));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,cu)}},{key:"selection",value:function(n){return new t(void 0,cu,void 0,void 0,n)}}]),t}();function SD(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function $fe(t,n){return t.length?n.length?t.concat(n):t:n}var cu=[];function Bfe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),SD(t,t.length-1,1e9,e.setSelAfter(i)))}return[mf.selection([n])]}function hit(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function B4(t,n){if(!t.length)return t;for(var e=t.length,i=cu;e;){var r=fit(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[mf.selection(i)]:cu}function fit(t,n,e){var i=$fe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):cu,e);if(!t.changes)return mf.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new mf(r,ur.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var pit=/^(input\.type|delete)($|\.)/,Xb=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;Ce(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Se(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||pit.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?SD(s,s.length-1,r.minDepth,new mf(n.changes.compose(a.changes),$fe(n.effects,a.effects),a.mapped,a.startSelection,cu)):SD(s,s.length,r.minDepth,n),cu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:cu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function DD(t,n,e){for(var i=sl(t).resolveInner(n.head),r=e?pr.closedBy:pr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;git(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?_h(t,i.from,1):_h(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,Qt.cursor(l,e?-1:1)}function Gfe(t,n){return ad(t,function(e){if(!e.empty)return kD(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var Wfe=function(t){return Gfe(t,!1)},qfe=function(t){return Gfe(t,!0)};function Yfe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=ED(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=ED(t,s,!1),a=ED(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:Qt.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Gn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ED(t,n,e){if(t instanceof Gn){var i,r=Re(t.state.facet(Gn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var dpe=function(t,n){return TD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function gpe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=Re(AD(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=Re(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(Qt.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=Re(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(Qt.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:Qt.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function vpe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=Re(AD(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var vit=ype(!1),yit=ype(!0);function ype(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=sl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(pr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new yD(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=D4(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:Qt.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var _pe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(U4(n,function(i,r){r.push({from:i.from,insert:n.facet(vD)})}),{userEvent:"input.indent"})),!0)},bpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(U4(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=Eb(o,n.tabSize),a=0,l=qb(n,Math.max(0,s-n1(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:mpe}].concat(_it.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),xit=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return ad(t,function(n){return DD(t.state,n,!al(t))})},shift:function(t){return uu(t,function(n){return DD(t.state,n,!al(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return ad(t,function(n){return DD(t.state,n,al(t))})},shift:function(t){return uu(t,function(n){return DD(t.state,n,al(t))})}},{key:"Alt-ArrowUp",run:function(t){return gpe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return vpe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return gpe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return vpe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=Qt.create([i.main]):i.main.empty||(r=Qt.create([Qt.cursor(i.main.head)])),!!r&&(e(bh(n,r)),!0)}},{key:"Mod-Enter",run:yit},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=AD(n).map(function(r){return Qt.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:Qt.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=i1(n.selection,function(r){for(var o,s=sl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return Qt.range(s.to,s.from)});return e(bh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:bpe},{key:"Mod-]",run:_pe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new yD(n,{overrideIndentation:function(s){return i[s]??-1}}),o=U4(n,function(s,a,l){var c=D4(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=qb(n,c);(u!=d||l.from0?o--:s0&&_h(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;Ce(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(wpe(a))}:wpe,this.query=this.normalize(e)}return Se(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Pa(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=fj(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Sc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(Ce(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=Cpe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new Dpe(n,e,i,r,o);this.re=new RegExp(e,z4+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=MD(n,r),this.getLine(this.curLineStart)}return Se(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=MD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return G4.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=MD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=kpe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function MD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function W4(t){var n=Ao("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Un(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:OD.of(!1),selection:Qt.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Ao("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:OD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Ao("label",t.state.phrase("Go to line"),": ",n)," ",Ao("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(Spe.prototype[Symbol.iterator]=Dpe.prototype[Symbol.iterator]=function(){return this});var OD=ur.define(),Tpe=ja.define({create:function(){return!0},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(OD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Vb.from(t,function(n){return n?W4:null})}}),Cit=Gn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Sit={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Epe=Kn.define({combine:function(t){return au(t,Sit,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),kit=mi.mark({class:"cm-selectionMatch"}),Dit=mi.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Ape(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==is.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==is.Word)}var Tit=ya.fromClass(function(){function t(n){Ce(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(Epe),i=n.state,r=i.selection;if(r.ranges.length>1)return mi.none;var o,y,_,w,k,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return mi.none;var l=i.wordAt(s.head);if(!l)return mi.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return mi.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!Ape(a=i.charCategorizer(s.head),i,s.from,s.to)||(k=s.to,(y=a)((_=i).sliceDoc(w=s.from,w+1))!=is.Word||y(_.sliceDoc(k-1,k))!=is.Word))return mi.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return mi.none}var u,d=[],h=Re(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new r1(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||Ape(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Dit.range(g,v)):(g>=s.to||v<=s.from)&&d.push(kit.range(g,v)),d.length>e.maxMatches))return mi.none}}catch(y){h.e(y)}finally{h.f()}return mi.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),Eit=Gn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),ID=Kn.define({combine:function(t){return au(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new Lit(n)}})}});function Ait(t){return t?[ID.of(t),eR]:eR}var Mpe=function(){function t(n){Ce(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,z4),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Se(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new Oit(this):new Mit(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Eo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?s1(this,r,e,i):o1(this,r,e,i)}}]),t}(),Ope=Se(function t(n){Ce(this,t),this.spec=n});function o1(t,n,e,i){return new r1(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=o1(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function s1(t,n,e,i){return new Spe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(ND(a.input,a.index))!=is.Word||r(FD(a.input,a.index))!=is.Word)&&(r(FD(a.input,a.index+a[0].length))!=is.Word||r(ND(a.input,a.index+a[0].length))!=is.Word)}):void 0},e,i);var r}function ND(t,n){return t.slice(Dl(t,n,!1),n)}function FD(t,n){return t.slice(n,Dl(t,n))}var Oit=function(t){xt(e,Ope);var n=wt(e);function e(){return Ce(this,e),n.apply(this,arguments)}return Se(e,[{key:"nextMatch",value:function(i,r,o){var s=s1(this.spec,i,o,i.doc.length).next();return s.done&&(s=s1(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=s1(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=s1(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),Jb=ur.define(),q4=ur.define(),Pp=ja.define({create:function(t){return new Y4(J4(t).create(),null)},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(Jb)?t=new Y4(r.value.create(),t.panel):r.is(q4)&&(t=new Y4(t.query,r.value?X4:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Vb.from(t,function(n){return n.panel})}}),Y4=Se(function t(n,e){Ce(this,t),this.query=n,this.panel=e}),Iit=mi.mark({class:"cm-searchMatch"}),Nit=mi.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Fit=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Pp))}return Se(t,[{key:"update",value:function(n){var e=n.state.field(Pp);(e!=n.startState.field(Pp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return mi.none;for(var i=this.view,r=new ag,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Nit:Iit)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function Kb(t){return function(n){var e=n.state.field(Pp,!1);return e&&e.query.spec.valid?t(n,e):K4(n)}}var PD=Kb(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:Z4(t,r),userEvent:"select.search"}),!0)}),jD=Kb(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:Z4(t,o),userEvent:"select.search"}),!0)}),Pit=Kb(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:Qt.create(e.map(function(i){return Qt.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),Ipe=Kb(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Gn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(Z4(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),jit=Kb(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Gn.announce.of(r),userEvent:"input.replace.all"}),!0});function X4(t){return t.state.facet(ID).createPanel(t)}function J4(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(ID);return new Mpe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var K4=function(t){var n=t.state.field(Pp,!1);if(n&&n.panel){var e=Bb(t,X4);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=J4(t.state,n.query.spec);r.valid&&t.dispatch({effects:Jb.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[q4.of(!0),n?Jb.of(J4(t.state,n.query.spec)):ur.appendConfig.of(eR)]});return!0},Q4=function(t){var n=t.state.field(Pp,!1);if(!n||!n.panel)return!1;var e=Bb(t,X4);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:q4.of(!1)}),!0},Rit=[{key:"Mod-f",run:K4,scope:"editor search-panel"},{key:"F3",run:PD,shift:jD,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:PD,shift:jD,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Q4,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new r1(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(Qt.range(c.value.from,c.value.to))}return e(n.update({selection:Qt.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=Bb(t,W4);if(!n){var e=[OD.of(!0)];null==t.state.field(Tpe,!1)&&e.push(ur.appendConfig.of([Tpe,Cit])),t.dispatch({effects:e}),n=Bb(t,W4)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=Qt.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||Qt.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(w){return w.from==y.value.from}))return m=y,p=v,"continue";if(h){var _=s.wordAt(y.value.from);if(!_||_.from!=y.value.from||_.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new r1(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new r1(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===mn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(Qt.range(o.from,o.to),!1),effects:Gn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],Lit=function(){function t(n){var e=this;Ce(this,t),this.view=n;var i=this.query=n.state.field(Pp).query.spec;function r(o,s,a){return Ao("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Ao("input",{value:i.search,placeholder:Ec(n,"Find"),"aria-label":Ec(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ao("input",{value:i.replace,placeholder:Ec(n,"Replace"),"aria-label":Ec(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ao("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Ao("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Ao("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Ao("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return PD(n)},[Ec(n,"next")]),r("prev",function(){return jD(n)},[Ec(n,"previous")]),r("select",function(){return Pit(n)},[Ec(n,"all")]),Ao("label",null,[this.caseField,Ec(n,"match case")]),Ao("label",null,[this.reField,Ec(n,"regexp")]),Ao("label",null,[this.wordField,Ec(n,"by word")])].concat(ri(n.state.readOnly?[]:[Ao("br"),this.replaceField,r("replace",function(){return Ipe(n)},[Ec(n,"replace")]),r("replaceAll",function(){return jit(n)},[Ec(n,"replace all")])]),[Ao("button",{name:"close",onclick:function(){return Q4(n)},"aria-label":Ec(n,"close"),type:"button"},["\xd7"])]))}return Se(t,[{key:"commit",value:function(){var n=new Mpe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:Jb.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return Mhe(Ahe(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?jD:PD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),Ipe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=Re(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=Re(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(Jb)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(ID).top}}]),t}();function Ec(t,n){return t.state.phrase(n)}var RD=/[\s\.,:;?!]/;function Z4(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!RD.test(l[c+1])&&RD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!RD.test(l[u-1])&&RD.test(l[u])){l=l.slice(0,u);break}return Gn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var $it=Gn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),eR=[Pp,z0.lowest(Fit),$it],Npe=function(){function t(n,e,i){Ce(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Se(t,[{key:"tokenBefore",value:function(n){for(var e=sl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(jpe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function Fpe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var Ppe=Se(function t(n,e,i){Ce(this,t),this.completion=n,this.source=e,this.match=i});function jp(t){return t.selection.main.head}function jpe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function Rpe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:Qt.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:Qt.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Lpe=new WeakMap;function Vit(t){if(!Array.isArray(t))return t;var n=Lpe.get(t);return n||Lpe.set(t,n=function Bit(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Un(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=Re(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&R<=57||R>=97&&R<=122?2:R>=65&&R<=90?1:0:(U=fj(R))!=U.toLowerCase()?1:U!=U.toUpperCase()?2:0;(!D||1==G&&w||0==z&&0!=G)&&(e[m]==R||i[m]==R&&(g=!0)?s[m++]=D:s.length&&(k=!1)),z=G,D+=Sc(R)}return m==c&&0==s[0]&&k?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,_]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,_]:m==c?this.result((g?-200:0)-100-700+(k?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=Re(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Sc(Pa(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),xh=Kn.define({combine:function(t){return au(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function $pe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var Uit=function(){function t(n,e){var i=this;Ce(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(xh);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,ri(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var w=p.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(m.slice(y,_))),w.className="cm-completionMatchedText",g=_}return g=this.range.to)&&(this.range=$pe(i.options.length,i.selected,this.view.state.facet(xh).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return Tc(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,Vpe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=Re(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,_=v.result.getMatch,w=Re(v.result.options);try{for(w.s();!(y=w.n()).done;){var k=y.value,D=[1e9-m++];if(_){var L,z=Re(_(k));try{for(z.s();!(L=z.n()).done;)D.push(L.value)}catch(I){z.e(I)}finally{z.f()}}p.push(new Ppe(k,v,D))}}catch(I){w.e(I)}finally{w.f()}}else{var U,G=new Hit(h.sliceDoc(v.from,v.to)),X=void 0,te=Re(v.result.options);try{for(te.s();!(U=te.n()).done;){var P=U.value;(X=G.match(P.label))&&(null!=P.boost&&(X[0]+=P.boost),p.push(new Ppe(P,v,X)))}}catch(I){te.e(I)}finally{te.f()}}}}catch(I){g.e(I)}finally{g.f()}var W,J=[],H=null,le=h.facet(xh).compareCompletions,E=Re(p.sort(function(I,q){return q.match[0]-I.match[0]||le(I.completion,q.completion)}));try{for(E.s();!(W=E.n()).done;){var O=W.value;!H||H.label!=O.completion.label||H.detail!=O.completion.detail||null!=H.type&&null!=O.completion.type&&H.type!=O.completion.type||H.apply!=O.completion.apply?J.push(O):Bpe(O.completion)>Bpe(H)&&(J[J.length-1]=O),H=O.completion}}catch(I){E.e(I)}finally{E.f()}return J}(n,e);if(!s.length)return null;var a,l=e.facet(xh).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var qit=[];function tR(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var hg=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;Ce(this,t),this.source=n,this.state=e,this.explicitPos=i}return Se(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=tR(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(nR))r=new t(r.source,1,a.value?jp(n.state):-1);else if(a.is(LD))r=new t(r.source,0);else if(a.is(Hpe)){var l,c=Re(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(jp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),Yit=function(t){xt(e,hg);var n=wt(e);function e(i,r,o,s,a){var l;return Ce(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Se(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=jp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&jp(i.startState)==this.from)return new hg(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):jpe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new Npe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:jp(i.state)):new hg(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new hg(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),nR=ur.define(),LD=ur.define(),Hpe=ur.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Upe=ur.define(),du=ja.define({create:function(){return Git.start()},update:function(t,n){return t.update(n)},provide:function(t){return[rD.from(t,function(n){return n.tooltip}),Gn.contentAttributes.from(t,function(n){return n.attrs})]}});function $D(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(du,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function Jtt(t,n){var e=t.plugin(Ghe);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Upe.of(a)}),!0}}var Xit=Se(function t(n,e){Ce(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),Jit=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=Re(n.state.field(du).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Se(t,[{key:"update",value:function(n){var e=this,i=n.state.field(du);if(n.selectionSet||n.docChanged||n.startState.field(du)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!tR(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=Re(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){Tc(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,ri(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=Re(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==tR(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=Re(this.view.state.field(du).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=jp(i),o=new Npe(i,r,n.explicitPos==r),s=new Xit(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:LD.of(null)}),Tc(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(xh),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new Yit(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:jp(l.updates.length?l.updates[0].startState:e.view.state)),d=Re(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(du).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new hg(l.active.source,0),g=Re(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),BD={brackets:["(","[","{","'",'"'],before:")]}:;>"},fg=ur.define({map:function(t,n){return n.mapPos(t,-1,Tl.TrackAfter)??void 0}}),iR=ur.define({map:function(t,n){return n.mapPos(t)}}),rR=new(function(t){xt(e,sg);var n=wt(e);function e(){return Ce(this,e),n.apply(this,arguments)}return Se(e)}());rR.startSide=1,rR.endSide=-1;var zpe=ja.define({create:function(){return Vo.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=Vo.empty)}t=t.map(n.changes);var r,o=Re(n.effects);try{var s=function(){var a=r.value;a.is(fg)?t=t.update({add:[rR.range(a.value,a.value+1)]}):a.is(iR)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Gpe(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return fj(t<128?t:t+1)}function Wpe(t,n){return t.languageDataAt("closeBrackets",n)[0]||BD}var Qit="object"==(typeof navigator>"u"?"undefined":mn(navigator))&&/Android\b/.test(navigator.userAgent),Zit=Gn.inputHandler.of(function(t,n,e,i){if((Qit?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Sc(Pa(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=Wpe(s,s.selection.main.head),u=c.brackets||BD.brackets,d=Re(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Gpe(Pa(h,0));if(a==h)return f==h?irt(s,h,u.indexOf(h+h+h)>-1):trt(s,h,f,c.before||BD.before);if(a==f&&qpe(s,s.selection.main.from))return nrt(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),ert=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Wpe(n,n.selection.main.head).brackets||BD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Sc(Pa(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=Re(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&VD(n.doc,s.head)==Gpe(Pa(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:Qt.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function qpe(t,n){var e=!1;return t.field(zpe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function VD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Sc(Pa(e,0)))}function trt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:fg.of(s.to+n.length),range:Qt.range(s.anchor+n.length,s.head+n.length)};var a=VD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:fg.of(s.head+n.length),range:Qt.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function nrt(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&VD(t.doc,o.head)==e?Qt.cursor(o.head+e.length):i=o});return i?null:t.update({selection:Qt.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return iR.of(o.from)})})}function irt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:fg.of(o.to+n.length),range:Qt.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=VD(t.doc,s);if(a==n){if(Ype(t,s))return{changes:{insert:n+n,from:s},effects:fg.of(s+n.length),range:Qt.cursor(s+n.length)};if(qpe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:Qt.cursor(s+n.length*(l?3:1)),effects:iR.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Ype(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:fg.of(s+n.length),range:Qt.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=is.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=is.Word&&!function(u,d,h){for(var f=sl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:fg.of(s+n.length),range:Qt.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Ype(t,n){var e=sl(t).resolveInner(n+1);return e.parent&&e.from==n}function rrt(){return[du,xh.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Jit,ort,Kit]}var Xpe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(du,!1)&&(t.dispatch({effects:nR.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(du,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:LD.of(null)}),0))}},{key:"ArrowDown",run:$D(!0)},{key:"ArrowUp",run:$D(!1)},{key:"PageDown",run:$D(!0,"page")},{key:"PageUp",run:$D(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(du,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||(Rpe(t,n.open.options[n.open.selected]),0))}}],ort=z0.highest(tD.computeN([xh],function(t){return t.facet(xh).defaultKeymap?[Xpe]:[]})),srt=Se(function t(n,e,i){Ce(this,t),this.from=n,this.to=e,this.diagnostic=i}),Qb=function(){function t(n,e,i){Ce(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Se(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(pg).markerFilter;o&&(r=o(r));var s=mi.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?mi.widget({widget:new drt(a),diagnostic:a}).range(a.from):mi.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,a1(s))}}]),t}();function a1(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new srt(r,o,a.diagnostic),!1}),i}function Jpe(t,n){return!(!t.effects.some(function(e){return e.is(HD)})&&!t.changes.touchesRange(n.pos))}function Kpe(t,n){return t.field(Ac,!1)?n:n.concat(ur.appendConfig.of([Ac,Gn.decorations.compute([Ac],function(e){var i=e.field(Ac),r=i.selected;return r&&i.panel&&r.from!=r.to?mi.set([art.range(r.from,r.to)]):mi.none}),Xtt(lrt,{hideOn:Jpe}),hrt]))}var HD=ur.define(),oR=ur.define(),Qpe=ur.define(),Ac=ja.define({create:function(){return new Qb(mi.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=a1(e,t.selected.diagnostic,r)||a1(e,null,r)}t=new Qb(e,t.panel,i)}var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(HD)?t=Qb.init(a.value,t.panel,n.state):a.is(oR)?t=new Qb(t.diagnostics,a.value?rme.open:null,t.selected):a.is(Qpe)&&(t=new Qb(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[Vb.from(t,function(n){return n.panel}),Gn.decorations.from(t,function(n){return n.diagnostics})]}}),art=mi.mark({class:"cm-lintRange cm-lintRange-active"});function lrt(t,n,e){var i=t.state.field(Ac).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=tme(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=Re(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=a1(this.view.state.field(Ac).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Qpe.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function UD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function sR(t){return UD(''),'width="6" height="3"')}var hrt=Gn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:sR("#d11")},".cm-lintRange-warning":{backgroundImage:sR("orange")},".cm-lintRange-info":{backgroundImage:sR("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),frt=function(t){xt(e,mh);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Se(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(zD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:aR.of({pos:f.from,above:!1,create:function(){return{dom:Zpe(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var _=m.getBoundingClientRect();if(!(y.clientX>_.left-10&&y.clientX<_.right+10&&y.clientY>_.top-10&&y.clientY<_.bottom+10)){for(var w=y.target;w;w=w.parentNode)if(1==w.nodeType&&w.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",v),p.state.field(sme)&&p.dispatch({effects:aR.of(null)})}})}var d=a.state.facet(zD).hoverTime,h=setTimeout(u,d);l.onmouseout=function(){clearTimeout(h),l.onmouseout=l.onmousemove=null},l.onmousemove=function(){clearTimeout(h),h=setTimeout(u,d)}}(i,r,o)}),r}}]),e}();function prt(t,n){var e,i=Object.create(null),r=Re(n);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t.lineAt(o.from);(i[s.from]||(i[s.from]=[])).push(o)}}catch(c){r.e(c)}finally{r.f()}var a=[];for(var l in i)a.push(new frt(i[l]).range(+l));return Vo.of(a,!0)}var mrt=Jhe({class:"cm-gutter-lint",markers:function(t){return t.state.field(ome)}}),ome=ja.define({create:function(){return Vo.empty},update:function(t,n){t=t.map(n.changes);var e,i=n.state.facet(zD).markerFilter,r=Re(n.effects);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.is(HD)){var s=o.value;i&&(s=i(s||[])),t=prt(n.state.doc,s.slice(0))}}}catch(a){r.e(a)}finally{r.f()}return t}}),aR=ur.define(),sme=ja.define({create:function(){return null},update:function(t,n){return t&&n.docChanged&&(t=Jpe(n,t)?null:Object.assign(Object.assign({},t),{pos:n.changes.mapPos(t.pos)})),n.effects.reduce(function(e,i){return i.is(aR)?i.value:e},t)},provide:function(t){return rD.from(t)}}),grt=Gn.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:UD('')},".cm-lint-marker-warning":{content:UD('')},".cm-lint-marker-error":{content:UD('')}}),zD=Kn.define({combine:function(t){return au(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function vrt(){return[zD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ome,mrt,grt,sme]}var ame,yrt=function(){return[int(),ont,Itt(),ait(),Fnt(),Stt(),[$b,Ett],Eo.allowMultipleSelections.of(!0),Eo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=Re(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=D4(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=qb(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),Mfe(Lnt,{fallback:!0}),Gnt(),[Zit,zpe],rrt(),$tt(),Htt(),Rtt,(n=[Eit,Tit],n),tD.of([].concat(ert,ri(xit),Rit,mit,Ont,Xpe,crt))];var n}(),_rt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;Ce(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Se(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new brt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new lme(r,r.start):null,0,null)}}]),t}(),lme=Se(function t(n,e){Ce(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(ame||(ame={}));var brt=function(){function t(n){Ce(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Se(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),xrt=function(){function t(n,e,i){Ce(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Se(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),GD=Se(function t(){Ce(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),cme=new GD,wrt=function(){function t(n,e){Ce(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=cme,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Se(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=cme,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=Re(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),WD=function(){function t(n,e){Ce(this,t),this.data=n,this.id=e}return Se(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function qD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}WD.prototype.contextual=WD.prototype.fallback=WD.prototype.extend=!1;var ume,ld=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),lR=null;function dme(t,n,e){var i=t.cursor(La.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(ume||(ume={}));var hme,Crt=function(){function t(n,e){Ce(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Se(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?dme(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?dme(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof $a){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),Srt=function(){function t(n,e){Ce(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new GD})}return Se(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new GD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new GD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Crt(i,n.nodeSet):null}return Se(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,_=null,w=Re(v);try{for(w.s();!(y=w.n()).done;){var k=y.value,D=k.p.stoppedAt;(k.pos==k.p.stream.end||null!=D&&k.pos>D)&&k.p.parser.stateFlag(k.state,2)&&(!_||_.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(pr.contextHash)||0)==l))return n.useNode(c,u),ld&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof $a)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof $a&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),ld&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(_):i.push(_)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return fme(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),ld&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(ld&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)ld&&(h=this.stackID(d)+" -> ");var p,m=Re(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;ld&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),ld&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),fme(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],_=-v;_>0;_--)d(p[g++],m,y);g++}}}}catch(D){f.e(D)}finally{f.f()}}o.nodeSet=new lnt(s.map(function(D,L){return lu.define({name:L>=o.minRepeatTerm?void 0:D,id:L,props:c[L],top:l.indexOf(L)>-1,error:0==L,skipped:i.skippedNodes&&i.skippedNodes.indexOf(L)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,ri(i.propSources))),o.strict=!1,o.bufferLength=1024;var w=qD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var k=0;k2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=gf(this.data,o+2)}if(r==gf(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=gf(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=pme(this.data,this.tokenPrecTable,r);return o<0||pme(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=Re(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&yme(t);return{c:function(){n=ve("div"),r&&r.c(),e=tt(),o&&o.c(),i=tt(),s&&s.c(),j(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){Pe(a,n,l),r&&r.m(n,null),ue(n,e),o&&o.m(n,null),ue(n,i),s&&s.m(n,null)},p:function(a,l){var c=Un(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=gme(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=vme(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=yme(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:jt,o:jt,d:function(a){a&&Fe(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Nrt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Frt=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Nrt,Irt,ps,{editorState:3},Ort),r}return Se(e)}(),cR=E4.define([{tag:dn.propertyName,color:"var(--jse-key-color)"},{tag:dn.number,color:"var(--jse-value-color-number)"},{tag:dn.bool,color:"var(--jse-value-color-boolean)"},{tag:dn.string,color:"var(--jse-value-color-string)"},{tag:dn.keyword,color:"var(--jse-value-color-null)"}]),Prt=Mfe(cR),jrt=cR.style;function uR(t){return t.doc.lineAt(t.selection.main.head)}function _me(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=_me(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=_me(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=uR(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=Re(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,_=g.from;_<=y;){var w=f.doc.lineAt(_);p.has(w)||p.add(w),_=w.to+1}}catch(k){m.e(k)}finally{m.f()}return p}(this.view,n),o=new Rrt(r,n,this.unitWidth),s=n.facet(YD).hideFirstIndent,a=Re(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=$rt(c,this.unitWidth,s);i.add(l.from,l.from,mi.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function Vrt(){return[YD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lrt,ya.fromClass(Brt,{decorations:function(n){return n.decorations}})]}function Hrt(t){di(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function dR(t){var n=t.slice();return n[93]=0===n[10].length,n}function bme(t){var n,e;return n=new uet({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Urt(t){var n;return{c:function(){(n=ve("div")).innerHTML='
    \n
    loading...
    ',j(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function zrt(t){var n,e,i,r,o,s=t[92]&&xme(t),a=!t[92]&&wme(t);return{c:function(){n=ve("div"),e=tt(),s&&s.c(),i=tt(),a&&a.c(),r=br(),j(n,"class","jse-contents svelte-1yqirn0"),At(n,"jse-hidden",t[92])},m:function(l,c){Pe(l,n,c),t[50](n),Pe(l,e,c),s&&s.m(l,c),Pe(l,i,c),a&&a.m(l,c),Pe(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&At(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&K(s,1)):((s=xme(l)).c(),K(s,1),s.m(i.parentNode,i)):s&&(Rt(),ae(s,1,1,function(){s=null}),Lt()),l[92]?a&&(Rt(),ae(a,1,1,function(){a=null}),Lt()):a?(a.p(l,c),1152&c[0]&&K(a,1)):((a=wme(l)).c(),K(a,1),a.m(r.parentNode,r))},i:function(l){o||(K(s),K(a),o=!0)},o:function(l){ae(s),ae(a),o=!1},d:function(l){l&&Fe(n),t[50](null),l&&Fe(e),s&&s.d(l),l&&Fe(i),a&&a.d(l),l&&Fe(r)}}}function xme(t){var n,e,i,r,o,s=sh(t[10]||"",2e4)+"";return n=new td({props:{icon:tg,type:"error",message:"The JSON document is larger than ".concat(Ik(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Ik(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){ft(n.$$.fragment),e=tt(),i=ve("div"),r=tn(s),j(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){dt(n,a,l),Pe(a,e,l),Pe(a,i,l),ue(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(Ik(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Ik(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=sh(a[10]||"",2e4)+"")&&Wn(r,s)},i:function(a){o||(K(n.$$.fragment,a),o=!0)},o:function(a){ae(n.$$.fragment,a),o=!1},d:function(a){ht(n,a),a&&Fe(e),a&&Fe(i)}}}function wme(t){var n,e,i,r,o,s=!t[13]&&t[8]&&Cse(t[10]),a=t[2]&&Cme(t),l=t[13]&&Sme(t),c=s&&kme(t);return r=new JP({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=tt(),l&&l.c(),e=tt(),c&&c.c(),i=tt(),ft(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),Pe(u,n,d),l&&l.m(u,d),Pe(u,e,d),c&&c.m(u,d),Pe(u,i,d),dt(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&K(a,1)):((a=Cme(u)).c(),K(a,1),a.m(n.parentNode,n)):a&&(Rt(),ae(a,1,1,function(){a=null}),Lt()),u[13]?l?(l.p(u,d),8192&d[0]&&K(l,1)):((l=Sme(u)).c(),K(l,1),l.m(e.parentNode,e)):l&&(Rt(),ae(l,1,1,function(){l=null}),Lt()),9472&d[0]&&(s=!u[13]&&u[8]&&Cse(u[10])),s?c?(c.p(u,d),9472&d[0]&&K(c,1)):((c=kme(u)).c(),K(c,1),c.m(i.parentNode,i)):c&&(Rt(),ae(c,1,1,function(){c=null}),Lt());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(K(a),K(l),K(c),K(r.$$.fragment,u),o=!0)},o:function(u){ae(a),ae(l),ae(c),ae(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&Fe(n),l&&l.d(u),u&&Fe(e),c&&c.d(u),u&&Fe(i),ht(r,u)}}}function Cme(t){var n,e;return n=new Frt({props:{editorState:t[6]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Sme(t){var n,e;return n=new td({props:{type:"error",icon:tg,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function kme(t){var n,e;return n=new td({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:ij,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:F0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:ij,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:F0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Grt(t){var n,e,i,r,o,s=t[1]&&bme(dR(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[zrt,Urt][i](c(t,i)),{c:function(){n=ve("div"),s&&s.c(),e=tt(),r.c(),j(n,"class","jse-text-mode svelte-1yqirn0"),At(n,"no-main-menu",!t[1])},m:function(u,d){Pe(u,n,d),s&&s.m(n,null),ue(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(dR(u),d),2&d[0]&&K(s,1)):((s=bme(dR(u))).c(),K(s,1),s.m(n,e)):s&&(Rt(),ae(s,1,1,function(){s=null}),Lt()),r.p(c(u,i),d),(!o||2&d[0])&&At(n,"no-main-menu",!u[1])},i:function(u){o||(K(s),K(r),o=!0)},o:function(u){ae(s),ae(r),o=!1},d:function(u){u&&Fe(n),s&&s.d(),l[i].d(),t[52](null)}}}function Dme(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function Wrt(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,_=n.onChange,w=n.onChangeMode,k=n.onError,D=n.onFocus,L=n.onBlur,z=n.onRenderMenu,R=n.onSortModal,U=n.onTransformModal,G=ga("jsoneditor:TextMode"),X={key:"Mod-i",run:ie,shift:Me,preventDefault:!0},te=typeof window>"u";G("isSSR:",te);var P=!1,W=!0,J=[],H=new Sp,le=new Sp,E=new Sp,O=new Sp,I=new Sp,q=new Sp,V=h,re=ok(V,f,g),de=m;qc(Ki(pn().mark(function pt(){return pn().wrap(function(In){for(;;)switch(In.prev=In.next){case 0:if(!te){In.next=2;break}return In.abrupt("return");case 2:try{s=Hn({target:o,initialText:Mo(re,P)?"":i.escapeValue(re),readOnly:c,indentation:f})}catch(oi){console.error(oi)}case 3:case"end":return In.stop()}},pt)}))),Vu(function(){s&&(G("Destroy CodeMirror editor"),s.destroy())});var Oe=!1,ye=!1,Xe=hp(),Le=hp();function rt(){s&&(G("focus"),s.focus())}var $=!1;function ne(pt){G("patch",pt);var In=g.parse(re),oi=Yu(In,pt),vi=UZ(In,pt);return dr({text:g.stringify(oi,null,f)}),{json:oi,previousJson:In,undo:vi,redo:pt}}function ie(){if(G("format"),c)return!1;try{var pt=g.parse(re);return dr({text:g.stringify(pt,null,f)}),e(8,W=!0),!0}catch(In){k(In)}return!1}function Me(){if(G("compact"),c)return!1;try{var pt=g.parse(re);return dr({text:g.stringify(pt)}),e(8,W=!1),!0}catch(In){k(In)}return!1}function Ye(){if(G("repair"),!c)try{dr({text:Jd(re)}),e(49,On="valid"),e(13,bt=null)}catch(pt){k(pt)}}function je(pt){var In=pt.id,oi=pt.rootPath,vi=pt.onTransform,Tr=pt.onClose;try{var Hr=g.parse(re);$=!0,U({id:In||Le,json:Hr,rootPath:oi||[],onTransform:function(no){vi?vi({operations:no,json:Hr,transformedJson:Yu(Hr,no)}):(G("onTransform",no),ne(no))},onClose:function(){$=!1,rt(),Tr&&Tr()}})}catch(no){k(no)}}function gt(pt,In){G("setSelection",{anchor:pt,head:In}),s&&s.dispatch(s.state.update({selection:{anchor:pt,head:In},scrollIntoView:!0}))}function Tt(pt,In){if(1===In.state.selection.ranges.length){var oi=In.state.selection.ranges[0],vi=re.slice(oi.from,oi.to);if("{"===vi||"["===vi){var Tr=sS.parse(re),Hr=Object.keys(Tr.pointers).find(function(Hs){var gr;return(null===(gr=Tr.pointers[Hs].value)||void 0===gr?void 0:gr.pos)===oi.from}),no=Tr.pointers[Hr];Hr&&no&&no.value&&no.valueEnd&&(G("pointer found, selecting inner contents of path:",Hr,no),gt(no.value.pos+1,no.valueEnd.pos-1))}}}function fn(){return function(pt){return pg.of({source:pt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(ai,{delay:300})}function Hn(pt){var In=pt.target,oi=pt.initialText,vi=pt.readOnly,Tr=pt.indentation;G("Create CodeMirror editor",{readOnly:vi,indentation:Tr});var Hr=Eo.create({doc:oi,extensions:[tD.of([wit,X]),H.of(fn()),vrt(),yrt,Prt,Vrt({hideFirstIndent:!0}),Gn.domEventHandlers({dblclick:Tt}),Gn.updateListener.of(function(no){e(6,l=no.state),no.docChanged&&gi()}),new Snt(Mrt),Ait({top:!0}),E.of(Eo.readOnly.of(vi)),le.of(Gn.editable.of(!vi)),I.of(Eo.tabSize.of(p)),O.of(sr(Tr)),q.of(Gn.theme({},{dark:Zt()})),Gn.lineWrapping]});return s=new Gn({state:Hr,parent:In})}function Zt(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Ei(pt){var In=pt.path,oi=pt.message,vi=function(Tr,Hr){try{var no=sS.parse(Tr),Hs=an(Hr),gr=no.pointers[Hs];if(gr)return{path:Hr,line:gr.key?gr.key.line:gr.value?gr.value.line:0,column:gr.key?gr.key.column:gr.value?gr.value.column:0,from:gr.key?gr.key.pos:gr.value?gr.value.pos:0,to:gr.keyEnd?gr.keyEnd.pos:gr.valueEnd?gr.valueEnd.pos:0}}catch(Us){console.error(Us)}return null}(i.escapeValue(re),In);return{path:In,line:vi.line,column:vi.column,from:vi.from,to:vi.to,message:oi,severity:Xd.warning,actions:[]}}function ln(pt,In){var Tr=pt.position;return{path:[],line:pt.line,column:pt.column,from:Tr,to:Tr,severity:Xd.error,message:pt.message,actions:In&&!c?[{name:"Auto repair",apply:function(){return Ye()}}]:null}}function dr(pt){var In=arguments.length>1&&void 0!==arguments[1]&&arguments[1],oi=ok(pt,f,g),vi=!rr(pt,V),Tr=V;V=pt,e(10,re=oi),G("setCodeMirrorContent",{isChanged:vi,forceUpdate:In}),s&&(vi||In)&&(Mo(re,P)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(re)}}),mr(),vi&&Vr(V,Tr))}function wr(){if(s){var pt=s?i.unescapeValue(s.state.doc.toString()):"",In=pt!==re;if(G("onChangeCodeMirrorValue",{isChanged:In}),In){var oi=V;e(10,re=pt),V={text:re},mr(),Vr(V,oi)}}}function sr(pt){return vD.of("number"==typeof pt?" ".repeat(pt):pt)}function mr(){e(11,Oe=uit(s.state)>0),e(12,ye=dit(s.state)>0),G({canUndo:Oe,canRedo:ye})}XP({onMount:qc,onDestroy:Vu,getWindow:function(){return x0(a)},hasFocus:function(){return $&&document.hasFocus()||ak(a)},onFocus:D,onBlur:L});var gi=h0(wr,300);function Vr(pt,In){_&&_(pt,In,{contentErrors:Ii(),patchResult:null})}function Mo(pt,In){return!!pt&&pt.length>10485760&&!In}var On="valid",bt=null;function ai(){if(Mo(re,P))return[];var pt=Ii();return Rle(pt)?[Dme(ln(pt.parseError,pt.isRepairable))]:function qJe(t){return Do(t)&&Array.isArray(t.validationErrors)}(pt)?pt.validationErrors.map(Ei).map(Dme):[]}function Ii(){G("validate:start"),gi.flush();var pt=Cr(i.escapeValue(re),v,g,y);return Rle(pt)?(e(49,On=pt.isRepairable?"repairable":"invalid"),e(13,bt=pt.parseError),e(9,J=[])):(e(49,On="valid"),e(13,bt=null),e(9,J=pt?.validationErrors||[])),G("validate:end"),pt}var Cr=xb(OJe);function vo(){bt&&function(pt){G("select parse error",pt);var In=ln(pt,!1);gt(In.from,In.to),rt()}(bt)}var Yo={icon:yXe,text:"Show me",title:"Move to the parse error location",onClick:vo};return t.$$set=function(pt){"readOnly"in pt&&e(0,c=pt.readOnly),"mainMenuBar"in pt&&e(1,u=pt.mainMenuBar),"statusBar"in pt&&e(2,d=pt.statusBar),"externalContent"in pt&&e(29,h=pt.externalContent),"indentation"in pt&&e(30,f=pt.indentation),"tabSize"in pt&&e(31,p=pt.tabSize),"escapeUnicodeCharacters"in pt&&e(32,m=pt.escapeUnicodeCharacters),"parser"in pt&&e(33,g=pt.parser),"validator"in pt&&e(34,v=pt.validator),"validationParser"in pt&&e(35,y=pt.validationParser),"onChange"in pt&&e(36,_=pt.onChange),"onChangeMode"in pt&&e(37,w=pt.onChangeMode),"onError"in pt&&e(38,k=pt.onError),"onFocus"in pt&&e(39,D=pt.onFocus),"onBlur"in pt&&e(40,L=pt.onBlur),"onRenderMenu"in pt&&e(3,z=pt.onRenderMenu),"onSortModal"in pt&&e(41,R=pt.onSortModal),"onTransformModal"in pt&&e(42,U=pt.onTransformModal)},t.$$.update=function(){var pt;2&t.$$.dirty[1]&&(i=mP({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&dr(h),8&t.$$.dirty[1]&&(G("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(fn())})),1073741824&t.$$.dirty[0]&&(pt=f,s&&(G("updateIndentation",pt),s.dispatch({effects:O.reconfigure(sr(pt))}))),1&t.$$.dirty[1]&&function(pt){s&&(G("updateTabSize",pt),s.dispatch({effects:I.reconfigure(Eo.tabSize.of(pt))}))}(p),1&t.$$.dirty[0]&&function(pt){s&&(G("updateReadOnly",pt),s.dispatch({effects:[E.reconfigure(Eo.readOnly.of(pt)),le.reconfigure(Gn.editable.of(!pt))]}))}(c),131074&t.$$.dirty[1]&&de!==m&&(e(48,de=m),G("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(re)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==On||c?[Yo]:[{icon:mk,text:"Auto repair",title:"Automatically repair JSON",onClick:Ye},Yo])},[c,u,d,z,o,a,l,P,W,J,re,Oe,ye,bt,r,te,ie,Me,function(){var pt;if(!c)try{var In=g.parse(re);$=!0,R({id:Xe,json:In,rootPath:[],onSort:(pt=Ki(pn().mark(function oi(vi){var Tr;return pn().wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:G("onSort",Tr=vi.operations),ne(Tr);case 3:case"end":return Hr.stop()}},oi)})),function(oi){return pt.apply(this,arguments)}),onClose:function(){$=!1,rt()}})}catch(oi){k(oi)}},function(){c||je({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?Q4(s):K4(s))},function(){c||s&&($4(s),rt())},function(){c||s&&(CD(s),rt())},function(){e(7,P=!0),dr(h,!0)},function(){w(Wo.tree)},function(){wr()},function(pt){G("select validation error",pt);var In=Ei(pt);gt(In.from,In.to),rt()},Mo,vo,h,f,p,m,g,v,y,_,w,k,D,L,R,U,rt,ne,je,function(){G("refresh"),Ul().then(function(){if(s){var pt=Zt();G("updateTheme",{dark:pt}),s.dispatch({effects:[q.reconfigure(Gn.theme({},{dark:pt}))]})}})},Ii,de,On,function(pt){Hi[pt?"unshift":"push"](function(){e(4,o=pt)})},function(){return e(8,W=!1)},function(pt){Hi[pt?"unshift":"push"](function(){e(5,a=pt)})}]}var qrt=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Wrt,Grt,Ti,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},Hrt,[-1,-1,-1,-1]),r}return Se(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function Yrt(t){var n,e;return n=new Ek({props:{items:t[0]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Xrt(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:vk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:pk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:Mae,title:cN,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:LP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:RP,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var Jrt=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Xrt,Yrt,Ti,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Se(e)}();function Tme(t,n,e){var i=t.slice();return i[9]=n[e],i}function Eme(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],_=qi(v);_.length>0&&!Xc(m,_);)y.unshift({op:"add",path:an(_),value:{}}),_=qi(_);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&Yi(c)&&mp(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var Zrt=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Qrt,Krt,Ti,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Se(e)}();function eot(t){di(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function tot(t){var n,e,i,r,o=sh(t[2].stringify(t[1]),50)+"";return{c:function(){n=ve("button"),e=tn(o),j(n,"type","button"),j(n,"class","jse-inline-value svelte-l28mqd"),At(n,"jse-selected",t[3])},m:function(s,a){Pe(s,n,a),ue(n,e),i||(r=It(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Un(a,1)[0];6&l&&o!==(o=sh(s[2].stringify(s[1]),50)+"")&&Wn(e,o),8&l&&At(n,"jse-selected",s[3])},i:jt,o:jt,d:function(s){s&&Fe(n),i=!1,r()}}}function not(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=eo(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var iot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,not,tot,Ti,{path:0,value:1,parser:2,isSelected:3,onEdit:4},eot),r}return Se(e)}();function rot(t){di(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function Ame(t){var n,e,i,r;return e=new or({props:{data:t[1]===Yc.asc?ou:Aae}}),{c:function(){n=ve("span"),ft(e.$$.fragment),j(n,"class","jse-column-sort-icon svelte-h4fort"),j(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){Pe(o,n,s),dt(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===Yc.asc?ou:Aae),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&j(n,"title",i)},i:function(o){r||(K(e.$$.fragment,o),r=!0)},o:function(o){ae(e.$$.fragment,o),r=!1},d:function(o){o&&Fe(n),ht(e)}}}function oot(t){var n,e,i,r,o,s,a,l,c=sh(t[3],50)+"",u=void 0!==t[1]&&Ame(t);return{c:function(){n=ve("button"),e=ve("span"),i=tn(c),r=tt(),u&&u.c(),j(e,"class","jse-column-name"),j(n,"type","button"),j(n,"class","jse-column-header svelte-h4fort"),j(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),At(n,"jse-readonly",t[0])},m:function(d,h){Pe(d,n,h),ue(n,e),ue(e,i),ue(n,r),u&&u.m(n,null),s=!0,a||(l=It(n,"click",t[4]),a=!0)},p:function(d,h){var f=Un(h,1)[0];(!s||8&f)&&c!==(c=sh(d[3],50)+"")&&Wn(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&K(u,1)):((u=Ame(d)).c(),K(u,1),u.m(n,null)):u&&(Rt(),ae(u,1,1,function(){u=null}),Lt()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&j(n,"title",o),(!s||1&f)&&At(n,"jse-readonly",d[0])},i:function(d){s||(K(u),s=!0)},o:function(d){ae(u),s=!1},d:function(d){d&&Fe(n),u&&u.d(),a=!1,l()}}}function sot(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Ui(s)?"values":nu(Wl(s))),96&t.$$.dirty&&e(1,r=rr(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=$He[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===Yc.asc?Yc.desc:Yc.asc})},s,a,c]}var XD,JD,aot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,sot,oot,Ti,{path:5,sortedColumn:6,readOnly:0,onSort:7},rot),r}return Se(e)}();function Mme(t,n){return XD||(JD=new WeakMap,XD=new ResizeObserver(function(e){var i,r=Re(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=JD.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),JD.set(t,n),XD.observe(t),{destroy:function(){JD.delete(t),XD.unobserve(t)}}}function lot(t){var n,e;return n=new ace({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function cot(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,_=n.onEditValue,w=n.onEditRow,k=n.onToggleEnforceString,D=n.onCut,L=n.onCopy,z=n.onPaste,R=n.onRemove,U=n.onDuplicateRow,G=n.onInsertBeforeRow,X=n.onInsertAfterRow,te=n.onRemoveRow;function P(){y(),_()}function W(){y(),w()}function J(){y(),k()}function H(){y(),D(!0)}function le(){y(),D(!1)}function E(){y(),L(!0)}function O(){y(),L(!1)}function I(){y(),z()}function q(){y(),R()}function V(){y(),U()}function re(){y(),G()}function de(){y(),X()}function Oe(){y(),te()}return t.$$set=function(ye){"json"in ye&&e(2,p=ye.json),"documentState"in ye&&e(3,m=ye.documentState),"parser"in ye&&e(4,g=ye.parser),"showTip"in ye&&e(0,v=ye.showTip),"onCloseContextMenu"in ye&&e(5,y=ye.onCloseContextMenu),"onEditValue"in ye&&e(6,_=ye.onEditValue),"onEditRow"in ye&&e(7,w=ye.onEditRow),"onToggleEnforceString"in ye&&e(8,k=ye.onToggleEnforceString),"onCut"in ye&&e(9,D=ye.onCut),"onCopy"in ye&&e(10,L=ye.onCopy),"onPaste"in ye&&e(11,z=ye.onPaste),"onRemove"in ye&&e(12,R=ye.onRemove),"onDuplicateRow"in ye&&e(13,U=ye.onDuplicateRow),"onInsertBeforeRow"in ye&&e(14,G=ye.onInsertBeforeRow),"onInsertAfterRow"in ye&&e(15,X=ye.onInsertAfterRow),"onRemoveRow"in ye&&e(16,te=ye.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Ui(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Sn(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Ir(i)||vs(i)||Yi(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Ir(i)||Yi(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&db(i)&&!s&&Array.isArray(Sn(p,qi(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&db(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!Lo(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&Zm(i)&&Do(a),29491200&t.$$.dirty[0]&&d&&Zm(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&Zm(i)&&Lo(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&hf(a,m.enforceStringMap,an(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:P,icon:I0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:I0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:P,disabled:!c},{type:"button",icon:h?ab:lb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:J,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:O0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:O0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:O0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:le,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:E,icon:yp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:yp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:E,disabled:!l},{type:"button",icon:yp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:O,disabled:!l}]},{type:"button",onClick:I,icon:Dae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:q,icon:jP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:W,icon:I0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:Nae,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:re,icon:N0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:de,icon:N0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:Oe,icon:jP,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,_,w,k,D,L,z,R,U,G,X,te,o,l,u,h,c,i,a,d,r,s]}var uot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,cot,lot,Ti,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Se(e)}();function dot(t){di(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function Ome(t,n,e){var i=t.slice();i[12]=n[e];var r=Sn(i[0],i[12]).length;return i[13]=r,i}function hot(t){var n,e;return{c:function(){n=tn(t[5]),e=tn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){Pe(i,n,r),Pe(i,e,r)},p:function(i,r){32&r&&Wn(n,i[5])},d:function(i){i&&Fe(n),i&&Fe(e)}}}function fot(t){var n;return{c:function(){n=tn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){Pe(e,n,i)},p:jt,d:function(e){e&&Fe(n)}}}function Ime(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=nu(Wl(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=ve("button"),e=tn(t[6]),i=tn(' "'),r=tn(p),o=tn('"\n '),s=ve("span"),a=tn("("),l=tn(m),c=tt(),u=tn(g),d=tn(")"),j(s,"class","jse-nested-array-count svelte-1te5h1h"),j(n,"type","button"),j(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,_){Pe(y,n,_),ue(n,e),ue(n,i),ue(n,r),ue(n,o),ue(n,s),ue(s,a),ue(s,l),ue(s,c),ue(s,u),ue(s,d),h||(f=It(n,"click",v),h=!0)},p:function(y,_){t=y,64&_&&Wn(e,t[6]),8&_&&p!==(p=nu(Wl(t[12]))+"")&&Wn(r,p),9&_&&m!==(m=t[13]+"")&&Wn(l,m),9&_&&g!==(g=1!==t[13]?"items":"item")&&Wn(u,g)},d:function(y){y&&Fe(n),h=!1,f()}}}function pot(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(z,R){return z[4]?fot:hot}for(var _=y(t),w=_(t),k=t[3],D=[],L=0;L1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){ko(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Ui(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?ko(l)?"An object":eo(l)?"An empty array":"A ".concat(AN(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Wo.tree)}]}var got=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,mot,pot,Ti,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},dot),r}return Se(e)}();function vot(t){di(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function yot(t){var n,e,i,r,o,s;return e=new or({props:{data:SXe}}),{c:function(){n=ve("button"),ft(e.$$.fragment),j(n,"type","button"),j(n,"class","jse-column-header svelte-h4fort"),j(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){Pe(a,n,l),dt(e,n,null),r=!0,o||(s=It(n,"click",t[3]),o=!0)},p:function(a,l){var c=Un(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&j(n,"title",i)},i:function(a){r||(K(e.$$.fragment,a),r=!0)},o:function(a){ae(e.$$.fragment,a),r=!1},d:function(a){a&&Fe(n),ht(e),o=!1,s()}}}function _ot(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var bot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,_ot,yot,Ti,{count:0,maxSampleCount:1,onRefresh:2},vot),r}return Se(e)}();function xot(t){di(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function Nme(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function Fme(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Sn(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function Pme(t,n,e){var i=t.slice();return i[125]=n[e],i}function jme(t){var n,e;return n=new Jrt({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function wot(t){var n;return{c:function(){(n=ve("div")).innerHTML='
    \n
    loading...
    ',j(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function Cot(t){var n,e,i,r,o,s,a,l,c,u=[Dot,kot,Sot],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=ve("label"),e=ve("input"),i=tt(),o.c(),s=br(),j(e,"type","text"),e.readOnly="readonly",j(e,"tabindex","-1"),j(e,"class","jse-hidden-input svelte-hs49xj"),j(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){Pe(f,n,p),ue(n,e),t[71](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=It(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Rt(),ae(d[m],1,1,function(){d[m]=null}),Lt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),K(o,1),o.m(s.parentNode,s))},i:function(f){a||(K(o),a=!0)},o:function(f){ae(o),a=!1},d:function(f){f&&Fe(n),t[71](null),f&&Fe(i),d[r].d(f),f&&Fe(s),l=!1,c()}}}function Sot(t){var n,e;return n=new got({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function kot(t){var n,e,i,r;return n=new td({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:vp,text:"Repair manually",onClick:t[35]}]}}),i=new hue({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){ft(n.$$.fragment),e=tt(),ft(i.$$.fragment)},m:function(o,s){dt(n,o,s),Pe(o,e,s),dt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:vp,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(K(n.$$.fragment,o),K(i.$$.fragment,o),r=!0)},o:function(o){ae(n.$$.fragment,o),ae(i.$$.fragment,o),r=!1},d:function(o){ht(n,o),o&&Fe(e),ht(i,o)}}}function Dot(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R=!Ui(null===(n=t[21])||void 0===n?void 0:n.root),U=R&&Rme(t),G=t[9],X=[],te=0;te"u";a("isSSR:",m);var g,v,y,_,w,k,D=n.readOnly,L=n.externalContent,z=n.mainMenuBar,R=n.escapeControlCharacters,U=n.escapeUnicodeCharacters,G=n.flattenColumns,X=n.parser,te=n.parseMemoizeOne,P=n.validator,W=n.validationParser,J=n.indentation,H=n.onChange,le=n.onChangeMode,E=n.onRenderValue,O=n.onRenderMenu,I=n.onFocus,q=n.onBlur,V=n.onSortModal,re=n.onTransformModal,de=n.onJSONEditorModal;XP({onMount:qc,onDestroy:Vu,getWindow:function(){return x0(v)},hasFocus:function(){return rt&&document.hasFocus()||ak(v)},onFocus:function(){I&&I()},onBlur:function(){q&&q()}});var Oe,ye=void 0,Xe=1e4,Le=[],rt=!1,$={},ne=600,ie=0;function Me(Te){a("updateSelection",Te);var St="function"==typeof Te?Te(je.selection):Te;rr(St,je.selection)||e(10,je=Qe(Qe({},je),{},{selection:St}))}function Ye(Te){void 0!==je.selection&&void 0!==Te&&(je.selection&&Xc(Te,je.selection.anchorPath)&&Xc(Te,je.selection.focusPath)||(a("clearing selection: path does not exist anymore",je.selection),e(10,je=Qe(Qe({},je),{},{selection:D0(Te,je)}))))}var Tt,je=ck(),gt=!1,fn=Sle({onChange:function(Te){e(19,Hn=Te)}}),Hn=fn.getState();function Ei(Te){var St=Te.previousJson,Vt=Te.previousState,rn=Te.previousText,un=Te.previousTextIsRepaired;void 0===St&&void 0===rn||(void 0!==w?fn.add(void 0!==St?{undo:{patch:[{op:"replace",path:"",value:St}],state:rl(Vt),json:void 0,text:rn,textIsRepaired:un},redo:{patch:[{op:"replace",path:"",value:w}],state:rl(je),json:void 0,text:k,textIsRepaired:gt}}:{undo:{patch:void 0,json:void 0,text:rn,state:rl(Vt),textIsRepaired:un},redo:{patch:void 0,json:w,state:rl(je),text:k,textIsRepaired:gt}}):void 0!==St&&fn.add({undo:{patch:void 0,json:St,state:rl(Vt),text:rn,textIsRepaired:un},redo:{patch:void 0,json:void 0,text:k,textIsRepaired:gt,state:rl(je)}}))}var ln=[],dr=xb(kle);function wr(Te,St,Vt,rn){j0(function(){var un;try{un=dr(Te,St,Vt,rn)}catch(ni){un=[{path:[],message:"Failed to validate: "+ni.message,severity:Xd.warning}]}rr(un,ln)||(a("validationErrors changed:",un),e(11,ln=un))},function(un){return a("validationErrors updated in ".concat(un," ms"))})}function sr(){return a("validate"),ye?{parseError:ye,isRepairable:!1}:(wr(w,P,X,W),Ui(ln)?null:{validationErrors:ln})}function mr(Te,St){if(a("patch",Te,St),void 0===w)throw new Error("Cannot apply patch: no JSON");var Vt={json:w},rn=w,un=je,ni=gt,Ni=gae(w,Te),$n=Jse(w,je,Te).json,Zn=function TZe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=su(qu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return rr(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?Qe(Qe({},t),{},{sortedColumn:void 0}):t}(je,Te,Le),Yn="function"==typeof St?St($n,Zn):void 0;e(7,w=Yn&&void 0!==Yn.json?Yn.json:$n);var yr=Yn&&void 0!==Yn.state?Yn.state:Zn;e(10,je=yr),e(15,k=void 0),e(18,gt=!1),e(17,Oe=void 0),fn.add({undo:{patch:Ni,json:void 0,text:void 0,state:rl(un),textIsRepaired:ni},redo:{patch:Te,json:void 0,state:rl(yr),text:void 0,textIsRepaired:gt}});var Er={json:w,previousJson:rn,undo:Ni,redo:Te};return Vr(Vt,Er),Er}function gi(Te,St){if(!D)return mr(Te,St)}function Vr(Te,St){(void 0!==Te.json||void 0!==Te?.text)&&(void 0!==k?H({text:k,json:void 0},Te,{contentErrors:sr(),patchResult:St}):void 0!==w&&H({text:void 0,json:w},Te,{contentErrors:sr(),patchResult:St}))}function Mo(Te){a("handleFind",Te)}function On(Te){a("pasted json as text",Te),e(17,Oe=Te)}function bt(Te){var St=parseInt(Te[0]),Vt=[String(St+1)].concat(ri(Te.slice(1)));return Xc(w,Vt)?fr(Vt,!1):fr(Te,!1)}function ai(){_&&(_.focus(),_.select())}function Ii(){je.selection||Me(function(){if(eo(w)&&!Ui(w)&&!Ui(Le))return fr(["0"].concat(ri(Le[0])),!1)}())}function Cr(Te){var St=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Vt=aj(Te,Le,$,18),rn=Vt-ie,un=pt(Te);a("scrollTo",{path:Te,top:Vt,scrollTop:ie,elem:un});var ni=y.getBoundingClientRect();if(un&&!St){var Ni=un.getBoundingClientRect();if(Ni.bottom>ni.top&&Ni.topVt.right&&e(13,y.scrollLeft+=rn.right-Vt.right,y),rn.left($n=ie+ni.height-18)&&e(13,y.scrollTop+=un-$n,y),rn0&&void 0!==Vt[0])||Vt[0],void 0!==w){rn.next=3;break}return rn.abrupt("return");case 3:return rn.next=5,lue({json:w,documentState:je,indentation:St?J:void 0,parser:X});case 5:case"end":return rn.stop()}},Te)})),Ua.apply(this,arguments)}function Mc(){uue({json:w,text:k,documentState:je,keepSelection:!0,readOnly:D,onChange:H,onPatch:gi})}function xe(){!function EZe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&A0(e.selection)){var s=su(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;kl("duplicate row",{rowIndex:a});var c=[String(a)];o(fae(n,[c]),function(u,d){var h=fr(og({rowIndex:a0?a-1:void 0,h=void 0!==d?fr(og({rowIndex:d,columnIndex:l},i),!1):void 0;return kl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:Qe(Qe({},u),{},{selection:h})}})}}({json:w,documentState:je,columns:Le,readOnly:D,onPatch:gi})}function Ue(){return(Ue=Ki(pn().mark(function Te(St){return pn().wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Vt.next=2,due({char:St,selectInside:!1,refJsonEditor:v,json:w,documentState:je,readOnly:D,parser:X,onPatch:gi,onReplaceJson:kn,onSelect:Me});case 2:case"end":return Vt.stop()}},Te)}))).apply(this,arguments)}function kn(Te,St){var Vt=je,rn=w,un=k,ni={json:w,text:k},Ni=gt,$n=iu(w,je,[],ah),Zn="function"==typeof St?St(Te,$n):void 0;e(7,w=Zn&&void 0!==Zn.json?Zn.json:Te),e(10,je=Zn&&void 0!==Zn.state?Zn.state:$n),e(15,k=void 0),e(18,gt=!1),Ye(w),Ei({previousJson:rn,previousState:Vt,previousText:un,previousTextIsRepaired:Ni}),Vr(ni,null)}function ti(Te,St){a("handleChangeText");var Vt=je,rn=w,un=k,ni={json:w,text:k},Ni=gt;try{e(7,w=te(Te)),e(10,je=iu(w,je,[],ah)),e(15,k=void 0),e(18,gt=!1)}catch{try{e(7,w=te(Jd(Te))),e(10,je=iu(w,je,[],ah)),e(15,k=Te),e(18,gt=!0)}catch{e(7,w=void 0),e(10,je=ck({json:w,expand:ah})),e(15,k=Te),e(18,gt=!1)}}if("function"==typeof St){var $n=St(w,je);e(7,w=$n&&$n.json?$n.json:w),e(10,je=$n&&$n.state?$n.state:je)}Ye(w),Ei({previousJson:rn,previousState:Vt,previousText:un,previousTextIsRepaired:Ni}),Vr(ni,null)}function ci(Te){var Vt=Te.rootPath,rn=Te.onTransform,un=Te.onClose;D||void 0===w||(rt=!0,re({id:Te.id||p,json:w,rootPath:Vt||[],onTransform:rn?function(ni){rn({operations:ni,json:w,transformedJson:Yu(w,ni)})}:function(ni){a("onTransform",Vt,ni),gi(ni)},onClose:function(){rt=!1,ai(),un&&un()}}))}function li(Te){a("openJSONEditorModal",{path:Te}),rt=!0,de({content:{json:Sn(w,Te)},path:Te,onPatch:Tt.onPatch,onClose:function(){rt=!1,ai()}})}function Sr(Te,St){l(Wle,{text:Te,onParse:ik,onRepair:vse,onApply:St},Qe(Qe({},$m),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return ai()}})}function qr(){if(!D&&fn.getState().canUndo){var Te=fn.undo();if(Te){var St={json:w,text:k};e(7,w=Te.undo.patch?Yu(w,Te.undo.patch):Te.undo.json),e(10,je=Te.undo.state),e(15,k=Te.undo.text),e(18,gt=Te.undo.textIsRepaired),a("undo",{item:Te,json:w}),Vr(St,{json:w,previousJson:St.json,redo:Te.undo.patch,undo:Te.redo.patch}),ai(),je.selection&&Cr(je.selection.focusPath,!1)}}}function fi(){if(!D&&fn.getState().canRedo){var Te=fn.redo();if(Te){var St={json:w,text:k};e(7,w=Te.redo.patch?Yu(w,Te.redo.patch):Te.redo.json),e(10,je=Te.redo.state),e(15,k=Te.redo.text),e(18,gt=Te.redo.textIsRepaired),a("redo",{item:Te,json:w}),Vr(St,{json:w,previousJson:St.json,redo:Te.redo.patch,undo:Te.undo.patch}),ai(),je.selection&&Cr(je.selection.focusPath,!1)}}}function vr(Te,St){e(68,$[St]=Te.getBoundingClientRect().height,$)}return t.$$set=function(Te){"readOnly"in Te&&e(0,D=Te.readOnly),"externalContent"in Te&&e(47,L=Te.externalContent),"mainMenuBar"in Te&&e(1,z=Te.mainMenuBar),"escapeControlCharacters"in Te&&e(48,R=Te.escapeControlCharacters),"escapeUnicodeCharacters"in Te&&e(49,U=Te.escapeUnicodeCharacters),"flattenColumns"in Te&&e(50,G=Te.flattenColumns),"parser"in Te&&e(2,X=Te.parser),"parseMemoizeOne"in Te&&e(51,te=Te.parseMemoizeOne),"validator"in Te&&e(52,P=Te.validator),"validationParser"in Te&&e(53,W=Te.validationParser),"indentation"in Te&&e(3,J=Te.indentation),"onChange"in Te&&e(54,H=Te.onChange),"onChangeMode"in Te&&e(4,le=Te.onChangeMode),"onRenderValue"in Te&&e(55,E=Te.onRenderValue),"onRenderMenu"in Te&&e(5,O=Te.onRenderMenu),"onFocus"in Te&&e(56,I=Te.onFocus),"onBlur"in Te&&e(57,q=Te.onBlur),"onSortModal"in Te&&e(58,V=Te.onSortModal),"onTransformModal"in Te&&e(59,re=Te.onTransformModal),"onJSONEditorModal"in Te&&e(60,de=Te.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=mP({escapeControlCharacters:R,escapeUnicodeCharacters:U})),65536&t.$$.dirty[1]&&function Zt(Te){var St=w,Vt=_0(Te)?Te.text!==k:!rr(St,Te.json);if(a("update external content",{isChanged:Vt}),Vt){var rn={json:w,text:k},un=w,ni=je,Ni=k,$n=gt;if(_0(Te))try{e(7,w=te(Te.text)),e(15,k=Te.text),e(18,gt=!1),e(16,ye=void 0)}catch(Zn){try{e(7,w=te(Jd(Te.text))),e(15,k=Te.text),e(18,gt=!0),e(16,ye=void 0)}catch{e(7,w=void 0),e(15,k=L.text),e(18,gt=!1),e(16,ye=rk(k,Zn.message||Zn.toString()))}}else e(7,w=Te.json),e(15,k=void 0),e(18,gt=!1),e(16,ye=void 0);Ye(w),je.sortedColumn&&e(10,je=Qe(Qe({},je),{},{sortedColumn:void 0})),Ei({previousJson:un,previousState:ni,previousText:Ni,previousTextIsRepaired:$n}),Vr(rn,null)}}(L),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,Le=eo(w)?function(Te,St){var Vt,rn=new Set(St.map(an)),un=new Set(Te.map(an)),ni=Re(rn);try{for(ni.s();!(Vt=ni.n()).done;){var Ni=Vt.value;un.has(Ni)||rn.delete(Ni)}}catch(yr){ni.e(yr)}finally{ni.f()}var $n,Zn=Re(un);try{for(Zn.s();!($n=Zn.n()).done;){var Yn=$n.value;rn.has(Yn)||rn.add(Yn)}}catch(yr){Zn.e(yr)}finally{Zn.f()}return ri(rn).map(qu)}(function(Te,St){var Vt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,rn={};Array.isArray(Te)&&function Fqe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;rXe),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Te,St,Vt,rn,un){for(var ni=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,Ni=eo(Vt)?Vt.length:0,$n=function SZe(t,n){var e=Object.values(t);return Ui(e)?n:e.reduce(function(r,o){return r+o})/e.length}(rn,un),Zn=Te-ni,Yn=St+2*ni,yr=function(md){return rn[md]||un},Er=0,Oo=0;Oo0&&(Oo-=yr(--Er));for(var ra=Er,pd=0;pd0?fr(og({rowIndex:yr.rowIndex,columnIndex:Oo-1},Zn),!1):Yn;Me(Vt),Yo(Vt.focusPath)}if("ArrowRight"===St&&(Te.preventDefault(),Ii(),je.selection)){var rn=function(Zn,Yn){var yr=su(Yn.focusPath,Zn),Oo=yr.columnIndex;return Oo0?fr(og({rowIndex:Er-1,columnIndex:yr.columnIndex},Zn),!1):Yn}(Le,je.selection);Me(un),Yo(un.focusPath)}if("ArrowDown"===St&&(Te.preventDefault(),Ii(),je.selection)){var ni=function(Zn,Yn,yr){var Er=su(yr.focusPath,Yn),Oo=Er.rowIndex;return Oo1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Xme({props:{mode:Fn(t[18]).mode,content:Fn(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:hh,onBlur:hh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var w=t[19]&&Jme(t),k=t[18].length>1&&Kme(t);function D(R,U){return R[0]?Lot:$ot}var L=D(t),z=L(t);return{c:function(){n=ve("div"),ft(e.$$.fragment),i=tt(),r=ve("div"),(o=ve("div")).innerHTML='
    Path
    ',s=tt(),a=ve("input"),l=tt(),(c=ve("div")).innerHTML='
    Contents
    ',u=tt(),d=ve("div"),ft(h.$$.fragment),f=tt(),p=ve("div"),w&&w.c(),m=tt(),k&&k.c(),g=tt(),z.c(),j(o,"class","jse-label svelte-1hibiw3"),j(a,"class","jse-path svelte-1hibiw3"),j(a,"type","text"),a.readOnly=!0,j(a,"title","Selected path"),a.value=t[21],j(c,"class","jse-label svelte-1hibiw3"),j(d,"class","jse-modal-inline-editor svelte-1hibiw3"),j(p,"class","jse-actions svelte-1hibiw3"),j(r,"class","jse-modal-contents svelte-1hibiw3"),j(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(R,U){Pe(R,n,U),dt(e,n,null),ue(n,i),ue(n,r),ue(r,o),ue(r,s),ue(r,a),ue(r,l),ue(r,c),ue(r,u),ue(r,d),dt(h,d,null),ue(r,f),ue(r,p),w&&w.m(p,null),ue(p,m),k&&k.m(p,null),ue(p,g),z.m(p,null),v=!0,y||(_=pa(Ak.call(null,n,t[23])),y=!0)},p:function(R,U){var G={};262144&U[0]&&(G.title="Edit nested content "+(R[18].length>1?" (".concat(R[18].length,")"):"")),e.$set(G),(!v||2097152&U[0]&&a.value!==R[21])&&(a.value=R[21]);var X={};262144&U[0]&&(X.mode=Fn(R[18]).mode),262144&U[0]&&(X.content=Fn(R[18]).content),1&U[0]&&(X.readOnly=R[0]),2&U[0]&&(X.indentation=R[1]),4&U[0]&&(X.tabSize=R[2]),32&U[0]&&(X.statusBar=R[5]),8&U[0]&&(X.mainMenuBar=R[3]),16&U[0]&&(X.navigationBar=R[4]),64&U[0]&&(X.escapeControlCharacters=R[6]),128&U[0]&&(X.escapeUnicodeCharacters=R[7]),256&U[0]&&(X.flattenColumns=R[8]),512&U[0]&&(X.parser=R[9]),1048576&U[0]&&(X.parseMemoizeOne=R[20]),1024&U[0]&&(X.validator=R[10]),2048&U[0]&&(X.validationParser=R[11]),4096&U[0]&&(X.pathParser=R[12]),8192&U[0]&&(X.onRenderValue=R[13]),16384&U[0]&&(X.onClassName=R[14]),32768&U[0]&&(X.onRenderMenu=R[15]),65536&U[0]&&(X.onSortModal=R[16]),131072&U[0]&&(X.onTransformModal=R[17]),h.$set(X),R[19]?w?w.p(R,U):((w=Jme(R)).c(),w.m(p,m)):w&&(w.d(1),w=null),R[18].length>1?k?(k.p(R,U),262144&U[0]&&K(k,1)):((k=Kme(R)).c(),K(k,1),k.m(p,g)):k&&(Rt(),ae(k,1,1,function(){k=null}),Lt()),L===(L=D(R))&&z?z.p(R,U):(z.d(1),(z=L(R))&&(z.c(),z.m(p,null)))},i:function(R){v||(K(e.$$.fragment,R),K(h.$$.fragment,R),K(k),v=!0)},o:function(R){ae(e.$$.fragment,R),ae(h.$$.fragment,R),ae(k),v=!1},d:function(R){R&&Fe(n),ht(e),ht(h),w&&w.d(),k&&k.d(),z.d(),y=!1,_()}}}function Qme(t){t.focus()}function Vot(t,n,e){var i,r,o,s=ga("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,_=n.parser,w=n.validator,k=n.validationParser,D=n.pathParser,L=n.onRenderValue,z=n.onClassName,R=n.onRenderMenu,U=n.onSortModal,G=n.onTransformModal,X=ma("simple-modal").close,te=[{mode:W(a),content:a,relativePath:l}],P=void 0;function W(H){return pP(H)&&eo(H.json)?Wo.table:Wo.tree}function J(H){s("handleChange",H);var le=Qe(Qe({},Fn(te)),{},{content:H});e(18,te=[].concat(ri(qi(te)),[le]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,_=H.parser),"validator"in H&&e(10,w=H.validator),"validationParser"in H&&e(11,k=H.validationParser),"pathParser"in H&&e(12,D=H.pathParser),"onRenderValue"in H&&e(13,L=H.onRenderValue),"onClassName"in H&&e(14,z=H.onClassName),"onRenderMenu"in H&&e(15,R=H.onRenderMenu),"onSortModal"in H&&e(16,U=H.onSortModal),"onTransformModal"in H&&e(17,G=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=te.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Ui(i)?"(whole document)":nu(Wl(i))),512&t.$$.dirty[0]&&e(20,o=xb(_.parse))},[u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,te,P,o,r,function(){if(s("handleApply"),!u)try{e(19,P=void 0);var H=[{op:"replace",path:an(Fn(te).relativePath),value:_se(Fn(te).content,_).json}];if(te.length>1){var le={json:Yu(_se(te[te.length-2].content,_).json,H)};e(18,te=qi(te)),J(le)}else c(H),X()}catch(E){e(19,P=E.toString())}},function(){s("handleClose"),te.length>1?(e(18,te=qi(te)),e(19,P=void 0)):X()},J,function(H){s("handleChangeMode",H);var le=Qe(Qe({},Fn(te)),{},{mode:H});e(18,te=[].concat(ri(qi(te)),[le]))},function(H){e(19,P=H.toString()),console.error(H)},function(H){var le=H.content,E=H.path;s("handleJSONEditorModal",{content:le,path:E});var O={mode:W(le),content:le,relativePath:E};e(18,te=[].concat(ri(te),[O]))},a,l,c,i]}var Hot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Vot,Bot,Ti,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Rot,[-1,-1]),r}return Se(e)}();function Uot(t,n,e){var i=ma("simple-modal");return[i.open,i.close]}var zot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Uot,null,Ti,{open:0,close:1}),r}return Se(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function Got(t){di(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function Zme(t){var n,e;return n=new Xme({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){ft(n.$$.fragment)},m:function(r,o){dt(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(K(n.$$.fragment,r),e=!0)},o:function(r){ae(n.$$.fragment,r),e=!1},d:function(r){t[56](null),ht(n,r)}}}function Wot(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new zot({props:l}),Hi.push(function(){return Uu(n,"open",a)});var c=Zme(t);return{c:function(){ft(n.$$.fragment),i=tt(),r=ve("div"),c.c(),j(r,"class","jse-main svelte-sxaskb"),At(r,"jse-focus",t[20])},m:function(u,d){dt(n,u,d),Pe(u,i,d),Pe(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],Hu(function(){return e=!1})),n.$set(h),524288&d[0]&&Ti(s,s=u[19])?(Rt(),ae(c,1,1,jt),Lt(),(c=Zme(u)).c(),K(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&At(r,"jse-focus",u[20])},i:function(u){o||(K(n.$$.fragment,u),K(c),o=!0)},o:function(u){ae(n.$$.fragment,u),ae(c),o=!1},d:function(u){ht(n,u),u&&Fe(i),u&&Fe(r),c.d(u)}}}function qot(t){var n,e;return n=new FZ({props:{closeOnEsc:!1,$$slots:{default:[Wot]},$$scope:{ctx:t}}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Yot(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},PZ,{closeOnEsc:!1}],o={$$slots:{default:[qot]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;Ce(this,l),this._names={},this._prefixes=u,this._parent=d}return Se(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){xt(u,l);var c=wt(u);function u(d,h){var f;return Ce(this,u),(f=c.call(this,h)).prefix=d,f}return Se(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(Xq||(Xq=Ee([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)(Jq||(Jq=Ee(["\n"],["\\n"]))),a=function(l){xt(u,l);var c=wt(u);function u(d){var h;return Ce(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=Qe(Qe({},d),{},{_n:d.lines?s:e.nil}),h}return Se(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var _=this._scope[m]||(this._scope[m]=[]),w=_.length;return _[w]=h.ref,p.setValue(h,{property:m,itemIndex:w}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(Kq||(Kq=Ee(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(_){var w=d[_];if(!w)return"continue";var k=p[_]=p[_]||new Map;w.forEach(function(D){if(!k.has(D)){k.set(D,n.Started);var L=h(D);if(L){var z=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(Qq||(Qq=Ee(["",""," "," = ",";",""])),g,z,D,L,f.opts._n)}else{if(!(L=m?.(D)))throw new i(D);g=(0,e._)(Zq||(Zq=Ee(["","","",""])),g,L,f.opts._n)}k.set(D,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(dge)),dge}function xr(){return uge||(uge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=QD(),e=hge(),i=QD();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=hge();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function I(){Ce(this,I)}return Se(I,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(q,V){return this}}]),I}(),s=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe){var ye;return Ce(this,V),(ye=q.call(this)).varKind=re,ye.name=de,ye.rhs=Oe,ye}return Se(V,[{key:"render",value:function(re){var Oe=re._n,ye=re.es5?e.varKinds.var:this.varKind,Xe=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(ye," ").concat(this.name).concat(Xe,";")+Oe}},{key:"optimizeNames",value:function(re,de){if(re[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,re,de)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe){var ye;return Ce(this,V),(ye=q.call(this)).lhs=re,ye.rhs=de,ye.sideEffects=Oe,ye}return Se(V,[{key:"render",value:function(re){var de=re._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+de}},{key:"optimizeNames",value:function(re,de){if(!(this.lhs instanceof n.Name)||re[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,re,de),this}},{key:"names",get:function(){return te(this.lhs instanceof n.Name?{}:Qe({},this.lhs.names),this.rhs)}}]),V}(o),l=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe,ye){var Xe;return Ce(this,V),(Xe=q.call(this,re,Oe,ye)).op=de,Xe}return Se(V,[{key:"render",value:function(re){var de=re._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+de}}]),V}(a),c=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).label=re,de.names={},de}return Se(V,[{key:"render",value:function(re){var de=re._n;return"".concat(this.label,":")+de}}]),V}(o),u=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).label=re,de.names={},de}return Se(V,[{key:"render",value:function(re){var de=re._n,Oe=this.label?" ".concat(this.label):"";return"break".concat(Oe,";")+de}}]),V}(o),d=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).error=re,de}return Se(V,[{key:"render",value:function(re){var de=re._n;return"throw ".concat(this.error,";")+de}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).code=re,de}return Se(V,[{key:"render",value:function(re){var de=re._n;return"".concat(this.code,";")+de}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(re,de){return this.code=P(this.code,re,de),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(I){xt(V,I);var q=wt(V);function V(){var re,de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Ce(this,V),(re=q.call(this)).nodes=de,re}return Se(V,[{key:"render",value:function(re){return this.nodes.reduce(function(de,Oe){return de+Oe.render(re)},"")}},{key:"optimizeNodes",value:function(){for(var re=this.nodes,de=re.length;de--;){var Oe=re[de].optimizeNodes();Array.isArray(Oe)?re.splice.apply(re,[de,1].concat(ri(Oe))):Oe?re[de]=Oe:re.splice(de,1)}return re.length>0?this:void 0}},{key:"optimizeNames",value:function(re,de){for(var Oe=this.nodes,ye=Oe.length;ye--;){var Xe=Oe[ye];Xe.optimizeNames(re,de)||(W(re,Xe.names),Oe.splice(ye,1))}return Oe.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(re,de){return X(re,de.names)},{})}}]),V}(o),p=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V,[{key:"render",value:function(re){return"{"+re._n+hr(Wi(V.prototype),"render",this).call(this,re)+"}"+re._n}}]),V}(f),m=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V)}(f),g=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V)}(p);g.kind="else";var v=function(I){xt(V,I);var q=wt(V);function V(re,de){var Oe;return Ce(this,V),(Oe=q.call(this,de)).condition=re,Oe}return Se(V,[{key:"render",value:function(re){var de="if(".concat(this.condition,")")+hr(Wi(V.prototype),"render",this).call(this,re);return this.else&&(de+="else "+this.else.render(re)),de}},{key:"optimizeNodes",value:function(){hr(Wi(V.prototype),"optimizeNodes",this).call(this);var re=this.condition;if(!0===re)return this.nodes;var de=this.else;if(de){var Oe=de.optimizeNodes();de=this.else=Array.isArray(Oe)?new g(Oe):Oe}return de?!1===re?de instanceof V?de:de.nodes:this.nodes.length?this:new V(J(re),de instanceof V?[de]:de.nodes):!1!==re&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(re,de){var Oe;if(this.else=null===(Oe=this.else)||void 0===Oe?void 0:Oe.optimizeNames(re,de),hr(Wi(V.prototype),"optimizeNames",this).call(this,re,de)||this.else)return this.condition=P(this.condition,re,de),this}},{key:"names",get:function(){var re=hr(Wi(V.prototype),"names",this);return te(re,this.condition),this.else&&X(re,this.else.names),re}}]),V}(p);v.kind="if";var y=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V)}(p);y.kind="for";var _=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).iteration=re,de}return Se(V,[{key:"render",value:function(re){return"for(".concat(this.iteration,")")+hr(Wi(V.prototype),"render",this).call(this,re)}},{key:"optimizeNames",value:function(re,de){if(hr(Wi(V.prototype),"optimizeNames",this).call(this,re,de))return this.iteration=P(this.iteration,re,de),this}},{key:"names",get:function(){return X(hr(Wi(V.prototype),"names",this),this.iteration.names)}}]),V}(y),w=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe,ye){var Xe;return Ce(this,V),(Xe=q.call(this)).varKind=re,Xe.name=de,Xe.from=Oe,Xe.to=ye,Xe}return Se(V,[{key:"render",value:function(re){var Oe=this.name,ye=this.from,Xe=this.to;return"for(".concat(re.es5?e.varKinds.var:this.varKind," ").concat(Oe,"=").concat(ye,"; ").concat(Oe,"<").concat(Xe,"; ").concat(Oe,"++)")+hr(Wi(V.prototype),"render",this).call(this,re)}},{key:"names",get:function(){var re=te(hr(Wi(V.prototype),"names",this),this.from);return te(re,this.to)}}]),V}(y),k=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe,ye){var Xe;return Ce(this,V),(Xe=q.call(this)).loop=re,Xe.varKind=de,Xe.name=Oe,Xe.iterable=ye,Xe}return Se(V,[{key:"render",value:function(re){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+hr(Wi(V.prototype),"render",this).call(this,re)}},{key:"optimizeNames",value:function(re,de){if(hr(Wi(V.prototype),"optimizeNames",this).call(this,re,de))return this.iterable=P(this.iterable,re,de),this}},{key:"names",get:function(){return X(hr(Wi(V.prototype),"names",this),this.iterable.names)}}]),V}(y),D=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe){var ye;return Ce(this,V),(ye=q.call(this)).name=re,ye.args=de,ye.async=Oe,ye}return Se(V,[{key:"render",value:function(re){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+hr(Wi(V.prototype),"render",this).call(this,re)}}]),V}(p);D.kind="func";var L=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V,[{key:"render",value:function(re){return"return "+hr(Wi(V.prototype),"render",this).call(this,re)}}]),V}(f);L.kind="return";var z=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V,[{key:"render",value:function(re){var de="try"+hr(Wi(V.prototype),"render",this).call(this,re);return this.catch&&(de+=this.catch.render(re)),this.finally&&(de+=this.finally.render(re)),de}},{key:"optimizeNodes",value:function(){var re,de;return hr(Wi(V.prototype),"optimizeNodes",this).call(this),null===(re=this.catch)||void 0===re||re.optimizeNodes(),null===(de=this.finally)||void 0===de||de.optimizeNodes(),this}},{key:"optimizeNames",value:function(re,de){var Oe,ye;return hr(Wi(V.prototype),"optimizeNames",this).call(this,re,de),null===(Oe=this.catch)||void 0===Oe||Oe.optimizeNames(re,de),null===(ye=this.finally)||void 0===ye||ye.optimizeNames(re,de),this}},{key:"names",get:function(){var re=hr(Wi(V.prototype),"names",this);return this.catch&&X(re,this.catch.names),this.finally&&X(re,this.finally.names),re}}]),V}(p),R=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).error=re,de}return Se(V,[{key:"render",value:function(re){return"catch(".concat(this.error,")")+hr(Wi(V.prototype),"render",this).call(this,re)}}]),V}(p);R.kind="catch";var U=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V,[{key:"render",value:function(re){return"finally"+hr(Wi(V.prototype),"render",this).call(this,re)}}]),V}(p);U.kind="finally";var G=function(){function I(q){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ce(this,I),this._values={},this._blockStarts=[],this._constants={},this.opts=Qe(Qe({},V),{},{_n:V.lines?"\n":""}),this._extScope=q,this._scope=new e.Scope({parent:q}),this._nodes=[new m]}return Se(I,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(q){return this._scope.name(q)}},{key:"scopeName",value:function(q){return this._extScope.name(q)}},{key:"scopeValue",value:function(q,V){var re=this._extScope.value(q,V);return(this._values[re.prefix]||(this._values[re.prefix]=new Set)).add(re),re}},{key:"getScopeValue",value:function(q,V){return this._extScope.getValue(q,V)}},{key:"scopeRefs",value:function(q){return this._extScope.scopeRefs(q,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(q,V,re,de){var Oe=this._scope.toName(V);return void 0!==re&&de&&(this._constants[Oe.str]=re),this._leafNode(new s(q,Oe,re)),Oe}},{key:"const",value:function(q,V,re){return this._def(e.varKinds.const,q,V,re)}},{key:"let",value:function(q,V,re){return this._def(e.varKinds.let,q,V,re)}},{key:"var",value:function(q,V,re){return this._def(e.varKinds.var,q,V,re)}},{key:"assign",value:function(q,V,re){return this._leafNode(new a(q,V,re))}},{key:"add",value:function(q,V){return this._leafNode(new l(q,t.operators.ADD,V))}},{key:"code",value:function(q){return"function"==typeof q?q():q!==n.nil&&this._leafNode(new h(q)),this}},{key:"object",value:function(){for(var q=["{"],V=arguments.length,re=new Array(V),de=0;de1&&q.push(","),q.push(Le),(Le!==rt||this.opts.es5)&&(q.push(":"),(0,n.addCodeArg)(q,rt))}return q.push("}"),new n._Code(q)}},{key:"if",value:function(q,V,re){if(this._blockNode(new v(q)),V&&re)this.code(V).else().code(re).endIf();else if(V)this.code(V).endIf();else if(re)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(q){return this._elseNode(new v(q))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(q,V){return this._blockNode(q),V&&this.code(V).endFor(),this}},{key:"for",value:function(q,V){return this._for(new _(q),V)}},{key:"forRange",value:function(q,V,re,de){var Oe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,ye=this._scope.toName(q);return this._for(new w(Oe,ye,V,re),function(){return de(ye)})}},{key:"forOf",value:function(q,V,re){var de=this,Oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,ye=this._scope.toName(q);if(this.opts.es5){var Xe=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(eY||(eY=Ee(["",".length"])),Xe),function(Le){de.var(ye,(0,n._)(tY||(tY=Ee(["","[","]"])),Xe,Le)),re(ye)})}return this._for(new k("of",Oe,ye,V),function(){return re(ye)})}},{key:"forIn",value:function(q,V,re){var de=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(q,(0,n._)(nY||(nY=Ee(["Object.keys(",")"])),V),re);var Oe=this._scope.toName(q);return this._for(new k("in",de,Oe,V),function(){return re(Oe)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(q){return this._leafNode(new c(q))}},{key:"break",value:function(q){return this._leafNode(new u(q))}},{key:"return",value:function(q){var V=new L;if(this._blockNode(V),this.code(q),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(L)}},{key:"try",value:function(q,V,re){if(!V&&!re)throw new Error('CodeGen: "try" without "catch" and "finally"');var de=new z;if(this._blockNode(de),this.code(q),V){var Oe=this.name("e");this._currNode=de.catch=new R(Oe),V(Oe)}return re&&(this._currNode=de.finally=new U,this.code(re)),this._endBlockNode(R,U)}},{key:"throw",value:function(q){return this._leafNode(new d(q))}},{key:"block",value:function(q,V){return this._blockStarts.push(this._nodes.length),q&&this.code(q).endBlock(V),this}},{key:"endBlock",value:function(q){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var re=this._nodes.length-V;if(re<0||void 0!==q&&re!==q)throw new Error("CodeGen: wrong number of nodes: ".concat(re," vs ").concat(q," expected"));return this._nodes.length=V,this}},{key:"func",value:function(q){var de=arguments.length>3?arguments[3]:void 0;return this._blockNode(new D(q,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),de&&this.code(de).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(D)}},{key:"optimize",value:function(){for(var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;q-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(q){return this._currNode.nodes.push(q),this}},{key:"_blockNode",value:function(q){this._currNode.nodes.push(q),this._nodes.push(q)}},{key:"_endBlockNode",value:function(q,V){var re=this._currNode;if(re instanceof q||V&&re instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(q.kind,"/").concat(V.kind):q.kind,'"'))}},{key:"_elseNode",value:function(q){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=q,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var q=this._nodes;return q[q.length-1]},set:function(q){var V=this._nodes;V[V.length-1]=q}}]),I}();function X(I,q){for(var V in q)I[V]=(I[V]||0)+(q[V]||0);return I}function te(I,q){return q instanceof n._CodeOrName?X(I,q.names):I}function P(I,q,V){return I instanceof n.Name?re(I):(de=I)instanceof n._Code&&de._items.some(function(Oe){return Oe instanceof n.Name&&1===q[Oe.str]&&void 0!==V[Oe.str]})?new n._Code(I._items.reduce(function(de,Oe){return Oe instanceof n.Name&&(Oe=re(Oe)),Oe instanceof n._Code?de.push.apply(de,ri(Oe._items)):de.push(Oe),de},[])):I;var de;function re(de){var Oe=V[de.str];return void 0===Oe||1!==q[de.str]?de:(delete q[de.str],Oe)}}function W(I,q){for(var V in q)I[V]=(I[V]||0)-(q[V]||0)}function J(I){return"boolean"==typeof I||"number"==typeof I||null===I?!I:(0,n._)(iY||(iY=Ee(["!",""])),O(I))}t.CodeGen=G,t.not=J;var H=E(t.operators.AND);t.and=function(){for(var I=arguments.length,q=new Array(I),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,_,w,k){var D=void 0===w?_:w instanceof n.Name?(_ instanceof n.Name?p(y,_,w):m(y,_,w),w):_ instanceof n.Name?(m(y,w,_),_):g(_,w);return k!==n.Name||D instanceof n.Name?D:v(y,D)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(yY||(yY=Ee(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(_Y||(_Y=Ee(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=Re(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(sY||(sY=Ee(["",""])),p)}return(0,n._)(aY||(aY=Ee(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=Re(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(lY||(lY=Ee([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(cY||(cY=Ee([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(uY||(uY=Ee([""," || {}"])),m)).code((0,n._)(dY||(dY=Ee(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(hY||(hY=Ee([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(fY||(fY=Ee([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||Qe(Qe({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(pY||(pY=Ee([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(mY||(mY=Ee([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(gY||(gY=Ee([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(vY||(vY=Ee([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?bY||(bY=Ee(['"[" + ',' + "]"'])):xY||(xY=Ee(['"[\'" + ',' + "\']"'])):g?wY||(wY=Ee(['"/" + ',""])):CY||(CY=Ee(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(Lr);var fge,pge,mge,ZD={};function Rp(){if(fge)return ZD;fge=1,Object.defineProperty(ZD,"__esModule",{value:!0});var t=xr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return ZD.default=n,ZD}function eT(){return pge||(pge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=xr(),e=Lr,i=Rp();function r(d,h){var f=d.const("err",h);d.if((0,n._)(RY||(RY=Ee([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(LY||(LY=Ee(["[","]"])),f))},(0,n._)($Y||($Y=Ee(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(BY||(BY=Ee(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(VY||(VY=Ee(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(HY||(HY=Ee(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(SY||(SY=Ee(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(kY||(kY=Ee(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(DY||(DY=Ee(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,_=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,_):o(m,(0,n._)(TY||(TY=Ee(["[","]"])),_))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(EY||(EY=Ee([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(AY||(AY=Ee(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(_){h.const(y,(0,n._)(MY||(MY=Ee(["","[","]"])),i.default.vErrors,_)),h.if((0,n._)(OY||(OY=Ee(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(IY||(IY=Ee(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(NY||(NY=Ee(["",".schemaPath"])),y),(0,n.str)(FY||(FY=Ee(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(PY||(PY=Ee(["",".schema"])),y),p),h.assign((0,n._)(jY||(jY=Ee(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(UY||(UY=Ee(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,_=d.it,w=_.opts,k=_.propertyName,D=_.topSchemaRef,L=_.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(qY||(qY=Ee(["{}"])))]),w.messages&&f.push([s.message,"function"==typeof m?m(d):m]),w.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(YY||(YY=Ee(["","",""])),D,L)],[i.default.data,v]),k&&f.push([s.propertyName,k])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(zY||(zY=Ee(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(GY||(GY=Ee(["","/",""])),p,f);return m&&(g=(0,n.str)(WY||(WY=Ee(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(sge)),sge}var Zb={},vg={};Object.defineProperty(vg,"__esModule",{value:!0}),vg.getRules=vg.isJSONType=void 0;var rst=new Set(["string","number","integer","boolean","null","object","array"]);vg.isJSONType=function(t){return"string"==typeof t&&rst.has(t)},vg.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Qe(Qe({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var gge,yf={};function vge(){if(gge)return yf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return gge=1,Object.defineProperty(yf,"__esModule",{value:!0}),yf.shouldUseRule=yf.shouldUseGroup=yf.schemaHasRulesForType=void 0,yf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},yf.shouldUseGroup=t,yf.shouldUseRule=n,yf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=vg,i=vge(),r=eT(),o=xr(),s=Lr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var D,m=f.gen,g=f.data,v=f.opts,y=(D=v.coerceTypes)?p.filter(function(L){return l.has(L)||"array"===D&&"array"===L}):[],_=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(_){var w=u(p,g,v.strictNumbers,n.Wrong);m.if(w,function(){y.length?function(k,D,L){var z=k.gen,R=k.data,U=k.opts,G=z.let("dataType",(0,o._)(JY||(JY=Ee(["typeof ",""])),R)),X=z.let("coerced",(0,o._)(KY||(KY=Ee(["undefined"]))));"array"===U.coerceTypes&&z.if((0,o._)(QY||(QY=Ee([""," == 'object' && Array.isArray(",") && ",".length == 1"])),G,R,R),function(){return z.assign(R,(0,o._)(ZY||(ZY=Ee(["","[0]"])),R)).assign(G,(0,o._)(eX||(eX=Ee(["typeof ",""])),R)).if(u(D,R,U.strictNumbers),function(){return z.assign(X,R)})}),z.if((0,o._)(tX||(tX=Ee([""," !== undefined"])),X));var te,P=Re(L);try{for(P.s();!(te=P.n()).done;){var W=te.value;(l.has(W)||"array"===W&&"array"===U.coerceTypes)&&J(W)}}catch(H){P.e(H)}finally{P.f()}function J(H){switch(H){case"string":return void z.elseIf((0,o._)(iX||(iX=Ee(["",' == "number" || ',' == "boolean"'])),G,G)).assign(X,(0,o._)(rX||(rX=Ee(['"" + ',""])),R)).elseIf((0,o._)(oX||(oX=Ee([""," === null"])),R)).assign(X,(0,o._)(sX||(sX=Ee(['""']))));case"number":return void z.elseIf((0,o._)(aX||(aX=Ee(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),G,R,G,R,R,R)).assign(X,(0,o._)(lX||(lX=Ee(["+",""])),R));case"integer":return void z.elseIf((0,o._)(cX||(cX=Ee(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),G,R,G,R,R,R,R)).assign(X,(0,o._)(uX||(uX=Ee(["+",""])),R));case"boolean":return void z.elseIf((0,o._)(dX||(dX=Ee(["",' === "false" || '," === 0 || "," === null"])),R,R,R)).assign(X,!1).elseIf((0,o._)(hX||(hX=Ee(["",' === "true" || '," === 1"])),R,R)).assign(X,!0);case"null":return z.elseIf((0,o._)(fX||(fX=Ee(["",' === "" || '," === 0 || "," === false"])),R,R,R)),void z.assign(X,null);case"array":z.elseIf((0,o._)(pX||(pX=Ee(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),G,G,G,R)).assign(X,(0,o._)(mX||(mX=Ee(["[","]"])),R))}}z.else(),h(k),z.endIf(),z.if((0,o._)(nX||(nX=Ee([""," !== undefined"])),X),function(){var H,le,E,O,I;z.assign(R,X),le=X,O=(H=k).parentData,I=H.parentDataProperty,(E=H.gen).if((0,o._)(gX||(gX=Ee([""," !== undefined"])),O),function(){return E.assign((0,o._)(vX||(vX=Ee(["","[","]"])),O,I),le)})})}(f,p,y):h(f)})}return _};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(yX||(yX=Ee([""," "," null"])),p,y);case"array":g=(0,o._)(_X||(_X=Ee(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(bX||(bX=Ee([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=_((0,o._)(xX||(xX=Ee(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=_();break;default:return(0,o._)(wX||(wX=Ee(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function _(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(CX||(CX=Ee(["typeof ",' == "number"'])),p),w,m?(0,o._)(SX||(SX=Ee(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var _=(0,o._)(kX||(kX=Ee(["typeof ",' != "object"'])),p);v=y.null?_:(0,o._)(DX||(DX=Ee(["!"," || ",""])),p,_),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var w in y.number&&delete y.integer,y)v=(0,o.and)(v,c(w,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(TX||(TX=Ee(["{type: ","}"])),p):(0,o._)(EX||(EX=Ee(["{type: ","}"])),m)}};function h(f){var m,g,v,y,_,p=(g=(m=f).gen,v=m.data,_=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:_,schemaValue:_,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(Zb);var yge,_ge,bge,ex={},cd={},lo={};function ud(){if(_ge)return lo;_ge=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.validateUnion=lo.validateArray=lo.usePattern=lo.callValidateCode=lo.schemaProperties=lo.allSchemaProperties=lo.noPropertyInData=lo.propertyInData=lo.isOwnProperty=lo.hasPropFunc=lo.reportMissingProp=lo.checkMissingProp=lo.checkReportMissingProp=void 0;var t=xr(),n=Lr,e=Rp(),i=Lr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(PX||(PX=Ee(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(jX||(jX=Ee(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)($X||($X=Ee(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}lo.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(NX||(NX=Ee(["",""])),u)},!0),c.error()})},lo.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,ri(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(FX||(FX=Ee([""," = ",""])),d,m))})))},lo.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},lo.hasPropFunc=r,lo.isOwnProperty=o,lo.propertyInData=function(c,u,d,h){var f=(0,t._)(RX||(RX=Ee(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(LX||(LX=Ee([""," && ",""])),f,o(c,u,d)):f},lo.noPropertyInData=s,lo.allSchemaProperties=a,lo.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},lo.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,_=m.errorPath,w=c.it,k=h?(0,t._)(BX||(BX=Ee(["",", ",", ","",""])),f,p,v,y):p,D=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,_)],[e.default.parentData,w.parentData],[e.default.parentDataProperty,w.parentDataProperty],[e.default.rootData,e.default.rootData]];w.opts.dynamicRef&&D.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var L=(0,t._)(VX||(VX=Ee(["",", ",""])),k,g.object.apply(g,D));return d!==t.nil?(0,t._)(HX||(HX=Ee(["",".call(",", ",")"])),u,d,L):(0,t._)(UX||(UX=Ee(["","(",")"])),u,L)};var l=(0,t._)(zX||(zX=Ee(["new RegExp"])));return lo.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(GX||(GX=Ee(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},lo.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(WX||(WX=Ee(["",".length"])),d));u.forRange("i",0,y,function(_){c.subschema({keyword:h,dataProp:_,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},lo.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(qX||(qX=Ee([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},lo}var xge,_f={},Ba={},wge=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==mn(n)&&"object"==mn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},hR={},sst={get exports(){return hR},set exports(t){hR=t}},Lp=sst.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),tT(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function tT(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==mn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Lp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!fR(t):!!n&&Cge(t)<=n)};var dst=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function fR(t){for(var n in t){if(dst.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(fR)||"object"==mn(e)&&fR(e))return!0}return!1}function Cge(t){var n=0;for(var e in t)if("$ref"===e||(n++,!ust.has(e)&&("object"==mn(t[e])&&(0,ast.eachItem)(t[e],function(i){return n+=Cge(i)}),n===1/0)))return 1/0;return n}function Sge(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=c1(n));var i=t.parse(n);return kge(t,i)}function kge(t,n){return t.serialize(n).split("#")[0]+"#"}Ba.getFullPath=Sge,Ba._getFullPath=kge;var hst=/#\/?$/;function c1(t){return t?t.replace(hst,""):""}Ba.normalizeId=c1,Ba.resolveUrl=function(t,n,e){return e=c1(e),t.resolve(n,e)};var Dge,fst=/^[a-z_][-a-z0-9._]*$/i;function nT(){if(Dge)return vf;Dge=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.getData=vf.KeywordCxt=vf.validateFunctionCode=void 0;var t=function(){if(mge)return gg;mge=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.boolOrEmptySchema=gg.topBoolOrEmptySchema=void 0;var P=eT(),W=xr(),J=Rp(),H={message:"boolean schema is false"};function le(E,O){(0,P.reportError)({gen:E.gen,keyword:"false schema",data:E.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:E},H,void 0,O)}return gg.topBoolOrEmptySchema=function(E){var O=E.gen,I=E.schema,q=E.validateName;!1===I?le(E,!1):"object"==mn(I)&&!0===I.$async?O.return(J.default.data):(O.assign((0,W._)(XY||(XY=Ee(["",".errors"])),q),null),O.return(!0))},gg.boolOrEmptySchema=function(E,O){var I=E.gen;!1===E.schema?(I.var(O,!1),le(E)):I.var(O,!0)},gg}(),n=Zb,e=vge(),i=Zb,r=function(){if(yge)return ex;yge=1,Object.defineProperty(ex,"__esModule",{value:!0}),ex.assignDefaults=void 0;var P=xr(),W=Lr;function J(H,le,E){var O=H.gen,I=H.compositeRule,q=H.data,V=H.opts;if(void 0!==E){var re=(0,P._)(AX||(AX=Ee(["","",""])),q,(0,P.getProperty)(le));if(I)(0,W.checkStrictMode)(H,"default is ignored for: ".concat(re));else{var de=(0,P._)(MX||(MX=Ee([""," === undefined"])),re);"empty"===V.useDefaults&&(de=(0,P._)(OX||(OX=Ee([""," || "," === null || ",' === ""'])),de,re,re)),O.if(de,(0,P._)(IX||(IX=Ee([""," = ",""])),re,(0,P.stringify)(E)))}}}return ex.assignDefaults=function(H,le){var E=H.schema,O=E.properties,I=E.items;if("object"===le&&O)for(var q in O)J(H,q,O[q].default);else"array"===le&&Array.isArray(I)&&I.forEach(function(V,re){return J(H,re,V.default)})},ex}(),o=function ost(){if(bge)return cd;bge=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.validateKeywordUsage=cd.validSchemaType=cd.funcKeywordCode=cd.macroKeywordCode=void 0;var t=xr(),n=Rp(),e=ud(),i=eT();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(eJ||(eJ=Ee(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return cd.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},cd.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(w,k){if(k.async&&!w.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(QX||(QX=Ee(["await "]))):t.nil,k=p.opts.passContext?n.default.this:n.default.self,D=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(ZX||(ZX=Ee(["","",""])),w,(0,e.callValidateCode)(s,g,k,D)),a.modifying)}function _(w){var k;c.if((0,t.not)(null!==(k=a.valid)&&void 0!==k?k:v),w)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),_(function(){return s.error()});else{var w=a.async?(D=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(YX||(YX=Ee(["await "]))))},function(L){return c.assign(v,!1).if((0,t._)(XX||(XX=Ee([""," instanceof ",""])),L,p.ValidationError),function(){return c.assign(D,(0,t._)(JX||(JX=Ee(["",".errors"])),L))},function(){return c.throw(L)})}),D):(k=(0,t._)(KX||(KX=Ee(["",".errors"])),g),c.assign(k,null),y(t.nil),k);a.modifying&&r(s),_(function(){return function(D,L){var z=D.gen;z.if((0,t._)(tJ||(tJ=Ee(["Array.isArray(",")"])),L),function(){z.assign(n.default.vErrors,(0,t._)(nJ||(nJ=Ee([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,L,n.default.vErrors,L)).assign(n.default.errors,(0,t._)(iJ||(iJ=Ee(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(D)},function(){return D.error()})}(s,w)})}var D,k}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},cd.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==mn(s)&&!Array.isArray(s):mn(s)==c||l&&void 0===s})},cd.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},cd}(),s=function(){if(xge)return _f;xge=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.extendSubschemaMode=_f.extendSubschemaData=_f.getSubschema=void 0;var P=xr(),W=Lr;return _f.getSubschema=function(J,H){var le=H.keyword,E=H.schemaProp,O=H.schema,I=H.schemaPath,q=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==le&&void 0!==O)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==le){var re=J.schema[le];return void 0===E?{schema:re,schemaPath:(0,P._)(rJ||(rJ=Ee(["","",""])),J.schemaPath,(0,P.getProperty)(le)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(le)}:{schema:re[E],schemaPath:(0,P._)(oJ||(oJ=Ee(["","","",""])),J.schemaPath,(0,P.getProperty)(le),(0,P.getProperty)(E)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(le,"/").concat((0,W.escapeFragment)(E))}}if(void 0!==O){if(void 0===I||void 0===q||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:O,schemaPath:I,topSchemaRef:V,errSchemaPath:q}}throw new Error('either "keyword" or "schema" must be passed')},_f.extendSubschemaData=function(J,H,le){var E=le.dataProp,O=le.dataPropType,I=le.data,q=le.dataTypes,V=le.propertyName;if(void 0!==I&&void 0!==E)throw new Error('both "data" and "dataProp" passed, only one allowed');var re=H.gen;if(void 0!==E){var de=H.errorPath,Oe=H.dataPathArr,ye=H.opts;Xe(re.let("data",(0,P._)(sJ||(sJ=Ee(["","",""])),H.data,(0,P.getProperty)(E)),!0)),J.errorPath=(0,P.str)(aJ||(aJ=Ee(["","",""])),de,(0,W.getErrorPath)(E,O,ye.jsPropertySyntax)),J.parentDataProperty=(0,P._)(lJ||(lJ=Ee(["",""])),E),J.dataPathArr=[].concat(ri(Oe),[J.parentDataProperty])}function Xe(Le){J.data=Le,J.dataLevel=H.dataLevel+1,J.dataTypes=[],H.definedProperties=new Set,J.parentData=H.data,J.dataNames=[].concat(ri(H.dataNames),[Le])}void 0!==I&&(Xe(I instanceof P.Name?I:re.let("data",I,!0)),void 0!==V&&(J.propertyName=V)),q&&(J.dataTypes=q)},_f.extendSubschemaMode=function(J,H){var le=H.jtdDiscriminator,E=H.jtdMetadata,O=H.compositeRule,I=H.createErrors,q=H.allErrors;void 0!==O&&(J.compositeRule=O),void 0!==I&&(J.createErrors=I),void 0!==q&&(J.allErrors=q),J.jtdDiscriminator=le,J.jtdMetadata=E},_f}(),a=xr(),l=Rp(),c=Ba,u=Lr,d=eT();function h(P,W){var I,J=P.gen,H=P.validateName,le=P.schema,E=P.schemaEnv,O=P.opts;O.code.es5?J.func(H,(0,a._)(cJ||(cJ=Ee(["",", ",""])),l.default.data,l.default.valCxt),E.$async,function(){var I,q;J.code((0,a._)(uJ||(uJ=Ee(['"use strict"; ',""])),f(le,O))),q=O,(I=J).if(l.default.valCxt,function(){I.var(l.default.instancePath,(0,a._)(pJ||(pJ=Ee(["",".",""])),l.default.valCxt,l.default.instancePath)),I.var(l.default.parentData,(0,a._)(mJ||(mJ=Ee(["",".",""])),l.default.valCxt,l.default.parentData)),I.var(l.default.parentDataProperty,(0,a._)(gJ||(gJ=Ee(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),I.var(l.default.rootData,(0,a._)(vJ||(vJ=Ee(["",".",""])),l.default.valCxt,l.default.rootData)),q.dynamicRef&&I.var(l.default.dynamicAnchors,(0,a._)(yJ||(yJ=Ee(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){I.var(l.default.instancePath,(0,a._)(_J||(_J=Ee(['""'])))),I.var(l.default.parentData,(0,a._)(bJ||(bJ=Ee(["undefined"])))),I.var(l.default.parentDataProperty,(0,a._)(xJ||(xJ=Ee(["undefined"])))),I.var(l.default.rootData,l.default.data),q.dynamicRef&&I.var(l.default.dynamicAnchors,(0,a._)(wJ||(wJ=Ee(["{}"]))))}),J.code(W)}):J.func(H,(0,a._)(dJ||(dJ=Ee(["",", ",""])),l.default.data,(I=O,(0,a._)(hJ||(hJ=Ee(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,I.dynamicRef?(0,a._)(fJ||(fJ=Ee([", ","={}"])),l.default.dynamicAnchors):a.nil))),E.$async,function(){return J.code(f(le,O)).code(W)})}function f(P,W){var J="object"==mn(P)&&P[W.schemaId];return J&&(W.code.source||W.code.process)?(0,a._)(MJ||(MJ=Ee(["/*# sourceURL="," */"])),J):a.nil}function m(P){var W=P.schema,J=P.self;if("boolean"==typeof W)return!W;for(var H in W)if(J.RULES.all[H])return!0;return!1}function g(P){return"boolean"!=typeof P.schema}function v(P){var W,J,H,E;(0,u.checkUnknownRules)(P),H=(W=P).errSchemaPath,E=W.self,(J=W.schema).$ref&&W.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(J,E.RULES)&&E.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(P,W){if(P.opts.jtd)return w(P,[],!1,W);var J=(0,n.getSchemaTypes)(P.schema);w(P,J,!(0,n.coerceAndCheckDataType)(P,J),W)}function _(P){var W=P.gen,J=P.schemaEnv,le=P.errSchemaPath,E=P.opts,O=P.schema.$comment;if(!0===E.$comment)W.code((0,a._)(IJ||(IJ=Ee(["",".logger.log(",")"])),l.default.self,O));else if("function"==typeof E.$comment){var I=(0,a.str)(NJ||(NJ=Ee(["","/$comment"])),le),q=W.scopeValue("root",{ref:J.root});W.code((0,a._)(FJ||(FJ=Ee(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,O,I,q))}}function w(P,W,J,H){var de,Oe,ye,Xe,le=P.gen,E=P.schema,O=P.data,I=P.allErrors,q=P.opts,V=P.self.RULES;function re(de){(0,e.shouldUseGroup)(E,de)&&(de.type?(le.if((0,i.checkDataType)(de.type,O,q.strictNumbers)),k(P,de),1===W.length&&W[0]===de.type&&J&&(le.else(),(0,i.reportTypeError)(P)),le.endIf()):k(P,de),I||le.if((0,a._)(VJ||(VJ=Ee([""," === ",""])),l.default.errors,H||0)))}!E.$ref||!q.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(E,V)?(q.jtd||(Oe=W,(de=P).schemaEnv.meta||!de.opts.strictTypes||(function(ye,Xe){if(Xe.length){if(!ye.dataTypes.length)return void(ye.dataTypes=Xe);Xe.forEach(function(Le){L(ye.dataTypes,Le)||z(ye,'type "'.concat(Le,'" not allowed by context "').concat(ye.dataTypes.join(","),'"'))}),function(Le,rt){var $,ne=[],ie=Re(Le.dataTypes);try{for(ie.s();!($=ie.n()).done;){var Me=$.value;L(rt,Me)?ne.push(Me):rt.includes("integer")&&"number"===Me&&ne.push("integer")}}catch(Ye){ie.e(Ye)}finally{ie.f()}Le.dataTypes=ne}(ye,Xe)}}(de,Oe),de.opts.allowUnionTypes||(ye=de,(Xe=Oe).length>1&&(2!==Xe.length||!Xe.includes("null"))&&z(ye,"use allowUnionTypes to allow union type keyword")),function(ye,Xe){var Le=ye.self.RULES.all;for(var rt in Le){var $=Le[rt];if("object"==mn($)&&(0,e.shouldUseRule)(ye.schema,$)){var ne=$.definition.type;ne.length&&!ne.some(function(ie){return D(Xe,ie)})&&z(ye,'missing type "'.concat(ne.join(","),'" for keyword "').concat(rt,'"'))}}}(de,de.dataTypes))),le.block(function(){var de,Oe=Re(V.rules);try{for(Oe.s();!(de=Oe.n()).done;)re(de.value)}catch(ye){Oe.e(ye)}finally{Oe.f()}re(V.post)})):le.block(function(){return U(P,"$ref",V.all.$ref.definition)})}function k(P,W){var J=P.gen,H=P.schema;P.opts.useDefaults&&(0,r.assignDefaults)(P,W.type),J.block(function(){var le,E=Re(W.rules);try{for(E.s();!(le=E.n()).done;){var O=le.value;(0,e.shouldUseRule)(H,O)&&U(P,O.keyword,O.definition,W.type)}}catch(I){E.e(I)}finally{E.f()}})}function D(P,W){return P.includes(W)||"number"===W&&P.includes("integer")}function L(P,W){return P.includes(W)||"integer"===W&&P.includes("number")}function z(P,W){W+=' at "'.concat(P.schemaEnv.baseId+P.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(P,W,P.opts.strictTypes)}vf.validateFunctionCode=function(P){var W,J,H,le;g(P)&&(v(P),m(P))?(J=(W=P).schema,H=W.opts,le=W.gen,h(W,function(){var E,I;H.$comment&&J.$comment&&_(W),I=(E=W).opts,void 0!==E.schema.default&&I.useDefaults&&I.strictSchema&&(0,u.checkStrictMode)(E,"default is ignored in the schema root"),le.let(l.default.vErrors,null),le.let(l.default.errors,0),H.unevaluated&&function(E){var O=E.gen,I=E.validateName;E.evaluated=O.const("evaluated",(0,a._)(CJ||(CJ=Ee(["",".evaluated"])),I)),O.if((0,a._)(SJ||(SJ=Ee(["",".dynamicProps"])),E.evaluated),function(){return O.assign((0,a._)(kJ||(kJ=Ee(["",".props"])),E.evaluated),(0,a._)(DJ||(DJ=Ee(["undefined"]))))}),O.if((0,a._)(TJ||(TJ=Ee(["",".dynamicItems"])),E.evaluated),function(){return O.assign((0,a._)(EJ||(EJ=Ee(["",".items"])),E.evaluated),(0,a._)(AJ||(AJ=Ee(["undefined"]))))})}(W),y(W),function(E){var de,Oe,ye,Xe,Le,O=E.gen,q=E.validateName,V=E.ValidationError,re=E.opts;E.schemaEnv.$async?O.if((0,a._)(PJ||(PJ=Ee([""," === 0"])),l.default.errors),function(){return O.return(l.default.data)},function(){return O.throw((0,a._)(jJ||(jJ=Ee(["new ","(",")"])),V,l.default.vErrors))}):(O.assign((0,a._)(RJ||(RJ=Ee(["",".errors"])),q),l.default.vErrors),re.unevaluated&&(Oe=(de=E).gen,ye=de.evaluated,Le=de.items,(Xe=de.props)instanceof a.Name&&Oe.assign((0,a._)($J||($J=Ee(["",".props"])),ye),Xe),Le instanceof a.Name&&Oe.assign((0,a._)(BJ||(BJ=Ee(["",".items"])),ye),Le)),O.return((0,a._)(LJ||(LJ=Ee([""," === 0"])),l.default.errors)))}(W)})):h(P,function(){return(0,t.topBoolOrEmptySchema)(P)})};var R=function(){function P(W,J,H){if(Ce(this,P),(0,o.validateKeywordUsage)(W,J,H),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=H,this.data=W.data,this.schema=W.schema[H],this.$data=J.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(W,this.schema,H,this.$data),this.schemaType=J.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=J,this.$data)this.schemaCode=W.gen.const("vSchema",te(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(J.schemaType)));("code"in J?J.trackErrors:!1!==J.errors)&&(this.errsCount=W.gen.const("_errs",l.default.errors))}return Se(P,[{key:"result",value:function(W,J,H){this.failResult((0,a.not)(W),J,H)}},{key:"failResult",value:function(W,J,H){this.gen.if(W),H?H():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(W,J){this.failResult((0,a.not)(W),void 0,J)}},{key:"fail",value:function(W){if(void 0===W)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(W){if(!this.$data)return this.fail(W);var J=this.schemaCode;this.fail((0,a._)(HJ||(HJ=Ee([""," !== undefined && (",")"])),J,(0,a.or)(this.invalid$data(),W)))}},{key:"error",value:function(W,J,H){if(J)return this.setParams(J),this._error(W,H),void this.setParams({});this._error(W,H)}},{key:"_error",value:function(W,J){(W?d.reportExtraError:d.reportError)(this,this.def.error,J)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(W){this.allErrors||this.gen.if(W)}},{key:"setParams",value:function(W,J){J?Object.assign(this.params,W):this.params=W}},{key:"block$data",value:function(W,J){var H=this,le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(W,le),J()})}},{key:"check$data",value:function(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,le=this.schemaCode,E=this.schemaType,O=this.def;H.if((0,a.or)((0,a._)(UJ||(UJ=Ee([""," === undefined"])),le),J)),W!==a.nil&&H.assign(W,!0),(E.length||O.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),W!==a.nil&&H.assign(W,!1)),H.else()}}},{key:"invalid$data",value:function(){var W=this.gen,J=this.schemaCode,H=this.schemaType,le=this.def,E=this.it;return(0,a.or)(function(){if(H.length){if(!(J instanceof a.Name))throw new Error("ajv implementation error");var O=Array.isArray(H)?H:[H];return(0,a._)(zJ||(zJ=Ee(["",""])),(0,i.checkDataTypes)(O,J,E.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(le.validateSchema){var O=W.scopeValue("validate$data",{ref:le.validateSchema});return(0,a._)(GJ||(GJ=Ee(["!","(",")"])),O,J)}return a.nil}())}},{key:"subschema",value:function(W,J){var H=(0,s.getSubschema)(this.it,W);(0,s.extendSubschemaData)(H,this.it,W),(0,s.extendSubschemaMode)(H,W);var le=Qe(Qe(Qe({},this.it),H),{},{items:void 0,props:void 0});return function p(P,W){g(P)&&(v(P),m(P))?function(J,H){var I,q,E=J.gen;J.opts.$comment&&J.schema.$comment&&_(J),(q=(I=J).schema[I.opts.schemaId])&&(I.baseId=(0,c.resolveUrl)(I.opts.uriResolver,I.baseId,q)),function(I){if(I.schema.$async&&!I.schemaEnv.$async)throw new Error("async schema in sync schema")}(J);var O=E.const("_errs",l.default.errors);y(J,O),E.var(H,(0,a._)(OJ||(OJ=Ee([""," === ",""])),O,l.default.errors))}(P,W):(0,t.boolOrEmptySchema)(P,W)}(le,J),le}},{key:"mergeEvaluated",value:function(W,J){var H=this.it,le=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==W.props&&(H.props=u.mergeEvaluated.props(le,W.props,H.props,J)),!0!==H.items&&void 0!==W.items&&(H.items=u.mergeEvaluated.items(le,W.items,H.items,J)))}},{key:"mergeValidEvaluated",value:function(W,J){var H=this,le=this.it;if(le.opts.unevaluated&&(!0!==le.props||!0!==le.items))return this.gen.if(J,function(){return H.mergeEvaluated(W,a.Name)}),!0}}]),P}();function U(P,W,J,H){var le=new R(P,J,W);"code"in J?J.code(le,H):le.$data&&J.validate?(0,o.funcKeywordCode)(le,J):"macro"in J?(0,o.macroKeywordCode)(le,J):(J.compile||J.validate)&&(0,o.funcKeywordCode)(le,J)}vf.KeywordCxt=R;var G=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function te(P,W){var J,H,le=W.dataLevel,E=W.dataNames,O=W.dataPathArr;if(""===P)return l.default.rootData;if("/"===P[0]){if(!G.test(P))throw new Error("Invalid JSON-pointer: ".concat(P));J=P,H=l.default.rootData}else{var I=X.exec(P);if(!I)throw new Error("Invalid JSON-pointer: ".concat(P));var q=+I[1];if("#"===(J=I[2])){if(q>=le)throw new Error(ye("property/index",q));return O[le-q]}if(q>le)throw new Error(ye("data",q));if(H=E[le-q],!J)return H}var V,re=H,de=Re(J.split("/"));try{for(de.s();!(V=de.n()).done;){var Oe=V.value;Oe&&(H=(0,a._)(WJ||(WJ=Ee(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(Oe))),re=(0,a._)(qJ||(qJ=Ee([""," && ",""])),re,H))}}catch(Xe){de.e(Xe)}finally{de.f()}return re;function ye(Xe,Le){return"Cannot access ".concat(Xe," ").concat(Le," levels up, current level is ").concat(le)}}return vf.getData=te,vf}Ba.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=c1(t[r]||n),a={"":s},l=Sge(o,s,!1),c={},u=new Set;return cst(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=_.call(e,f[r])),w.call(e,f.$anchor),w.call(e,f.$dynamicAnchor),a[p]=y}function _(k){if(k=c1(y?(0,this.opts.uriResolver.resolve)(y,k):k),u.has(k))throw h(k);u.add(k);var L=this.refs[k];return"string"==typeof L&&(L=this.refs[L]),"object"==mn(L)?d(f,L.schema,k):k!==c1(v)&&("#"===k[0]?(d(f,c[k],k),c[k]=f):this.refs[k]=v),k}function w(k){if("string"==typeof k){if(!fst.test(k))throw new Error('invalid anchor "'.concat(k,'"'));_.call(this,"#".concat(k))}}}),c;function d(f,p,m){if(void 0!==p&&!lst(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var Tge,iT={};function pR(){if(Tge)return iT;Tge=1,Object.defineProperty(iT,"__esModule",{value:!0});var t=function(n){xt(i,M_(Error));var e=wt(i);function i(r){var o;return Ce(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Se(i)}();return iT.default=t,iT}var Ege,rT={};function mR(){if(Ege)return rT;Ege=1,Object.defineProperty(rT,"__esModule",{value:!0});var t=Ba,n=function(e){xt(r,M_(Error));var i=wt(r);function r(o,s,a,l){var c;return Ce(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Se(r)}();return rT.default=n,rT}var Yl={};Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.resolveSchema=Yl.getCompilingSchema=Yl.resolveRef=Yl.compileSchema=Yl.SchemaEnv=void 0;var dd=xr(),pst=pR(),yg=Rp(),hd=Ba,Age=Lr,mst=nT(),oT=Se(function t(n){var e,i;Ce(this,t),this.refs={},this.dynamicAnchors={},"object"==mn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,hd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function gR(t){var n=Mge.call(this,t);if(n)return n;var e,i=(0,hd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new dd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:pst.default,code:(0,dd._)(YJ||(YJ=Ee(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:yg.default.data,parentData:yg.default.parentData,parentDataProperty:yg.default.parentDataProperty,dataNames:[yg.default.data],dataPathArr:[dd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,dd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:dd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,dd._)(XJ||(XJ=Ee(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,mst.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(yg.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(yg.default.self),"".concat(yg.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof dd.Name?void 0:p,items:m instanceof dd.Name?void 0:m,dynamicProps:p instanceof dd.Name,dynamicItems:m instanceof dd.Name},f.source&&(f.source.evaluated=(0,dd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function gst(t){return(0,hd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:gR.call(this,t)}function Mge(t){var n,e,i,r=Re(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function vst(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||sT.call(this,t,n)}function sT(t,n){var e=this.opts.uriResolver.parse(n),i=(0,hd._getFullPath)(this.opts.uriResolver,e),r=(0,hd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return vR.call(this,e,t);var o=(0,hd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=sT.call(this,t,s);return"object"!==mn(a?.schema)?void 0:vR.call(this,e,a)}if("object"===mn(s?.schema)){if(s.validate||gR.call(this,s),o===(0,hd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,hd.resolveUrl)(this.opts.uriResolver,r,u)),new oT({schema:l,schemaId:c,root:t,baseId:r})}return vR.call(this,e,s)}}Yl.SchemaEnv=oT,Yl.compileSchema=gR,Yl.resolveRef=function(t,n,e){var i;e=(0,hd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=vst.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new oT({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=gst.call(this,o):void 0},Yl.getCompilingSchema=Mge,Yl.resolveSchema=sT;var yst=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function vR(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=Re(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,Age.unescapeFragment)(c)];if(void 0===u)return;var d="object"===mn(r=u)&&r[this.opts.schemaId];!yst.has(c)&&d&&(i=(0,hd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,Age.schemaHasRulesButRef)(r,this.RULES)){var h=(0,hd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=sT.call(this,o,h)}return(a=a||new oT({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var _st={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},yR={},Oge={};(function(t){function n(){for(var xe=arguments.length,He=Array(xe),We=0;We1){He[0]=He[0].slice(0,-1);for(var lt=He.length-1,Ue=1;Ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=Math.floor,G=String.fromCharCode;function X(xe){throw new RangeError(z[xe])}function P(xe,He){var We=xe.split("@"),lt="";return We.length>1&&(lt=We[0]+"@",xe=We[1]),lt+function te(xe,He){for(var We=[],lt=xe.length;lt--;)We[lt]=He(xe[lt]);return We}((xe=xe.replace(L,".")).split("."),He).join(".")}function W(xe){for(var He=[],We=0,lt=xe.length;We=55296&&Ue<=56319&&We>1,xe+=U(xe/He);xe>455;lt+=f)xe=U(xe/35);return U(lt+36*xe/(xe+38))},O=function(xe){var He=[],We=xe.length,lt=0,Ue=128,kn=72,ti=xe.lastIndexOf("-");ti<0&&(ti=0);for(var ci=0;ci=128&&X("not-basic"),He.push(xe.charCodeAt(ci));for(var li=ti>0?ti+1:0;li=We&&X("invalid-input");var vr=H(xe.charCodeAt(li++));(vr>=f||vr>U((h-lt)/qr))&&X("overflow"),lt+=vr*qr;var Te=fi<=kn?1:fi>=kn+26?26:fi-kn;if(vrU(h/St)&&X("overflow"),qr*=St}var Vt=He.length+1;kn=E(lt-Sr,Vt,0==Sr),U(lt/Vt)>h-Ue&&X("overflow"),Ue+=U(lt/Vt),lt%=Vt,He.splice(lt++,0,Ue)}return String.fromCodePoint.apply(String,He)},I=function(xe){var He=[],We=(xe=W(xe)).length,lt=128,Ue=0,kn=72,ti=!0,ci=!1,li=void 0;try{for(var Sr,qr=xe[Symbol.iterator]();!(ti=(Sr=qr.next()).done);ti=!0){var fi=Sr.value;fi<128&&He.push(G(fi))}}catch(gd){ci=!0,li=gd}finally{try{!ti&&qr.return&&qr.return()}finally{if(ci)throw li}}var vr=He.length,Te=vr;for(vr&&He.push("-");Te=lt&&$nU((h-Ue)/Zn)&&X("overflow"),Ue+=(St-lt)*Zn,lt=St;var Yn=!0,yr=!1,Er=void 0;try{for(var Oo,ra=xe[Symbol.iterator]();!(Yn=(Oo=ra.next()).done);Yn=!0){var pd=Oo.value;if(pdh&&X("overflow"),pd==lt){for(var fu=Ue,oa=f;;oa+=f){var El=oa<=kn?1:oa>=kn+26?26:oa-kn;if(fu>6|192).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase():"%"+(He>>12|224).toString(16).toUpperCase()+"%"+(He>>6&63|128).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase()}function ye(xe){for(var He="",We=0,lt=xe.length;We=194&&Ue<224){if(lt-We>=6){var kn=parseInt(xe.substr(We+4,2),16);He+=String.fromCharCode((31&Ue)<<6|63&kn)}else He+=xe.substr(We,6);We+=6}else if(Ue>=224){if(lt-We>=9){var ti=parseInt(xe.substr(We+4,2),16),ci=parseInt(xe.substr(We+7,2),16);He+=String.fromCharCode((15&Ue)<<12|(63&ti)<<6|63&ci)}else He+=xe.substr(We,9);We+=9}else He+=xe.substr(We,3),We+=3}return He}function Xe(xe,He){function We(lt){var Ue=ye(lt);return Ue.match(He.UNRESERVED)?Ue:lt}return xe.scheme&&(xe.scheme=String(xe.scheme).replace(He.PCT_ENCODED,We).toLowerCase().replace(He.NOT_SCHEME,"")),void 0!==xe.userinfo&&(xe.userinfo=String(xe.userinfo).replace(He.PCT_ENCODED,We).replace(He.NOT_USERINFO,Oe).replace(He.PCT_ENCODED,r)),void 0!==xe.host&&(xe.host=String(xe.host).replace(He.PCT_ENCODED,We).toLowerCase().replace(He.NOT_HOST,Oe).replace(He.PCT_ENCODED,r)),void 0!==xe.path&&(xe.path=String(xe.path).replace(He.PCT_ENCODED,We).replace(xe.scheme?He.NOT_PATH:He.NOT_PATH_NOSCHEME,Oe).replace(He.PCT_ENCODED,r)),void 0!==xe.query&&(xe.query=String(xe.query).replace(He.PCT_ENCODED,We).replace(He.NOT_QUERY,Oe).replace(He.PCT_ENCODED,r)),void 0!==xe.fragment&&(xe.fragment=String(xe.fragment).replace(He.PCT_ENCODED,We).replace(He.NOT_FRAGMENT,Oe).replace(He.PCT_ENCODED,r)),xe}function Le(xe){return xe.replace(/^0*(.*)/,"$1")||"0"}function rt(xe,He){var We=xe.match(He.IPV4ADDRESS)||[],lt=u(We,2)[1];return lt?lt.split(".").map(Le).join("."):xe}function $(xe,He){var We=xe.match(He.IPV6ADDRESS)||[],lt=u(We,3),Ue=lt[1],kn=lt[2];if(Ue){for(var ti=Ue.toLowerCase().split("::").reverse(),ci=u(ti,2),li=ci[0],Sr=ci[1],qr=Sr?Sr.split(":").map(Le):[],fi=li.split(":").map(Le),vr=He.IPV4ADDRESS.test(fi[fi.length-1]),Te=vr?7:8,St=fi.length-Te,Vt=Array(Te),rn=0;rn1){var Ni=Vt.slice(0,un.index),$n=Vt.slice(un.index+un.length);ni=Ni.join(":")+"::"+$n.join(":")}else ni=Vt.join(":");return kn&&(ni+="%"+kn),ni}return xe}var ne=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ie=void 0==="".match(/(){0}/)[1];function Me(xe){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},We={},lt=!1!==He.iri?c:l;"suffix"===He.reference&&(xe=(He.scheme?He.scheme+":":"")+"//"+xe);var Ue=xe.match(ne);if(Ue){ie?(We.scheme=Ue[1],We.userinfo=Ue[3],We.host=Ue[4],We.port=parseInt(Ue[5],10),We.path=Ue[6]||"",We.query=Ue[7],We.fragment=Ue[8],isNaN(We.port)&&(We.port=Ue[5])):(We.scheme=Ue[1]||void 0,We.userinfo=-1!==xe.indexOf("@")?Ue[3]:void 0,We.host=-1!==xe.indexOf("//")?Ue[4]:void 0,We.port=parseInt(Ue[5],10),We.path=Ue[6]||"",We.query=-1!==xe.indexOf("?")?Ue[7]:void 0,We.fragment=-1!==xe.indexOf("#")?Ue[8]:void 0,isNaN(We.port)&&(We.port=xe.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ue[4]:void 0)),We.host&&(We.host=$(rt(We.host,lt),lt)),We.reference=void 0!==We.scheme||void 0!==We.userinfo||void 0!==We.host||void 0!==We.port||We.path||void 0!==We.query?void 0===We.scheme?"relative":void 0===We.fragment?"absolute":"uri":"same-document",He.reference&&"suffix"!==He.reference&&He.reference!==We.reference&&(We.error=We.error||"URI is not a "+He.reference+" reference.");var kn=de[(He.scheme||We.scheme||"").toLowerCase()];if(He.unicodeSupport||kn&&kn.unicodeSupport)Xe(We,lt);else{if(We.host&&(He.domainHost||kn&&kn.domainHost))try{We.host=re.toASCII(We.host.replace(lt.PCT_ENCODED,ye).toLowerCase())}catch(ti){We.error=We.error||"Host's domain name can not be converted to ASCII via punycode: "+ti}Xe(We,l)}kn&&kn.parse&&kn.parse(We,He)}else We.error=We.error||"URI can not be parsed.";return We}var je=/^\.\.?\//,gt=/^\/\.(\/|$)/,Tt=/^\/\.\.(\/|$)/,fn=/^\/?(?:.|\n)*?(?=\/|$)/;function Hn(xe){for(var He=[];xe.length;)if(xe.match(je))xe=xe.replace(je,"");else if(xe.match(gt))xe=xe.replace(gt,"/");else if(xe.match(Tt))xe=xe.replace(Tt,"/"),He.pop();else if("."===xe||".."===xe)xe="";else{var We=xe.match(fn);if(!We)throw new Error("Unexpected dot segment condition");var lt=We[0];xe=xe.slice(lt.length),He.push(lt)}return He.join("")}function Zt(xe){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},We=He.iri?c:l,lt=[],Ue=de[(He.scheme||xe.scheme||"").toLowerCase()];if(Ue&&Ue.serialize&&Ue.serialize(xe,He),xe.host&&!We.IPV6ADDRESS.test(xe.host)&&(He.domainHost||Ue&&Ue.domainHost))try{xe.host=He.iri?re.toUnicode(xe.host):re.toASCII(xe.host.replace(We.PCT_ENCODED,ye).toLowerCase())}catch(ci){xe.error=xe.error||"Host's domain name can not be converted to "+(He.iri?"Unicode":"ASCII")+" via punycode: "+ci}Xe(xe,We),"suffix"!==He.reference&&xe.scheme&&(lt.push(xe.scheme),lt.push(":"));var kn=function Ye(xe,He){var We=!1!==He.iri?c:l,lt=[];return void 0!==xe.userinfo&&(lt.push(xe.userinfo),lt.push("@")),void 0!==xe.host&<.push($(rt(String(xe.host),We),We).replace(We.IPV6ADDRESS,function(Ue,kn,ti){return"["+kn+(ti?"%25"+ti:"")+"]"})),"number"!=typeof xe.port&&"string"!=typeof xe.port||(lt.push(":"),lt.push(String(xe.port))),lt.length?lt.join(""):void 0}(xe,He);if(void 0!==kn&&("suffix"!==He.reference&<.push("//"),lt.push(kn),xe.path&&"/"!==xe.path.charAt(0)&<.push("/")),void 0!==xe.path){var ti=xe.path;He.absolutePath||Ue&&Ue.absolutePath||(ti=Hn(ti)),void 0===kn&&(ti=ti.replace(/^\/\//,"/%2F")),lt.push(ti)}return void 0!==xe.query&&(lt.push("?"),lt.push(xe.query)),void 0!==xe.fragment&&(lt.push("#"),lt.push(xe.fragment)),lt.join("")}function Ei(xe,He){var We=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},lt={};return arguments[3]||(xe=Me(Zt(xe,We),We),He=Me(Zt(He,We),We)),!(We=We||{}).tolerant&&He.scheme?(lt.scheme=He.scheme,lt.userinfo=He.userinfo,lt.host=He.host,lt.port=He.port,lt.path=Hn(He.path||""),lt.query=He.query):(void 0!==He.userinfo||void 0!==He.host||void 0!==He.port?(lt.userinfo=He.userinfo,lt.host=He.host,lt.port=He.port,lt.path=Hn(He.path||""),lt.query=He.query):(He.path?("/"===He.path.charAt(0)?lt.path=Hn(He.path):(lt.path=void 0===xe.userinfo&&void 0===xe.host&&void 0===xe.port||xe.path?xe.path?xe.path.slice(0,xe.path.lastIndexOf("/")+1)+He.path:He.path:"/"+He.path,lt.path=Hn(lt.path)),lt.query=He.query):(lt.path=xe.path,lt.query=void 0!==He.query?He.query:xe.query),lt.userinfo=xe.userinfo,lt.host=xe.host,lt.port=xe.port),lt.scheme=xe.scheme),lt.fragment=He.fragment,lt}function mr(xe,He){return xe&&xe.toString().replace(He&&He.iri?c.PCT_ENCODED:l.PCT_ENCODED,ye)}var gi={scheme:"http",domainHost:!0,parse:function(xe,He){return xe.host||(xe.error=xe.error||"HTTP URIs must have a host."),xe},serialize:function(xe,He){var We="https"===String(xe.scheme).toLowerCase();return xe.port!==(We?443:80)&&""!==xe.port||(xe.port=void 0),xe.path||(xe.path="/"),xe}},Vr={scheme:"https",domainHost:gi.domainHost,parse:gi.parse,serialize:gi.serialize};function Mo(xe){return"boolean"==typeof xe.secure?xe.secure:"wss"===String(xe.scheme).toLowerCase()}var On={scheme:"ws",domainHost:!0,parse:function(xe,He){var We=xe;return We.secure=Mo(We),We.resourceName=(We.path||"/")+(We.query?"?"+We.query:""),We.path=void 0,We.query=void 0,We},serialize:function(xe,He){if(xe.port!==(Mo(xe)?443:80)&&""!==xe.port||(xe.port=void 0),"boolean"==typeof xe.secure&&(xe.scheme=xe.secure?"wss":"ws",xe.secure=void 0),xe.resourceName){var We=xe.resourceName.split("?"),lt=u(We,2),Ue=lt[0],kn=lt[1];xe.path=Ue&&"/"!==Ue?Ue:void 0,xe.query=kn,xe.resourceName=void 0}return xe.fragment=void 0,xe}},bt={scheme:"wss",domainHost:On.domainHost,parse:On.parse,serialize:On.serialize},ai={},Ii="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Cr="[0-9A-Fa-f]",vo=e(e("%[EFef]"+Cr+"%"+Cr+Cr+"%"+Cr+Cr)+"|"+e("%[89A-Fa-f]"+Cr+"%"+Cr+Cr)+"|"+e("%"+Cr+Cr)),pt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),oi=new RegExp(Ii,"g"),vi=new RegExp(vo,"g"),Tr=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',pt),"g"),Hr=new RegExp(n("[^]",Ii,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),no=Hr;function Hs(xe){var He=ye(xe);return He.match(oi)?He:xe}var gr={scheme:"mailto",parse:function(xe,He){var We=xe,lt=We.to=We.path?We.path.split(","):[];if(We.path=void 0,We.query){for(var Ue=!1,kn={},ti=We.query.split("&"),ci=0,li=ti.length;ci string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=function(){function E(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ce(this,E),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,O=this.opts=Qe(Qe({},O),function y(E){var O,I,q,V,re,de,Oe,ye,Xe,Le,rt,$,ne,ie,Me,Ye,je,gt,Tt,fn,Hn,Zt,Ei,ln,dr,wr=E.strict,sr=null===(O=E.code)||void 0===O?void 0:O.optimize,mr=!0===sr||void 0===sr?1:sr||0,gi=null!==(q=null===(I=E.code)||void 0===I?void 0:I.regExp)&&void 0!==q?q:f,Vr=null!==(V=E.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(de=null!==(re=E.strictSchema)&&void 0!==re?re:wr)||void 0===de||de,strictNumbers:null===(ye=null!==(Oe=E.strictNumbers)&&void 0!==Oe?Oe:wr)||void 0===ye||ye,strictTypes:null!==(Le=null!==(Xe=E.strictTypes)&&void 0!==Xe?Xe:wr)&&void 0!==Le?Le:"log",strictTuples:null!==($=null!==(rt=E.strictTuples)&&void 0!==rt?rt:wr)&&void 0!==$?$:"log",strictRequired:null!==(ie=null!==(ne=E.strictRequired)&&void 0!==ne?ne:wr)&&void 0!==ie&&ie,code:E.code?Qe(Qe({},E.code),{},{optimize:mr,regExp:gi}):{optimize:mr,regExp:gi},loopRequired:null!==(Me=E.loopRequired)&&void 0!==Me?Me:200,loopEnum:null!==(Ye=E.loopEnum)&&void 0!==Ye?Ye:200,meta:null===(je=E.meta)||void 0===je||je,messages:null===(gt=E.messages)||void 0===gt||gt,inlineRefs:null===(Tt=E.inlineRefs)||void 0===Tt||Tt,schemaId:null!==(fn=E.schemaId)&&void 0!==fn?fn:"$id",addUsedSchema:null===(Hn=E.addUsedSchema)||void 0===Hn||Hn,validateSchema:null===(Zt=E.validateSchema)||void 0===Zt||Zt,validateFormats:null===(Ei=E.validateFormats)||void 0===Ei||Ei,unicodeRegExp:null===(ln=E.unicodeRegExp)||void 0===ln||ln,int32range:null===(dr=E.int32range)||void 0===dr||dr,uriResolver:Vr}}(O));var I=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:I.es5,lines:I.lines}),this.logger=function G(E){if(!1===E)return U;if(void 0===E)return console;if(E.log&&E.warn&&E.error)return E;throw new Error("logger must implement log, warn and error methods")}(O.logger);var re=O.validateFormats;O.validateFormats=!1,this.RULES=(0,o.getRules)(),w.call(this,g,O,"NOT SUPPORTED"),w.call(this,v,O,"DEPRECATED","warn"),this._metaOpts=R.call(this),O.formats&&L.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),O.keywords&&z.call(this,O.keywords),"object"==mn(O.meta)&&this.addMetaSchema(O.meta),D.call(this),O.validateFormats=re}return Se(E,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var O=this.opts,I=O.$data,q=O.meta,V=O.schemaId,re=d;"id"===V&&((re=Qe({},d)).id=re.$id,delete re.$id),q&&I&&this.addMetaSchema(re,re[V],!1)}},{key:"defaultMeta",value:function(){var O=this.opts,I=O.meta,q=O.schemaId;return this.opts.defaultMeta="object"==mn(I)?I[q]||I:void 0}},{key:"validate",value:function(O,I){var q;if("string"==typeof O){if(!(q=this.getSchema(O)))throw new Error('no schema with key or ref "'.concat(O,'"'))}else q=this.compile(O);var V=q(I);return"$async"in q||(this.errors=q.errors),V}},{key:"compile",value:function(O,I){var q=this._addSchema(O,I);return q.validate||this._compileSchemaEnv(q)}},{key:"compileAsync",value:function(O,I){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var q=this.opts.loadSchema;return V.call(this,O,I);function V(Me,Ye){return re.apply(this,arguments)}function re(){return(re=Ki(pn().mark(function Me(Ye,je){var gt;return pn().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,de.call(this,Ye.$schema);case 2:return gt=this._addSchema(Ye,je),Tt.abrupt("return",gt.validate||ye.call(this,gt));case 4:case"end":return Tt.stop()}},Me,this)}))).apply(this,arguments)}function de(Me){return Oe.apply(this,arguments)}function Oe(){return(Oe=Ki(pn().mark(function Me(Ye){return pn().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!Ye||this.getSchema(Ye)){je.next=3;break}return je.next=3,V.call(this,{$ref:Ye},!0);case 3:case"end":return je.stop()}},Me,this)}))).apply(this,arguments)}function ye(Me){return Xe.apply(this,arguments)}function Xe(){return(Xe=Ki(pn().mark(function Me(Ye){return pn().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.prev=0,je.abrupt("return",this._compileSchemaEnv(Ye));case 4:if(je.prev=4,je.t0=je.catch(0),je.t0 instanceof r.default){je.next=8;break}throw je.t0;case 8:return Le.call(this,je.t0),je.next=11,rt.call(this,je.t0.missingSchema);case 11:return je.abrupt("return",ye.call(this,Ye));case 12:case"end":return je.stop()}},Me,this,[[0,4]])}))).apply(this,arguments)}function Le(Me){var Ye=Me.missingSchema,je=Me.missingRef;if(this.refs[Ye])throw new Error("AnySchema ".concat(Ye," is loaded but ").concat(je," cannot be resolved"))}function rt(Me){return $.apply(this,arguments)}function $(){return($=Ki(pn().mark(function Me(Ye){var je;return pn().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return gt.next=2,ne.call(this,Ye);case 2:if(je=gt.sent,this.refs[Ye]){gt.next=6;break}return gt.next=6,de.call(this,je.$schema);case 6:this.refs[Ye]||this.addSchema(je,Ye,I);case 7:case"end":return gt.stop()}},Me,this)}))).apply(this,arguments)}function ne(Me){return ie.apply(this,arguments)}function ie(){return(ie=Ki(pn().mark(function Me(Ye){var je;return pn().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if(!(je=this._loading[Ye])){gt.next=3;break}return gt.abrupt("return",je);case 3:return gt.prev=3,gt.next=6,this._loading[Ye]=q(Ye);case 6:return gt.abrupt("return",gt.sent);case 7:return gt.prev=7,delete this._loading[Ye],gt.finish(7);case 10:case"end":return gt.stop()}},Me,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(O,I,q){var V,re=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(O)){var de,Oe=Re(O);try{for(Oe.s();!(de=Oe.n()).done;)this.addSchema(de.value,void 0,q,re)}catch(Le){Oe.e(Le)}finally{Oe.f()}return this}if("object"===mn(O)){var Xe=this.opts.schemaId;if(void 0!==(V=O[Xe])&&"string"!=typeof V)throw new Error("schema ".concat(Xe," must be string"))}return I=(0,l.normalizeId)(I||V),this._checkUnique(I),this.schemas[I]=this._addSchema(O,q,I,re,!0),this}},{key:"addMetaSchema",value:function(O,I){return this.addSchema(O,I,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(O,I){if("boolean"==typeof O)return!0;var q;if(void 0!==(q=O.$schema)&&"string"!=typeof q)throw new Error("$schema must be a string");if(!(q=q||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(q,O);if(!V&&I){var re="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(re);this.logger.error(re)}return V}},{key:"getSchema",value:function(O){for(var I;"string"==typeof(I=k.call(this,O));)O=I;if(void 0===I){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(I=s.resolveSchema.call(this,V,O)))return;this.refs[O]=I}return I.validate||this._compileSchemaEnv(I)}},{key:"removeSchema",value:function(O){if(O instanceof RegExp)return this._removeAllSchemas(this.schemas,O),this._removeAllSchemas(this.refs,O),this;switch(mn(O)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var I=k.call(this,O);return"object"==mn(I)&&this._cache.delete(I.schema),delete this.schemas[O],delete this.refs[O],this;case"object":this._cache.delete(O);var V=O[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(O){var I,q=Re(O);try{for(q.s();!(I=q.n()).done;)this.addKeyword(I.value)}catch(re){q.e(re)}finally{q.f()}return this}},{key:"addKeyword",value:function(O,I){var q,V=this;if("string"==typeof O)q=O,"object"==mn(I)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),I.keyword=q);else{if("object"!=mn(O)||void 0!==I)throw new Error("invalid addKeywords parameters");if(q=(I=O).keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(te.call(this,q,I),!I)return(0,u.eachItem)(q,function(de){return P.call(V,de)}),this;J.call(this,I);var re=Qe(Qe({},I),{},{type:(0,c.getJSONTypes)(I.type),schemaType:(0,c.getJSONTypes)(I.schemaType)});return(0,u.eachItem)(q,0===re.type.length?function(de){return P.call(V,de,re)}:function(de){return re.type.forEach(function(Oe){return P.call(V,de,re,Oe)})}),this}},{key:"getKeyword",value:function(O){var I=this.RULES.all[O];return"object"==mn(I)?I.definition:!!I}},{key:"removeKeyword",value:function(O){var I=this.RULES;delete I.keywords[O],delete I.all[O];var q,V=Re(I.rules);try{for(V.s();!(q=V.n()).done;){var re=q.value,de=re.rules.findIndex(function(Oe){return Oe.keyword===O});de>=0&&re.rules.splice(de,1)}}catch(Oe){V.e(Oe)}finally{V.f()}return this}},{key:"addFormat",value:function(O,I){return"string"==typeof I&&(I=new RegExp(I)),this.formats[O]=I,this}},{key:"errorsText",value:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},q=I.separator,V=void 0===q?", ":q,re=I.dataVar,de=void 0===re?"data":re;return O&&0!==O.length?O.map(function(Oe){return"".concat(de).concat(Oe.instancePath," ").concat(Oe.message)}).reduce(function(Oe,ye){return Oe+V+ye}):"No errors"}},{key:"$dataMetaSchema",value:function(O,I){var q=this.RULES.all;O=JSON.parse(JSON.stringify(O));var V,re=Re(I);try{for(re.s();!(V=re.n()).done;){var de,Oe=V.value.split("/").slice(1),ye=O,Xe=Re(Oe);try{for(Xe.s();!(de=Xe.n()).done;)ye=ye[de.value]}catch(ie){Xe.e(ie)}finally{Xe.f()}for(var Le in q){var rt=q[Le];if("object"==mn(rt)){var ne=ye[Le];rt.definition.$data&&ne&&(ye[Le]=le(ne))}}}}catch(ie){re.e(ie)}finally{re.f()}return O}},{key:"_removeAllSchemas",value:function(O,I){for(var q in O){var V=O[q];I&&!I.test(q)||("string"==typeof V?delete O[q]:V&&!V.meta&&(this._cache.delete(V.schema),delete O[q]))}}},{key:"_addSchema",value:function(O,I,q){var V,re=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,de=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,Oe=this.opts.schemaId;if("object"==mn(O))V=O[Oe];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof O)throw new Error("schema must be object or boolean")}var ye=this._cache.get(O);if(void 0!==ye)return ye;q=(0,l.normalizeId)(V||q);var Xe=l.getSchemaRefs.call(this,O,q);return ye=new s.SchemaEnv({schema:O,schemaId:Oe,meta:I,baseId:q,localRefs:Xe}),this._cache.set(ye.schema,ye),de&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=ye),re&&this.validateSchema(O,!0),ye}},{key:"_checkUnique",value:function(O){if(this.schemas[O]||this.refs[O])throw new Error('schema with key or id "'.concat(O,'" already exists'))}},{key:"_compileSchemaEnv",value:function(O){if(O.meta?this._compileMetaSchema(O):s.compileSchema.call(this,O),!O.validate)throw new Error("ajv implementation error");return O.validate}},{key:"_compileMetaSchema",value:function(O){var I=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,O)}finally{this.opts=I}}}]),E}();function w(E,O,I){var q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in E){var re=V;re in O&&this.logger[q]("".concat(I,": option ").concat(V,". ").concat(E[re]))}}function k(E){return E=(0,l.normalizeId)(E),this.schemas[E]||this.refs[E]}function D(){var E=this.opts.schemas;if(E)if(Array.isArray(E))this.addSchema(E);else for(var O in E)this.addSchema(E[O],O)}function L(){for(var E in this.opts.formats){var O=this.opts.formats[E];O&&this.addFormat(E,O)}}function z(E){if(Array.isArray(E))this.addVocabulary(E);else for(var O in this.logger.warn("keywords option as map is deprecated, pass array"),E){var I=E[O];I.keyword||(I.keyword=O),this.addKeyword(I)}}function R(){var E,O=Qe({},this.opts),I=Re(p);try{for(I.s();!(E=I.n()).done;)delete O[E.value]}catch(q){I.e(q)}finally{I.f()}return O}t.default=_,_.ValidationError=i.default,_.MissingRefError=r.default;var U={log:function(){},warn:function(){},error:function(){}},X=/^[a-z_$][a-z0-9_$:-]*$/i;function te(E,O){var I=this.RULES;if((0,u.eachItem)(E,function(q){if(I.keywords[q])throw new Error("Keyword ".concat(q," is already defined"));if(!X.test(q))throw new Error("Keyword ".concat(q," has invalid name"))}),O&&O.$data&&!("code"in O)&&!("validate"in O))throw new Error('$data keyword must have "code" or "validate" function')}function P(E,O,I){var q,V=this,re=O?.post;if(I&&re)throw new Error('keyword with "post" flag cannot have "type"');var de=this.RULES,Oe=re?de.post:de.rules.find(function(Xe){return Xe.type===I});if(Oe||de.rules.push(Oe={type:I,rules:[]}),de.keywords[E]=!0,O){var ye={keyword:E,definition:Qe(Qe({},O),{},{type:(0,c.getJSONTypes)(O.type),schemaType:(0,c.getJSONTypes)(O.schemaType)})};O.before?W.call(this,Oe,ye,O.before):Oe.rules.push(ye),de.all[E]=ye,null===(q=O.implements)||void 0===q||q.forEach(function(Xe){return V.addKeyword(Xe)})}}function W(E,O,I){var q=E.rules.findIndex(function(V){return V.keyword===I});q>=0?E.rules.splice(q,0,O):(E.rules.push(O),this.logger.warn("rule ".concat(I," is not defined")))}function J(E){var O=E.metaSchema;void 0!==O&&(E.$data&&this.opts.$data&&(O=le(O)),E.validateSchema=this.compile(O,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function le(E){return{anyOf:[E,H]}}}(oge);var _R={},bR={},xR={};Object.defineProperty(xR,"__esModule",{value:!0}),xR.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var _g={};Object.defineProperty(_g,"__esModule",{value:!0}),_g.callRef=_g.getValidate=void 0;var xst=mR(),Nge=ud(),Xl=xr(),u1=Rp(),Fge=Yl,aT=Lr,wst={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return lT(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return lT(t,(0,Xl._)(JJ||(JJ=Ee(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=Fge.resolveRef.call(l,c,r,e);if(void 0===p)throw new xst.default(i.opts.uriResolver,r,e);return p instanceof Fge.SchemaEnv?(g=Pge(t,m=p),void lT(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,Xl.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:Xl.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function Pge(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,Xl._)(KJ||(KJ=Ee(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function lT(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?u1.default.this:Xl.nil;function c(d){var h=(0,Xl._)(eK||(eK=Ee(["",".errors"])),d);r.assign(u1.default.vErrors,(0,Xl._)(tK||(tK=Ee([""," === null ? "," : ",".concat(",")"])),u1.default.vErrors,h,u1.default.vErrors,h)),r.assign(u1.default.errors,(0,Xl._)(nK||(nK=Ee(["",".length"])),u1.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=aT.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,Xl._)(iK||(iK=Ee(["",".evaluated.props"])),d));o.props=aT.mergeEvaluated.props(r,p,o.props,Xl.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=aT.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,Xl._)(rK||(rK=Ee(["",".evaluated.items"])),d));o.items=aT.mergeEvaluated.items(r,m,o.items,Xl.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,Xl._)(QJ||(QJ=Ee(["await ",""])),(0,Nge.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,Xl._)(ZJ||(ZJ=Ee(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,Nge.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}_g.getValidate=Pge,_g.callRef=lT,_g.default=wst,Object.defineProperty(bR,"__esModule",{value:!0}),bR.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",xR.default,_g.default];var wR={},CR={};Object.defineProperty(CR,"__esModule",{value:!0});var cT=xr(),$p=cT.operators,uT={maximum:{okStr:"<=",ok:$p.LTE,fail:$p.GT},minimum:{okStr:">=",ok:$p.GTE,fail:$p.LT},exclusiveMaximum:{okStr:"<",ok:$p.LT,fail:$p.GTE},exclusiveMinimum:{okStr:">",ok:$p.GT,fail:$p.LTE}},kst={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,cT.str)(oK||(oK=Ee(["must be "," ",""])),uT[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,cT._)(sK||(sK=Ee(["{comparison: ",", limit: ","}"])),uT[n].okStr,e)}},Dst={keyword:Object.keys(uT),type:"number",schemaType:"number",$data:!0,error:kst,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,cT._)(aK||(aK=Ee([""," "," "," || isNaN(",")"])),e,uT[n].fail,i,e))}};CR.default=Dst;var SR={};Object.defineProperty(SR,"__esModule",{value:!0});var tx=xr(),Tst={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,tx.str)(lK||(lK=Ee(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,tx._)(cK||(cK=Ee(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,tx._)(uK||(uK=Ee(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,tx._)(dK||(dK=Ee([""," !== parseInt(",")"])),o,o);t.fail$data((0,tx._)(hK||(hK=Ee(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};SR.default=Tst;var kR={},DR={};function jge(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(rx.nil,g);else{var v,y=Re(e);try{for(y.s();!(v=y.n()).done;)(0,ix.checkReportMissingProp)(t,v.value)}catch(w){y.e(w)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return w=y,t.setParams({missingProperty:_=v}),void n.forOf(_,i,function(){n.assign(w,(0,ix.propertyInData)(n,r,_,a.ownProperties)),n.if((0,rx.not)(w),function(){t.error(),n.break()})},rx.nil);var _,w}),t.ok(y)}else n.if((0,ix.checkMissingProp)(t,e,v)),(0,ix.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=Re(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,jst.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,ix.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};AR.default=Rst;var MR={};Object.defineProperty(MR,"__esModule",{value:!0});var ox=xr(),Lst={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,ox.str)(TK||(TK=Ee(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,ox._)(EK||(EK=Ee(["{limit: ","}"])),n)}},$st={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Lst,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?ox.operators.GT:ox.operators.LT;t.fail$data((0,ox._)(AK||(AK=Ee(["",".length "," ",""])),e,r,i))}};MR.default=$st;var OR={},sx={};Object.defineProperty(sx,"__esModule",{value:!0});var Rge=wge;Rge.code='require("ajv/dist/runtime/equal").default',sx.default=Rge,Object.defineProperty(OR,"__esModule",{value:!0});var IR=Zb,Va=xr(),Bst=Lr,Vst=sx,Hst={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Va.str)(MK||(MK=Ee(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Va._)(OK||(OK=Ee(["{i: ",", j: ","}"])),e,i)}},Ust={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Hst,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,IR.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Va._)(NK||(NK=Ee(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Va._)(FK||(FK=Ee([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Va._)(IK||(IK=Ee([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,IR.checkDataTypes)(c,p,a.opts.strictNumbers,IR.DataType.Wrong),g=n.const("indices",(0,Va._)(PK||(PK=Ee(["{}"]))));n.for((0,Va._)(jK||(jK=Ee([";","--;"])),h),function(){n.let(p,(0,Va._)(RK||(RK=Ee(["","[","]"])),e,h)),n.if(m,(0,Va._)(LK||(LK=Ee(["continue"])))),c.length>1&&n.if((0,Va._)($K||($K=Ee(["typeof ",' == "string"'])),p),(0,Va._)(BK||(BK=Ee(["",' += "_"'])),p)),n.if((0,Va._)(VK||(VK=Ee(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Va._)(HK||(HK=Ee(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Va._)(UK||(UK=Ee(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,Bst.useFunc)(n,Vst.default),m=n.name("outer");n.label(m).for((0,Va._)(zK||(zK=Ee([";","--;"])),h),function(){return n.for((0,Va._)(GK||(GK=Ee([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Va._)(WK||(WK=Ee(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};OR.default=Ust;var NR={};Object.defineProperty(NR,"__esModule",{value:!0});var FR=xr(),zst=Lr,Gst=sx,Wst={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,FR._)(qK||(qK=Ee(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==mn(o)?t.fail$data((0,FR._)(YK||(YK=Ee(["!","(",", ",")"])),(0,zst.useFunc)(n,Gst.default),e,r)):t.fail((0,FR._)(XK||(XK=Ee([""," !== ",""])),o,e))}};NR.default=Wst;var PR={};Object.defineProperty(PR,"__esModule",{value:!0});var ax=xr(),qst=Lr,Yst=sx,Xst={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,ax._)(JK||(JK=Ee(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,qst.useFunc)(n,Yst.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,ax._)(KK||(KK=Ee(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=ax.or.apply(void 0,ri(r.map(function(h,f){return p=d,"object"===mn(g=r[m=f])&&null!==g?(0,ax._)(QK||(QK=Ee(["","(",", ","[","])"])),u(),e,p,m):(0,ax._)(ZK||(ZK=Ee([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};PR.default=Xst,Object.defineProperty(wR,"__esModule",{value:!0}),wR.default=[CR.default,SR.default,kR.default,TR.default,ER.default,AR.default,MR.default,OR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},NR.default,PR.default];var jR={},d1={};Object.defineProperty(d1,"__esModule",{value:!0}),d1.validateAdditionalItems=void 0;var xg=xr(),RR=Lr,sat={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,xg.str)(eQ||(eQ=Ee(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,xg._)(tQ||(tQ=Ee(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Lge(t,i):(0,RR.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Lge(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,xg._)(nQ||(nQ=Ee(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,xg._)(iQ||(iQ=Ee([""," <= ",""])),a,n.length));else if("object"==mn(i)&&!(0,RR.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,xg._)(rQ||(rQ=Ee([""," <= ",""])),a,n.length));e.if((0,xg.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:RR.Type.Num},c),s.allErrors||e.if((0,xg.not)(c),function(){return e.break()})});var c}),t.ok(l)}}d1.validateAdditionalItems=Lge,d1.default=sat;var LR={},h1={};Object.defineProperty(h1,"__esModule",{value:!0}),h1.validateTuple=void 0;var $ge=xr(),hT=Lr,aat=ud(),lat={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Bge(t,"additionalItems",n);e.items=!0,(0,hT.alwaysValidSchema)(e,n)||t.ok((0,aat.validateArray)(t))}};function Bge(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,hT.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=hT.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,$ge._)(oQ||(oQ=Ee(["",".length"])),o));e.forEach(function(d,h){(0,hT.alwaysValidSchema)(a,d)||(i.if((0,$ge._)(sQ||(sQ=Ee([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}h1.validateTuple=Bge,h1.default=lat,Object.defineProperty(LR,"__esModule",{value:!0});var cat=h1,uat={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,cat.validateTuple)(t,"items")}};LR.default=uat;var $R={};Object.defineProperty($R,"__esModule",{value:!0});var Vge=xr(),dat=Lr,hat=ud(),fat=d1,pat={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Vge.str)(aQ||(aQ=Ee(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Vge._)(lQ||(lQ=Ee(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,dat.alwaysValidSchema)(i,n)||(r?(0,fat.validateAdditionalItems)(t,r):t.ok((0,hat.validateArray)(t)))}};$R.default=pat;var BR={};Object.defineProperty(BR,"__esModule",{value:!0});var hu=xr(),fT=Lr,mat={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,hu.str)(cQ||(cQ=Ee(["must contain at least "," valid item(s)"])),e):(0,hu.str)(uQ||(uQ=Ee(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,hu._)(dQ||(dQ=Ee(["{minContains: ","}"])),e):(0,hu._)(hQ||(hQ=Ee(["{minContains: ",", maxContains: ","}"])),e,i)}},gat={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:mat,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,hu._)(fQ||(fQ=Ee(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,fT.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,fT.alwaysValidSchema)(a,r)){var d=(0,hu._)(pQ||(pQ=Ee([""," >= ",""])),u,n);return void 0!==e&&(d=(0,hu._)(mQ||(mQ=Ee([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,hu._)(gQ||(gQ=Ee(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,fT.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,hu._)(vQ||(vQ=Ee(["","++"])),v)),void(void 0===e?i.if((0,hu._)(yQ||(yQ=Ee([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,hu._)(_Q||(_Q=Ee([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,hu._)(bQ||(bQ=Ee([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:fT.Type.Num,compositeRule:!0},m),g()})}}};BR.default=gat;var Hge={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=xr(),e=Lr,i=ud();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(xQ||(xQ=Ee(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(wQ||(wQ=Ee(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Un(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,_=Re(g);try{for(_.s();!(y=_.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(k){_.e(k)}finally{_.f()}}):(c.if((0,n._)(CQ||(CQ=Ee([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Hge);var VR={};Object.defineProperty(VR,"__esModule",{value:!0});var Uge=xr(),vat=Lr,yat={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Uge._)(SQ||(SQ=Ee(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,vat.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Uge.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};VR.default=yat;var pT={};Object.defineProperty(pT,"__esModule",{value:!0});var mT=ud(),fd=xr(),_at=Rp(),gT=Lr,bat={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,fd._)(kQ||(kQ=Ee(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,gT.alwaysValidSchema)(s,e)){var c=(0,mT.allSchemaProperties)(i.properties),u=(0,mT.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,gT.schemaRefOrVal)(s,i.properties,"properties");g=(0,mT.isOwnProperty)(n,v,m)}else g=c.length?fd.or.apply(void 0,ri(c.map(function(y){return(0,fd._)(TQ||(TQ=Ee([""," === ",""])),m,y)}))):fd.nil;return u.length&&(g=fd.or.apply(void 0,[g].concat(ri(u.map(function(y){return(0,fd._)(EQ||(EQ=Ee(["",".test(",")"])),(0,mT.usePattern)(t,y),m)}))))),(0,fd.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,fd._)(DQ||(DQ=Ee([""," === ",""])),o,_at.default.errors))}function d(p){n.code((0,fd._)(AQ||(AQ=Ee(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==mn(e)&&!(0,gT.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,fd.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,fd.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:gT.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};pT.default=bat;var HR={};Object.defineProperty(HR,"__esModule",{value:!0});var xat=nT(),zge=ud(),UR=Lr,Gge=pT,wat={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Gge.default.code(new xat.KeywordCxt(o,Gge.default,"additionalProperties"));var s,a=(0,zge.allSchemaProperties)(e),l=Re(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=UR.mergeEvaluated.props(n,(0,UR.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,UR.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=Re(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,zge.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};HR.default=wat;var zR={};Object.defineProperty(zR,"__esModule",{value:!0});var Wge=ud(),vT=xr(),qge=Lr,Yge=Lr,Cat={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,Wge.allSchemaProperties)(e),l=a.filter(function(p){return(0,qge.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof vT.Name||(o.props=(0,Yge.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=Re(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,qge.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,vT._)(MQ||(MQ=Ee(["",".test(",")"])),(0,Wge.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Yge.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,vT._)(OQ||(OQ=Ee(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,vT.not)(u),function(){return n.break()})})})}}};zR.default=Cat;var GR={};Object.defineProperty(GR,"__esModule",{value:!0});var Sat=Lr,kat={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,Sat.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};GR.default=kat;var WR={};Object.defineProperty(WR,"__esModule",{value:!0});var Dat={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ud().validateUnion,error:{message:"must match a schema in anyOf"}};WR.default=Dat;var qR={};Object.defineProperty(qR,"__esModule",{value:!0});var yT=xr(),Tat=Lr,Eat={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,yT._)(IQ||(IQ=Ee(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Tat.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,yT._)(NQ||(NQ=Ee([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,yT._)(FQ||(FQ=Ee(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,yT.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};qR.default=Eat;var YR={};Object.defineProperty(YR,"__esModule",{value:!0});var Aat=Lr,Mat={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Aat.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};YR.default=Mat;var XR={};Object.defineProperty(XR,"__esModule",{value:!0});var _T=xr(),Xge=Lr,Oat={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,_T.str)(PQ||(PQ=Ee(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,_T._)(jQ||(jQ=Ee(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Xge.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=Jge(i,"then"),o=Jge(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,_T.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,_T._)(RQ||(RQ=Ee(["",""])),d)):t.setParams({ifClause:d})}}}};function Jge(t,n){var e=t.schema[n];return void 0!==e&&!(0,Xge.alwaysValidSchema)(t,e)}XR.default=Oat;var JR={};Object.defineProperty(JR,"__esModule",{value:!0});var Iat=Lr,Nat={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,Iat.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};JR.default=Nat,Object.defineProperty(jR,"__esModule",{value:!0});var Fat=d1,Pat=LR,jat=h1,Rat=$R,Lat=BR,$at=Hge,Bat=VR,Vat=pT,Hat=HR,Uat=zR,zat=GR,Gat=WR,Wat=qR,qat=YR,Yat=XR,Xat=JR;jR.default=function(){var n=[zat.default,Gat.default,Wat.default,qat.default,Yat.default,Xat.default,Bat.default,Vat.default,$at.default,Hat.default,Uat.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Pat.default,Rat.default):n.push(Fat.default,jat.default),n.push(Lat.default),n};var KR={},QR={};Object.defineProperty(QR,"__esModule",{value:!0});var As=xr(),Jat={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,As.str)(LQ||(LQ=Ee(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,As._)($Q||($Q=Ee(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,As._)(BQ||(BQ=Ee(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,As._)(VQ||(VQ=Ee(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,As._)(HQ||(HQ=Ee(["",'.type || "string"'])),f)).assign(m,(0,As._)(UQ||(UQ=Ee(["",".validate"])),f))},function(){return e.assign(p,(0,As._)(zQ||(zQ=Ee(['"string"'])))).assign(m,f)}),t.fail$data((0,As.or)(!1===l.strictSchema?As.nil:(0,As._)(GQ||(GQ=Ee([""," && !",""])),s,m),(g=u.$async?(0,As._)(WQ||(WQ=Ee(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,As._)(qQ||(qQ=Ee(["","(",")"])),m,i),v=(0,As._)(YQ||(YQ=Ee(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,As._)(XQ||(XQ=Ee([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Un(function(v){var y=v instanceof RegExp?(0,As.regexpCode)(v):l.code.formats?(0,As._)(JQ||(JQ=Ee(["","",""])),l.code.formats,(0,As.getProperty)(o)):void 0,_=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=mn(v)||v instanceof RegExp?["string",v,_]:[v.type||"string",v.validate,(0,As._)(KQ||(KQ=Ee(["",".validate"])),_)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==mn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,As._)(QQ||(QQ=Ee(["await ","(",")"])),g,i)}return(0,As._)("function"==typeof m?ZQ||(ZQ=Ee(["","(",")"])):eZ||(eZ=Ee(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};QR.default=Jat,Object.defineProperty(KR,"__esModule",{value:!0}),KR.default=[QR.default];var f1={};Object.defineProperty(f1,"__esModule",{value:!0}),f1.contentVocabulary=f1.metadataVocabulary=void 0,f1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],f1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(_R,"__esModule",{value:!0});var elt=KR,Kge=f1,tlt=[bR.default,wR.default,(0,jR.default)(),elt.default,Kge.metadataVocabulary,Kge.contentVocabulary];_R.default=tlt;var ZR={},Qge={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(Qge),Object.defineProperty(ZR,"__esModule",{value:!0});var p1=xr(),eL=Qge,Zge=Yl,nlt=Lr,ilt={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===eL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,p1._)(tZ||(tZ=Ee(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,p1._)(nZ||(nZ=Ee(["","",""])),e,(0,p1.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,p1.Name),h}n.if((0,p1._)(iZ||(iZ=Ee(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=w(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",_="Expref",w="Pipe",L="EQ",z="GT",R="LT",U="GTE",G="LTE",X="NE",te="Flatten",P="Star",W="Filter",J="Dot",le="Lbrace",E="Lbracket",O="Lparen",I="Literal",q={".":J,"*":P,",":p,":":m,"{":le,"}":g,"]":h,"(":O,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},re={" ":!0,"\t":!0,"\n":!0};function de($){return $>="0"&&$<="9"||"-"===$}function Oe(){}Oe.prototype={tokenize:function($){var ne,ie,Me,Ye,je=[];for(this._current=0;this._current<$.length;)if((Ye=$[this._current])>="a"&&Ye<="z"||Ye>="A"&&Ye<="Z"||"_"===Ye)ne=this._current,ie=this._consumeUnquotedIdentifier($),je.push({type:u,value:ie,start:ne});else if(void 0!==q[$[this._current]])je.push({type:q[$[this._current]],value:$[this._current],start:this._current}),this._current++;else if(de($[this._current]))Me=this._consumeNumber($),je.push(Me);else if("["===$[this._current])Me=this._consumeLBracket($),je.push(Me);else if('"'===$[this._current])ne=this._current,ie=this._consumeQuotedIdentifier($),je.push({type:d,value:ie,start:ne});else if("'"===$[this._current])ne=this._current,ie=this._consumeRawStringLiteral($),je.push({type:I,value:ie,start:ne});else if("`"===$[this._current]){ne=this._current;var gt=this._consumeLiteral($);je.push({type:I,value:gt,start:ne})}else if(void 0!==V[$[this._current]])je.push(this._consumeOperator($));else if(void 0!==re[$[this._current]])this._current++;else if("&"===$[this._current])ne=this._current,this._current++,"&"===$[this._current]?(this._current++,je.push({type:"And",value:"&&",start:ne})):je.push({type:_,value:"&",start:ne});else{if("|"!==$[this._current]){var Tt=new Error("Unknown character:"+$[this._current]);throw Tt.name="LexerError",Tt}ne=this._current,this._current++,"|"===$[this._current]?(this._current++,je.push({type:"Or",value:"||",start:ne})):je.push({type:w,value:"|",start:ne})}return je},_consumeUnquotedIdentifier:function($){var ne,ie=this._current;for(this._current++;this._current<$.length&&((ne=$[this._current])>="a"&&ne<="z"||ne>="A"&&ne<="Z"||ne>="0"&&ne<="9"||"_"===ne);)this._current++;return $.slice(ie,this._current)},_consumeQuotedIdentifier:function($){var ne=this._current;this._current++;for(var ie=$.length;'"'!==$[this._current]&&this._current"===ie?"="===$[this._current]?(this._current++,{type:U,value:">=",start:ne}):{type:z,value:">",start:ne}:"="===ie&&"="===$[this._current]?(this._current++,{type:L,value:"==",start:ne}):void 0},_consumeLiteral:function($){this._current++;for(var ne,ie=this._current,Me=$.length;"`"!==$[this._current]&&this._current=0||["true","false","null"].indexOf($)>=0)return!0;if(!("-0123456789".indexOf($[0])>=0))return!1;try{return JSON.parse($),!0}catch{return!1}}};var ye={};function Xe(){}function Le($){this.runtime=$}function rt($){this._interpreter=$,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}ye.EOF=0,ye.UnquotedIdentifier=0,ye.QuotedIdentifier=0,ye.Rbracket=0,ye.Rparen=0,ye.Comma=0,ye.Rbrace=0,ye.Number=0,ye.Current=0,ye.Expref=0,ye.Pipe=1,ye.Or=2,ye.And=3,ye.EQ=5,ye.GT=5,ye.LT=5,ye.GTE=5,ye.LTE=5,ye.NE=5,ye.Flatten=9,ye.Star=20,ye.Filter=21,ye.Dot=40,ye.Not=45,ye.Lbrace=50,ye.Lbracket=55,ye.Lparen=60,Xe.prototype={parse:function($){this._loadTokens($),this.index=0;var ne=this.expression(0);if("EOF"!==this._lookahead(0)){var ie=this._lookaheadToken(0),Me=new Error("Unexpected token type: "+ie.type+", value: "+ie.value);throw Me.name="ParserError",Me}return ne},_loadTokens:function($){var ne=(new Oe).tokenize($);ne.push({type:"EOF",value:"",start:$.length}),this.tokens=ne},expression:function($){var ne=this._lookaheadToken(0);this._advance();for(var ie=this.nud(ne),Me=this._lookahead(0);$=0?this.expression($):ne===E?(this._match(E),this._parseMultiselectList()):ne===le?(this._match(le),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function($){var ne;if(ye[this._lookahead(0)]<10)ne={type:"Identity"};else if(this._lookahead(0)===E)ne=this.expression($);else if(this._lookahead(0)===W)ne=this.expression($);else{if(this._lookahead(0)!==J){var ie=this._lookaheadToken(0),Me=new Error("Sytanx error, unexpected token: "+ie.value+"("+ie.type+")");throw Me.name="ParserError",Me}this._match(J),ne=this._parseDotRHS($)}return ne},_parseMultiselectList:function(){for(var $=[];this._lookahead(0)!==h;){var ne=this.expression(0);if($.push(ne),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:$}},_parseMultiselectHash:function(){for(var $,ne,ie,Me=[],Ye=[u,d];;){if($=this._lookaheadToken(0),Ye.indexOf($.type)<0)throw new Error("Expecting an identifier token, got: "+$.type);if(ne=$.value,this._advance(),this._match(m),ie={type:"KeyValuePair",name:ne,value:this.expression(0)},Me.push(ie),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Me}}},Le.prototype={search:function($,ne){return this.visit($,ne)},visit:function($,ne){var ie,Me,Ye,je,gt,Tt,fn,Hn,Zt;switch($.type){case"Field":return null!==ne&&e(ne)?void 0===(Tt=ne[$.name])?null:Tt:null;case"Subexpression":for(Ye=this.visit($.children[0],ne),Zt=1;Zt<$.children.length;Zt++)if(null===(Ye=this.visit($.children[1],Ye)))return null;return Ye;case"IndexExpression":return fn=this.visit($.children[0],ne),this.visit($.children[1],fn);case"Index":if(!n(ne))return null;var Ei=$.value;return Ei<0&&(Ei=ne.length+Ei),void 0===(Ye=ne[Ei])&&(Ye=null),Ye;case"Slice":if(!n(ne))return null;var ln=$.children.slice(0),dr=this.computeSliceParams(ne.length,ln),wr=dr[0],sr=dr[1],mr=dr[2];if(Ye=[],mr>0)for(Zt=wr;Ztsr;Zt+=mr)Ye.push(ne[Zt]);return Ye;case"Projection":var gi=this.visit($.children[0],ne);if(!n(gi))return null;for(Hn=[],Zt=0;Ztgt;break;case U:Ye=je>=gt;break;case R:Ye=je=$&&(ne=ie<0?$-1:$),ne}},rt.prototype={callFunction:function($,ne){var ie=this.functionTable[$];if(void 0===ie)throw new Error("Unknown function: "+$+"()");return this._validateArgs($,ne,ie._signature),ie._func.call(this,ne)},_validateArgs:function($,ne,ie){var Me,Ye,je,gt;if(ie[ie.length-1].variadic){if(ne.length=0;Me--)ie+=ne[Me];return ie}var Ye=$[0].slice(0);return Ye.reverse(),Ye},_functionAbs:function($){return Math.abs($[0])},_functionCeil:function($){return Math.ceil($[0])},_functionAvg:function($){for(var ne=0,ie=$[0],Me=0;Me=0},_functionFloor:function($){return Math.floor($[0])},_functionLength:function($){return e($[0])?Object.keys($[0]).length:$[0].length},_functionMap:function($){for(var ne=[],ie=this._interpreter,Me=$[0],Ye=$[1],je=0;je0){if(this._getTypeName($[0][0])===s)return Math.max.apply(Math,$[0]);for(var ne=$[0],ie=ne[0],Me=1;Me0){if(this._getTypeName($[0][0])===s)return Math.min.apply(Math,$[0]);for(var ne=$[0],ie=ne[0],Me=1;Meln?1:Eigt&&(gt=ie,ne=Ye[Tt]);return ne},_functionMinBy:function($){for(var ne,ie,Ye=$[0],je=this.createKeyFunction($[1],[s,a]),gt=1/0,Tt=0;Tt1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var llt=function(){function t(n,e,i,r){tL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=bT(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=bT(p,4),_=m[3];void 0===_&&(_=1),o.rgba=[m[0],m[1],m[2],_]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return nL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return nve(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return nve(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=alt[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=bT(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),clt=function(){function t(){tL(this,t),this._events=[]}return nL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function iL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function wh(t,n){return(n||document).querySelector(t)}function ive(t){t.preventDefault(),t.stopPropagation()}function rL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&ive(o),i(o))})}var rve=function(){function t(n){tL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new clt,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return nL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),rL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(ive(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new llt(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=wh(".picker_hue",o),this._domSL=wh(".picker_sl",o),this._domA=wh(".picker_alpha",o),this._domEdit=wh(".picker_editor input",o),this._domSample=wh(".picker_sample",o),this._domOkay=wh(".picker_done button",o),this._domCancel=wh(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),iL(r,this._domH,function(l,c){return e._setHSLA(l)}),iL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&iL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),rL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),rL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=wh(".picker_selector",this._domH),d=wh(".picker_selector",l),h=wh(".picker_selector",c);_(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,_(0,d,i[1]),w(0,d,1-i[2]),l.style.color=o,w(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function _(k,D,L){D.style.left=100*L+"%"}function w(k,D,L){D.style.top=100*L+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),oL=document.createElement("style");oL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(oL),rve.StyleElement=oL;var ult=Object.freeze({__proto__:null,default:rve});const dlt=["editor"];function hlt(t,n){if(1&t&&(b(0,"ngb-alert",38),ge(1,"img",39),b(2,"h6",40),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error while modifying storage object: ",e.error,"")}}function flt(t,n){1&t&&(b(0,"ngb-alert",41),ge(1,"img",42),b(2,"h6",40),N(3,"Storage object was modified successfully."),x()()),2&t&&S("dismissible",!1)}function plt(t,n){1&t&&(b(0,"span"),N(1,"Save as a copy"),x())}function mlt(t,n){1&t&&N(0,"Save")}function glt(t,n){if(1&t&&(b(0,"button",43),Z(1,plt,2,0,"span",44),Z(2,mlt,1,0,"ng-template",null,45,Uo),x()),2&t){const e=qs(3),i=B();S("disabled",i.updating),C(1),S("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const sL=function(){return["/storage"]},vlt=function(t){return{collection:t}},ylt=function(t,n){return{collection:t,key:n}},_lt=function(t,n,e){return{collection:t,key:n,user_id:e}},aL=function(t){return{"is-invalid":t}},cx=function(t){return{active:t}};let blt=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";object;objectForm;updating=!1;updated=!1;ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",wo.required],keyname:["",wo.required],user_id:["",wo.required],permission_read:[{value:0,disabled:!1},wo.required],permission_write:[{value:0,disabled:!1},wo.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=b0(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(dlt,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:88,vars:60,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["id","permission_read","name","permission_read",1,"btn-group","btn-group-toggle"],[1,"btn","btn-outline-secondary",3,"ngClass"],["formControlName","permission_read","type","radio",3,"value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["id","permission_write","name","permission_write",1,"btn-group","btn-group-toggle"],["formControlName","permission_write","type","radio",3,"value"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Storage Object"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),N(6,"Storage"),x(),b(7,"li",4)(8,"a",5),N(9),x()(),b(10,"li",4)(11,"a",5),N(12),x()(),b(13,"li",4)(14,"a",5),N(15),x()()()()(),Z(16,hlt,4,2,"ngb-alert",6),Z(17,flt,4,1,"ngb-alert",7),b(18,"form",8),be("ngSubmit",function(){return r.updateObject()}),b(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),N(23,"Collection"),x()(),ge(24,"input",13),b(25,"div",14),N(26,"Collection is required"),x()(),b(27,"div",10)(28,"div",11)(29,"label",15),N(30,"Key"),x()(),ge(31,"input",16),b(32,"div",14),N(33,"Key is required"),x()()(),b(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),N(38,"User ID"),x()(),ge(39,"input",18),b(40,"div",14),N(41,"User ID is required"),x()(),b(42,"div",19)(43,"div",11)(44,"label",20),N(45,"Read Permission"),x()(),b(46,"div",21)(47,"label",22),ge(48,"input",23),N(49," No Read "),x(),b(50,"label",22),ge(51,"input",23),N(52," Owner Read "),x(),b(53,"label",22),ge(54,"input",23),N(55," Public Read "),x()()()(),b(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),N(60,"Version"),x()(),ge(61,"input",25),x(),b(62,"div",19)(63,"div",11)(64,"label",26),N(65,"Write Permission"),x()(),b(66,"div",27)(67,"label",22),ge(68,"input",28),N(69," No Write "),x(),b(70,"label",22),ge(71,"input",28),N(72," Owner Write "),x()()()(),b(73,"div",29)(74,"div",10)(75,"div",11)(76,"label",30),N(77,"Create Time"),x()(),ge(78,"input",31),x(),b(79,"div",10)(80,"div",11)(81,"label",32),N(82,"Update Time"),x()(),ge(83,"input",33),x()(),b(84,"div",34),ge(85,"div",35,36),x(),Z(87,glt,4,3,"button",37),x()),2&i&&(C(8),S("routerLink",pl(32,sL))("queryParams",nr(33,vlt,r.object.collection)),C(1),kt(r.object.collection),C(2),S("routerLink",pl(35,sL))("queryParams",Mr(36,ylt,r.object.collection,r.object.key)),C(1),kt(r.object.key),C(2),S("routerLink",pl(39,sL))("queryParams",ey(40,_lt,r.object.collection,r.object.key,r.object.user_id)),C(1),kt(r.object.user_id),C(1),S("ngIf",r.error),C(1),S("ngIf",r.updated),C(1),S("formGroup",r.objectForm),C(6),S("ngClass",nr(44,aL,r.f.collection.dirty&&r.f.collection.errors)),C(1),S("hidden",r.f.collection.disabled||r.f.collection.valid||r.f.collection.pristine),C(6),S("ngClass",nr(46,aL,r.f.keyname.dirty&&r.f.keyname.errors)),C(1),S("hidden",r.f.keyname.disabled||r.f.keyname.valid||r.f.keyname.pristine),C(7),S("ngClass",nr(48,aL,r.f.user_id.dirty&&r.f.user_id.errors)),C(1),S("hidden",r.f.user_id.disabled||r.f.user_id.valid||r.f.user_id.pristine),C(7),S("ngClass",nr(50,cx,0==r.f.permission_read.value)),C(1),S("value",0),C(2),S("ngClass",nr(52,cx,1==r.f.permission_read.value)),C(1),S("value",1),C(2),S("ngClass",nr(54,cx,2==r.f.permission_read.value)),C(1),S("value",2),C(7),S("value",r.object.version),C(6),S("ngClass",nr(56,cx,0==r.f.permission_write.value)),C(1),S("value",0),C(2),S("ngClass",nr(58,cx,1==r.f.permission_write.value)),C(1),S("value",1),C(7),S("value",r.object.create_time),C(5),S("value",r.object.update_time),C(4),S("ngIf",r.updateAllowed()))},dependencies:[Mu,Af,_n,po,el,Ta,F3,Qa,Za,Hf,ca,Aa],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),xlt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wlt(t,n){if(1&t&&(b(0,"ngb-alert",18),ge(1,"img",19),b(2,"h6",20),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error while processing request: ",e.error,"")}}function Clt(t,n){1&t&&(b(0,"th",21),N(1,"Remove"),x())}function Slt(t,n){if(1&t){const e=yt();b(0,"td",25),be("click",function(){$e(e);const r=B().$implicit;return Be(B().viewLeaderboardEntries(r))}),N(1,"Yes"),x()}}function klt(t,n){if(1&t){const e=yt();b(0,"td",25),be("click",function(){$e(e);const r=B().$implicit;return Be(B().viewLeaderboardEntries(r))}),N(1,"No"),x()}}function Dlt(t,n){if(1&t){const e=yt();b(0,"td",25),be("click",function(){$e(e);const r=B().$implicit;return Be(B().viewLeaderboardEntries(r))}),N(1,"Yes"),x()}}function Tlt(t,n){if(1&t){const e=yt();b(0,"td",25),be("click",function(){$e(e);const r=B().$implicit;return Be(B().viewLeaderboardEntries(r))}),N(1,"No"),x()}}function Elt(t,n){if(1&t){const e=yt();b(0,"td",26)(1,"button",27),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteLeaderboard(r,s,a))}),N(2,"Delete"),x()()}}function Alt(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",22),be("click",function(){const o=$e(e).$implicit;return Be(B().viewLeaderboardEntries(o))}),N(2),x(),b(3,"td",22),be("click",function(){const o=$e(e).$implicit;return Be(B().viewLeaderboardEntries(o))}),N(4),x(),b(5,"td",22),be("click",function(){const o=$e(e).$implicit;return Be(B().viewLeaderboardEntries(o))}),N(6),x(),b(7,"td",22),be("click",function(){const o=$e(e).$implicit;return Be(B().viewLeaderboardEntries(o))}),N(8),x(),Z(9,Slt,2,0,"td",23),Z(10,klt,2,0,"td",23),Z(11,Dlt,2,0,"td",23),Z(12,Tlt,2,0,"td",23),Z(13,Elt,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.id),C(2),kt(i.orderString[e.sort_order]),C(2),kt(i.operatorString[e.operator]),C(2),kt(""===e.reset_schedule?"-":e.reset_schedule),C(1),S("ngIf",e.authoritative),C(1),S("ngIf",!e.authoritative),C(1),S("ngIf",e.tournament),C(1),S("ngIf",!e.tournament),C(1),S("ngIf",i.deleteAllowed())}}function Mlt(t,n){1&t&&(b(0,"tr")(1,"td",28),N(2,"No leaderboards were found."),x()())}let Olt=(()=>{class t{route;router;authService;consoleService;error="";leaderboards=[];nextCursor="";leaderboardsCount=0;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};constructor(e,i,r,o){this.route=e,this.router=i,this.authService=r,this.consoleService=o}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(zo),he(bi))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(b(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),N(4,"Leaderboards"),x(),b(5,"h6",4),N(6),x()(),b(7,"div",5)(8,"div",6)(9,"button",7),be("click",function(){return r.search(0)}),ge(10,"img",8),x(),b(11,"button",7),be("click",function(){return r.search(1)}),ge(12,"img",9),x()()()()(),Z(13,wlt,4,2,"ngb-alert",10),b(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),N(18,"Leaderboard ID"),x(),b(19,"th",13),N(20,"Sort Order"),x(),b(21,"th",13),N(22,"Operator"),x(),b(23,"th",13),N(24,"Reset Schedule"),x(),b(25,"th",14),N(26,"Authoritative"),x(),b(27,"th",14),N(28,"Tournament"),x(),Z(29,Clt,2,0,"th",15),x()(),b(30,"tbody"),Z(31,Alt,14,9,"tr",16),Z(32,Mlt,3,0,"tr",17),x()()),2&i&&(C(6),yn("",r.leaderboardsCount," leaderboards found."),C(3),S("disabled",0===r.leaderboards.length),C(2),S("disabled",""===r.nextCursor),C(2),S("ngIf",r.error),C(16),S("ngIf",r.deleteAllowed()),C(2),S("ngForOf",r.leaderboards),C(1),S("ngIf",0===r.leaderboards.length))},dependencies:[Ln,_n,po],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Ilt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nlt(t,n){if(1&t&&(b(0,"ngb-alert",31),ge(1,"img",32),b(2,"h6",33),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error when querying accounts: ",e.error,"")}}function Flt(t,n){1&t&&(b(0,"th",34),N(1,"Remove"),x())}function Plt(t,n){1&t&&(b(0,"tr")(1,"td",35),N(2,"No users found - change the filter criteria or add new user accounts."),x()())}function jlt(t,n){1&t&&ge(0,"td")}function Rlt(t,n){if(1&t){const e=yt();b(0,"td",38)(1,"button",39),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteAccount(r,s,a))}),N(2,"Delete"),x()()}}function Llt(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",36),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(2),x(),b(3,"td",36),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(4),x(),b(5,"td",36),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(6),x(),b(7,"td",36),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(8),x(),Z(9,jlt,1,0,"td",29),Z(10,Rlt,3,0,"td",37),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.id),C(2),kt(e.username),C(2),kt(e.display_name),C(2),kt(e.update_time),C(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),C(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let $lt=(()=>{class t{route;router;consoleService;authService;formBuilder;systemUserId="00000000-0000-0000-0000-000000000000";error="";accountsCount=0;accounts=[];nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"})},o=>{this.error=o})}deleteAccount(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:45,vars:9,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Accounts"),x(),b(2,"h6",1),N(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),be("ngSubmit",function(){return r.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"span",9),be("click",function(){return r.f.filter.setValue(r.systemUserId)}),ge(12,"img",10),x()(),b(13,"div",8)(14,"div",11)(15,"button",12),be("click",function(){return r.f.filter_type.setValue(0),r.search(0)}),N(16,"Search"),x(),b(17,"div",13),ge(18,"button",14),b(19,"div",15)(20,"button",16),be("click",function(){return r.f.filter_type.setValue(1),r.search(0)}),N(21,"Tombstones"),x()()()()()()()(),b(22,"div",17)(23,"div",18)(24,"button",19),be("click",function(){return r.search(0)}),ge(25,"img",20),x(),b(26,"button",19),be("click",function(){return r.search(1)}),ge(27,"img",21),x()()()()(),Z(28,Nlt,4,2,"ngb-alert",22),b(29,"div",23)(30,"table",24)(31,"thead",25)(32,"tr")(33,"th",26),N(34,"User ID"),x(),b(35,"th"),N(36,"Username"),x(),b(37,"th"),N(38,"Display Name"),x(),b(39,"th",27),N(40,"Last Update"),x(),Z(41,Flt,2,0,"th",28),x()(),b(42,"tbody"),Z(43,Plt,3,0,"tr",29),Z(44,Llt,11,6,"tr",30),x()()()),2&i&&(C(3),yn("",r.accountsCount," accounts found."),C(4),S("formGroup",r.searchForm),C(11),S("disabled",!r.f.filter.value||""===r.f.filter.value),C(6),S("disabled",0===r.accounts.length),C(2),S("disabled",""===r.nextCursor),C(2),S("ngIf",r.error),C(13),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.accounts.length),C(1),S("ngForOf",r.accounts))},dependencies:[Ln,_n,po,ju,bm,qf,Wf,el,Ta,Qa,Za,ca,Aa],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Blt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vlt(t,n){if(1&t){const e=yt();b(0,"button",15),be("click",function(r){return $e(e),Be(B().exportAccount(r))}),ge(1,"img",16),N(2,"Export"),x()}}function Hlt(t,n){1&t&&(b(0,"span"),N(1,"Unban"),x())}function Ult(t,n){1&t&&(b(0,"span"),N(1,"Ban"),x())}function zlt(t,n){if(1&t){const e=yt();b(0,"button",15),be("click",function(r){return $e(e),Be(B().banUnbanAccount(r))}),ge(1,"img",17),Z(2,Hlt,2,0,"span",18),Z(3,Ult,2,0,"span",18),x()}if(2&t){const e=B();C(2),S("ngIf",e.account.disable_time),C(1),S("ngIf",!e.account.disable_time)}}function Glt(t,n){if(1&t){const e=yt();b(0,"button",19),be("click",function(r){return $e(e),Be(B().deleteAccount(r,!1))}),ge(1,"img",20),N(2,"Delete"),x()}}function Wlt(t,n){if(1&t){const e=yt();b(0,"button",19),be("click",function(r){return $e(e),Be(B().deleteAccount(r,!0))}),ge(1,"img",21),N(2,"Recorded delete"),x()}}function qlt(t,n){if(1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}const Ylt=function(t,n){return["/accounts",t,n]};function Xlt(t,n){if(1&t&&(b(0,"div"),oc(1,25),b(2,"a",26),N(3),x(),sc(),x()),2&t){const e=n.$implicit,i=B();C(1),S("ngbNavItem",e.path),C(1),S("routerLink",Mr(3,Ylt,i.account.user.id,e.path)),C(1),kt(e.label)}}const Jlt=function(){return["/accounts"]},Klt=function(){return["/storage"]},Qlt=function(t){return{user_id:t}};let Zlt=(()=>{class t{route;router;consoleService;authService;account;error="";views=[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,WI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Account"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),N(7,"Account"),x()(),b(8,"li",6),N(9),x()()(),b(10,"div"),Z(11,Vlt,3,0,"button",7),Z(12,zlt,4,2,"button",7),Z(13,Glt,3,0,"button",8),Z(14,Wlt,3,0,"button",8),x()(),Z(15,qlt,4,2,"ngb-alert",9),b(16,"nav",10,11),Z(18,Xlt,4,6,"div",12),b(19,"div"),oc(20,13),b(21,"a",14),N(22," Storage "),x(),sc(),x()(),ge(23,"router-outlet")),2&i&&(C(6),S("routerLink",pl(10,Jlt)),C(3),kt(r.account.user.id),C(2),S("ngIf",r.exportAllowed()),C(1),S("ngIf",r.banAllowed()),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.error),C(3),S("ngForOf",r.views),C(3),S("routerLink",pl(11,Klt))("queryParams",nr(12,Qlt,r.account.user.id)))},dependencies:[am,Mu,Iy,Ln,_n,po,Ud,Wh,i_,Yf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),ect=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const tct=["editor"];function nct(t,n){if(1&t&&(b(0,"ngb-alert",29),ge(1,"img",30),b(2,"h6",31),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function ict(t,n){1&t&&(b(0,"ngb-alert",32),ge(1,"img",33),b(2,"h6",31),N(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function rct(t,n){1&t&&(b(0,"button",34),N(1,"Save"),x()),2&t&&S("disabled",B().updating)}const oct=function(t){return{"is-invalid":t}};let sct=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",wo.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=b0(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(tct,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(Z(0,nct,4,2,"ngb-alert",0),Z(1,ict,4,1,"ngb-alert",1),b(2,"form",2),be("ngSubmit",function(){return r.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),N(7,"User ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),N(12,"Username"),x()(),ge(13,"input",9),b(14,"div",10),N(15,"Username is required"),x()()(),b(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),N(20,"Display Name"),x()(),ge(21,"input",12),x(),b(22,"div",13)(23,"div",5)(24,"label",14),N(25,"Avatar URL"),x()(),ge(26,"input",15),x()(),b(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),N(31,"Location"),x()(),ge(32,"input",17),x(),b(33,"div",13)(34,"div",5)(35,"label",18),N(36,"Timezone"),x()(),ge(37,"input",19),x()(),b(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),N(42,"Create Time"),x()(),ge(43,"input",22),x(),b(44,"div",4)(45,"div",5)(46,"label",23),N(47,"Update Time"),x()(),ge(48,"input",24),x()(),b(49,"div",25),ge(50,"div",26,27),x(),Z(52,rct,2,1,"button",28),x()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",r.updated),C(1),S("formGroup",r.accountForm),C(6),S("value",r.account.user.id),C(5),S("ngClass",nr(9,oct,r.f.username.dirty&&r.f.username.errors)),C(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),C(29),S("value",r.account.user.create_time),C(5),S("value",r.account.user.update_time),C(4),S("ngIf",r.updateAllowed()))},dependencies:[Af,_n,po,el,Ta,Qa,Za,Hf,ca,Aa]})}return t})();function act(t,n){if(1&t&&(b(0,"ngb-alert",36),ge(1,"img",37),b(2,"h6",38),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function lct(t,n){1&t&&(b(0,"ngb-alert",39),ge(1,"img",40),b(2,"h6",38),N(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function cct(t,n){if(1&t&&(b(0,"option",41),N(1),x()),2&t){const e=n.$implicit,i=n.index;kf("value",i),S("selected",0===i),C(1),kt(e.id)}}function uct(t,n){1&t&&(b(0,"button",42),N(1,"Save"),x()),2&t&&S("disabled",B().updating)}let dct=(()=>{class t{route;router;consoleService;authService;formBuilder;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(Z(0,act,4,2,"ngb-alert",0),Z(1,lct,4,1,"ngb-alert",1),b(2,"form",2),be("ngSubmit",function(){return r.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),N(7,"Device IDs"),x()(),b(8,"div",7)(9,"button",8),be("click",function(){return r.copyDeviceIdToClipboard(r.f.selected_device_id_index.value)}),ge(10,"img",9),N(11," Copy "),x(),b(12,"select",10),Z(13,cct,2,3,"option",11),x(),b(14,"div",12)(15,"button",13),be("click",function(s){return r.unlinkDeviceId(s)}),N(16,"Unlink"),x()()()(),b(17,"div",4)(18,"div",5)(19,"label",14),N(20,"Custom ID"),x()(),b(21,"div",7),ge(22,"input",15),b(23,"div",12)(24,"button",13),be("click",function(s){return r.unlinkCustomID(s)}),N(25,"Unlink"),x()()()()(),b(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),N(30,"Facebook ID"),x()(),b(31,"div",7),ge(32,"input",17),b(33,"div",12)(34,"button",13),be("click",function(s){return r.unlinkFacebook(s)}),N(35,"Unlink"),x()()()(),b(36,"div",18)(37,"div",5)(38,"label",19),N(39,"FB Instant Game ID"),x()(),b(40,"div",7),ge(41,"input",20),b(42,"div",12)(43,"button",13),be("click",function(s){return r.unlinkFacebookInstantGames(s)}),N(44,"Unlink"),x()()()()(),b(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),N(49,"Apple ID"),x()(),b(50,"div",7),ge(51,"input",22),b(52,"div",12)(53,"button",13),be("click",function(s){return r.unlinkApple(s)}),N(54,"Unlink"),x()()()(),b(55,"div",18)(56,"div",5)(57,"label",23),N(58,"GameCenter ID"),x()(),b(59,"div",7),ge(60,"input",24),b(61,"div",12)(62,"button",13),be("click",function(s){return r.unlinkGameCenter(s)}),N(63,"Unlink"),x()()()()(),b(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),N(68,"Google ID"),x()(),b(69,"div",7),ge(70,"input",26),b(71,"div",12)(72,"button",13),be("click",function(s){return r.unlinkGoogle(s)}),N(73,"Unlink"),x()()()(),b(74,"div",4)(75,"div",5)(76,"label",27),N(77,"Steam ID"),x()(),b(78,"div",7),ge(79,"input",28),b(80,"div",12)(81,"button",13),be("click",function(s){return r.unlinkSteam(s)}),N(82,"Unlink"),x()()()()(),b(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),N(87,"Email"),x(),ge(88,"br"),x(),ge(89,"input",30),x(),b(90,"div",4)(91,"div",5)(92,"label",31),N(93,"Password"),x()(),ge(94,"input",32),x()(),b(95,"div",33)(96,"div",4),ge(97,"div",5),b(98,"span",34),N(99),x()(),ge(100,"div",4),x(),Z(101,uct,2,1,"button",35),x()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",r.updated),C(1),S("formGroup",r.accountForm),C(11),S("ngForOf",r.account.devices),C(2),S("disabled",!r.updateAllowed()||0===r.account.devices.length),C(7),S("value",r.account.custom_id),C(2),S("disabled",!r.updateAllowed()||!r.account.custom_id||""===r.account.custom_id),C(8),S("value",r.account.user.facebook_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_id||""===r.account.user.facebook_id),C(7),S("value",r.account.user.facebook_instant_game_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_instant_game_id||""===r.account.user.facebook_instant_game_id),C(8),S("value",r.account.user.apple_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.apple_id||""===r.account.user.apple_id),C(7),S("value",r.account.user.gamecenter_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.gamecenter_id||""===r.account.user.gamecenter_id),C(8),S("value",r.account.user.google_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.google_id||""===r.account.user.google_id),C(7),S("value",r.account.user.steam_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.steam_id||""===r.account.user.steam_id),C(18),yn("Verification Status: ",null===r.account.verify_time?"Not Verified":"Verified",""),C(2),S("ngIf",r.updateAllowed()))},dependencies:[Ln,_n,po,el,VC,HC,Ta,Cv,Qa,Za,ca,Aa],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})}return t})();const hct=["editor"];function fct(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function pct(t,n){1&t&&(b(0,"ngb-alert",27),ge(1,"img",28),b(2,"h6",26),N(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function mct(t,n){if(1&t){const e=yt();b(0,"button",29),be("click",function(){return $e(e),Be(B().updateWallet())}),N(1,"Save"),x()}2&t&&S("disabled",B().updating)}function gct(t,n){1&t&&(b(0,"th",30),N(1,"Remove"),x())}function vct(t,n){1&t&&(b(0,"tr")(1,"td",31),N(2,"No wallet ledger items found."),x()())}function yct(t,n){1&t&&ge(0,"div",37)}function _ct(t,n){1&t&&ge(0,"div",38)}function bct(t,n){if(1&t){const e=yt();b(0,"td")(1,"button",39),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteLedgerItem(r,s,a))}),N(2,"Delete"),x()()}}function xct(t,n){if(1&t&&(b(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),N(4),x()()()()),2&t){const e=B().$implicit;C(4),kt(e.metadata)}}function wct(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td")(2,"div",32),be("click",function(){const o=$e(e).index,s=B();return Be(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),Z(3,yct,1,0,"div",33),Z(4,_ct,1,0,"div",34),x(),N(5),x(),b(6,"td",35)(7,"pre",36),N(8),x()(),b(9,"td"),N(10),x(),Z(11,bct,3,0,"td",22),x(),Z(12,xct,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=B();C(3),S("ngIf",!r.walletLedgerMetadataOpen[e]),C(1),S("ngIf",r.walletLedgerMetadataOpen[e]),C(1),yn(" ",i.id," "),C(3),kt(i.changeset),C(2),kt(i.update_time),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.walletLedgerMetadataOpen[e])}}let Cct=(()=>{class t{route;router;consoleService;authService;editor;jsonEditor;error="";account;walletLedger=[];walletLedgerMetadataOpen=[];updating=!1;updated=!1;nextCursor="";prevCursor="";limit=100;userID;constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=b0(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(hct,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(Z(0,fct,4,2,"ngb-alert",0),Z(1,pct,4,1,"ngb-alert",1),b(2,"div",2),ge(3,"div",3,4),x(),Z(5,mct,2,1,"button",5),ge(6,"hr",6),b(7,"div",7)(8,"div",8),ge(9,"div",9),b(10,"div",10)(11,"div",11)(12,"button",12),be("click",function(){return r.loadData("")}),ge(13,"img",13),x(),b(14,"button",12),be("click",function(){return r.loadData(r.prevCursor)}),ge(15,"img",14),x(),b(16,"button",12),be("click",function(){return r.loadData(r.nextCursor)}),ge(17,"img",15),x()()()()(),b(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),N(23,"ID"),x(),b(24,"th"),N(25,"Changeset"),x(),b(26,"th",20),N(27,"Update Time"),x(),Z(28,gct,2,0,"th",21),x()(),b(29,"tbody"),Z(30,vct,3,0,"tr",22),Z(31,wct,13,7,"ng-template",23),x()()()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",r.updated),C(4),S("ngIf",r.updateAllowed()),C(7),S("disabled",0===r.walletLedger.length),C(2),S("disabled",""===r.prevCursor),C(2),S("disabled",""===r.nextCursor),C(12),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.walletLedger.length),C(1),S("ngForOf",r.walletLedger))},dependencies:[Ln,_n,po],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})}return t})(),Sct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kct(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function Dct(t,n){1&t&&(b(0,"th",13),N(1,"Remove"),x())}function Tct(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No friends found."),x()())}function Ect(t,n){1&t&&(b(0,"span"),N(1,"Friend (0)"),x())}function Act(t,n){1&t&&(b(0,"span"),N(1,"Invite Sent (1)"),x())}function Mct(t,n){1&t&&(b(0,"span"),N(1,"Invite Received (2)"),x())}function Oct(t,n){1&t&&(b(0,"span"),N(1,"Blocked (3)"),x())}function Ict(t,n){if(1&t){const e=yt();b(0,"td",16)(1,"button",17),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteFriend(r,s,a))}),N(2,"Delete"),x()()}}function Nct(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td"),N(4),x(),b(5,"td"),Z(6,Ect,2,0,"span",8),Z(7,Act,2,0,"span",8),Z(8,Mct,2,0,"span",8),Z(9,Oct,2,0,"span",8),x(),b(10,"td"),N(11),x(),Z(12,Ict,3,0,"td",15),x()),2&t){const e=n.$implicit,i=B();C(2),kt(e.user.id),C(2),kt(e.user.username),C(2),S("ngIf",0===e.state),C(1),S("ngIf",1===e.state),C(1),S("ngIf",2===e.state),C(1),S("ngIf",3===e.state),C(2),kt(e.update_time),C(1),S("ngIf",i.deleteAllowed())}}let Fct=(()=>{class t{route;router;consoleService;authService;error="";account;friends=[];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(Z(0,kct,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),N(6,"User ID"),x(),b(7,"th"),N(8,"Username"),x(),b(9,"th",5),N(10,"State"),x(),b(11,"th",6),N(12,"Update Time"),x(),Z(13,Dct,2,0,"th",7),x()(),b(14,"tbody"),Z(15,Tct,3,0,"tr",8),Z(16,Nct,13,8,"tr",9),x()()()),2&i&&(S("ngIf",r.error),C(13),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.friends.length),C(1),S("ngForOf",r.friends))},dependencies:[Ln,_n,po],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Pct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jct(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function Rct(t,n){1&t&&(b(0,"th",13),N(1,"Remove"),x())}function Lct(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No group membership found."),x()())}function $ct(t,n){1&t&&(b(0,"span"),N(1,"Superadmin (0)"),x())}function Bct(t,n){1&t&&(b(0,"span"),N(1,"Admin (1)"),x())}function Vct(t,n){1&t&&(b(0,"span"),N(1,"Member (2)"),x())}function Hct(t,n){1&t&&(b(0,"span"),N(1,"Join Request (3)"),x())}function Uct(t,n){1&t&&(b(0,"span"),N(1,"Banned (4)"),x())}function zct(t,n){if(1&t){const e=yt();b(0,"td")(1,"button",16),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteGroupUser(r,s,a))}),N(2,"Delete"),x()()}}function Gct(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",15),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(2),x(),b(3,"td",15),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(4),x(),b(5,"td",15),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),Z(6,$ct,2,0,"span",8),Z(7,Bct,2,0,"span",8),Z(8,Vct,2,0,"span",8),Z(9,Hct,2,0,"span",8),Z(10,Uct,2,0,"span",8),x(),b(11,"td",15),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(12),x(),Z(13,zct,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.group.id),C(2),kt(e.group.name),C(2),S("ngIf",0===e.state),C(1),S("ngIf",1===e.state),C(1),S("ngIf",2===e.state),C(1),S("ngIf",3===e.state),C(1),S("ngIf",4===e.state),C(2),kt(e.group.update_time),C(1),S("ngIf",i.deleteAllowed())}}let Wct=(()=>{class t{route;router;consoleService;authService;error="";account;groups=[];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(Z(0,jct,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),N(6,"Group ID"),x(),b(7,"th"),N(8,"Name"),x(),b(9,"th",5),N(10,"State"),x(),b(11,"th",6),N(12,"Update Time"),x(),Z(13,Rct,2,0,"th",7),x()(),b(14,"tbody"),Z(15,Lct,3,0,"tr",8),Z(16,Gct,14,9,"tr",9),x()()()),2&i&&(S("ngIf",r.error),C(13),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.groups.length),C(1),S("ngForOf",r.groups))},dependencies:[Ln,_n,po],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),qct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Yct=["editor"];function Xct(t,n){if(1&t&&(b(0,"ngb-alert",34),ge(1,"img",35),b(2,"h6",36),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function Jct(t,n){1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",36),N(3,"Group was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Kct(t,n){1&t&&(b(0,"button",39),N(1,"Save"),x()),2&t&&S("disabled",B().updating)}const Qct=function(t){return["/accounts",t]},Zct=function(t){return{"is-invalid":t}};let eut=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";group;groupForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",wo.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=b0(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(Yct,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(Z(0,Xct,4,2,"ngb-alert",0),Z(1,Jct,4,1,"ngb-alert",1),b(2,"form",2),be("ngSubmit",function(){return r.updateGroup()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),N(7,"Group ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),N(12,"Creator ID"),x()(),b(13,"a",9),ge(14,"input",10),x()()(),b(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),N(19,"Name"),x()(),ge(20,"input",12),b(21,"div",13),N(22,"Name is required"),x()(),b(23,"div",4)(24,"div",5)(25,"label",14),N(26,"Description"),x()(),ge(27,"input",15),x()(),b(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),N(32,"Avatar URL"),x()(),ge(33,"input",18),x(),b(34,"div",4)(35,"div",5)(36,"label",19),N(37,"Language"),x()(),ge(38,"input",20),x()(),b(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),N(43,"Members"),x()(),ge(44,"input",21),x(),b(45,"div",16)(46,"div",5)(47,"label",22),N(48,"Max Count"),x()(),ge(49,"input",23),x()(),b(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),N(54,"Open"),x()(),ge(55,"input",24),x()(),b(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),N(60,"Create Time"),x()(),ge(61,"input",27),x(),b(62,"div",4)(63,"div",5)(64,"label",28),N(65,"Update Time"),x()(),ge(66,"input",29),x()(),b(67,"div",30),ge(68,"div",31,32),x(),Z(70,Kct,2,1,"button",33),x()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",r.updated),C(1),S("formGroup",r.groupForm),C(6),S("value",r.group.id),C(5),S("routerLink",nr(12,Qct,r.group.creator_id)),C(1),S("value",r.group.creator_id),C(6),S("ngClass",nr(14,Zct,r.f.name.dirty&&r.f.name.errors)),C(1),S("hidden",r.f.name.disabled||r.f.name.valid||r.f.name.pristine),C(23),S("value",r.group.edge_count),C(17),S("value",r.group.create_time),C(5),S("value",r.group.update_time),C(4),S("ngIf",r.updateAllowed()))},dependencies:[Mu,Af,_n,po,el,Ta,MC,Qa,Za,Hf,ca,Aa]})}return t})();function tut(t,n){if(1&t&&(b(0,"ngb-alert",13),ge(1,"img",14),b(2,"h6",15),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function nut(t,n){1&t&&(b(0,"span"),N(1,"Add by membership state"),x())}function iut(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B(2);C(1),kt(e.activeState)}}function rut(t,n){if(1&t){const e=yt();b(0,"button",20),be("click",function(){const o=$e(e).$implicit;return Be(B(2).activeState=o)}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function out(t,n){if(1&t&&(b(0,"div",16)(1,"button",17),Z(2,nut,2,0,"span",11),Z(3,iut,2,1,"span",11),x(),b(4,"div",18),Z(5,rut,2,1,"button",19),x()()),2&t){const e=B();C(2),S("ngIf",!e.activeState||""===e.activeState),C(1),S("ngIf",e.activeState&&""!==e.activeState),C(2),S("ngForOf",e.states)}}function sut(t,n){if(1&t){const e=yt();b(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),ge(5,"input",26),b(6,"div",27)(7,"div",28)(8,"button",29),be("click",function(){return $e(e),Be(B().add())}),N(9,"Add"),x()()()()()()()()}if(2&t){const e=B();C(3),S("formGroup",e.addForm)}}function aut(t,n){1&t&&(b(0,"th",30),N(1,"Demote"),x())}function lut(t,n){1&t&&(b(0,"th",30),N(1,"Promote"),x())}function cut(t,n){1&t&&(b(0,"th",31),N(1,"Remove"),x())}function uut(t,n){1&t&&(b(0,"tr")(1,"td",32),N(2,"No group membership found."),x()())}function dut(t,n){1&t&&(b(0,"span"),N(1,"Superadmin (0)"),x())}function hut(t,n){1&t&&(b(0,"span"),N(1,"Admin (1)"),x())}function fut(t,n){1&t&&(b(0,"span"),N(1,"Member (2)"),x())}function put(t,n){1&t&&(b(0,"span"),N(1,"Join Request (3)"),x())}function mut(t,n){1&t&&(b(0,"span"),N(1,"Banned (4)"),x())}function gut(t,n){if(1&t){const e=yt();b(0,"td",36)(1,"button",37),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().demoteGroupUser(r,s,a))}),st(),b(2,"svg",38),ge(3,"path",39),x()()()}}function vut(t,n){if(1&t){const e=yt();b(0,"td",36)(1,"button",37),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().promoteGroupUser(r,s,a))}),st(),b(2,"svg",40),ge(3,"path",41),x()()()}}function yut(t,n){if(1&t){const e=yt();b(0,"td",42)(1,"button",43),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteGroupUser(r,s,a))}),N(2,"Delete"),x()()}}function _ut(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",33),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(2),x(),b(3,"td",33),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(4),x(),b(5,"td",33),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),Z(6,dut,2,0,"span",11),Z(7,hut,2,0,"span",11),Z(8,fut,2,0,"span",11),Z(9,put,2,0,"span",11),Z(10,mut,2,0,"span",11),x(),b(11,"td",33),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(12),x(),Z(13,gut,4,0,"td",34),Z(14,vut,4,0,"td",34),Z(15,yut,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.user.id),C(2),kt(e.user.username),C(2),S("ngIf",0===e.state),C(1),S("ngIf",1===e.state),C(1),S("ngIf",2===e.state),C(1),S("ngIf",3===e.state),C(1),S("ngIf",4===e.state),C(2),kt(e.user.update_time),C(1),S("ngIf",i.editionAllowed()),C(1),S("ngIf",i.editionAllowed()),C(1),S("ngIf",i.editionAllowed())}}let but=(()=>{class t{route;router;consoleService;formBuilder;authService;error="";group;members=[];activeState="Add Member";states=["Add Member","Join"];addForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(vl),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(Z(0,tut,4,2,"ngb-alert",0),Z(1,out,6,3,"div",1),Z(2,sut,10,1,"div",2),b(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),N(8,"User ID"),x(),b(9,"th"),N(10,"Name"),x(),b(11,"th",7),N(12,"State"),x(),b(13,"th",8),N(14,"Update Time"),x(),Z(15,aut,2,0,"th",9),Z(16,lut,2,0,"th",9),Z(17,cut,2,0,"th",10),x()(),b(18,"tbody"),Z(19,uut,3,0,"tr",11),Z(20,_ut,16,11,"tr",12),x()()()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",!r.group.open&&r.editionAllowed()),C(1),S("ngIf",r.editionAllowed()),C(13),S("ngIf",r.editionAllowed()),C(1),S("ngIf",r.editionAllowed()),C(1),S("ngIf",r.editionAllowed()),C(2),S("ngIf",0===r.members.length),C(1),S("ngForOf",r.members))},dependencies:[Ln,_n,po,ju,bm,qf,Wf,el,Ta,Qa,Za,ca,Aa],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),xut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wut(t,n){if(1&t&&(b(0,"ngb-alert",28),ge(1,"img",29),b(2,"h6",30),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function Cut(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B();C(1),kt(e.activeType)}}function Sut(t,n){if(1&t){const e=yt();b(0,"button",31),be("click",function(){const o=$e(e).$implicit;return Be(B().activeType=o)}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function kut(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B();C(1),kt(e.activeNode)}}function Dut(t,n){if(1&t){const e=yt();b(0,"button",31),be("click",function(){const o=$e(e).$implicit;return Be(B().activeNode=o)}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function Tut(t,n){1&t&&(b(0,"tr")(1,"td",32),N(2,"No realtime matches were found."),x()())}function Eut(t,n){1&t&&ge(0,"div",40)}function Aut(t,n){1&t&&ge(0,"div",41)}function Mut(t,n){if(1&t){const e=yt();b(0,"div",37),be("click",function(){$e(e);const r=B(),o=r.index,s=r.$implicit,a=B();return a.getMatchState(o,s),Be(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),Z(1,Eut,1,0,"div",38),Z(2,Aut,1,0,"div",39),x()}if(2&t){const e=B().index,i=B();C(1),S("ngIf",!i.matchStatesOpen[e]),C(1),S("ngIf",i.matchStatesOpen[e])}}function Out(t,n){1&t&&ge(0,"div",42)}function Iut(t,n){1&t&&(b(0,"span"),N(1,"Yes"),x())}function Nut(t,n){1&t&&(b(0,"span"),N(1,"No"),x())}function Fut(t,n){1&t&&ge(0,"img",51)}function Put(t,n){if(1&t&&(b(0,"div")(1,"small")(2,"b"),N(3,"Current Tick"),x()(),b(4,"pre",47)(5,"small"),N(6),x()(),b(7,"small")(8,"b"),N(9,"Match State"),x()(),b(10,"pre",47)(11,"small"),N(12),x()()()),2&t){const e=B(2).index,i=B();C(6),kt(i.matchStates[e].tick),C(6),kt(i.matchStates[e].state)}}function jut(t,n){1&t&&ge(0,"img",51)}function Rut(t,n){if(1&t&&(b(0,"pre",47)(1,"small"),N(2),x()()),2&t){const e=B(2).index,i=B();C(2),kt(i.getMatchPresencesString(i.matchStates[e].presences))}}function Lut(t,n){if(1&t&&(b(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),N(6,"Match Label"),x()(),b(7,"pre",47)(8,"small"),N(9),x()()(),b(10,"div",48),Z(11,Fut,1,0,"img",49),Z(12,Put,13,2,"div",7),x(),b(13,"div",48)(14,"small")(15,"b"),N(16,"Match Presences"),x()(),Z(17,jut,1,0,"img",49),Z(18,Rut,3,1,"pre",50),x()()()()),2&t){const e=B(),i=e.$implicit,r=e.index,o=B();C(9),kt(i.api_match.label),C(2),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),C(1),S("ngIf",null!==o.matchStates[r]),C(5),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),C(1),S("ngIf",null!==o.matchStates[r])}}function $ut(t,n){if(1&t&&(b(0,"tr")(1,"td"),Z(2,Mut,3,2,"div",33),Z(3,Out,1,0,"div",34),N(4),x(),b(5,"td"),N(6),x(),b(7,"td",35),Z(8,Iut,2,0,"span",7),Z(9,Nut,2,0,"span",7),x(),b(10,"td"),N(11),x(),b(12,"td"),N(13),x(),b(14,"td"),N(15),x()(),Z(16,Lut,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=B();C(2),S("ngIf",i.api_match.authoritative),C(1),S("ngIf",!i.api_match.authoritative),C(1),yn(" ",i.api_match.match_id," "),C(2),kt(i.api_match.size),C(2),S("ngIf",i.api_match.authoritative),C(1),S("ngIf",!i.api_match.authoritative),C(2),kt(i.node),C(2),kt(i.api_match.handler_name),C(2),kt(i.api_match.authoritative?i.api_match.tick_rate:"-"),C(1),S("ngIf",r.matchStatesOpen[e])}}let But=(()=>{class t{route;router;formBuilder;consoleService;error="";matches=[];matchStates=[];matchStatesOpen=[];updated=!1;searchForm1;searchForm2;searchForm3;type;activeType="All";types=["All","Authoritative","Relayed"];activeNode="All Nodes";nodes=["All Nodes"];constructor(e,i,r,o){this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));const i=e.get("type");this.type=Number(i);const r=e.get("node");if(this.route.data.subscribe(o=>{o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1===this.type||2===this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,ove(this.consoleService,e,0===e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(vl),he(bi))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Active Matches"),x(),b(2,"h6",1),N(3),x(),Z(4,wut,4,2,"ngb-alert",2),b(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),Z(9,Cut,2,1,"span",7),x(),b(10,"div",8),Z(11,Sut,2,1,"button",9),x()()(),b(12,"div",10)(13,"button",11),be("click",function(){return r.search()}),N(14,"Search"),x()()(),b(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),be("ngSubmit",function(){return r.search()}),b(19,"div",16),ge(20,"input",17),x()(),b(21,"form",15),be("ngSubmit",function(){return r.search()}),b(22,"div",16),ge(23,"input",17),x()(),b(24,"form",15),be("ngSubmit",function(){return r.search()}),b(25,"div",16),ge(26,"input",18),b(27,"div",10)(28,"div",5)(29,"button",19),Z(30,kut,2,1,"span",7),x(),b(31,"div",8),Z(32,Dut,2,1,"button",9),x()()()()()()()(),b(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),N(39,"Match ID"),x()(),b(40,"th",23),N(41,"Presence Count"),x(),b(42,"th",24),N(43,"Authoritative"),x(),b(44,"th",24),N(45,"Node"),x(),b(46,"th",25),N(47,"Handler Name"),x(),b(48,"th",26),N(49,"Tick Rate"),x()()(),b(50,"tbody"),Z(51,Tut,3,0,"tr",7),Z(52,$ut,17,10,"ng-template",27),x()()()),2&i&&(C(3),yn("",r.matches.length," running matches found."),C(1),S("ngIf",r.error),C(5),S("ngIf",r.activeType&&""!==r.activeType),C(2),S("ngForOf",r.types),C(7),S("hidden","All"!==r.activeType)("formGroup",r.searchForm1),C(3),S("hidden","Relayed"!==r.activeType)("formGroup",r.searchForm2),C(3),S("hidden","Authoritative"!==r.activeType)("formGroup",r.searchForm3),C(6),S("ngIf",r.activeNode&&""!==r.activeNode),C(2),S("ngForOf",r.nodes),C(6),jn("pl-3",r.matches.length>0),C(13),S("ngIf",0===r.matches.length),C(1),S("ngForOf",r.matches))},dependencies:[Ln,_n,po,ju,bm,qf,Wf,el,Ta,Qa,Za,ca,Aa],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),Vut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));return ove(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Ll(o=>(e.data={...e.data,error:o},Rn(null))))}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ove(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return Rn(null)}let Hut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(et(r=>Rn(r.nodes.map(o=>o.name)))).pipe(Ll(r=>(e.data={...e.data,error:r},Rn([]))))}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uut(t,n){if(1&t&&(b(0,"ngb-alert",25),ge(1,"img",26),b(2,"h6",27),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error when querying groups: ",e.error,"")}}function zut(t,n){1&t&&(b(0,"th",28),N(1,"Remove"),x())}function Gut(t,n){1&t&&(b(0,"tr")(1,"td",29),N(2,"No groups found - change the filter criteria or add new user groups."),x()())}function Wut(t,n){1&t&&ge(0,"td")}function qut(t,n){if(1&t){const e=yt();b(0,"td",32)(1,"button",33),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteGroup(r,s,a))}),N(2,"Delete"),x()()}}function Yut(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",30),be("click",function(){const o=$e(e).$implicit;return Be(B().viewGroup(o))}),N(2),x(),b(3,"td",30),be("click",function(){const o=$e(e).$implicit;return Be(B().viewGroup(o))}),N(4),x(),b(5,"td",30),be("click",function(){const o=$e(e).$implicit;return Be(B().viewGroup(o))}),N(6),x(),Z(7,Wut,1,0,"td",23),Z(8,qut,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.id),C(2),kt(e.name),C(2),kt(e.update_time),C(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),C(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Xut=(()=>{class t{route;router;consoleService;authService;formBuilder;systemUserId="00000000-0000-0000-0000-000000000000";error="";groupsCount=0;groups=[];nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Groups"),x(),b(2,"h6",1),N(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),be("ngSubmit",function(){return r.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"div",9)(12,"button",10),be("click",function(){return r.search(0)}),N(13,"Search"),x()()()()()(),b(14,"div",11)(15,"div",12)(16,"button",13),be("click",function(){return r.search(0)}),ge(17,"img",14),x(),b(18,"button",13),be("click",function(){return r.search(1)}),ge(19,"img",15),x()()()()(),Z(20,Uut,4,2,"ngb-alert",16),b(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),N(26,"Group ID"),x(),b(27,"th"),N(28,"Name"),x(),b(29,"th",21),N(30,"Last Update"),x(),Z(31,zut,2,0,"th",22),x()(),b(32,"tbody"),Z(33,Gut,3,0,"tr",23),Z(34,Yut,9,5,"tr",24),x()()()),2&i&&(C(3),yn("",r.groupsCount," groups found."),C(4),S("formGroup",r.searchForm),C(9),S("disabled",0===r.groups.length),C(2),S("disabled",""===r.nextCursor),C(2),S("ngIf",r.error),C(11),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.groups.length),C(1),S("ngForOf",r.groups))},dependencies:[Ln,_n,po,el,Ta,Qa,Za,ca,Aa],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Jut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Kut(t,n){if(1&t){const e=yt();b(0,"button",13),be("click",function(r){return $e(e),Be(B().exportGroup(r))}),ge(1,"img",14),N(2,"Export"),x()}}function Qut(t,n){if(1&t){const e=yt();b(0,"button",15),be("click",function(r){return $e(e),Be(B().deleteGroup(r,!1))}),ge(1,"img",16),N(2,"Delete"),x()}}function Zut(t,n){if(1&t&&(b(0,"ngb-alert",17),ge(1,"img",18),b(2,"h6",19),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}const edt=function(t,n){return["/groups",t,n]};function tdt(t,n){if(1&t&&(b(0,"div"),oc(1,20),b(2,"a",21),N(3),x(),sc(),x()),2&t){const e=n.$implicit,i=B();C(1),S("ngbNavItem",e.path),C(1),S("routerLink",Mr(3,edt,i.group.id,e.path)),C(1),kt(e.label)}}const ndt=function(){return["/groups"]};let idt=(()=>{class t{route;router;consoleService;authService;group;error="";views=[{label:"Details",path:"details"},{label:"Members",path:"members"}];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,WI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Group"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),N(7,"Group"),x()(),b(8,"li",6),N(9),x()()(),b(10,"div"),Z(11,Kut,3,0,"button",7),Z(12,Qut,3,0,"button",8),x()(),Z(13,Zut,4,2,"ngb-alert",9),b(14,"nav",10,11),Z(16,tdt,4,6,"div",12),x(),ge(17,"router-outlet")),2&i&&(C(6),S("routerLink",pl(6,ndt)),C(3),kt(r.group.id),C(2),S("ngIf",r.exportAllowed()),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.error),C(3),S("ngForOf",r.views))},dependencies:[am,Mu,Iy,Ln,_n,po,Ud,Wh,i_,Yf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),rdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function odt(t,n){if(1&t){const e=yt();b(0,"button",12),be("click",function(r){return $e(e),Be(B().deleteLeaderboard(r))}),ge(1,"img",13),N(2,"Delete Leaderboard"),x()}}function sdt(t,n){if(1&t&&(b(0,"ngb-alert",14),ge(1,"img",15),b(2,"h6",16),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}const adt=function(t,n){return["/leaderboards",t,n]};function ldt(t,n){if(1&t&&(b(0,"div"),oc(1,17),b(2,"a",18),N(3),x(),sc(),x()),2&t){const e=n.$implicit,i=B();C(1),S("ngbNavItem",e.path),C(1),S("routerLink",Mr(3,adt,i.leaderboard.id,e.path)),C(1),kt(e.label)}}const cdt=function(){return["/leaderboards"]};let udt=(()=>{class t{route;router;consoleService;authService;leaderboard;error="";views=[{label:"Details",path:"details"},{label:"Records",path:"records"}];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_DEVELOPER}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Leaderboard"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),N(7,"Leaderboards"),x()(),b(8,"li",6),N(9),x()()(),b(10,"div"),Z(11,odt,3,0,"button",7),x()(),Z(12,sdt,4,2,"ngb-alert",8),b(13,"nav",9,10),Z(15,ldt,4,6,"div",11),x(),ge(16,"router-outlet")),2&i&&(C(6),S("routerLink",pl(5,cdt)),C(3),kt(r.leaderboard.id),C(2),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.error),C(3),S("ngForOf",r.views))},dependencies:[am,Mu,Iy,Ln,_n,po,Ud,Wh,i_,Yf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),ddt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const hdt=["editor"];function fdt(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function pdt(t,n){if(1&t&&(b(0,"div",27)(1,"h6"),N(2,"Tournament"),x(),ge(3,"hr",28),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),N(8,"Title"),x()(),ge(9,"input",30),x(),b(10,"div",3)(11,"div",4)(12,"label",31),N(13,"Description"),x()(),ge(14,"input",32),x()(),b(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),N(19,"Category"),x()(),ge(20,"input",34),x(),b(21,"div",3)(22,"div",4)(23,"label",35),N(24,"Max Num Score"),x()(),ge(25,"input",36),x()(),b(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),N(30,"Size"),x()(),ge(31,"input",38),x(),b(32,"div",3)(33,"div",4)(34,"label",39),N(35,"Max Size"),x()(),ge(36,"input",40),x()(),b(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),N(41,"Duration"),x()(),ge(42,"input",42),x(),b(43,"div",3)(44,"div",4)(45,"label",43),N(46,"Join Required"),x()(),ge(47,"input",44),x()(),b(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),N(52,"Start Time"),x()(),ge(53,"input",46),x(),b(54,"div",3)(55,"div",4)(56,"label",47),N(57,"End Time"),x()(),ge(58,"input",48),x()(),b(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),N(63,"Start Active"),x()(),ge(64,"input",50),x(),b(65,"div",3)(66,"div",4)(67,"label",51),N(68,"End Active"),x()(),ge(69,"input",52),x()()()),2&t){const e=B();C(9),S("value",e.leaderboard.title),C(5),S("value",e.leaderboard.description),C(6),S("value",e.leaderboard.category),C(5),S("value",e.leaderboard.max_num_score),C(6),S("value",e.leaderboard.size),C(5),S("value",e.leaderboard.max_size),C(6),S("value",e.leaderboard.duration),C(5),S("value",e.leaderboard.join_required),C(6),S("value",e.leaderboard.start_time),C(5),S("value",e.leaderboard.end_time),C(6),S("value",e.leaderboard.start_active),C(5),S("value",e.leaderboard.end_active)}}let mdt=(()=>{class t{route;editor;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};jsonEditor;leaderboard;error="";constructor(e){this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}static \u0275fac=function(i){return new(i||t)(he(Pr))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(hdt,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(i,r){1&i&&(Z(0,fdt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),N(6,"ID"),x()(),ge(7,"input",6),x(),b(8,"div",3)(9,"div",4)(10,"label",7),N(11,"Authoritative"),x()(),ge(12,"input",8),x()(),b(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),N(17,"Sort Order"),x()(),ge(18,"input",10),x(),b(19,"div",3)(20,"div",4)(21,"label",11),N(22,"Operator"),x()(),ge(23,"input",12),x()(),b(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),N(28,"Reset Schedule"),x()(),ge(29,"input",14),x(),b(30,"div",3)(31,"div",4)(32,"label",15),N(33,"Create Time"),x()(),ge(34,"input",16),x()(),b(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),N(39,"Prev Reset"),x()(),ge(40,"input",18),x(),b(41,"div",3)(42,"div",4)(43,"label",15),N(44,"Next Reset"),x()(),ge(45,"input",19),x()()(),Z(46,pdt,70,12,"div",20),b(47,"div",21),ge(48,"div",22,23),x()),2&i&&(S("ngIf",r.error),C(7),S("value",r.leaderboard.id),C(5),S("value",r.leaderboard.authoritative),C(6),S("value",r.orderString[r.leaderboard.sort_order]),C(5),S("value",r.operatorString[r.leaderboard.operator]),C(6),S("value",r.leaderboard.reset_schedule),C(5),S("value",r.leaderboard.create_time),C(6),S("value",r.leaderboard.prev_reset),C(5),S("value",r.leaderboard.next_reset),C(1),S("ngIf",r.leaderboard.tournament))},dependencies:[_n,po],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})();function gdt(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function vdt(t,n){1&t&&(b(0,"th",22),N(1,"Remove"),x())}function ydt(t,n){1&t&&(b(0,"tr")(1,"td",23),N(2,"No records found."),x()())}function _dt(t,n){1&t&&ge(0,"div",28)}function bdt(t,n){1&t&&ge(0,"div",29)}function xdt(t,n){if(1&t){const e=yt();b(0,"td",30)(1,"button",31),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteRecord(r,s,a))}),N(2,"Delete"),x()()}}function wdt(t,n){if(1&t&&(b(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),N(4),x()()()()),2&t){const e=B().$implicit;C(4),kt(e.metadata)}}function Cdt(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td")(2,"div",24),be("click",function(){const o=$e(e).index,s=B();return Be(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),Z(3,_dt,1,0,"div",25),Z(4,bdt,1,0,"div",26),x(),N(5),x(),b(6,"td"),N(7),x(),b(8,"td"),N(9),x(),b(10,"td"),N(11),x(),b(12,"td"),N(13),x(),b(14,"td"),N(15),x(),b(16,"td"),N(17),x(),Z(18,xdt,3,0,"td",27),x(),Z(19,wdt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=B();C(3),S("ngIf",!r.recordsMetadataOpen[e]),C(1),S("ngIf",r.recordsMetadataOpen[e]),C(1),yn(" ",i.owner_id," "),C(2),kt(i.username),C(2),kt(i.score),C(2),kt(i.subscore),C(2),kt(i.rank),C(2),kt(i.num_score),C(2),kt(i.expiry_time?i.expiry_time:"-"),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.recordsMetadataOpen[e])}}let Sdt=(()=>{class t{route;consoleService;authService;error="";leaderboard;records=[];recordsMetadataOpen=[];nextCursor="";prevCursor="";constructor(e,i,r){this.route=e,this.consoleService=i,this.authService=r}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(he(Pr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(Z(0,gdt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),be("click",function(){return r.loadRecords(0)}),ge(7,"img",7),x(),b(8,"button",6),be("click",function(){return r.loadRecords(-1)}),ge(9,"img",8),x(),b(10,"button",6),be("click",function(){return r.loadRecords(1)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),N(17,"Owner ID"),x(),b(18,"th"),N(19,"Username"),x(),b(20,"th",14),N(21,"Score"),x(),b(22,"th",14),N(23,"Subscore"),x(),b(24,"th",14),N(25,"Rank"),x(),b(26,"th",14),N(27,"No. of scores"),x(),b(28,"th",15),N(29,"Expiry Time"),x(),Z(30,vdt,2,0,"th",16),x()(),b(31,"tbody"),Z(32,ydt,3,0,"tr",17),Z(33,Cdt,20,11,"ng-template",18),x()()()),2&i&&(S("ngIf",r.error),C(6),S("disabled",0===r.records.length),C(2),S("disabled",""===r.prevCursor),C(2),S("disabled",""===r.nextCursor),C(20),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.records.length),C(1),S("ngForOf",r.records))},dependencies:[Ln,_n,po]})}return t})(),kdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Ddt=["editor"],Tdt=["editorResponse"];function Edt(t,n){if(1&t&&(b(0,"ngb-alert",23),ge(1,"img",24),b(2,"h6",25),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error whilst making RPC call: ",e.error,"")}}function Adt(t,n){if(1&t&&(b(0,"option",26),N(1),x()),2&t){const e=n.$implicit;kf("value",e.method),C(1),kt(e.method)}}function Mdt(t,n){if(1&t&&(b(0,"option",26),N(1),x()),2&t){const e=n.$implicit;kf("value",e.method),C(1),kt(e.method)}}let Odt=(()=>{class t{route;router;consoleService;formBuilder;editor;editorResponse;jsonEditor;jsonEditorResponse;error="";rpcEndpoints=[];endpoints=[];endpointCallForm;constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",wo.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!0}}),this.jsonEditorResponse=new mg({target:this.editorResponse.nativeElement,props:{mode:Wo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=b0(this.jsonEditor.get()).text}catch(o){return void(this.error=o)}const i={user_id:this.f.user_id.value,body:e};let r=null;r=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,i):this.consoleService.callApiEndpoint("",this.f.method.value,i),r.subscribe(o=>{if(o.error_message&&""!==o.error_message)this.jsonEditorResponse.set({json:o.error_message});else{e="";try{e=JSON.stringify(JSON.parse(o.body),null,2)}catch(s){return void(this.error=s)}this.jsonEditorResponse.set({text:e})}},o=>{this.jsonEditorResponse.set({text:""}),this.error=o})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditor){if(!e||""===e)return this.jsonEditor.set({text:""}),void this.jsonEditor.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditor.set({text:i}),this.jsonEditor.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}get f(){return this.endpointCallForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&(jo(Ddt,5),jo(Tdt,5)),2&i){let o;wn(o=Cn())&&(r.editor=o.first),wn(o=Cn())&&(r.editorResponse=o.first)}},decls:35,vars:6,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"d-flex"],[1,"w-50","py-3"],[1,"mb-4"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","500px"],["editor",""],[1,"w-50","pl-3","py-3"],["editorResponse",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"API Explorer"),x(),Z(2,Edt,4,2,"ngb-alert",1),b(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),be("ngSubmit",function(){return r.sendRequest()}),b(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),N(11,"Select Endpoint"),x(),Z(12,Adt,2,2,"option",10),b(13,"option",11),N(14,"----"),x(),Z(15,Mdt,2,2,"option",10),x()(),ge(16,"input",12),b(17,"div",13)(18,"button",14),N(19,"Send Request"),x()()()()()()(),b(20,"div",15)(21,"div",16)(22,"h5"),N(23,"Request Body"),x(),ge(24,"hr",17),b(25,"div",18),ge(26,"div",19,20),x()(),b(28,"div",21)(29,"h5"),N(30,"Response"),x(),ge(31,"hr",17),b(32,"div",18),ge(33,"div",19,22),x()()()),2&i&&(C(2),S("ngIf",r.error),C(4),S("formGroup",r.endpointCallForm),C(4),S("value",""),C(2),S("ngForOf",r.rpcEndpoints),C(3),S("ngForOf",r.endpoints),C(3),S("disabled",r.f.method.invalid))},dependencies:[Ln,_n,po,el,VC,HC,Ta,Cv,Qa,Za,ca,Aa],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})}return t})(),Idt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ndt(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error while processing request: ",e.error,"")}}function Fdt(t,n){1&t&&ge(0,"div",23)}function Pdt(t,n){1&t&&ge(0,"div",24)}function jdt(t,n){if(1&t&&(b(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),N(6,"Provider Response"),x()()(),b(7,"div")(8,"pre",28)(9,"small"),N(10),x()()()()()()),2&t){const e=B().$implicit;C(10),kt(e.provider_response)}}function Rdt(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td")(2,"div",19),be("click",function(){const o=$e(e).index,s=B();return Be(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),Z(3,Fdt,1,0,"div",20),Z(4,Pdt,1,0,"div",21),x(),N(5),x(),b(6,"td"),N(7),x(),b(8,"td"),N(9),x(),b(10,"td"),N(11),x(),b(12,"td"),N(13),x()(),Z(14,jdt,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=B();C(3),S("ngIf",!r.purchasesRowsOpen[e]),C(1),S("ngIf",r.purchasesRowsOpen[e]),C(1),yn(" ",i.product_id," "),C(2),kt(i.transaction_id),C(2),kt(r.getStoreText(i.store)),C(2),kt(i.purchase_time),C(2),kt(i.create_time),C(1),S("ngIf",r.purchasesRowsOpen[e])}}function Ldt(t,n){1&t&&(b(0,"tr")(1,"td",29),N(2,"No purchases were found."),x()())}let $dt=(()=>{class t{route;router;consoleService;purchases=[];purchasesRowsOpen=[];error="";nextCursor="";prevCursor="";userID;limit=100;constructor(e,i,r){this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.purchases=e[0].validated_purchases,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listPurchases("",this.userID,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Uy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi))};static \u0275cmp=$t({type:t,selectors:[["app-purchases"]],decls:29,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","5",1,"text-muted"]],template:function(i,r){1&i&&(Z(0,Ndt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),be("click",function(){return r.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),be("click",function(){return r.loadData(r.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),be("click",function(){return r.loadData(r.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),N(17,"Product ID"),x(),b(18,"th"),N(19,"Transaction ID"),x(),b(20,"th"),N(21,"Store"),x(),b(22,"th",13),N(23,"Purchase Time"),x(),b(24,"th",13),N(25,"Create Time"),x()()(),b(26,"tbody"),Z(27,Rdt,15,8,"ng-template",14),Z(28,Ldt,3,0,"tr",15),x()()()),2&i&&(S("ngIf",r.error),C(6),S("disabled",0===r.purchases.length),C(2),S("disabled",""===r.prevCursor),C(2),S("disabled",""===r.nextCursor),C(17),S("ngForOf",r.purchases),C(1),S("ngIf",0===r.purchases.length))},dependencies:[Ln,_n,po]})}return t})(),Bdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listPurchases("",r,100,"")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vdt(t,n){1&t&&(b(0,"span"),N(1,"Filter by type"),x())}function Hdt(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B();C(1),kt(e.activeFilter)}}function Udt(t,n){if(1&t){const e=yt();b(0,"button",40),be("click",function(){const o=$e(e).$implicit;return Be(B().activeFilter=o)}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function zdt(t,n){if(1&t&&(b(0,"h6"),N(1),x()),2&t){const e=B();C(1),yn("Showing results for chat room label: ",e.f1.label.value,"")}}const Gdt=function(t){return["/groups",t]};function Wdt(t,n){if(1&t&&(b(0,"h6"),N(1,"Showing results for group ID: "),b(2,"a",41),N(3),x()()),2&t){const e=B();C(2),S("routerLink",nr(2,Gdt,e.route.snapshot.queryParamMap.get("group_id"))),C(1),kt(e.f2.group_id.value)}}const sve=function(t){return["/accounts",t]};function qdt(t,n){if(1&t&&(b(0,"h6"),N(1,"Showing results for user IDs: "),b(2,"a",41),N(3),x(),N(4,", "),b(5,"a",41),N(6),x()()),2&t){const e=B();C(2),S("routerLink",nr(4,sve,e.route.snapshot.queryParamMap.get("user_id_one"))),C(1),kt(e.f3.user_id_one.value),C(2),S("routerLink",nr(6,sve,e.route.snapshot.queryParamMap.get("user_id_two"))),C(1),kt(e.f3.user_id_two.value)}}function Ydt(t,n){if(1&t&&(b(0,"ngb-alert",42),ge(1,"img",43),b(2,"h6",44),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error when querying messages: ",e.error,"")}}function Xdt(t,n){1&t&&(b(0,"th",45),N(1,"Remove"),x())}function Jdt(t,n){if(1&t&&(b(0,"tr")(1,"td",46),N(2,"No messages found."),x()()),2&t){const e=B();C(1),ut("colspan",e.deleteAllowed()?6:5)}}function Kdt(t,n){1&t&&ge(0,"div",55)}function Qdt(t,n){1&t&&ge(0,"div",56)}function Zdt(t,n){1&t&&ge(0,"td")}function eht(t,n){if(1&t){const e=yt();b(0,"td",57)(1,"button",58),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteMessage(r,s,a))}),N(2,"Delete"),x()()}}function tht(t,n){if(1&t&&(b(0,"tr",59)(1,"td"),N(2),x()()),2&t){const e=B().$implicit,i=B();C(1),ut("colspan",i.deleteAllowed()?6:5),C(1),yn(" ",e.content," ")}}function nht(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td"),N(2),x(),b(3,"td",47),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(4),x(),b(5,"td",48),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(6),x(),b(7,"td",49)(8,"div",50),be("click",function(){const o=$e(e).index,s=B();return Be(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),Z(9,Kdt,1,0,"div",51),Z(10,Qdt,1,0,"div",52),x(),N(11),x(),b(12,"td"),N(13),x(),Z(14,Zdt,1,0,"td",3),Z(15,eht,3,0,"td",53),x(),Z(16,tht,3,2,"tr",54)}if(2&t){const e=n.$implicit,i=n.index,r=B();C(2),kt(e.code),C(2),kt(e.sender_id),C(2),kt(e.username),C(3),S("ngIf",!r.messageStatesOpen[i]),C(1),S("ngIf",r.messageStatesOpen[i]),C(1),yn(" ",e.content," "),C(2),kt(e.create_time),C(1),S("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),C(1),S("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),C(1),S("ngIf",r.messageStatesOpen[i])}}function iht(t,n){if(1&t&&(b(0,"ngb-alert",60),ge(1,"img",43),b(2,"h6",44),N(3,"Failed to delete data."),x(),b(4,"p",61),N(5),x()()),2&t){const e=B();S("dismissible",!1),C(5),kt(e.deleteError)}}function rht(t,n){if(1&t){const e=yt();b(0,"ngb-alert",62),be("close",function(){return $e(e),Be(B().deleteSuccess=!1)}),ge(1,"img",63),b(2,"h6",44),N(3),x()()}if(2&t){const e=B();S("dismissible",!0),C(3),Tf("",e.total_deleted," messages ",e.total_deleted>0?"successfully":""," deleted.")}}const oht=function(t){return{"is-invalid":t}};function sht(t,n){if(1&t){const e=yt();b(0,"div",64)(1,"h5",65),N(2,"Delete messages"),x(),b(3,"button",66),be("click",function(){return Be($e(e).$implicit.dismiss())}),b(4,"span",67),N(5,"\xd7"),x()()(),b(6,"div",68)(7,"div",69)(8,"form",70)(9,"div",71)(10,"p")(11,"b"),N(12,"Choose how many days to retain: "),x(),ge(13,"input",72),x()(),ge(14,"input",73),x()()(),b(15,"div",74)(16,"button",75),be("click",function(){return Be($e(e).$implicit.dismiss())}),N(17,"Cancel"),x(),b(18,"button",76),be("click",function(){return Be($e(e).$implicit.close())}),N(19,"DELETE"),x()()}if(2&t){const e=B();C(8),S("formGroup",e.confirmDeleteForm),C(6),S("ngClass",nr(3,oht,e.f.delete.touched&&e.f.delete.invalid)),C(4),S("disabled",e.f.delete.invalid)}}function aht(t,n){if(1&t){const e=yt();b(0,"button",76),be("click",function(){$e(e);const r=B(),o=qs(68);return Be(r.openDeleteDataModal(o))}),N(1,"Delete messages"),x()}2&t&&S("disabled",B().deleting)}let lht=(()=>{class t{route;router;consoleService;authService;formBuilder;modalService;systemUserId="00000000-0000-0000-0000-000000000000";error="";messages=[];nextCursor="";searchForm1;searchForm2;searchForm3;type;confirmDeleteForm;deleteError="";deleteSuccess=!1;deleting=!1;total_deleted=0;activeFilter="";filters=["Chat Room","Group Chat","Direct Chat"];messageStatesOpen=[];constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",wo.compose([wo.required,wo.pattern("DELETE")])],days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");let i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2==this.type||3==this.type||4==this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}deleteData(){this.deleteError="",this.deleting=!0;let e=new Date;e.setDate(e.getDate()-this.f.days.value),this.consoleService.deleteChannelMessages("",e.toISOString(),null).subscribe(i=>{this.total_deleted=Number(i.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const r=this.route.snapshot.queryParamMap;let o=r.get("type"),s=r.get("label");s||(s="0");let a=r.get("group_id"),l=r.get("user_id_one"),c=r.get("user_id_two"),u=r.get("cursor");u||(u=""),o&&this.updateMessages(Number(o),s,a,l,c,u)},i=>{this.deleting=!1,this.deleteError=i})}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl),he(SO))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:70,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["confirmDelete",""],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],[1,"mt-2"],["type","number","value","30","min","0","formControlName","days",2,"width","80px"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Chat Messages"),x(),b(2,"div",1)(3,"button",2),Z(4,Vdt,2,0,"span",3),Z(5,Hdt,2,1,"span",3),x(),b(6,"div",4),Z(7,Udt,2,1,"button",5),x()(),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),ge(13,"input",11),b(14,"div",12)(15,"div",13)(16,"button",14),be("click",function(){return r.type=2,r.search(0)}),N(17,"Search"),x()()()()(),b(18,"form",9)(19,"div",10),ge(20,"input",15),b(21,"div",12)(22,"div",13)(23,"button",14),be("click",function(){return r.type=3,r.search(0)}),N(24,"Search "),x()()()()(),b(25,"form",9)(26,"div",10),ge(27,"input",16),b(28,"div",12)(29,"span",17),be("click",function(){return r.f3.user_id_one.setValue(r.systemUserId)}),ge(30,"img",18),x()(),ge(31,"input",19),b(32,"div",12)(33,"div",13)(34,"button",14),be("click",function(){return r.type=4,r.search(0)}),N(35,"Search "),x()()()()()(),b(36,"div",20)(37,"div",21)(38,"button",22),be("click",function(){return r.search(0)}),ge(39,"img",23),x(),b(40,"button",22),be("click",function(){return r.search(1)}),ge(41,"img",24),x()()()()(),Z(42,zdt,2,1,"h6",3),Z(43,Wdt,4,4,"h6",3),Z(44,qdt,7,8,"h6",3),Z(45,Ydt,4,2,"ngb-alert",25),b(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),N(51,"Code"),x(),b(52,"th",30),N(53,"Sender ID"),x(),b(54,"th",31),N(55,"Username"),x(),b(56,"th"),N(57,"Content"),x(),b(58,"th",32),N(59,"Create Time"),x(),Z(60,Xdt,2,0,"th",33),x()(),b(61,"tbody"),Z(62,Jdt,3,1,"tr",3),Z(63,nht,17,10,"ng-template",34),x()()(),Z(64,iht,6,2,"ngb-alert",35),Z(65,rht,4,3,"ngb-alert",36),b(66,"div",37),Z(67,sht,20,5,"ng-template",null,38,Uo),Z(69,aht,2,1,"button",39),x()),2&i&&(C(4),S("ngIf",!r.activeFilter||""===r.activeFilter),C(1),S("ngIf",r.activeFilter&&""!==r.activeFilter),C(2),S("ngForOf",r.filters),C(4),S("hidden","Chat Room"!==r.activeFilter)("formGroup",r.searchForm1),C(7),S("hidden","Group Chat"!==r.activeFilter)("formGroup",r.searchForm2),C(7),S("hidden","Direct Chat"!==r.activeFilter)("formGroup",r.searchForm3),C(13),S("disabled",0===r.messages.length),C(2),S("disabled",""===r.nextCursor||null===r.nextCursor),C(2),S("ngIf",0!=r.messages.length&&""===r.error&&2==r.type),C(1),S("ngIf",0!=r.messages.length&&""===r.error&&3==r.type),C(1),S("ngIf",0!=r.messages.length&&""===r.error&&4==r.type),C(1),S("ngIf",r.error),C(15),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.messages.length),C(1),S("ngForOf",r.messages),C(1),S("ngIf",r.deleteError),C(1),S("ngIf",r.deleteSuccess),C(4),S("ngIf",r.deleteMessagesAllowed()))},dependencies:[Mu,Af,Ln,_n,po,ju,bm,qf,Wf,el,Ta,N3,Qa,Za,$3,ca,Aa],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})}return t})(),cht=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ll(o=>(e.data={...e.data,error:o},Rn(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ll(o=>(e.data={...e.data,error:o},Rn(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ll(o=>(e.data={...e.data,error:o},Rn(null))));default:return Rn(null)}}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uht(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error while processing request: ",e.error,"")}}function dht(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td"),N(4),x(),b(5,"td"),N(6),x(),b(7,"td"),N(8),x(),b(9,"td"),N(10),x(),b(11,"td"),N(12),x()()),2&t){const e=n.$implicit,i=B();C(2),kt(e.product_id),C(2),kt(e.original_transaction_id),C(2),kt(i.getStoreText(e.store)),C(2),kt(e.purchase_time),C(2),kt(e.expiry_time),C(2),kt(e.create_time)}}function hht(t,n){1&t&&(b(0,"tr")(1,"td",19),N(2,"No purchases were found."),x()())}const fht=[{path:"",component:zPe,canActivate:[u3e],canActivateChild:[GPe],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:tVe,resolve:[nVe]},{path:"config",component:OVe,resolve:[IVe]},{path:"users",component:RVe,resolve:[LVe]},{path:"modules",component:QVe,resolve:[ZVe]},{path:"storage",component:lHe,resolve:[cHe,uHe],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:blt,resolve:[xlt],pathMatch:"full"},{path:"leaderboards",component:Olt,resolve:[Ilt]},{path:"leaderboards/:id",component:udt,resolve:[ddt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:mdt,resolve:[]},{path:"records",component:Sdt,resolve:[kdt]}]},{path:"matches",component:But,resolve:[Vut,Hut]},{path:"groups",component:Xut,resolve:[Jut]},{path:"groups/:id",component:idt,resolve:[rdt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:eut,resolve:[]},{path:"members",component:but,resolve:[xut],runGuardsAndResolvers:"always"}]},{path:"accounts",component:$lt,resolve:[Blt]},{path:"accounts/:id",component:Zlt,resolve:[ect],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:sct,resolve:[]},{path:"authentication",component:dct,resolve:[]},{path:"wallet",component:Cct,resolve:[Sct]},{path:"friends",component:Fct,resolve:[Pct]},{path:"groups",component:Wct,resolve:[qct]},{path:"purchases",component:$dt,resolve:[Bdt]},{path:"subscriptions",component:(()=>{class t{route;router;consoleService;subscriptions=[];error="";nextCursor="";prevCursor="";userID;limit=100;constructor(e,i,r){this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.subscriptions=e[0].validated_subscriptions,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listSubscriptions("",this.userID,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Uy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi))};static \u0275cmp=$t({type:t,selectors:[["app-subscriptions"]],decls:31,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["colspan","6",1,"text-muted"]],template:function(i,r){1&i&&(Z(0,uht,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),be("click",function(){return r.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),be("click",function(){return r.loadData(r.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),be("click",function(){return r.loadData(r.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),N(17,"Product ID"),x(),b(18,"th"),N(19,"Original Transaction ID"),x(),b(20,"th"),N(21,"Store"),x(),b(22,"th",13),N(23,"Purchase Time"),x(),b(24,"th",13),N(25,"Expiry Time"),x(),b(26,"th",13),N(27,"Create Time"),x()()(),b(28,"tbody"),Z(29,dht,13,6,"ng-template",14),Z(30,hht,3,0,"tr",15),x()()()),2&i&&(S("ngIf",r.error),C(6),S("disabled",0===r.subscriptions.length),C(2),S("disabled",""===r.prevCursor),C(2),S("disabled",""===r.nextCursor),C(19),S("ngForOf",r.subscriptions),C(1),S("ngIf",0===r.subscriptions.length))},dependencies:[Ln,_n,po]})}return t})(),resolve:[(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listSubscriptions("",r,100,"")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()]}]},{path:"apiexplorer",component:Odt,resolve:[Idt]},{path:"chat",component:lht,resolve:[cht]}]},{path:"login",component:l3e,canActivate:[c3e]},{path:"**",redirectTo:""}];let pht=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ki({type:t});static \u0275inj=wi({imports:[RV.forRoot(fht,{useHash:!0}),RV]})}return t})(),mht=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=$t({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(i,r){1&i&&ge(0,"router-outlet")},dependencies:[am]})}return t})();new class vht extends Bd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let _ht=1;const bht=Promise.resolve(),xT={};function ave(t){return t in xT&&(delete xT[t],!0)}const lve={setImmediate(t){const n=_ht++;return xT[n]=!0,bht.then(()=>ave(n)&&t()),n},clearImmediate(t){ave(t)}};new class wht extends Bd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=lve.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(lve.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Qht=new Vn("ng-select-selection-model");function Zht(){return new eft}class eft{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}let tft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[{provide:Qht,useValue:Zht}],imports:[Mf]}),t})(),nft=(()=>{class t{authenticationService;constructor(e){this.authenticationService=e}intercept(e,i){const r=this.authenticationService.currentSessionValue;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}static \u0275fac=function(i){return new(i||t)(vt(zo))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),ift=(()=>{class t{authenticationService;router;constructor(e,i){this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Ll(r=>(401===r.status?this.authenticationService.logout().subscribe({next:()=>{e.url.includes("/v3/auth")||this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}}):r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`),rm(r.error.message||r.statusText))))}static \u0275fac=function(i){return new(i||t)(vt(zo),vt(lr))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),rft=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ki({type:t,bootstrap:[mht]});static \u0275inj=wi({providers:[o3e,Pz,{provide:W3,useValue:{host:document.location.origin,timeout:15e3}},{provide:z3,useClass:nft,multi:!0},{provide:z3,useClass:ift,multi:!0}],imports:[dVe,pht,gM,FDe,n3e,PPe,F9e,FMe.forRoot({apiKey:"",debug:!1,loadOnInitialization:!1}),PDe,OMe,MMe,tft]})}return t})();TSe().bootstrapModule(rft).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},343:(Yt,Dn)=>{"use strict";Dn.byteLength=function Ve(A){var F=Ze(A),Ae=F[1];return 3*(F[0]+Ae)/4-Ae},Dn.toByteArray=function oe(A){var F,gn,ee=Ze(A),Ae=ee[0],Je=ee[1],Ct=new Ie(function me(A,F,ee){return 3*(F+ee)/4-ee}(0,Ae,Je)),Ft=0,Gt=Je>0?Ae-4:Ae;for(gn=0;gn>16&255,Ct[Ft++]=F>>8&255,Ct[Ft++]=255&F;return 2===Je&&(F=nt[A.charCodeAt(gn)]<<2|nt[A.charCodeAt(gn+1)]>>4,Ct[Ft++]=255&F),1===Je&&(F=nt[A.charCodeAt(gn)]<<10|nt[A.charCodeAt(gn+1)]<<4|nt[A.charCodeAt(gn+2)]>>2,Ct[Ft++]=F>>8&255,Ct[Ft++]=255&F),Ct},Dn.fromByteArray=function T(A){for(var F,ee=A.length,Ae=ee%3,Je=[],Ft=0,Gt=ee-Ae;FtGt?Gt:Ft+16383));return 1===Ae?Je.push(ke[(F=A[ee-1])>>2]+ke[F<<4&63]+"=="):2===Ae&&Je.push(ke[(F=(A[ee-2]<<8)+A[ee-1])>>10]+ke[F>>4&63]+ke[F<<2&63]+"="),Je.join("")};for(var ke=[],nt=[],Ie=typeof Uint8Array<"u"?Uint8Array:Array,ct="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=0,_e=ct.length;ze<_e;++ze)ke[ze]=ct[ze],nt[ct.charCodeAt(ze)]=ze;function Ze(A){var F=A.length;if(F%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ee=A.indexOf("=");return-1===ee&&(ee=F),[ee,ee===F?0:4-ee%4]}function ce(A){return ke[A>>18&63]+ke[A>>12&63]+ke[A>>6&63]+ke[63&A]}function se(A,F,ee){for(var Je=[],Ct=F;Ct{"use strict";var Ie=ke(343),ct=ke(461),ze="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Dn.lW=me,Dn.h2=50;var _e=2147483647;function Ve(De){if(De>_e)throw new RangeError('The value "'+De+'" is invalid for option "size"');var Y=new Uint8Array(De);return Object.setPrototypeOf(Y,me.prototype),Y}function me(De,Y,Q){if("number"==typeof De){if("string"==typeof Y)throw new TypeError('The "string" argument must be of type string. Received type number');return T(De)}return oe(De,Y,Q)}function oe(De,Y,Q){if("string"==typeof De)return function A(De,Y){if(("string"!=typeof Y||""===Y)&&(Y="utf8"),!me.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var Q=0|Gt(De,Y),Ne=Ve(Q),et=Ne.write(De,Y);return et!==Q&&(Ne=Ne.slice(0,et)),Ne}(De,Y);if(ArrayBuffer.isView(De))return function ee(De){if(sa(De,Uint8Array)){var Y=new Uint8Array(De);return Ae(Y.buffer,Y.byteOffset,Y.byteLength)}return F(De)}(De);if(null==De)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof De);if(sa(De,ArrayBuffer)||De&&sa(De.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(sa(De,SharedArrayBuffer)||De&&sa(De.buffer,SharedArrayBuffer)))return Ae(De,Y,Q);if("number"==typeof De)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ne=De.valueOf&&De.valueOf();if(null!=Ne&&Ne!==De)return me.from(Ne,Y,Q);var et=function Je(De){if(me.isBuffer(De)){var Y=0|Ct(De.length),Q=Ve(Y);return 0===Q.length||De.copy(Q,0,0,Y),Q}return void 0!==De.length?"number"!=typeof De.length||ro(De.length)?Ve(0):F(De):"Buffer"===De.type&&Array.isArray(De.data)?F(De.data):void 0}(De);if(et)return et;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof De[Symbol.toPrimitive])return me.from(De[Symbol.toPrimitive]("string"),Y,Q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof De)}function ce(De){if("number"!=typeof De)throw new TypeError('"size" argument must be of type number');if(De<0)throw new RangeError('The value "'+De+'" is invalid for option "size"')}function T(De){return ce(De),Ve(De<0?0:0|Ct(De))}function F(De){for(var Y=De.length<0?0:0|Ct(De.length),Q=Ve(Y),Ne=0;Ne=_e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e.toString(16)+" bytes");return 0|De}function Gt(De,Y){if(me.isBuffer(De))return De.length;if(ArrayBuffer.isView(De)||sa(De,ArrayBuffer))return De.byteLength;if("string"!=typeof De)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof De);var Q=De.length,Ne=arguments.length>2&&!0===arguments[2];if(!Ne&&0===Q)return 0;for(var et=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return Q;case"utf8":case"utf-8":return Ic(De).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Q;case"hex":return Q>>>1;case"base64":return yu(De).length;default:if(et)return Ne?-1:Ic(De).length;Y=(""+Y).toLowerCase(),et=!0}}function gn(De,Y,Q){var Ne=!1;if((void 0===Y||Y<0)&&(Y=0),Y>this.length||((void 0===Q||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0)<=(Y>>>=0))return"";for(De||(De="utf8");;)switch(De){case"hex":return vu(this,Y,Q);case"utf8":case"utf-8":return vn(this,Y,Q);case"ascii":return Jn(this,Y,Q);case"latin1":case"binary":return Oc(this,Y,Q);case"base64":return _a(this,Y,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return No(this,Y,Q);default:if(Ne)throw new TypeError("Unknown encoding: "+De);De=(De+"").toLowerCase(),Ne=!0}}function en(De,Y,Q){var Ne=De[Y];De[Y]=De[Q],De[Q]=Ne}function Ai(De,Y,Q,Ne,et){if(0===De.length)return-1;if("string"==typeof Q?(Ne=Q,Q=0):Q>2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),ro(Q=+Q)&&(Q=et?0:De.length-1),Q<0&&(Q=De.length+Q),Q>=De.length){if(et)return-1;Q=De.length-1}else if(Q<0){if(!et)return-1;Q=0}if("string"==typeof Y&&(Y=me.from(Y,Ne)),me.isBuffer(Y))return 0===Y.length?-1:$r(De,Y,Q,Ne,et);if("number"==typeof Y)return Y&=255,"function"==typeof Uint8Array.prototype.indexOf?et?Uint8Array.prototype.indexOf.call(De,Y,Q):Uint8Array.prototype.lastIndexOf.call(De,Y,Q):$r(De,[Y],Q,Ne,et);throw new TypeError("val must be string, number or Buffer")}function $r(De,Y,Q,Ne,et){var ot,Ht=1,Kt=De.length,Zi=Y.length;if(void 0!==Ne&&("ucs2"===(Ne=String(Ne).toLowerCase())||"ucs-2"===Ne||"utf16le"===Ne||"utf-16le"===Ne)){if(De.length<2||Y.length<2)return-1;Ht=2,Kt/=2,Zi/=2,Q/=2}function M(hn,fe){return 1===Ht?hn[fe]:hn.readUInt16BE(fe*Ht)}if(et){var Dt=-1;for(ot=Q;otKt&&(Q=Kt-Zi),ot=Q;ot>=0;ot--){for(var Ut=!0,Bt=0;Btet&&(Ne=et):Ne=et;var Ht=Y.length;Ne>Ht/2&&(Ne=Ht/2);for(var Kt=0;Kt>8,Ht.push(Q%256),Ht.push(Ne);return Ht}(Y,De.length-Q),De,Q,Ne)}function _a(De,Y,Q){return Ie.fromByteArray(0===Y&&Q===De.length?De:De.slice(Y,Q))}function vn(De,Y,Q){Q=Math.min(De.length,Q);for(var Ne=[],et=Y;et239?4:Ht>223?3:Ht>191?2:1;if(et+Zi<=Q)switch(Zi){case 1:Ht<128&&(Kt=Ht);break;case 2:128==(192&(M=De[et+1]))&&(Ut=(31&Ht)<<6|63&M)>127&&(Kt=Ut);break;case 3:ot=De[et+2],128==(192&(M=De[et+1]))&&128==(192&ot)&&(Ut=(15&Ht)<<12|(63&M)<<6|63&ot)>2047&&(Ut<55296||Ut>57343)&&(Kt=Ut);break;case 4:ot=De[et+2],Dt=De[et+3],128==(192&(M=De[et+1]))&&128==(192&ot)&&128==(192&Dt)&&(Ut=(15&Ht)<<18|(63&M)<<12|(63&ot)<<6|63&Dt)>65535&&Ut<1114112&&(Kt=Ut)}null===Kt?(Kt=65533,Zi=1):Kt>65535&&(Ne.push((Kt-=65536)>>>10&1023|55296),Kt=56320|1023&Kt),Ne.push(Kt),et+=Zi}return function Cd(De){var Y=De.length;if(Y<=wd)return String.fromCharCode.apply(String,De);for(var Q="",Ne=0;Neet.length?me.from(Kt).copy(et,Ht):Uint8Array.prototype.set.call(et,Kt,Ht);else{if(!me.isBuffer(Kt))throw new TypeError('"list" argument must be an Array of Buffers');Kt.copy(et,Ht)}Ht+=Kt.length}return et},me.byteLength=Gt,me.prototype._isBuffer=!0,me.prototype.swap16=function(){var Y=this.length;if(Y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;QQ&&(Y+=" ... "),""},ze&&(me.prototype[ze]=me.prototype.inspect),me.prototype.compare=function(Y,Q,Ne,et,Ht){if(sa(Y,Uint8Array)&&(Y=me.from(Y,Y.offset,Y.byteLength)),!me.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(void 0===Q&&(Q=0),void 0===Ne&&(Ne=Y?Y.length:0),void 0===et&&(et=0),void 0===Ht&&(Ht=this.length),Q<0||Ne>Y.length||et<0||Ht>this.length)throw new RangeError("out of range index");if(et>=Ht&&Q>=Ne)return 0;if(et>=Ht)return-1;if(Q>=Ne)return 1;if(this===Y)return 0;for(var Kt=(Ht>>>=0)-(et>>>=0),Zi=(Ne>>>=0)-(Q>>>=0),M=Math.min(Kt,Zi),ot=this.slice(et,Ht),Dt=Y.slice(Q,Ne),Ut=0;Ut>>=0,isFinite(Ne)?(Ne>>>=0,void 0===et&&(et="utf8")):(et=Ne,Ne=void 0)}var Ht=this.length-Q;if((void 0===Ne||Ne>Ht)&&(Ne=Ht),Y.length>0&&(Ne<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");for(var Kt=!1;;)switch(et){case"hex":return Ur(this,Y,Q,Ne);case"utf8":case"utf-8":return ss(this,Y,Q,Ne);case"ascii":case"latin1":case"binary":return za(this,Y,Q,Ne);case"base64":return _r(this,Y,Q,Ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gu(this,Y,Q,Ne);default:if(Kt)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),Kt=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var wd=4096;function Jn(De,Y,Q){var Ne="";Q=Math.min(De.length,Q);for(var et=Y;etNe)&&(Q=Ne);for(var et="",Ht=Y;HtQ)throw new RangeError("Trying to access beyond buffer length")}function io(De,Y,Q,Ne,et,Ht){if(!me.isBuffer(De))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>et||YDe.length)throw new RangeError("Index out of range")}function ba(De,Y,Q,Ne,et,Ht){if(Q+Ne>De.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Yr(De,Y,Q,Ne,et){return Y=+Y,Q>>>=0,et||ba(De,0,Q,4),ct.write(De,Y,Q,Ne,23,4),Q+4}function ll(De,Y,Q,Ne,et){return Y=+Y,Q>>>=0,et||ba(De,0,Q,8),ct.write(De,Y,Q,Ne,52,8),Q+8}me.prototype.slice=function(Y,Q){var Ne=this.length;(Y=~~Y)<0?(Y+=Ne)<0&&(Y=0):Y>Ne&&(Y=Ne),(Q=void 0===Q?Ne:~~Q)<0?(Q+=Ne)<0&&(Q=0):Q>Ne&&(Q=Ne),Q>>=0,Q>>>=0,Ne||_o(Y,Q,this.length);for(var et=this[Y],Ht=1,Kt=0;++Kt>>=0,Q>>>=0,Ne||_o(Y,Q,this.length);for(var et=this[Y+--Q],Ht=1;Q>0&&(Ht*=256);)et+=this[Y+--Q]*Ht;return et},me.prototype.readUint8=me.prototype.readUInt8=function(Y,Q){return Y>>>=0,Q||_o(Y,1,this.length),this[Y]},me.prototype.readUint16LE=me.prototype.readUInt16LE=function(Y,Q){return Y>>>=0,Q||_o(Y,2,this.length),this[Y]|this[Y+1]<<8},me.prototype.readUint16BE=me.prototype.readUInt16BE=function(Y,Q){return Y>>>=0,Q||_o(Y,2,this.length),this[Y]<<8|this[Y+1]},me.prototype.readUint32LE=me.prototype.readUInt32LE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+16777216*this[Y+3]},me.prototype.readUint32BE=me.prototype.readUInt32BE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),16777216*this[Y]+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},me.prototype.readIntLE=function(Y,Q,Ne){Y>>>=0,Q>>>=0,Ne||_o(Y,Q,this.length);for(var et=this[Y],Ht=1,Kt=0;++Kt=(Ht*=128)&&(et-=Math.pow(2,8*Q)),et},me.prototype.readIntBE=function(Y,Q,Ne){Y>>>=0,Q>>>=0,Ne||_o(Y,Q,this.length);for(var et=Q,Ht=1,Kt=this[Y+--et];et>0&&(Ht*=256);)Kt+=this[Y+--et]*Ht;return Kt>=(Ht*=128)&&(Kt-=Math.pow(2,8*Q)),Kt},me.prototype.readInt8=function(Y,Q){return Y>>>=0,Q||_o(Y,1,this.length),128&this[Y]?-1*(255-this[Y]+1):this[Y]},me.prototype.readInt16LE=function(Y,Q){Y>>>=0,Q||_o(Y,2,this.length);var Ne=this[Y]|this[Y+1]<<8;return 32768&Ne?4294901760|Ne:Ne},me.prototype.readInt16BE=function(Y,Q){Y>>>=0,Q||_o(Y,2,this.length);var Ne=this[Y+1]|this[Y]<<8;return 32768&Ne?4294901760|Ne:Ne},me.prototype.readInt32LE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},me.prototype.readInt32BE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},me.prototype.readFloatLE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),ct.read(this,Y,!0,23,4)},me.prototype.readFloatBE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),ct.read(this,Y,!1,23,4)},me.prototype.readDoubleLE=function(Y,Q){return Y>>>=0,Q||_o(Y,8,this.length),ct.read(this,Y,!0,52,8)},me.prototype.readDoubleBE=function(Y,Q){return Y>>>=0,Q||_o(Y,8,this.length),ct.read(this,Y,!1,52,8)},me.prototype.writeUintLE=me.prototype.writeUIntLE=function(Y,Q,Ne,et){Y=+Y,Q>>>=0,Ne>>>=0,et||io(this,Y,Q,Ne,Math.pow(2,8*Ne)-1,0);var Kt=1,Zi=0;for(this[Q]=255&Y;++Zi>>=0,Ne>>>=0,et||io(this,Y,Q,Ne,Math.pow(2,8*Ne)-1,0);var Kt=Ne-1,Zi=1;for(this[Q+Kt]=255&Y;--Kt>=0&&(Zi*=256);)this[Q+Kt]=Y/Zi&255;return Q+Ne},me.prototype.writeUint8=me.prototype.writeUInt8=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,1,255,0),this[Q]=255&Y,Q+1},me.prototype.writeUint16LE=me.prototype.writeUInt16LE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,2,65535,0),this[Q]=255&Y,this[Q+1]=Y>>>8,Q+2},me.prototype.writeUint16BE=me.prototype.writeUInt16BE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,2,65535,0),this[Q]=Y>>>8,this[Q+1]=255&Y,Q+2},me.prototype.writeUint32LE=me.prototype.writeUInt32LE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,4,4294967295,0),this[Q+3]=Y>>>24,this[Q+2]=Y>>>16,this[Q+1]=Y>>>8,this[Q]=255&Y,Q+4},me.prototype.writeUint32BE=me.prototype.writeUInt32BE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,4,4294967295,0),this[Q]=Y>>>24,this[Q+1]=Y>>>16,this[Q+2]=Y>>>8,this[Q+3]=255&Y,Q+4},me.prototype.writeIntLE=function(Y,Q,Ne,et){if(Y=+Y,Q>>>=0,!et){var Ht=Math.pow(2,8*Ne-1);io(this,Y,Q,Ne,Ht-1,-Ht)}var Kt=0,Zi=1,M=0;for(this[Q]=255&Y;++Kt>0)-M&255;return Q+Ne},me.prototype.writeIntBE=function(Y,Q,Ne,et){if(Y=+Y,Q>>>=0,!et){var Ht=Math.pow(2,8*Ne-1);io(this,Y,Q,Ne,Ht-1,-Ht)}var Kt=Ne-1,Zi=1,M=0;for(this[Q+Kt]=255&Y;--Kt>=0&&(Zi*=256);)Y<0&&0===M&&0!==this[Q+Kt+1]&&(M=1),this[Q+Kt]=(Y/Zi>>0)-M&255;return Q+Ne},me.prototype.writeInt8=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,1,127,-128),Y<0&&(Y=255+Y+1),this[Q]=255&Y,Q+1},me.prototype.writeInt16LE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,2,32767,-32768),this[Q]=255&Y,this[Q+1]=Y>>>8,Q+2},me.prototype.writeInt16BE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,2,32767,-32768),this[Q]=Y>>>8,this[Q+1]=255&Y,Q+2},me.prototype.writeInt32LE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,4,2147483647,-2147483648),this[Q]=255&Y,this[Q+1]=Y>>>8,this[Q+2]=Y>>>16,this[Q+3]=Y>>>24,Q+4},me.prototype.writeInt32BE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[Q]=Y>>>24,this[Q+1]=Y>>>16,this[Q+2]=Y>>>8,this[Q+3]=255&Y,Q+4},me.prototype.writeFloatLE=function(Y,Q,Ne){return Yr(this,Y,Q,!0,Ne)},me.prototype.writeFloatBE=function(Y,Q,Ne){return Yr(this,Y,Q,!1,Ne)},me.prototype.writeDoubleLE=function(Y,Q,Ne){return ll(this,Y,Q,!0,Ne)},me.prototype.writeDoubleBE=function(Y,Q,Ne){return ll(this,Y,Q,!1,Ne)},me.prototype.copy=function(Y,Q,Ne,et){if(!me.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(Ne||(Ne=0),!et&&0!==et&&(et=this.length),Q>=Y.length&&(Q=Y.length),Q||(Q=0),et>0&&et=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),Y.length-Q>>=0,Ne=void 0===Ne?this.length:Ne>>>0,Y||(Y=0),"number"==typeof Y)for(Kt=Q;Kt55295&&Q<57344){if(!et){if(Q>56319){(Y-=3)>-1&&Ht.push(239,191,189);continue}if(Kt+1===Ne){(Y-=3)>-1&&Ht.push(239,191,189);continue}et=Q;continue}if(Q<56320){(Y-=3)>-1&&Ht.push(239,191,189),et=Q;continue}Q=65536+(et-55296<<10|Q-56320)}else et&&(Y-=3)>-1&&Ht.push(239,191,189);if(et=null,Q<128){if((Y-=1)<0)break;Ht.push(Q)}else if(Q<2048){if((Y-=2)<0)break;Ht.push(Q>>6|192,63&Q|128)}else if(Q<65536){if((Y-=3)<0)break;Ht.push(Q>>12|224,Q>>6&63|128,63&Q|128)}else{if(!(Q<1114112))throw new Error("Invalid code point");if((Y-=4)<0)break;Ht.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,63&Q|128)}}return Ht}function yu(De){return Ie.toByteArray(function Sd(De){if((De=(De=De.split("=")[0]).trim().replace(Kl,"")).length<2)return"";for(;De.length%4!=0;)De+="=";return De}(De))}function Ga(De,Y,Q,Ne){for(var et=0;et=Y.length||et>=De.length);++et)Y[et+Q]=De[et];return et}function sa(De,Y){return De instanceof Y||null!=De&&null!=De.constructor&&null!=De.constructor.name&&De.constructor.name===Y.name}function ro(De){return De!=De}var Ml=function(){for(var De="0123456789abcdef",Y=new Array(256),Q=0;Q<16;++Q)for(var Ne=16*Q,et=0;et<16;++et)Y[Ne+et]=De[Q]+De[et];return Y}()},797:function(Yt){Yt.exports=function(Dn){var ke={};function nt(Ie){if(ke[Ie])return ke[Ie].exports;var ct=ke[Ie]={exports:{},id:Ie,loaded:!1};return Dn[Ie].call(ct.exports,ct,ct.exports,nt),ct.loaded=!0,ct.exports}return nt.m=Dn,nt.c=ke,nt.p="",nt(0)}([function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(1),ct=nt(3),ze=nt(8),_e=nt(15);function Ze(se,T,A){var F=null,ee=function(Ai,$r){A&&A(Ai,$r),F&&F.visit(Ai,$r)},Ae="function"==typeof A?ee:null,Je=!1;if(T){var Ct="boolean"==typeof T.attachComment&&T.attachComment;((Je="boolean"==typeof T.comment&&T.comment)||Ct)&&((F=new Ie.CommentHandler).attach=Ct,T.comment=!0,Ae=ee)}var Gt,Ft=!1;T&&"string"==typeof T.sourceType&&(Ft="module"===T.sourceType),Gt=T&&"boolean"==typeof T.jsx&&T.jsx?new ct.JSXParser(se,T,Ae):new ze.Parser(se,T,Ae);var en=Ft?Gt.parseModule():Gt.parseScript();return Je&&F&&(en.comments=F.comments),Gt.config.tokens&&(en.tokens=Gt.tokens),Gt.config.tolerant&&(en.errors=Gt.errorHandler.errors),en}ke.parse=Ze,ke.parseModule=function Ve(se,T,A){var F=T||{};return F.sourceType="module",Ze(se,F,A)},ke.parseScript=function me(se,T,A){var F=T||{};return F.sourceType="script",Ze(se,F,A)},ke.tokenize=function oe(se,T,A){var ee,F=new _e.Tokenizer(se,T);ee=[];try{for(;;){var Ae=F.getNextToken();if(!Ae)break;A&&(Ae=A(Ae)),ee.push(Ae)}}catch(Je){F.errorHandler.tolerate(Je)}return F.errorHandler.tolerant&&(ee.errors=F.errors()),ee};var ce=nt(2);ke.Syntax=ce.Syntax,ke.version="4.0.1"},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(2),ct=function(){function ze(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return ze.prototype.insertInnerComments=function(_e,Ze){if(_e.type===Ie.Syntax.BlockStatement&&0===_e.body.length){for(var Ve=[],me=this.leading.length-1;me>=0;--me){var oe=this.leading[me];Ze.end.offset>=oe.start&&(Ve.unshift(oe.comment),this.leading.splice(me,1),this.trailing.splice(me,1))}Ve.length&&(_e.innerComments=Ve)}},ze.prototype.findTrailingComments=function(_e){var Ze=[];if(this.trailing.length>0){for(var Ve=this.trailing.length-1;Ve>=0;--Ve){var me=this.trailing[Ve];me.start>=_e.end.offset&&Ze.unshift(me.comment)}return this.trailing.length=0,Ze}var oe=this.stack[this.stack.length-1];if(oe&&oe.node.trailingComments){var ce=oe.node.trailingComments[0];ce&&ce.range[0]>=_e.end.offset&&(Ze=oe.node.trailingComments,delete oe.node.trailingComments)}return Ze},ze.prototype.findLeadingComments=function(_e){for(var Ve,Ze=[];this.stack.length>0&&(me=this.stack[this.stack.length-1])&&me.start>=_e.start.offset;)Ve=me.node,this.stack.pop();if(Ve){for(var ce=(Ve.leadingComments?Ve.leadingComments.length:0)-1;ce>=0;--ce){var se=Ve.leadingComments[ce];se.range[1]<=_e.start.offset&&(Ze.unshift(se),Ve.leadingComments.splice(ce,1))}return Ve.leadingComments&&0===Ve.leadingComments.length&&delete Ve.leadingComments,Ze}for(ce=this.leading.length-1;ce>=0;--ce){var me;(me=this.leading[ce]).start<=_e.start.offset&&(Ze.unshift(me.comment),this.leading.splice(ce,1))}return Ze},ze.prototype.visitNode=function(_e,Ze){if(!(_e.type===Ie.Syntax.Program&&_e.body.length>0)){this.insertInnerComments(_e,Ze);var Ve=this.findTrailingComments(Ze),me=this.findLeadingComments(Ze);me.length>0&&(_e.leadingComments=me),Ve.length>0&&(_e.trailingComments=Ve),this.stack.push({node:_e,start:Ze.start.offset})}},ze.prototype.visitComment=function(_e,Ze){var Ve="L"===_e.type[0]?"Line":"Block",me={type:Ve,value:_e.value};if(_e.range&&(me.range=_e.range),_e.loc&&(me.loc=_e.loc),this.comments.push(me),this.attach){var oe={comment:{type:Ve,value:_e.value,range:[Ze.start.offset,Ze.end.offset]},start:Ze.start.offset};_e.loc&&(oe.comment.loc=_e.loc),_e.type=Ve,this.leading.push(oe),this.trailing.push(oe)}},ze.prototype.visit=function(_e,Ze){"LineComment"===_e.type||"BlockComment"===_e.type?this.visitComment(_e,Ze):this.attach&&this.visitNode(_e,Ze)},ze}();ke.CommentHandler=ct},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Dn,ke,nt){"use strict";var T,Ie=this&&this.__extends||(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,F){A.__proto__=F}||function(A,F){for(var ee in F)F.hasOwnProperty(ee)&&(A[ee]=F[ee])},function(A,F){function ee(){this.constructor=A}T(A,F),A.prototype=null===F?Object.create(F):(ee.prototype=F.prototype,new ee)});Object.defineProperty(ke,"__esModule",{value:!0});var ct=nt(4),ze=nt(5),_e=nt(6),Ze=nt(7),Ve=nt(8),me=nt(13),oe=nt(14);function ce(T){var A;switch(T.type){case _e.JSXSyntax.JSXIdentifier:A=T.name;break;case _e.JSXSyntax.JSXNamespacedName:var ee=T;A=ce(ee.namespace)+":"+ce(ee.name);break;case _e.JSXSyntax.JSXMemberExpression:var Ae=T;A=ce(Ae.object)+"."+ce(Ae.property)}return A}me.TokenName[100]="JSXIdentifier",me.TokenName[101]="JSXText";var se=function(T){function A(F,ee,Ae){return T.call(this,F,ee,Ae)||this}return Ie(A,T),A.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():T.prototype.parsePrimaryExpression.call(this)},A.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},A.prototype.finishJSX=function(){this.nextToken()},A.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},A.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},A.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},A.prototype.scanXHTMLEntity=function(F){for(var ee="&",Ae=!0,Je=!1,Ct=!1,Ft=!1;!this.scanner.eof()&&Ae&&!Je;){var Gt=this.scanner.source[this.scanner.index];if(Gt===F)break;if(Je=";"===Gt,ee+=Gt,++this.scanner.index,!Je)switch(ee.length){case 2:Ct="#"===Gt;break;case 3:Ct&&(Ae=(Ft="x"===Gt)||ct.Character.isDecimalDigit(Gt.charCodeAt(0)),Ct=Ct&&!Ft);break;default:Ae=(Ae=Ae&&!(Ct&&!ct.Character.isDecimalDigit(Gt.charCodeAt(0))))&&!(Ft&&!ct.Character.isHexDigit(Gt.charCodeAt(0)))}}if(Ae&&Je&&ee.length>2){var gn=ee.substr(1,ee.length-2);Ct&&gn.length>1?ee=String.fromCharCode(parseInt(gn.substr(1),10)):Ft&&gn.length>2?ee=String.fromCharCode(parseInt("0"+gn.substr(1),16)):!Ct&&!Ft&&oe.XHTMLEntities[gn]&&(ee=oe.XHTMLEntities[gn])}return ee},A.prototype.lexJSX=function(){var F=this.scanner.source.charCodeAt(this.scanner.index);if(60===F||62===F||47===F||58===F||61===F||123===F||125===F)return{type:7,value:ee=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===F||39===F){for(var Ae=this.scanner.index,Je=this.scanner.source[this.scanner.index++],Ct="";!this.scanner.eof()&&(Ft=this.scanner.source[this.scanner.index++])!==Je;)Ct+="&"===Ft?this.scanXHTMLEntity(Je):Ft;return{type:8,value:Ct,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(46===F){var ee,Gt=this.scanner.source.charCodeAt(this.scanner.index+1),gn=this.scanner.source.charCodeAt(this.scanner.index+2);return Ae=this.scanner.index,this.scanner.index+=(ee=46===Gt&&46===gn?"...":".").length,{type:7,value:ee,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(96===F)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(ct.Character.isIdentifierStart(F)&&92!==F){for(Ae=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var Ft=this.scanner.source.charCodeAt(this.scanner.index);if(ct.Character.isIdentifierPart(Ft)&&92!==Ft)++this.scanner.index;else{if(45!==Ft)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Ae,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}return this.scanner.lex()},A.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var F=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(F)),F},A.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var F=this.scanner.index,ee="";!this.scanner.eof();){var Ae=this.scanner.source[this.scanner.index];if("{"===Ae||"<"===Ae)break;++this.scanner.index,ee+=Ae,ct.Character.isLineTerminator(Ae.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Ae&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Je={type:101,value:ee,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:F,end:this.scanner.index};return ee.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Je)),Je},A.prototype.peekJSXToken=function(){var F=this.scanner.saveState();this.scanner.scanComments();var ee=this.lexJSX();return this.scanner.restoreState(F),ee},A.prototype.expectJSX=function(F){var ee=this.nextJSXToken();(7!==ee.type||ee.value!==F)&&this.throwUnexpectedToken(ee)},A.prototype.matchJSX=function(F){var ee=this.peekJSXToken();return 7===ee.type&&ee.value===F},A.prototype.parseJSXIdentifier=function(){var F=this.createJSXNode(),ee=this.nextJSXToken();return 100!==ee.type&&this.throwUnexpectedToken(ee),this.finalize(F,new ze.JSXIdentifier(ee.value))},A.prototype.parseJSXElementName=function(){var F=this.createJSXNode(),ee=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ae=ee;this.expectJSX(":");var Je=this.parseJSXIdentifier();ee=this.finalize(F,new ze.JSXNamespacedName(Ae,Je))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var Ct=ee;this.expectJSX(".");var Ft=this.parseJSXIdentifier();ee=this.finalize(F,new ze.JSXMemberExpression(Ct,Ft))}return ee},A.prototype.parseJSXAttributeName=function(){var ee,F=this.createJSXNode(),Ae=this.parseJSXIdentifier();if(this.matchJSX(":")){var Je=Ae;this.expectJSX(":");var Ct=this.parseJSXIdentifier();ee=this.finalize(F,new ze.JSXNamespacedName(Je,Ct))}else ee=Ae;return ee},A.prototype.parseJSXStringLiteralAttribute=function(){var F=this.createJSXNode(),ee=this.nextJSXToken();8!==ee.type&&this.throwUnexpectedToken(ee);var Ae=this.getTokenRaw(ee);return this.finalize(F,new Ze.Literal(ee.value,Ae))},A.prototype.parseJSXExpressionAttribute=function(){var F=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var ee=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(F,new ze.JSXExpressionContainer(ee))},A.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},A.prototype.parseJSXNameValueAttribute=function(){var F=this.createJSXNode(),ee=this.parseJSXAttributeName(),Ae=null;return this.matchJSX("=")&&(this.expectJSX("="),Ae=this.parseJSXAttributeValue()),this.finalize(F,new ze.JSXAttribute(ee,Ae))},A.prototype.parseJSXSpreadAttribute=function(){var F=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var ee=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(F,new ze.JSXSpreadAttribute(ee))},A.prototype.parseJSXAttributes=function(){for(var F=[];!this.matchJSX("/")&&!this.matchJSX(">");){var ee=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();F.push(ee)}return F},A.prototype.parseJSXOpeningElement=function(){var F=this.createJSXNode();this.expectJSX("<");var ee=this.parseJSXElementName(),Ae=this.parseJSXAttributes(),Je=this.matchJSX("/");return Je&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(F,new ze.JSXOpeningElement(ee,Je,Ae))},A.prototype.parseJSXBoundaryElement=function(){var F=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var ee=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(F,new ze.JSXClosingElement(ee))}var Ae=this.parseJSXElementName(),Je=this.parseJSXAttributes(),Ct=this.matchJSX("/");return Ct&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(F,new ze.JSXOpeningElement(Ae,Ct,Je))},A.prototype.parseJSXEmptyExpression=function(){var F=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(F,new ze.JSXEmptyExpression)},A.prototype.parseJSXExpressionContainer=function(){var ee,F=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(ee=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),ee=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(F,new ze.JSXExpressionContainer(ee))},A.prototype.parseJSXChildren=function(){for(var F=[];!this.scanner.eof();){var ee=this.createJSXChildNode(),Ae=this.nextJSXText();if(Ae.start0))break;Ft=this.finalize(F.node,new ze.JSXElement(F.opening,F.children,F.closing)),(F=ee[ee.length-1]).children.push(Ft),ee.pop()}}return F},A.prototype.parseJSXElement=function(){var F=this.createJSXNode(),ee=this.parseJSXOpeningElement(),Ae=[],Je=null;if(!ee.selfClosing){var Ct=this.parseComplexJSXElement({node:F,opening:ee,closing:Je,children:Ae});Ae=Ct.children,Je=Ct.closing}return this.finalize(F,new ze.JSXElement(ee,Ae,Je))},A.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var F=this.parseJSXElement();return this.finishJSX(),F},A.prototype.isStartOfExpression=function(){return T.prototype.isStartOfExpression.call(this)||this.match("<")},A}(Ve.Parser);ke.JSXParser=se},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var nt={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\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\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\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\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\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};ke.Character={fromCodePoint:function(Ie){return Ie<65536?String.fromCharCode(Ie):String.fromCharCode(55296+(Ie-65536>>10))+String.fromCharCode(56320+(Ie-65536&1023))},isWhiteSpace:function(Ie){return 32===Ie||9===Ie||11===Ie||12===Ie||160===Ie||Ie>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(Ie)>=0},isLineTerminator:function(Ie){return 10===Ie||13===Ie||8232===Ie||8233===Ie},isIdentifierStart:function(Ie){return 36===Ie||95===Ie||Ie>=65&&Ie<=90||Ie>=97&&Ie<=122||92===Ie||Ie>=128&&nt.NonAsciiIdentifierStart.test(ke.Character.fromCodePoint(Ie))},isIdentifierPart:function(Ie){return 36===Ie||95===Ie||Ie>=65&&Ie<=90||Ie>=97&&Ie<=122||Ie>=48&&Ie<=57||92===Ie||Ie>=128&&nt.NonAsciiIdentifierPart.test(ke.Character.fromCodePoint(Ie))},isDecimalDigit:function(Ie){return Ie>=48&&Ie<=57},isHexDigit:function(Ie){return Ie>=48&&Ie<=57||Ie>=65&&Ie<=70||Ie>=97&&Ie<=102},isOctalDigit:function(Ie){return Ie>=48&&Ie<=55}}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(6);ke.JSXClosingElement=function F(ee){this.type=Ie.JSXSyntax.JSXClosingElement,this.name=ee},ke.JSXElement=function F(ee,Ae,Je){this.type=Ie.JSXSyntax.JSXElement,this.openingElement=ee,this.children=Ae,this.closingElement=Je},ke.JSXEmptyExpression=function F(){this.type=Ie.JSXSyntax.JSXEmptyExpression},ke.JSXExpressionContainer=function F(ee){this.type=Ie.JSXSyntax.JSXExpressionContainer,this.expression=ee},ke.JSXIdentifier=function F(ee){this.type=Ie.JSXSyntax.JSXIdentifier,this.name=ee},ke.JSXMemberExpression=function F(ee,Ae){this.type=Ie.JSXSyntax.JSXMemberExpression,this.object=ee,this.property=Ae},ke.JSXAttribute=function F(ee,Ae){this.type=Ie.JSXSyntax.JSXAttribute,this.name=ee,this.value=Ae},ke.JSXNamespacedName=function F(ee,Ae){this.type=Ie.JSXSyntax.JSXNamespacedName,this.namespace=ee,this.name=Ae},ke.JSXOpeningElement=function F(ee,Ae,Je){this.type=Ie.JSXSyntax.JSXOpeningElement,this.name=ee,this.selfClosing=Ae,this.attributes=Je},ke.JSXSpreadAttribute=function F(ee){this.type=Ie.JSXSyntax.JSXSpreadAttribute,this.argument=ee},ke.JSXText=function F(ee,Ae){this.type=Ie.JSXSyntax.JSXText,this.value=ee,this.raw=Ae}},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(2);ke.ArrayExpression=function Ge(qe){this.type=Ie.Syntax.ArrayExpression,this.elements=qe},ke.ArrayPattern=function Ge(qe){this.type=Ie.Syntax.ArrayPattern,this.elements=qe},ke.ArrowFunctionExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.ArrowFunctionExpression,this.id=null,this.params=qe,this.body=_t,this.generator=!1,this.expression=bn,this.async=!1},ke.AssignmentExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.AssignmentExpression,this.operator=qe,this.left=_t,this.right=bn},ke.AssignmentPattern=function Ge(qe,_t){this.type=Ie.Syntax.AssignmentPattern,this.left=qe,this.right=_t},ke.AsyncArrowFunctionExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.ArrowFunctionExpression,this.id=null,this.params=qe,this.body=_t,this.generator=!1,this.expression=bn,this.async=!0},ke.AsyncFunctionDeclaration=function Ge(qe,_t,bn){this.type=Ie.Syntax.FunctionDeclaration,this.id=qe,this.params=_t,this.body=bn,this.generator=!1,this.expression=!1,this.async=!0},ke.AsyncFunctionExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.FunctionExpression,this.id=qe,this.params=_t,this.body=bn,this.generator=!1,this.expression=!1,this.async=!0},ke.AwaitExpression=function Ge(qe){this.type=Ie.Syntax.AwaitExpression,this.argument=qe},ke.BinaryExpression=function Ge(qe,_t,bn){this.type="||"===qe||"&&"===qe?Ie.Syntax.LogicalExpression:Ie.Syntax.BinaryExpression,this.operator=qe,this.left=_t,this.right=bn},ke.BlockStatement=function Ge(qe){this.type=Ie.Syntax.BlockStatement,this.body=qe},ke.BreakStatement=function Ge(qe){this.type=Ie.Syntax.BreakStatement,this.label=qe},ke.CallExpression=function Ge(qe,_t){this.type=Ie.Syntax.CallExpression,this.callee=qe,this.arguments=_t},ke.CatchClause=function Ge(qe,_t){this.type=Ie.Syntax.CatchClause,this.param=qe,this.body=_t},ke.ClassBody=function Ge(qe){this.type=Ie.Syntax.ClassBody,this.body=qe},ke.ClassDeclaration=function Ge(qe,_t,bn){this.type=Ie.Syntax.ClassDeclaration,this.id=qe,this.superClass=_t,this.body=bn},ke.ClassExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.ClassExpression,this.id=qe,this.superClass=_t,this.body=bn},ke.ComputedMemberExpression=function Ge(qe,_t){this.type=Ie.Syntax.MemberExpression,this.computed=!0,this.object=qe,this.property=_t},ke.ConditionalExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.ConditionalExpression,this.test=qe,this.consequent=_t,this.alternate=bn},ke.ContinueStatement=function Ge(qe){this.type=Ie.Syntax.ContinueStatement,this.label=qe},ke.DebuggerStatement=function Ge(){this.type=Ie.Syntax.DebuggerStatement},ke.Directive=function Ge(qe,_t){this.type=Ie.Syntax.ExpressionStatement,this.expression=qe,this.directive=_t},ke.DoWhileStatement=function Ge(qe,_t){this.type=Ie.Syntax.DoWhileStatement,this.body=qe,this.test=_t},ke.EmptyStatement=function Ge(){this.type=Ie.Syntax.EmptyStatement},ke.ExportAllDeclaration=function Ge(qe){this.type=Ie.Syntax.ExportAllDeclaration,this.source=qe},ke.ExportDefaultDeclaration=function Ge(qe){this.type=Ie.Syntax.ExportDefaultDeclaration,this.declaration=qe},ke.ExportNamedDeclaration=function Ge(qe,_t,bn){this.type=Ie.Syntax.ExportNamedDeclaration,this.declaration=qe,this.specifiers=_t,this.source=bn},ke.ExportSpecifier=function Ge(qe,_t){this.type=Ie.Syntax.ExportSpecifier,this.exported=_t,this.local=qe},ke.ExpressionStatement=function Ge(qe){this.type=Ie.Syntax.ExpressionStatement,this.expression=qe},ke.ForInStatement=function Ge(qe,_t,bn){this.type=Ie.Syntax.ForInStatement,this.left=qe,this.right=_t,this.body=bn,this.each=!1},ke.ForOfStatement=function Ge(qe,_t,bn){this.type=Ie.Syntax.ForOfStatement,this.left=qe,this.right=_t,this.body=bn},ke.ForStatement=function Ge(qe,_t,bn,Nr){this.type=Ie.Syntax.ForStatement,this.init=qe,this.test=_t,this.update=bn,this.body=Nr},ke.FunctionDeclaration=function Ge(qe,_t,bn,Nr){this.type=Ie.Syntax.FunctionDeclaration,this.id=qe,this.params=_t,this.body=bn,this.generator=Nr,this.expression=!1,this.async=!1},ke.FunctionExpression=function Ge(qe,_t,bn,Nr){this.type=Ie.Syntax.FunctionExpression,this.id=qe,this.params=_t,this.body=bn,this.generator=Nr,this.expression=!1,this.async=!1},ke.Identifier=function Ge(qe){this.type=Ie.Syntax.Identifier,this.name=qe},ke.IfStatement=function Ge(qe,_t,bn){this.type=Ie.Syntax.IfStatement,this.test=qe,this.consequent=_t,this.alternate=bn},ke.ImportDeclaration=function Ge(qe,_t){this.type=Ie.Syntax.ImportDeclaration,this.specifiers=qe,this.source=_t},ke.ImportDefaultSpecifier=function Ge(qe){this.type=Ie.Syntax.ImportDefaultSpecifier,this.local=qe},ke.ImportNamespaceSpecifier=function Ge(qe){this.type=Ie.Syntax.ImportNamespaceSpecifier,this.local=qe},ke.ImportSpecifier=function Ge(qe,_t){this.type=Ie.Syntax.ImportSpecifier,this.local=qe,this.imported=_t},ke.LabeledStatement=function Ge(qe,_t){this.type=Ie.Syntax.LabeledStatement,this.label=qe,this.body=_t},ke.Literal=function Ge(qe,_t){this.type=Ie.Syntax.Literal,this.value=qe,this.raw=_t},ke.MetaProperty=function Ge(qe,_t){this.type=Ie.Syntax.MetaProperty,this.meta=qe,this.property=_t},ke.MethodDefinition=function Ge(qe,_t,bn,Nr,m1){this.type=Ie.Syntax.MethodDefinition,this.key=qe,this.computed=_t,this.value=bn,this.kind=Nr,this.static=m1},ke.Module=function Ge(qe){this.type=Ie.Syntax.Program,this.body=qe,this.sourceType="module"},ke.NewExpression=function Ge(qe,_t){this.type=Ie.Syntax.NewExpression,this.callee=qe,this.arguments=_t},ke.ObjectExpression=function Ge(qe){this.type=Ie.Syntax.ObjectExpression,this.properties=qe},ke.ObjectPattern=function Ge(qe){this.type=Ie.Syntax.ObjectPattern,this.properties=qe},ke.Property=function Ge(qe,_t,bn,Nr,m1,Mi){this.type=Ie.Syntax.Property,this.key=_t,this.computed=bn,this.value=Nr,this.kind=qe,this.method=m1,this.shorthand=Mi},ke.RegexLiteral=function Ge(qe,_t,bn,Nr){this.type=Ie.Syntax.Literal,this.value=qe,this.raw=_t,this.regex={pattern:bn,flags:Nr}},ke.RestElement=function Ge(qe){this.type=Ie.Syntax.RestElement,this.argument=qe},ke.ReturnStatement=function Ge(qe){this.type=Ie.Syntax.ReturnStatement,this.argument=qe},ke.Script=function Ge(qe){this.type=Ie.Syntax.Program,this.body=qe,this.sourceType="script"},ke.SequenceExpression=function Ge(qe){this.type=Ie.Syntax.SequenceExpression,this.expressions=qe},ke.SpreadElement=function Ge(qe){this.type=Ie.Syntax.SpreadElement,this.argument=qe},ke.StaticMemberExpression=function Ge(qe,_t){this.type=Ie.Syntax.MemberExpression,this.computed=!1,this.object=qe,this.property=_t},ke.Super=function Ge(){this.type=Ie.Syntax.Super},ke.SwitchCase=function Ge(qe,_t){this.type=Ie.Syntax.SwitchCase,this.test=qe,this.consequent=_t},ke.SwitchStatement=function Ge(qe,_t){this.type=Ie.Syntax.SwitchStatement,this.discriminant=qe,this.cases=_t},ke.TaggedTemplateExpression=function Ge(qe,_t){this.type=Ie.Syntax.TaggedTemplateExpression,this.tag=qe,this.quasi=_t},ke.TemplateElement=function Ge(qe,_t){this.type=Ie.Syntax.TemplateElement,this.value=qe,this.tail=_t},ke.TemplateLiteral=function Ge(qe,_t){this.type=Ie.Syntax.TemplateLiteral,this.quasis=qe,this.expressions=_t},ke.ThisExpression=function Ge(){this.type=Ie.Syntax.ThisExpression},ke.ThrowStatement=function Ge(qe){this.type=Ie.Syntax.ThrowStatement,this.argument=qe},ke.TryStatement=function Ge(qe,_t,bn){this.type=Ie.Syntax.TryStatement,this.block=qe,this.handler=_t,this.finalizer=bn},ke.UnaryExpression=function Ge(qe,_t){this.type=Ie.Syntax.UnaryExpression,this.operator=qe,this.argument=_t,this.prefix=!0},ke.UpdateExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.UpdateExpression,this.operator=qe,this.argument=_t,this.prefix=bn},ke.VariableDeclaration=function Ge(qe,_t){this.type=Ie.Syntax.VariableDeclaration,this.declarations=qe,this.kind=_t},ke.VariableDeclarator=function Ge(qe,_t){this.type=Ie.Syntax.VariableDeclarator,this.id=qe,this.init=_t},ke.WhileStatement=function Ge(qe,_t){this.type=Ie.Syntax.WhileStatement,this.test=qe,this.body=_t},ke.WithStatement=function Ge(qe,_t){this.type=Ie.Syntax.WithStatement,this.object=qe,this.body=_t},ke.YieldExpression=function Ge(qe,_t){this.type=Ie.Syntax.YieldExpression,this.argument=qe,this.delegate=_t}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(9),ct=nt(10),ze=nt(11),_e=nt(7),Ze=nt(12),Ve=nt(2),me=nt(13),oe="ArrowParameterPlaceHolder",ce=function(){function se(T,A,F){void 0===A&&(A={}),this.config={range:"boolean"==typeof A.range&&A.range,loc:"boolean"==typeof A.loc&&A.loc,source:null,tokens:"boolean"==typeof A.tokens&&A.tokens,comment:"boolean"==typeof A.comment&&A.comment,tolerant:"boolean"==typeof A.tolerant&&A.tolerant},this.config.loc&&A.source&&null!==A.source&&(this.config.source=String(A.source)),this.delegate=F,this.errorHandler=new ct.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new Ze.Scanner(T,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return se.prototype.throwError=function(T){for(var A=[],F=1;F0&&this.delegate)for(var A=0;A>="===T||">>>="===T||"&="===T||"^="===T||"|="===T},se.prototype.isolateCoverGrammar=function(T){var A=this.context.isBindingElement,F=this.context.isAssignmentTarget,ee=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=T.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=A,this.context.isAssignmentTarget=F,this.context.firstCoverInitializedNameError=ee,Ae},se.prototype.inheritCoverGrammar=function(T){var A=this.context.isBindingElement,F=this.context.isAssignmentTarget,ee=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=T.call(this);return this.context.isBindingElement=this.context.isBindingElement&&A,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&F,this.context.firstCoverInitializedNameError=ee||this.context.firstCoverInitializedNameError,Ae},se.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},se.prototype.parsePrimaryExpression=function(){var A,F,ee,T=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),A=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(T,new _e.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,ze.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,F=this.nextToken(),ee=this.getTokenRaw(F),A=this.finalize(T,new _e.Literal(F.value,ee));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,F=this.nextToken(),ee=this.getTokenRaw(F),A=this.finalize(T,new _e.Literal("true"===F.value,ee));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,F=this.nextToken(),ee=this.getTokenRaw(F),A=this.finalize(T,new _e.Literal(null,ee));break;case 10:A=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,A=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":A=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":A=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,F=this.nextRegexToken(),ee=this.getTokenRaw(F),A=this.finalize(T,new _e.RegexLiteral(F.regex,ee,F.pattern,F.flags));break;default:A=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?A=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?A=this.finalize(T,new _e.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?A=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),A=this.finalize(T,new _e.ThisExpression)):A=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:A=this.throwUnexpectedToken(this.nextToken())}return A},se.prototype.parseSpreadElement=function(){var T=this.createNode();this.expect("...");var A=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(T,new _e.SpreadElement(A))},se.prototype.parseArrayInitializer=function(){var T=this.createNode(),A=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),A.push(null);else if(this.match("...")){var F=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),A.push(F)}else A.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(T,new _e.ArrayExpression(A))},se.prototype.parsePropertyMethod=function(T){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var A=this.context.strict,F=this.context.allowStrictDirective;this.context.allowStrictDirective=T.simple;var ee=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&T.firstRestricted&&this.tolerateUnexpectedToken(T.firstRestricted,T.message),this.context.strict&&T.stricted&&this.tolerateUnexpectedToken(T.stricted,T.message),this.context.strict=A,this.context.allowStrictDirective=F,ee},se.prototype.parsePropertyMethodFunction=function(){var A=this.createNode(),F=this.context.allowYield;this.context.allowYield=!0;var ee=this.parseFormalParameters(),Ae=this.parsePropertyMethod(ee);return this.context.allowYield=F,this.finalize(A,new _e.FunctionExpression(null,ee.params,Ae,!1))},se.prototype.parsePropertyMethodAsyncFunction=function(){var T=this.createNode(),A=this.context.allowYield,F=this.context.await;this.context.allowYield=!1,this.context.await=!0;var ee=this.parseFormalParameters(),Ae=this.parsePropertyMethod(ee);return this.context.allowYield=A,this.context.await=F,this.finalize(T,new _e.AsyncFunctionExpression(null,ee.params,Ae))},se.prototype.parseObjectPropertyKey=function(){var F,T=this.createNode(),A=this.nextToken();switch(A.type){case 8:case 6:this.context.strict&&A.octal&&this.tolerateUnexpectedToken(A,ze.Messages.StrictOctalLiteral);var ee=this.getTokenRaw(A);F=this.finalize(T,new _e.Literal(A.value,ee));break;case 3:case 1:case 5:case 4:F=this.finalize(T,new _e.Identifier(A.value));break;case 7:"["===A.value?(F=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):F=this.throwUnexpectedToken(A);break;default:F=this.throwUnexpectedToken(A)}return F},se.prototype.isPropertyKey=function(T,A){return T.type===Ve.Syntax.Identifier&&T.name===A||T.type===Ve.Syntax.Literal&&T.value===A},se.prototype.parseObjectProperty=function(T){var ee,A=this.createNode(),F=this.lookahead,Ae=null,Je=null,Ct=!1,Ft=!1,Gt=!1,gn=!1;if(3===F.type){var en=F.value;this.nextToken(),Ct=this.match("["),Ae=(gn=!(this.hasLineTerminator||"async"!==en||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(A,new _e.Identifier(en))}else this.match("*")?this.nextToken():(Ct=this.match("["),Ae=this.parseObjectPropertyKey());var Ai=this.qualifiedPropertyName(this.lookahead);if(3===F.type&&!gn&&"get"===F.value&&Ai)ee="get",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod();else if(3===F.type&&!gn&&"set"===F.value&&Ai)ee="set",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),Je=this.parseSetterMethod();else if(7===F.type&&"*"===F.value&&Ai)ee="init",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),Ft=!0;else if(Ae||this.throwUnexpectedToken(this.lookahead),ee="init",this.match(":")&&!gn)!Ct&&this.isPropertyKey(Ae,"__proto__")&&(T.value&&this.tolerateError(ze.Messages.DuplicateProtoProperty),T.value=!0),this.nextToken(),Je=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Je=gn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),Ft=!0;else if(3===F.type)if(en=this.finalize(A,new _e.Identifier(F.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),Gt=!0;var $r=this.isolateCoverGrammar(this.parseAssignmentExpression);Je=this.finalize(A,new _e.AssignmentPattern(en,$r))}else Gt=!0,Je=en;else this.throwUnexpectedToken(this.nextToken());return this.finalize(A,new _e.Property(ee,Ae,Ct,Je,Ft,Gt))},se.prototype.parseObjectInitializer=function(){var T=this.createNode();this.expect("{");for(var A=[],F={value:!1};!this.match("}");)A.push(this.parseObjectProperty(F)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(T,new _e.ObjectExpression(A))},se.prototype.parseTemplateHead=function(){Ie.assert(this.lookahead.head,"Template literal must start with a template head");var T=this.createNode(),A=this.nextToken();return this.finalize(T,new _e.TemplateElement({raw:A.value,cooked:A.cooked},A.tail))},se.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var T=this.createNode(),A=this.nextToken();return this.finalize(T,new _e.TemplateElement({raw:A.value,cooked:A.cooked},A.tail))},se.prototype.parseTemplateLiteral=function(){var T=this.createNode(),A=[],F=[],ee=this.parseTemplateHead();for(F.push(ee);!ee.tail;)A.push(this.parseExpression()),ee=this.parseTemplateElement(),F.push(ee);return this.finalize(T,new _e.TemplateLiteral(F,A))},se.prototype.reinterpretExpressionAsPattern=function(T){switch(T.type){case Ve.Syntax.Identifier:case Ve.Syntax.MemberExpression:case Ve.Syntax.RestElement:case Ve.Syntax.AssignmentPattern:break;case Ve.Syntax.SpreadElement:T.type=Ve.Syntax.RestElement,this.reinterpretExpressionAsPattern(T.argument);break;case Ve.Syntax.ArrayExpression:T.type=Ve.Syntax.ArrayPattern;for(var A=0;A")||this.expect("=>"),T={type:oe,params:[],async:!1};else{var A=this.lookahead,F=[];if(this.match("..."))T=this.parseRestElement(F),this.expect(")"),this.match("=>")||this.expect("=>"),T={type:oe,params:[T],async:!1};else{var ee=!1;if(this.context.isBindingElement=!0,T=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Ae=[];for(this.context.isAssignmentTarget=!1,Ae.push(T);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Je=0;Je")||this.expect("=>"),this.context.isBindingElement=!1,Je=0;Je")&&(T.type===Ve.Syntax.Identifier&&"yield"===T.name&&(ee=!0,T={type:oe,params:[T],async:!1}),!ee)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),T.type===Ve.Syntax.SequenceExpression)for(Je=0;Je")){for(var Ft=0;Ft0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Ae=[T,this.lookahead],Je=A,Ct=this.isolateCoverGrammar(this.parseExponentiationExpression),Ft=[Je,F.value,Ct],Gt=[ee];!((ee=this.binaryPrecedence(this.lookahead))<=0);){for(;Ft.length>2&&ee<=Gt[Gt.length-1];){Ct=Ft.pop();var gn=Ft.pop();Gt.pop(),Je=Ft.pop(),Ae.pop();var en=this.startNode(Ae[Ae.length-1]);Ft.push(this.finalize(en,new _e.BinaryExpression(gn,Je,Ct)))}Ft.push(this.nextToken().value),Gt.push(ee),Ae.push(this.lookahead),Ft.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Ai=Ft.length-1;A=Ft[Ai];for(var $r=Ae.pop();Ai>1;){var Ur=Ae.pop();en=this.startNode(Ur,$r&&$r.lineStart),A=this.finalize(en,new _e.BinaryExpression(gn=Ft[Ai-1],Ft[Ai-2],A)),Ai-=2,$r=Ur}}return A},se.prototype.parseConditionalExpression=function(){var T=this.lookahead,A=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var F=this.context.allowIn;this.context.allowIn=!0;var ee=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=F,this.expect(":");var Ae=this.isolateCoverGrammar(this.parseAssignmentExpression);A=this.finalize(this.startNode(T),new _e.ConditionalExpression(A,ee,Ae)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return A},se.prototype.checkPatternParam=function(T,A){switch(A.type){case Ve.Syntax.Identifier:this.validateParam(T,A,A.name);break;case Ve.Syntax.RestElement:this.checkPatternParam(T,A.argument);break;case Ve.Syntax.AssignmentPattern:this.checkPatternParam(T,A.left);break;case Ve.Syntax.ArrayPattern:for(var F=0;F")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Ae=T.async,Je=this.reinterpretAsCoverFormalsList(T);if(Je){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var Ct=this.context.strict,Ft=this.context.allowStrictDirective;this.context.allowStrictDirective=Je.simple;var Gt=this.context.allowYield,gn=this.context.await;this.context.allowYield=!0,this.context.await=Ae;var en=this.startNode(A);this.expect("=>");var Ai=void 0;if(this.match("{")){var $r=this.context.allowIn;this.context.allowIn=!0,Ai=this.parseFunctionSourceElements(),this.context.allowIn=$r}else Ai=this.isolateCoverGrammar(this.parseAssignmentExpression);var Ur=Ai.type!==Ve.Syntax.BlockStatement;this.context.strict&&Je.firstRestricted&&this.throwUnexpectedToken(Je.firstRestricted,Je.message),this.context.strict&&Je.stricted&&this.tolerateUnexpectedToken(Je.stricted,Je.message),T=this.finalize(en,Ae?new _e.AsyncArrowFunctionExpression(Je.params,Ai,Ur):new _e.ArrowFunctionExpression(Je.params,Ai,Ur)),this.context.strict=Ct,this.context.allowStrictDirective=Ft,this.context.allowYield=Gt,this.context.await=gn}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(ze.Messages.InvalidLHSInAssignment),this.context.strict&&T.type===Ve.Syntax.Identifier){var ss=T;this.scanner.isRestrictedWord(ss.name)&&this.tolerateUnexpectedToken(F,ze.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(ss.name)&&this.tolerateUnexpectedToken(F,ze.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(T):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var za=(F=this.nextToken()).value,_r=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(A),new _e.AssignmentExpression(za,T,_r)),this.context.firstCoverInitializedNameError=null}}return T},se.prototype.parseExpression=function(){var T=this.lookahead,A=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var F=[];for(F.push(A);2!==this.lookahead.type&&this.match(",");)this.nextToken(),F.push(this.isolateCoverGrammar(this.parseAssignmentExpression));A=this.finalize(this.startNode(T),new _e.SequenceExpression(F))}return A},se.prototype.parseStatementListItem=function(){var T;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,ze.Messages.IllegalExportDeclaration),T=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,ze.Messages.IllegalImportDeclaration),T=this.parseImportDeclaration();break;case"const":T=this.parseLexicalDeclaration({inFor:!1});break;case"function":T=this.parseFunctionDeclaration();break;case"class":T=this.parseClassDeclaration();break;case"let":T=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:T=this.parseStatement()}else T=this.parseStatement();return T},se.prototype.parseBlock=function(){var T=this.createNode();this.expect("{");for(var A=[];!this.match("}");)A.push(this.parseStatementListItem());return this.expect("}"),this.finalize(T,new _e.BlockStatement(A))},se.prototype.parseLexicalBinding=function(T,A){var F=this.createNode(),Ae=this.parsePattern([],T);this.context.strict&&Ae.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(Ae.name)&&this.tolerateError(ze.Messages.StrictVarName);var Je=null;return"const"===T?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(ze.Messages.DeclarationMissingInitializer,"const")):(!A.inFor&&Ae.type!==Ve.Syntax.Identifier||this.match("="))&&(this.expect("="),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(F,new _e.VariableDeclarator(Ae,Je))},se.prototype.parseBindingList=function(T,A){for(var F=[this.parseLexicalBinding(T,A)];this.match(",");)this.nextToken(),F.push(this.parseLexicalBinding(T,A));return F},se.prototype.isLexicalDeclaration=function(){var T=this.scanner.saveState();this.scanner.scanComments();var A=this.scanner.lex();return this.scanner.restoreState(T),3===A.type||7===A.type&&"["===A.value||7===A.type&&"{"===A.value||4===A.type&&"let"===A.value||4===A.type&&"yield"===A.value},se.prototype.parseLexicalDeclaration=function(T){var A=this.createNode(),F=this.nextToken().value;Ie.assert("let"===F||"const"===F,"Lexical declaration must be either let or const");var ee=this.parseBindingList(F,T);return this.consumeSemicolon(),this.finalize(A,new _e.VariableDeclaration(ee,F))},se.prototype.parseBindingRestElement=function(T,A){var F=this.createNode();this.expect("...");var ee=this.parsePattern(T,A);return this.finalize(F,new _e.RestElement(ee))},se.prototype.parseArrayPattern=function(T,A){var F=this.createNode();this.expect("[");for(var ee=[];!this.match("]");)if(this.match(","))this.nextToken(),ee.push(null);else{if(this.match("...")){ee.push(this.parseBindingRestElement(T,A));break}ee.push(this.parsePatternWithDefault(T,A)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(F,new _e.ArrayPattern(ee))},se.prototype.parsePropertyPattern=function(T,A){var Ct,Ft,F=this.createNode(),ee=!1,Ae=!1;if(3===this.lookahead.type){var Gt=this.lookahead;Ct=this.parseVariableIdentifier();var gn=this.finalize(F,new _e.Identifier(Gt.value));if(this.match("=")){T.push(Gt),Ae=!0,this.nextToken();var en=this.parseAssignmentExpression();Ft=this.finalize(this.startNode(Gt),new _e.AssignmentPattern(gn,en))}else this.match(":")?(this.expect(":"),Ft=this.parsePatternWithDefault(T,A)):(T.push(Gt),Ae=!0,Ft=gn)}else ee=this.match("["),Ct=this.parseObjectPropertyKey(),this.expect(":"),Ft=this.parsePatternWithDefault(T,A);return this.finalize(F,new _e.Property("init",Ct,ee,Ft,!1,Ae))},se.prototype.parseObjectPattern=function(T,A){var F=this.createNode(),ee=[];for(this.expect("{");!this.match("}");)ee.push(this.parsePropertyPattern(T,A)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(F,new _e.ObjectPattern(ee))},se.prototype.parsePattern=function(T,A){var F;return this.match("[")?F=this.parseArrayPattern(T,A):this.match("{")?F=this.parseObjectPattern(T,A):(this.matchKeyword("let")&&("const"===A||"let"===A)&&this.tolerateUnexpectedToken(this.lookahead,ze.Messages.LetInLexicalBinding),T.push(this.lookahead),F=this.parseVariableIdentifier(A)),F},se.prototype.parsePatternWithDefault=function(T,A){var F=this.lookahead,ee=this.parsePattern(T,A);if(this.match("=")){this.nextToken();var Ae=this.context.allowYield;this.context.allowYield=!0;var Je=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Ae,ee=this.finalize(this.startNode(F),new _e.AssignmentPattern(ee,Je))}return ee},se.prototype.parseVariableIdentifier=function(T){var A=this.createNode(),F=this.nextToken();return 4===F.type&&"yield"===F.value?this.context.strict?this.tolerateUnexpectedToken(F,ze.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(F):3!==F.type?this.context.strict&&4===F.type&&this.scanner.isStrictModeReservedWord(F.value)?this.tolerateUnexpectedToken(F,ze.Messages.StrictReservedWord):(this.context.strict||"let"!==F.value||"var"!==T)&&this.throwUnexpectedToken(F):(this.context.isModule||this.context.await)&&3===F.type&&"await"===F.value&&this.tolerateUnexpectedToken(F),this.finalize(A,new _e.Identifier(F.value))},se.prototype.parseVariableDeclaration=function(T){var A=this.createNode(),ee=this.parsePattern([],"var");this.context.strict&&ee.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(ee.name)&&this.tolerateError(ze.Messages.StrictVarName);var Ae=null;return this.match("=")?(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseAssignmentExpression)):ee.type!==Ve.Syntax.Identifier&&!T.inFor&&this.expect("="),this.finalize(A,new _e.VariableDeclarator(ee,Ae))},se.prototype.parseVariableDeclarationList=function(T){var A={inFor:T.inFor},F=[];for(F.push(this.parseVariableDeclaration(A));this.match(",");)this.nextToken(),F.push(this.parseVariableDeclaration(A));return F},se.prototype.parseVariableStatement=function(){var T=this.createNode();this.expectKeyword("var");var A=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(T,new _e.VariableDeclaration(A,"var"))},se.prototype.parseEmptyStatement=function(){var T=this.createNode();return this.expect(";"),this.finalize(T,new _e.EmptyStatement)},se.prototype.parseExpressionStatement=function(){var T=this.createNode(),A=this.parseExpression();return this.consumeSemicolon(),this.finalize(T,new _e.ExpressionStatement(A))},se.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(ze.Messages.StrictFunction),this.parseStatement()},se.prototype.parseIfStatement=function(){var A,T=this.createNode(),F=null;this.expectKeyword("if"),this.expect("(");var ee=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),A=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),A=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),F=this.parseIfClause())),this.finalize(T,new _e.IfStatement(ee,A,F))},se.prototype.parseDoWhileStatement=function(){var T=this.createNode();this.expectKeyword("do");var A=this.context.inIteration;this.context.inIteration=!0;var F=this.parseStatement();this.context.inIteration=A,this.expectKeyword("while"),this.expect("(");var ee=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(T,new _e.DoWhileStatement(F,ee))},se.prototype.parseWhileStatement=function(){var A,T=this.createNode();this.expectKeyword("while"),this.expect("(");var F=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),A=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var ee=this.context.inIteration;this.context.inIteration=!0,A=this.parseStatement(),this.context.inIteration=ee}return this.finalize(T,new _e.WhileStatement(F,A))},se.prototype.parseForStatement=function(){var Ae,Je,Ur,T=null,A=null,F=null,ee=!0,Ct=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){T=this.createNode(),this.nextToken();var Ft=this.context.allowIn;this.context.allowIn=!1;var Gt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=Ft,1===Gt.length&&this.matchKeyword("in")){var gn=Gt[0];gn.init&&(gn.id.type===Ve.Syntax.ArrayPattern||gn.id.type===Ve.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(ze.Messages.ForInOfLoopInitializer,"for-in"),T=this.finalize(T,new _e.VariableDeclaration(Gt,"var")),this.nextToken(),Ae=T,Je=this.parseExpression(),T=null}else 1===Gt.length&&null===Gt[0].init&&this.matchContextualKeyword("of")?(T=this.finalize(T,new _e.VariableDeclaration(Gt,"var")),this.nextToken(),Ae=T,Je=this.parseAssignmentExpression(),T=null,ee=!1):(T=this.finalize(T,new _e.VariableDeclaration(Gt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){T=this.createNode();var en=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(Ft=this.context.allowIn,this.context.allowIn=!1,Gt=this.parseBindingList(en,{inFor:!0}),this.context.allowIn=Ft,1===Gt.length&&null===Gt[0].init&&this.matchKeyword("in")?(T=this.finalize(T,new _e.VariableDeclaration(Gt,en)),this.nextToken(),Ae=T,Je=this.parseExpression(),T=null):1===Gt.length&&null===Gt[0].init&&this.matchContextualKeyword("of")?(T=this.finalize(T,new _e.VariableDeclaration(Gt,en)),this.nextToken(),Ae=T,Je=this.parseAssignmentExpression(),T=null,ee=!1):(this.consumeSemicolon(),T=this.finalize(T,new _e.VariableDeclaration(Gt,en)))):(T=this.finalize(T,new _e.Identifier(en)),this.nextToken(),Ae=T,Je=this.parseExpression(),T=null)}else{var Ai=this.lookahead;if(Ft=this.context.allowIn,this.context.allowIn=!1,T=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=Ft,this.matchKeyword("in"))(!this.context.isAssignmentTarget||T.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(ze.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(T),Ae=T,Je=this.parseExpression(),T=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||T.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(ze.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(T),Ae=T,Je=this.parseAssignmentExpression(),T=null,ee=!1;else{if(this.match(",")){for(var $r=[T];this.match(",");)this.nextToken(),$r.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(Ai),new _e.SequenceExpression($r))}this.expect(";")}}if(typeof Ae>"u"&&(this.match(";")||(A=this.parseExpression()),this.expect(";"),this.match(")")||(F=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Ur=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var ss=this.context.inIteration;this.context.inIteration=!0,Ur=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=ss}return this.finalize(Ct,typeof Ae>"u"?new _e.ForStatement(T,A,F,Ur):ee?new _e.ForInStatement(Ae,Je,Ur):new _e.ForOfStatement(Ae,Je,Ur))},se.prototype.parseContinueStatement=function(){var T=this.createNode();this.expectKeyword("continue");var A=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var F=this.parseVariableIdentifier();A=F,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+F.name)||this.throwError(ze.Messages.UnknownLabel,F.name)}return this.consumeSemicolon(),null===A&&!this.context.inIteration&&this.throwError(ze.Messages.IllegalContinue),this.finalize(T,new _e.ContinueStatement(A))},se.prototype.parseBreakStatement=function(){var T=this.createNode();this.expectKeyword("break");var A=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var F=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+F.name)||this.throwError(ze.Messages.UnknownLabel,F.name),A=F}return this.consumeSemicolon(),null===A&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(ze.Messages.IllegalBreak),this.finalize(T,new _e.BreakStatement(A))},se.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(ze.Messages.IllegalReturn);var T=this.createNode();this.expectKeyword("return");var F=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(T,new _e.ReturnStatement(F))},se.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(ze.Messages.StrictModeWith);var A,T=this.createNode();this.expectKeyword("with"),this.expect("(");var F=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),A=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),A=this.parseStatement()),this.finalize(T,new _e.WithStatement(F,A))},se.prototype.parseSwitchCase=function(){var A,T=this.createNode();this.matchKeyword("default")?(this.nextToken(),A=null):(this.expectKeyword("case"),A=this.parseExpression()),this.expect(":");for(var F=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)F.push(this.parseStatementListItem());return this.finalize(T,new _e.SwitchCase(A,F))},se.prototype.parseSwitchStatement=function(){var T=this.createNode();this.expectKeyword("switch"),this.expect("(");var A=this.parseExpression();this.expect(")");var F=this.context.inSwitch;this.context.inSwitch=!0;var ee=[],Ae=!1;for(this.expect("{");!this.match("}");){var Je=this.parseSwitchCase();null===Je.test&&(Ae&&this.throwError(ze.Messages.MultipleDefaultsInSwitch),Ae=!0),ee.push(Je)}return this.expect("}"),this.context.inSwitch=F,this.finalize(T,new _e.SwitchStatement(A,ee))},se.prototype.parseLabelledStatement=function(){var F,T=this.createNode(),A=this.parseExpression();if(A.type===Ve.Syntax.Identifier&&this.match(":")){this.nextToken();var ee=A,Ae="$"+ee.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Ae)&&this.throwError(ze.Messages.Redeclaration,"Label",ee.name),this.context.labelSet[Ae]=!0;var Je=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Je=this.parseClassDeclaration();else if(this.matchKeyword("function")){var Ct=this.lookahead,Ft=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(Ct,ze.Messages.StrictFunction):Ft.generator&&this.tolerateUnexpectedToken(Ct,ze.Messages.GeneratorInLegacyContext),Je=Ft}else Je=this.parseStatement();delete this.context.labelSet[Ae],F=new _e.LabeledStatement(ee,Je)}else this.consumeSemicolon(),F=new _e.ExpressionStatement(A);return this.finalize(T,F)},se.prototype.parseThrowStatement=function(){var T=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(ze.Messages.NewlineAfterThrow);var A=this.parseExpression();return this.consumeSemicolon(),this.finalize(T,new _e.ThrowStatement(A))},se.prototype.parseCatchClause=function(){var T=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var A=[],F=this.parsePattern(A),ee={},Ae=0;Ae0&&this.tolerateError(ze.Messages.BadGetterArity);var Ae=this.parsePropertyMethod(ee);return this.context.allowYield=F,this.finalize(T,new _e.FunctionExpression(null,ee.params,Ae,false))},se.prototype.parseSetterMethod=function(){var T=this.createNode(),F=this.context.allowYield;this.context.allowYield=!0;var ee=this.parseFormalParameters();1!==ee.params.length?this.tolerateError(ze.Messages.BadSetterArity):ee.params[0]instanceof _e.RestElement&&this.tolerateError(ze.Messages.BadSetterRestParameter);var Ae=this.parsePropertyMethod(ee);return this.context.allowYield=F,this.finalize(T,new _e.FunctionExpression(null,ee.params,Ae,false))},se.prototype.parseGeneratorMethod=function(){var T=this.createNode(),F=this.context.allowYield;this.context.allowYield=!0;var ee=this.parseFormalParameters();this.context.allowYield=!1;var Ae=this.parsePropertyMethod(ee);return this.context.allowYield=F,this.finalize(T,new _e.FunctionExpression(null,ee.params,Ae,!0))},se.prototype.isStartOfExpression=function(){var T=!0,A=this.lookahead.value;switch(this.lookahead.type){case 7:T="["===A||"("===A||"{"===A||"+"===A||"-"===A||"!"===A||"~"===A||"++"===A||"--"===A||"/"===A||"/="===A;break;case 4:T="class"===A||"delete"===A||"function"===A||"let"===A||"new"===A||"super"===A||"this"===A||"typeof"===A||"void"===A||"yield"===A}return T},se.prototype.parseYieldExpression=function(){var T=this.createNode();this.expectKeyword("yield");var A=null,F=!1;if(!this.hasLineTerminator){var ee=this.context.allowYield;this.context.allowYield=!1,(F=this.match("*"))?(this.nextToken(),A=this.parseAssignmentExpression()):this.isStartOfExpression()&&(A=this.parseAssignmentExpression()),this.context.allowYield=ee}return this.finalize(T,new _e.YieldExpression(A,F))},se.prototype.parseClassElement=function(T){var A=this.lookahead,F=this.createNode(),ee="",Ae=null,Je=null,Ct=!1,Ft=!1,Gt=!1,gn=!1;if(this.match("*"))this.nextToken();else if(Ct=this.match("["),"static"===(Ae=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(A=this.lookahead,Gt=!0,Ct=this.match("["),this.match("*")?this.nextToken():Ae=this.parseObjectPropertyKey()),3===A.type&&!this.hasLineTerminator&&"async"===A.value){var Ai=this.lookahead.value;":"!==Ai&&"("!==Ai&&"*"!==Ai&&(gn=!0,A=this.lookahead,Ae=this.parseObjectPropertyKey(),3===A.type&&"constructor"===A.value&&this.tolerateUnexpectedToken(A,ze.Messages.ConstructorIsAsync))}var $r=this.qualifiedPropertyName(this.lookahead);return 3===A.type?"get"===A.value&&$r?(ee="get",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod()):"set"===A.value&&$r&&(ee="set",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),Je=this.parseSetterMethod()):7===A.type&&"*"===A.value&&$r&&(ee="init",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),Ft=!0),!ee&&Ae&&this.match("(")&&(ee="init",Je=gn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),Ft=!0),ee||this.throwUnexpectedToken(this.lookahead),"init"===ee&&(ee="method"),Ct||(Gt&&this.isPropertyKey(Ae,"prototype")&&this.throwUnexpectedToken(A,ze.Messages.StaticPrototype),!Gt&&this.isPropertyKey(Ae,"constructor")&&(("method"!==ee||!Ft||Je&&Je.generator)&&this.throwUnexpectedToken(A,ze.Messages.ConstructorSpecialMethod),T.value?this.throwUnexpectedToken(A,ze.Messages.DuplicateConstructor):T.value=!0,ee="constructor")),this.finalize(F,new _e.MethodDefinition(Ae,Ct,Je,ee,Gt))},se.prototype.parseClassElementList=function(){var T=[],A={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():T.push(this.parseClassElement(A));return this.expect("}"),T},se.prototype.parseClassBody=function(){var T=this.createNode(),A=this.parseClassElementList();return this.finalize(T,new _e.ClassBody(A))},se.prototype.parseClassDeclaration=function(T){var A=this.createNode(),F=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var ee=T&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Ae=null;this.matchKeyword("extends")&&(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Je=this.parseClassBody();return this.context.strict=F,this.finalize(A,new _e.ClassDeclaration(ee,Ae,Je))},se.prototype.parseClassExpression=function(){var T=this.createNode(),A=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var F=3===this.lookahead.type?this.parseVariableIdentifier():null,ee=null;this.matchKeyword("extends")&&(this.nextToken(),ee=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ae=this.parseClassBody();return this.context.strict=A,this.finalize(T,new _e.ClassExpression(F,ee,Ae))},se.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var T=this.createNode(),A=this.parseDirectivePrologues();2!==this.lookahead.type;)A.push(this.parseStatementListItem());return this.finalize(T,new _e.Module(A))},se.prototype.parseScript=function(){for(var T=this.createNode(),A=this.parseDirectivePrologues();2!==this.lookahead.type;)A.push(this.parseStatementListItem());return this.finalize(T,new _e.Script(A))},se.prototype.parseModuleSpecifier=function(){var T=this.createNode();8!==this.lookahead.type&&this.throwError(ze.Messages.InvalidModuleSpecifier);var A=this.nextToken(),F=this.getTokenRaw(A);return this.finalize(T,new _e.Literal(A.value,F))},se.prototype.parseImportSpecifier=function(){var A,F,T=this.createNode();return 3===this.lookahead.type?(F=A=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),F=this.parseVariableIdentifier())):(F=A=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),F=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(T,new _e.ImportSpecifier(F,A))},se.prototype.parseNamedImports=function(){this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),T},se.prototype.parseImportDefaultSpecifier=function(){var T=this.createNode(),A=this.parseIdentifierName();return this.finalize(T,new _e.ImportDefaultSpecifier(A))},se.prototype.parseImportNamespaceSpecifier=function(){var T=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(ze.Messages.NoAsAfterImportNamespace),this.nextToken();var A=this.parseIdentifierName();return this.finalize(T,new _e.ImportNamespaceSpecifier(A))},se.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(ze.Messages.IllegalImportDeclaration);var T=this.createNode();this.expectKeyword("import");var A,F=[];return 8===this.lookahead.type||(this.match("{")?F=F.concat(this.parseNamedImports()):this.match("*")?F.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(F.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?F.push(this.parseImportNamespaceSpecifier()):this.match("{")?F=F.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?ze.Messages.UnexpectedToken:ze.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),A=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(T,new _e.ImportDeclaration(F,A))},se.prototype.parseExportSpecifier=function(){var T=this.createNode(),A=this.parseIdentifierName(),F=A;return this.matchContextualKeyword("as")&&(this.nextToken(),F=this.parseIdentifierName()),this.finalize(T,new _e.ExportSpecifier(A,F))},se.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(ze.Messages.IllegalExportDeclaration);var A,T=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var F=this.parseFunctionDeclaration(!0);A=this.finalize(T,new _e.ExportDefaultDeclaration(F))}else this.matchKeyword("class")?(F=this.parseClassDeclaration(!0),A=this.finalize(T,new _e.ExportDefaultDeclaration(F))):this.matchContextualKeyword("async")?(F=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),A=this.finalize(T,new _e.ExportDefaultDeclaration(F))):(this.matchContextualKeyword("from")&&this.throwError(ze.Messages.UnexpectedToken,this.lookahead.value),F=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),A=this.finalize(T,new _e.ExportDefaultDeclaration(F)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?ze.Messages.UnexpectedToken:ze.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Ae=this.parseModuleSpecifier();this.consumeSemicolon(),A=this.finalize(T,new _e.ExportAllDeclaration(Ae))}else if(4===this.lookahead.type){switch(F=void 0,this.lookahead.value){case"let":case"const":F=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":F=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}A=this.finalize(T,new _e.ExportNamedDeclaration(F,[],null))}else if(this.matchAsyncFunction())F=this.parseFunctionDeclaration(),A=this.finalize(T,new _e.ExportNamedDeclaration(F,[],null));else{var Je=[],Ct=null,Ft=!1;for(this.expect("{");!this.match("}");)Ft=Ft||this.matchKeyword("default"),Je.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),Ct=this.parseModuleSpecifier(),this.consumeSemicolon()):Ft?this.throwError(this.lookahead.value?ze.Messages.UnexpectedToken:ze.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),A=this.finalize(T,new _e.ExportNamedDeclaration(null,Je,Ct))}return A},se}();ke.Parser=ce},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.assert=function nt(Ie,ct){if(!Ie)throw new Error("ASSERT: "+ct)}},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var nt=function(){function Ie(){this.errors=[],this.tolerant=!1}return Ie.prototype.recordError=function(ct){this.errors.push(ct)},Ie.prototype.tolerate=function(ct){if(!this.tolerant)throw ct;this.recordError(ct)},Ie.prototype.constructError=function(ct,ze){var _e=new Error(ct);try{throw _e}catch(Ze){Object.create&&Object.defineProperty&&(_e=Object.create(Ze),Object.defineProperty(_e,"column",{value:ze}))}return _e},Ie.prototype.createError=function(ct,ze,_e,Ze){var me=this.constructError("Line "+ze+": "+Ze,_e);return me.index=ct,me.lineNumber=ze,me.description=Ze,me},Ie.prototype.throwError=function(ct,ze,_e,Ze){throw this.createError(ct,ze,_e,Ze)},Ie.prototype.tolerateError=function(ct,ze,_e,Ze){var Ve=this.createError(ct,ze,_e,Ze);if(!this.tolerant)throw Ve;this.recordError(Ve)},Ie}();ke.ErrorHandler=nt},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(9),ct=nt(4),ze=nt(11);function _e(me){return"0123456789abcdef".indexOf(me.toLowerCase())}function Ze(me){return"01234567".indexOf(me)}var Ve=function(){function me(oe,ce){this.source=oe,this.errorHandler=ce,this.trackComment=!1,this.isModule=!1,this.length=oe.length,this.index=0,this.lineNumber=oe.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return me.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},me.prototype.restoreState=function(oe){this.index=oe.index,this.lineNumber=oe.lineNumber,this.lineStart=oe.lineStart},me.prototype.eof=function(){return this.index>=this.length},me.prototype.throwUnexpectedToken=function(oe){return void 0===oe&&(oe=ze.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,oe)},me.prototype.tolerateUnexpectedToken=function(oe){void 0===oe&&(oe=ze.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,oe)},me.prototype.skipSingleLineComment=function(oe){var se,T,ce=[];for(this.trackComment&&(ce=[],se=this.index-oe,T={start:{line:this.lineNumber,column:this.index-this.lineStart-oe},end:{}});!this.eof();){var A=this.source.charCodeAt(this.index);if(++this.index,ct.Character.isLineTerminator(A))return this.trackComment&&(T.end={line:this.lineNumber,column:this.index-this.lineStart-1},ce.push({multiLine:!1,slice:[se+oe,this.index-1],range:[se,this.index-1],loc:T})),13===A&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ce}return this.trackComment&&(T.end={line:this.lineNumber,column:this.index-this.lineStart},ce.push({multiLine:!1,slice:[se+oe,this.index],range:[se,this.index],loc:T})),ce},me.prototype.skipMultiLineComment=function(){var ce,se,oe=[];for(this.trackComment&&(oe=[],ce=this.index-2,se={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(ct.Character.isLineTerminator(T))13===T&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===T){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(se.end={line:this.lineNumber,column:this.index-this.lineStart},oe.push({multiLine:!0,slice:[ce+2,this.index-2],range:[ce,this.index],loc:se})),oe;++this.index}else++this.index}return this.trackComment&&(se.end={line:this.lineNumber,column:this.index-this.lineStart},oe.push({multiLine:!0,slice:[ce+2,this.index],range:[ce,this.index],loc:se})),this.tolerateUnexpectedToken(),oe},me.prototype.scanComments=function(){var oe;this.trackComment&&(oe=[]);for(var ce=0===this.index;!this.eof();){var se=this.source.charCodeAt(this.index);if(ct.Character.isWhiteSpace(se))++this.index;else if(ct.Character.isLineTerminator(se))++this.index,13===se&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ce=!0;else if(47===se)if(47===(se=this.source.charCodeAt(this.index+1))){this.index+=2;var T=this.skipSingleLineComment(2);this.trackComment&&(oe=oe.concat(T)),ce=!0}else{if(42!==se)break;this.index+=2,T=this.skipMultiLineComment(),this.trackComment&&(oe=oe.concat(T))}else if(ce&&45===se){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,T=this.skipSingleLineComment(3),this.trackComment&&(oe=oe.concat(T))}else{if(60!==se||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,T=this.skipSingleLineComment(4),this.trackComment&&(oe=oe.concat(T))}}return oe},me.prototype.isFutureReservedWord=function(oe){switch(oe){case"enum":case"export":case"import":case"super":return!0;default:return!1}},me.prototype.isStrictModeReservedWord=function(oe){switch(oe){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},me.prototype.isRestrictedWord=function(oe){return"eval"===oe||"arguments"===oe},me.prototype.isKeyword=function(oe){switch(oe.length){case 2:return"if"===oe||"in"===oe||"do"===oe;case 3:return"var"===oe||"for"===oe||"new"===oe||"try"===oe||"let"===oe;case 4:return"this"===oe||"else"===oe||"case"===oe||"void"===oe||"with"===oe||"enum"===oe;case 5:return"while"===oe||"break"===oe||"catch"===oe||"throw"===oe||"const"===oe||"yield"===oe||"class"===oe||"super"===oe;case 6:return"return"===oe||"typeof"===oe||"delete"===oe||"switch"===oe||"export"===oe||"import"===oe;case 7:return"default"===oe||"finally"===oe||"extends"===oe;case 8:return"function"===oe||"continue"===oe||"debugger"===oe;case 10:return"instanceof"===oe;default:return!1}},me.prototype.codePointAt=function(oe){var ce=this.source.charCodeAt(oe);if(ce>=55296&&ce<=56319){var se=this.source.charCodeAt(oe+1);se>=56320&&se<=57343&&(ce=1024*(ce-55296)+se-56320+65536)}return ce},me.prototype.scanHexEscape=function(oe){for(var ce="u"===oe?4:2,se=0,T=0;T1114111||"}"!==oe)&&this.throwUnexpectedToken(),ct.Character.fromCodePoint(ce)},me.prototype.getIdentifier=function(){for(var oe=this.index++;!this.eof();){var ce=this.source.charCodeAt(this.index);if(92===ce)return this.index=oe,this.getComplexIdentifier();if(ce>=55296&&ce<57343)return this.index=oe,this.getComplexIdentifier();if(!ct.Character.isIdentifierPart(ce))break;++this.index}return this.source.slice(oe,this.index)},me.prototype.getComplexIdentifier=function(){var se,oe=this.codePointAt(this.index),ce=ct.Character.fromCodePoint(oe);for(this.index+=ce.length,92===oe&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,se=this.scanUnicodeCodePointEscape()):(null===(se=this.scanHexEscape("u"))||"\\"===se||!ct.Character.isIdentifierStart(se.charCodeAt(0)))&&this.throwUnexpectedToken(),ce=se);!this.eof()&&(oe=this.codePointAt(this.index),ct.Character.isIdentifierPart(oe));)ce+=se=ct.Character.fromCodePoint(oe),this.index+=se.length,92===oe&&(ce=ce.substr(0,ce.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,se=this.scanUnicodeCodePointEscape()):(null===(se=this.scanHexEscape("u"))||"\\"===se||!ct.Character.isIdentifierPart(se.charCodeAt(0)))&&this.throwUnexpectedToken(),ce+=se);return ce},me.prototype.octalToDecimal=function(oe){var ce="0"!==oe,se=Ze(oe);return!this.eof()&&ct.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ce=!0,se=8*se+Ze(this.source[this.index++]),"0123".indexOf(oe)>=0&&!this.eof()&&ct.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(se=8*se+Ze(this.source[this.index++]))),{code:se,octal:ce}},me.prototype.scanIdentifier=function(){var oe,ce=this.index,se=92===this.source.charCodeAt(ce)?this.getComplexIdentifier():this.getIdentifier();if(3!=(oe=1===se.length?3:this.isKeyword(se)?4:"null"===se?5:"true"===se||"false"===se?1:3)&&ce+se.length!==this.index){var T=this.index;this.index=ce,this.tolerateUnexpectedToken(ze.Messages.InvalidEscapedReservedWord),this.index=T}return{type:oe,value:se,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ce,end:this.index}},me.prototype.scanPunctuator=function(){var oe=this.index,ce=this.source[this.index];switch(ce){case"(":case"{":"{"===ce&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,ce="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(ce=this.source.substr(this.index,4))?this.index+=4:"==="===(ce=ce.substr(0,3))||"!=="===ce||">>>"===ce||"<<="===ce||">>="===ce||"**="===ce?this.index+=3:"&&"===(ce=ce.substr(0,2))||"||"===ce||"=="===ce||"!="===ce||"+="===ce||"-="===ce||"*="===ce||"/="===ce||"++"===ce||"--"===ce||"<<"===ce||">>"===ce||"&="===ce||"|="===ce||"^="===ce||"%="===ce||"<="===ce||">="===ce||"=>"===ce||"**"===ce?this.index+=2:"<>=!+-*%&|^/".indexOf(ce=this.source[this.index])>=0&&++this.index}return this.index===oe&&this.throwUnexpectedToken(),{type:7,value:ce,lineNumber:this.lineNumber,lineStart:this.lineStart,start:oe,end:this.index}},me.prototype.scanHexLiteral=function(oe){for(var ce="";!this.eof()&&ct.Character.isHexDigit(this.source.charCodeAt(this.index));)ce+=this.source[this.index++];return 0===ce.length&&this.throwUnexpectedToken(),ct.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+ce,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:oe,end:this.index}},me.prototype.scanBinaryLiteral=function(oe){for(var se,ce="";!this.eof()&&("0"===(se=this.source[this.index])||"1"===se);)ce+=this.source[this.index++];return 0===ce.length&&this.throwUnexpectedToken(),this.eof()||(se=this.source.charCodeAt(this.index),(ct.Character.isIdentifierStart(se)||ct.Character.isDecimalDigit(se))&&this.throwUnexpectedToken()),{type:6,value:parseInt(ce,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:oe,end:this.index}},me.prototype.scanOctalLiteral=function(oe,ce){var se="",T=!1;for(ct.Character.isOctalDigit(oe.charCodeAt(0))?(T=!0,se="0"+this.source[this.index++]):++this.index;!this.eof()&&ct.Character.isOctalDigit(this.source.charCodeAt(this.index));)se+=this.source[this.index++];return!T&&0===se.length&&this.throwUnexpectedToken(),(ct.Character.isIdentifierStart(this.source.charCodeAt(this.index))||ct.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(se,8),octal:T,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ce,end:this.index}},me.prototype.isImplicitOctalLiteral=function(){for(var oe=this.index+1;oe=0&&(T=T.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(F,ee,Ae){var Je=parseInt(ee||Ae,16);return Je>1114111&&A.throwUnexpectedToken(ze.Messages.InvalidRegExp),Je<=65535?String.fromCharCode(Je):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(T)}catch{this.throwUnexpectedToken(ze.Messages.InvalidRegExp)}try{return new RegExp(oe,ce)}catch{return null}},me.prototype.scanRegExpBody=function(){var oe=this.source[this.index];Ie.assert("/"===oe,"Regular expression literal must start with a slash");for(var ce=this.source[this.index++],se=!1,T=!1;!this.eof();)if(ce+=oe=this.source[this.index++],"\\"===oe)oe=this.source[this.index++],ct.Character.isLineTerminator(oe.charCodeAt(0))&&this.throwUnexpectedToken(ze.Messages.UnterminatedRegExp),ce+=oe;else if(ct.Character.isLineTerminator(oe.charCodeAt(0)))this.throwUnexpectedToken(ze.Messages.UnterminatedRegExp);else if(se)"]"===oe&&(se=!1);else{if("/"===oe){T=!0;break}"["===oe&&(se=!0)}return T||this.throwUnexpectedToken(ze.Messages.UnterminatedRegExp),ce.substr(1,ce.length-2)},me.prototype.scanRegExpFlags=function(){for(var ce="";!this.eof();){var se=this.source[this.index];if(!ct.Character.isIdentifierPart(se.charCodeAt(0)))break;if(++this.index,"\\"!==se||this.eof())ce+=se;else if("u"===(se=this.source[this.index])){++this.index;var T=this.index,A=this.scanHexEscape("u");if(null!==A)for(ce+=A;T=55296&&oe<57343&&ct.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},me}();ke.Scanner=Ve},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.TokenName={},ke.TokenName[1]="Boolean",ke.TokenName[2]="",ke.TokenName[3]="Identifier",ke.TokenName[4]="Keyword",ke.TokenName[5]="Null",ke.TokenName[6]="Numeric",ke.TokenName[7]="Punctuator",ke.TokenName[8]="String",ke.TokenName[9]="RegularExpression",ke.TokenName[10]="Template"},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(10),ct=nt(12),ze=nt(13),_e=function(){function Ve(){this.values=[],this.curly=this.paren=-1}return Ve.prototype.beforeFunctionExpression=function(me){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(me)>=0},Ve.prototype.isRegexStart=function(){var me=this.values[this.values.length-1],oe=null!==me;switch(me){case"this":case"]":oe=!1;break;case")":var ce=this.values[this.paren-1];oe="if"===ce||"while"===ce||"for"===ce||"with"===ce;break;case"}":if(oe=!1,"function"===this.values[this.curly-3])oe=!!(se=this.values[this.curly-4])&&!this.beforeFunctionExpression(se);else if("function"===this.values[this.curly-4]){var se;oe=!(se=this.values[this.curly-5])||!this.beforeFunctionExpression(se)}}return oe},Ve.prototype.push=function(me){7===me.type||4===me.type?("{"===me.value?this.curly=this.values.length:"("===me.value&&(this.paren=this.values.length),this.values.push(me.value)):this.values.push(null)},Ve}(),Ze=function(){function Ve(me,oe){this.errorHandler=new Ie.ErrorHandler,this.errorHandler.tolerant=!!oe&&"boolean"==typeof oe.tolerant&&oe.tolerant,this.scanner=new ct.Scanner(me,this.errorHandler),this.scanner.trackComment=!!oe&&"boolean"==typeof oe.comment&&oe.comment,this.trackRange=!!oe&&"boolean"==typeof oe.range&&oe.range,this.trackLoc=!!oe&&"boolean"==typeof oe.loc&&oe.loc,this.buffer=[],this.reader=new _e}return Ve.prototype.errors=function(){return this.errorHandler.errors},Ve.prototype.getNextToken=function(){if(0===this.buffer.length){var me=this.scanner.scanComments();if(this.scanner.trackComment)for(var oe=0;oe=se.status}function Ze(ce){try{ce.dispatchEvent(new MouseEvent("click"))}catch{var se=document.createEvent("MouseEvents");se.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ce.dispatchEvent(se)}}var Ve="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,me=Ve.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),oe=Ve.saveAs||("object"!=typeof window||window!==Ve?function(){}:"download"in HTMLAnchorElement.prototype&&!me?function(ce,se,T){var A=Ve.URL||Ve.webkitURL,F=document.createElement("a");F.download=se=se||ce.name||"download",F.rel="noopener","string"==typeof ce?(F.href=ce,F.origin===location.origin?Ze(F):_e(F.href)?ze(ce,se,T):Ze(F,F.target="_blank")):(F.href=A.createObjectURL(ce),setTimeout(function(){A.revokeObjectURL(F.href)},4e4),setTimeout(function(){Ze(F)},0))}:"msSaveOrOpenBlob"in navigator?function(ce,se,T){if(se=se||ce.name||"download","string"!=typeof ce)navigator.msSaveOrOpenBlob(function ct(ce,se){return typeof se>"u"?se={autoBom:!1}:"object"!=typeof se&&(console.warn("Deprecated: Expected third argument to be a object"),se={autoBom:!se}),se.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ce.type)?new Blob(["\ufeff",ce],{type:ce.type}):ce}(ce,T),se);else if(_e(ce))ze(ce,se,T);else{var A=document.createElement("a");A.href=ce,A.target="_blank",setTimeout(function(){Ze(A)})}}:function(ce,se,T,A){if((A=A||open("","_blank"))&&(A.document.title=A.document.body.innerText="downloading..."),"string"==typeof ce)return ze(ce,se,T);var F="application/octet-stream"===ce.type,ee=/constructor/i.test(Ve.HTMLElement)||Ve.safari,Ae=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ae||F&&ee||me)&&typeof FileReader<"u"){var Je=new FileReader;Je.onloadend=function(){var Gt=Je.result;Gt=Ae?Gt:Gt.replace(/^data:[^;]*;/,"data:attachment/file;"),A?A.location.href=Gt:location=Gt,A=null},Je.readAsDataURL(ce)}else{var Ct=Ve.URL||Ve.webkitURL,Ft=Ct.createObjectURL(ce);A?A.location=Ft:location.href=Ft,A=null,setTimeout(function(){Ct.revokeObjectURL(Ft)},4e4)}});Ve.saveAs=oe.saveAs=oe,Yt.exports=oe})?ke.apply(Dn,[]):ke)&&(Yt.exports=Ie)},461:(Yt,Dn)=>{Dn.read=function(ke,nt,Ie,ct,ze){var _e,Ze,Ve=8*ze-ct-1,me=(1<>1,ce=-7,se=Ie?ze-1:0,T=Ie?-1:1,A=ke[nt+se];for(se+=T,_e=A&(1<<-ce)-1,A>>=-ce,ce+=Ve;ce>0;_e=256*_e+ke[nt+se],se+=T,ce-=8);for(Ze=_e&(1<<-ce)-1,_e>>=-ce,ce+=ct;ce>0;Ze=256*Ze+ke[nt+se],se+=T,ce-=8);if(0===_e)_e=1-oe;else{if(_e===me)return Ze?NaN:1/0*(A?-1:1);Ze+=Math.pow(2,ct),_e-=oe}return(A?-1:1)*Ze*Math.pow(2,_e-ct)},Dn.write=function(ke,nt,Ie,ct,ze,_e){var Ze,Ve,me,oe=8*_e-ze-1,ce=(1<>1,T=23===ze?Math.pow(2,-24)-Math.pow(2,-77):0,A=ct?0:_e-1,F=ct?1:-1,ee=nt<0||0===nt&&1/nt<0?1:0;for(nt=Math.abs(nt),isNaN(nt)||nt===1/0?(Ve=isNaN(nt)?1:0,Ze=ce):(Ze=Math.floor(Math.log(nt)/Math.LN2),nt*(me=Math.pow(2,-Ze))<1&&(Ze--,me*=2),(nt+=Ze+se>=1?T/me:T*Math.pow(2,1-se))*me>=2&&(Ze++,me/=2),Ze+se>=ce?(Ve=0,Ze=ce):Ze+se>=1?(Ve=(nt*me-1)*Math.pow(2,ze),Ze+=se):(Ve=nt*Math.pow(2,se-1)*Math.pow(2,ze),Ze=0));ze>=8;ke[Ie+A]=255&Ve,A+=F,Ve/=256,ze-=8);for(Ze=Ze<0;ke[Ie+A]=255&Ze,A+=F,Ze/=256,oe-=8);ke[Ie+A-F]|=128*ee}},870:(Yt,Dn,ke)=>{"use strict";var nt=ke(133);Yt.exports=nt},133:(Yt,Dn,ke)=>{"use strict";var nt=ke(840),Ie=ke(34);function ct(ze){return function(){throw new Error("Function "+ze+" is deprecated and cannot be used.")}}Yt.exports.Type=ke(647),Yt.exports.Schema=ke(372),Yt.exports.FAILSAFE_SCHEMA=ke(746),Yt.exports.JSON_SCHEMA=ke(147),Yt.exports.CORE_SCHEMA=ke(192),Yt.exports.DEFAULT_SAFE_SCHEMA=ke(31),Yt.exports.DEFAULT_FULL_SCHEMA=ke(94),Yt.exports.load=nt.load,Yt.exports.loadAll=nt.loadAll,Yt.exports.safeLoad=nt.safeLoad,Yt.exports.safeLoadAll=nt.safeLoadAll,Yt.exports.dump=Ie.dump,Yt.exports.safeDump=Ie.safeDump,Yt.exports.YAMLException=ke(314),Yt.exports.MINIMAL_SCHEMA=ke(746),Yt.exports.SAFE_SCHEMA=ke(31),Yt.exports.DEFAULT_SCHEMA=ke(94),Yt.exports.scan=ct("scan"),Yt.exports.parse=ct("parse"),Yt.exports.compose=ct("compose"),Yt.exports.addConstructor=ct("addConstructor")},997:Yt=>{"use strict";function Dn(_e){return typeof _e>"u"||null===_e}Yt.exports.isNothing=Dn,Yt.exports.isObject=function ke(_e){return"object"==typeof _e&&null!==_e},Yt.exports.toArray=function nt(_e){return Array.isArray(_e)?_e:Dn(_e)?[]:[_e]},Yt.exports.repeat=function ct(_e,Ze){var me,Ve="";for(me=0;me{"use strict";var nt=ke(997),Ie=ke(314),ct=ke(94),ze=ke(31),_e=Object.prototype.toString,Ze=Object.prototype.hasOwnProperty,Ve=9,me=10,oe=13,ce=32,se=33,T=34,A=35,F=37,ee=38,Ae=39,Je=42,Ct=44,Ft=45,Gt=58,gn=61,en=62,Ai=63,$r=64,Ur=91,ss=93,za=96,_r=123,gu=124,_a=125,vn={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},wd=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Jn(fe){var mt,Ot,Jt;if(mt=fe.toString(16).toUpperCase(),fe<=255)Ot="x",Jt=2;else if(fe<=65535)Ot="u",Jt=4;else{if(!(fe<=4294967295))throw new Ie("code point within a string may not be greater than 0xFFFFFFFF");Ot="U",Jt=8}return"\\"+Ot+nt.repeat("0",Jt-mt.length)+mt}function Oc(fe){this.schema=fe.schema||ct,this.indent=Math.max(1,fe.indent||2),this.noArrayIndent=fe.noArrayIndent||!1,this.skipInvalid=fe.skipInvalid||!1,this.flowLevel=nt.isNothing(fe.flowLevel)?-1:fe.flowLevel,this.styleMap=function Cd(fe,mt){var Ot,Jt,qt,Pt,cn,Wt,Ge;if(null===mt)return{};for(Ot={},qt=0,Pt=(Jt=Object.keys(mt)).length;qt0?fe.charCodeAt(Pt-1):null,Nr=Nr&&ll(cn,Wt)}else{for(Pt=0;PtJt&&" "!==fe[bn+1],bn=Pt);else if(!ba(cn))return Ga;Wt=Pt>0?fe.charCodeAt(Pt-1):null,Nr=Nr&&ll(cn,Wt)}qe=qe||_t&&Pt-bn-1>Jt&&" "!==fe[bn+1]}return Ge||qe?Ot>9&&Sd(fe)?Ga:qe?yu:kd:Nr&&!qt(fe)?Ic:Nc}(mt,Jt||fe.flowLevel>-1&&Ot>=fe.flowLevel,fe.indent,Pt,function Wt(Ge){return function _o(fe,mt){var Ot,Jt;for(Ot=0,Jt=fe.implicitTypes.length;Ot"+Ml(mt,fe.indent)+De(vu(function Y(fe,mt){for(var Pt,cn,Ot=/(\n+)([^\n]*)/g,Jt=(qe=void 0,qe=fe.indexOf("\n"),Ot.lastIndex=qe=-1!==qe?qe:fe.length,Q(fe.slice(0,qe),mt)),qt="\n"===fe[0]||" "===fe[0];cn=Ot.exec(fe);){var Ge=cn[2];Pt=" "===Ge[0],Jt+=cn[1]+(qt||Pt||""===Ge?"":"\n")+Q(Ge,mt),qt=Pt}var qe;return Jt}(mt,Pt),qt));case Ga:return'"'+function Ne(fe){for(var Ot,Jt,qt,mt="",Pt=0;Pt=55296&&Ot<=56319&&(Jt=fe.charCodeAt(Pt+1))>=56320&&Jt<=57343?(mt+=Jn(1024*(Ot-55296)+Jt-56320+65536),Pt++):mt+=!(qt=vn[Ot])&&ba(Ot)?fe[Pt]:qt||Jn(Ot);return mt}(mt)+'"';default:throw new Ie("impossible error: invalid scalar style")}}()}function Ml(fe,mt){var Ot=Sd(fe)?String(mt):"",Jt="\n"===fe[fe.length-1];return Ot+(!Jt||"\n"!==fe[fe.length-2]&&"\n"!==fe?Jt?"":"-":"+")+"\n"}function De(fe){return"\n"===fe[fe.length-1]?fe.slice(0,-1):fe}function Q(fe,mt){if(""===fe||" "===fe[0])return fe;for(var Jt,Pt,Ot=/ [^ ]/g,qt=0,cn=0,Wt=0,Ge="";Jt=Ot.exec(fe);)(Wt=Jt.index)-qt>mt&&(Ge+="\n"+fe.slice(qt,Pt=cn>qt?cn:Wt),qt=Pt+1),cn=Wt;return Ge+="\n",(Ge+=fe.length-qt>mt&&cn>qt?fe.slice(qt,cn)+"\n"+fe.slice(cn+1):fe.slice(qt)).slice(1)}function M(fe,mt,Ot){var Jt,qt,Pt,cn,Wt,Ge;for(Pt=0,cn=(qt=Ot?fe.explicitTypes:fe.implicitTypes).length;Pt tag resolver accepts not "'+Ge+'" style');Jt=Wt.represent[Ge](mt,Ge)}fe.dump=Jt}return!0}return!1}function ot(fe,mt,Ot,Jt,qt,Pt){fe.tag=null,fe.dump=Ot,M(fe,Ot,!1)||M(fe,Ot,!0);var cn=_e.call(fe.dump);Jt&&(Jt=fe.flowLevel<0||fe.flowLevel>mt);var Ge,qe,Wt="[object Object]"===cn||"[object Array]"===cn;if(Wt&&(qe=-1!==(Ge=fe.duplicates.indexOf(Ot))),(null!==fe.tag&&"?"!==fe.tag||qe||2!==fe.indent&&mt>0)&&(qt=!1),qe&&fe.usedDuplicates[Ge])fe.dump="*ref_"+Ge;else{if(Wt&&qe&&!fe.usedDuplicates[Ge]&&(fe.usedDuplicates[Ge]=!0),"[object Object]"===cn)Jt&&0!==Object.keys(fe.dump).length?(function Zi(fe,mt,Ot,Jt){var Wt,Ge,qe,_t,bn,Nr,qt="",Pt=fe.tag,cn=Object.keys(Ot);if(!0===fe.sortKeys)cn.sort();else if("function"==typeof fe.sortKeys)cn.sort(fe.sortKeys);else if(fe.sortKeys)throw new Ie("sortKeys must be a boolean or a function");for(Wt=0,Ge=cn.length;Wt1024)&&(fe.dump&&me===fe.dump.charCodeAt(0)?Nr+="?":Nr+="? "),Nr+=fe.dump,bn&&(Nr+=No(fe,mt)),ot(fe,mt+1,_t,!0,bn)&&(fe.dump&&me===fe.dump.charCodeAt(0)?Nr+=":":Nr+=": ",qt+=Nr+=fe.dump));fe.tag=Pt,fe.dump=qt||"{}"}(fe,mt,fe.dump,qt),qe&&(fe.dump="&ref_"+Ge+fe.dump)):(function Kt(fe,mt,Ot){var cn,Wt,Ge,qe,_t,Jt="",qt=fe.tag,Pt=Object.keys(Ot);for(cn=0,Wt=Pt.length;cn1024&&(_t+="? "),_t+=fe.dump+(fe.condenseFlow?'"':"")+":"+(fe.condenseFlow?"":" "),ot(fe,mt,qe,!1,!1)&&(Jt+=_t+=fe.dump));fe.tag=qt,fe.dump="{"+Jt+"}"}(fe,mt,fe.dump),qe&&(fe.dump="&ref_"+Ge+" "+fe.dump));else if("[object Array]"===cn){var _t=fe.noArrayIndent&&mt>0?mt-1:mt;Jt&&0!==fe.dump.length?(function Ht(fe,mt,Ot,Jt){var cn,Wt,qt="",Pt=fe.tag;for(cn=0,Wt=Ot.length;cn "+fe.dump)}return!0}function Dt(fe,mt){var qt,Pt,Ot=[],Jt=[];for(Ut(fe,Ot,Jt),qt=0,Pt=Jt.length;qt{"use strict";function Dn(ke,nt){Error.call(this),this.name="YAMLException",this.reason=ke,this.mark=nt,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Dn.prototype=Object.create(Error.prototype)).constructor=Dn,Dn.prototype.toString=function(nt){var Ie=this.name+": ";return Ie+=this.reason||"(unknown reason)",!nt&&this.mark&&(Ie+=" "+this.mark.toString()),Ie},Yt.exports=Dn},840:(Yt,Dn,ke)=>{"use strict";var nt=ke(997),Ie=ke(314),ct=ke(48),ze=ke(31),_e=ke(94),Ze=Object.prototype.hasOwnProperty,Ve=1,me=2,oe=3,ce=4,se=1,T=2,A=3,F=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ee=/[\x85\u2028\u2029]/,Ae=/[,\[\]\{\}]/,Je=/^(?:!|!!|![a-z\-]+!)$/i,Ct=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ft(M){return Object.prototype.toString.call(M)}function Gt(M){return 10===M||13===M}function gn(M){return 9===M||32===M}function en(M){return 9===M||32===M||10===M||13===M}function Ai(M){return 44===M||91===M||93===M||123===M||125===M}function $r(M){var ot;return 48<=M&&M<=57?M-48:97<=(ot=32|M)&&ot<=102?ot-97+10:-1}function Ur(M){return 120===M?2:117===M?4:85===M?8:0}function ss(M){return 48<=M&&M<=57?M-48:-1}function za(M){return 48===M?"\0":97===M?"\x07":98===M?"\b":116===M||9===M?"\t":110===M?"\n":118===M?"\v":102===M?"\f":114===M?"\r":101===M?"\x1b":32===M?" ":34===M?'"':47===M?"/":92===M?"\\":78===M?"\x85":95===M?"\xa0":76===M?"\u2028":80===M?"\u2029":""}function _r(M){return M<=65535?String.fromCharCode(M):String.fromCharCode(55296+(M-65536>>10),56320+(M-65536&1023))}for(var gu=new Array(256),_a=new Array(256),vn=0;vn<256;vn++)gu[vn]=za(vn)?1:0,_a[vn]=za(vn);function wd(M,ot){this.input=M,this.filename=ot.filename||null,this.schema=ot.schema||_e,this.onWarning=ot.onWarning||null,this.legacy=ot.legacy||!1,this.json=ot.json||!1,this.listener=ot.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=M.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Cd(M,ot){return new Ie(ot,new ct(M.filename,M.input,M.position,M.line,M.position-M.lineStart))}function Jn(M,ot){throw Cd(M,ot)}function Oc(M,ot){M.onWarning&&M.onWarning.call(null,Cd(M,ot))}var vu={YAML:function(ot,Dt,Ut){var Bt,hn,fe;null!==ot.version&&Jn(ot,"duplication of %YAML directive"),1!==Ut.length&&Jn(ot,"YAML directive accepts exactly one argument"),null===(Bt=/^([0-9]+)\.([0-9]+)$/.exec(Ut[0]))&&Jn(ot,"ill-formed argument of the YAML directive"),hn=parseInt(Bt[1],10),fe=parseInt(Bt[2],10),1!==hn&&Jn(ot,"unacceptable YAML version of the document"),ot.version=Ut[0],ot.checkLineBreaks=fe<2,1!==fe&&2!==fe&&Oc(ot,"unsupported YAML version of the document")},TAG:function(ot,Dt,Ut){var Bt,hn;2!==Ut.length&&Jn(ot,"TAG directive accepts exactly two arguments"),hn=Ut[1],Je.test(Bt=Ut[0])||Jn(ot,"ill-formed tag handle (first argument) of the TAG directive"),Ze.call(ot.tagMap,Bt)&&Jn(ot,'there is a previously declared suffix for "'+Bt+'" tag handle'),Ct.test(hn)||Jn(ot,"ill-formed tag prefix (second argument) of the TAG directive"),ot.tagMap[Bt]=hn}};function No(M,ot,Dt,Ut){var Bt,hn,fe,mt;if(ot1&&(M.result+=nt.repeat("\n",ot-1))}function Ga(M,ot){var Dt,Ot,Ut=M.tag,Bt=M.anchor,hn=[],mt=!1;for(null!==M.anchor&&(M.anchorMap[M.anchor]=hn),Ot=M.input.charCodeAt(M.position);0!==Ot&&45===Ot&&en(M.input.charCodeAt(M.position+1));)if(mt=!0,M.position++,Yr(M,!0,-1)&&M.lineIndent<=ot)hn.push(null),Ot=M.input.charCodeAt(M.position);else if(Dt=M.line,Y(M,ot,oe,!1,!0),hn.push(M.result),Yr(M,!0,-1),Ot=M.input.charCodeAt(M.position),(M.line===Dt||M.lineIndent>ot)&&0!==Ot)Jn(M,"bad indentation of a sequence entry");else if(M.lineIndentot?Ot=1:M.lineIndent===ot?Ot=0:M.lineIndentot?Ot=1:M.lineIndent===ot?Ot=0:M.lineIndentot)&&(Y(M,ot,ce,!0,Bt)&&(Ge?cn=M.result:Wt=M.result),Ge||(io(M,Jt,qt,Pt,cn,Wt,hn,fe),Pt=cn=Wt=null),Yr(M,!0,-1),_t=M.input.charCodeAt(M.position)),M.lineIndent>ot&&0!==_t)Jn(M,"bad indentation of a mapping entry");else if(M.lineIndent=0))break;0===qt?Jn(M,"bad explicit indentation width of a block scalar; it cannot be less than one"):fe?Jn(M,"repeat of an indentation width identifier"):(mt=ot+qt-1,fe=!0)}if(gn(Pt)){do{Pt=M.input.charCodeAt(++M.position)}while(gn(Pt));if(35===Pt)do{Pt=M.input.charCodeAt(++M.position)}while(!Gt(Pt)&&0!==Pt)}for(;0!==Pt;){for(ba(M),M.lineIndent=0,Pt=M.input.charCodeAt(M.position);(!fe||M.lineIndentmt&&(mt=M.lineIndent),Gt(Pt))Ot++;else{if(M.lineIndent0){for(Bt=fe,hn=0;Bt>0;Bt--)(fe=$r(mt=M.input.charCodeAt(++M.position)))>=0?hn=(hn<<4)+fe:Jn(M,"expected hexadecimal character");M.result+=_r(hn),M.position++}else Jn(M,"unknown escape sequence");Dt=Ut=M.position}else Gt(mt)?(No(M,Dt,Ut,!0),Kl(M,Yr(M,!1,ot)),Dt=Ut=M.position):M.position===M.lineStart&&ll(M)?Jn(M,"unexpected end of the document within a double quoted scalar"):(M.position++,Ut=M.position)}Jn(M,"unexpected end of the stream within a double quoted scalar")}(M,Ge)?qt=!0:function De(M){var ot,Dt,Ut;if(42!==(Ut=M.input.charCodeAt(M.position)))return!1;for(Ut=M.input.charCodeAt(++M.position),ot=M.position;0!==Ut&&!en(Ut)&&!Ai(Ut);)Ut=M.input.charCodeAt(++M.position);return M.position===ot&&Jn(M,"name of an alias node must contain at least one character"),Dt=M.input.slice(ot,M.position),Ze.call(M.anchorMap,Dt)||Jn(M,'unidentified alias "'+Dt+'"'),M.result=M.anchorMap[Dt],Yr(M,!0,-1),!0}(M)?(qt=!0,(null!==M.tag||null!==M.anchor)&&Jn(M,"alias node should not have any properties")):function Sd(M,ot,Dt){var Bt,hn,fe,mt,Ot,Jt,qt,Wt,Pt=M.kind,cn=M.result;if(en(Wt=M.input.charCodeAt(M.position))||Ai(Wt)||35===Wt||38===Wt||42===Wt||33===Wt||124===Wt||62===Wt||39===Wt||34===Wt||37===Wt||64===Wt||96===Wt||(63===Wt||45===Wt)&&(en(Bt=M.input.charCodeAt(M.position+1))||Dt&&Ai(Bt)))return!1;for(M.kind="scalar",M.result="",hn=fe=M.position,mt=!1;0!==Wt;){if(58===Wt){if(en(Bt=M.input.charCodeAt(M.position+1))||Dt&&Ai(Bt))break}else if(35===Wt){if(en(M.input.charCodeAt(M.position-1)))break}else{if(M.position===M.lineStart&&ll(M)||Dt&&Ai(Wt))break;if(Gt(Wt)){if(Ot=M.line,Jt=M.lineStart,qt=M.lineIndent,Yr(M,!1,-1),M.lineIndent>=ot){mt=!0,Wt=M.input.charCodeAt(M.position);continue}M.position=fe,M.line=Ot,M.lineStart=Jt,M.lineIndent=qt;break}}mt&&(No(M,hn,fe,!1),Kl(M,M.line-Ot),hn=fe=M.position,mt=!1),gn(Wt)||(fe=M.position+1),Wt=M.input.charCodeAt(++M.position)}return No(M,hn,fe,!1),!!M.result||(M.kind=Pt,M.result=cn,!1)}(M,Ge,Ve===Dt)&&(qt=!0,null===M.tag&&(M.tag="?")),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):0===Ot&&(qt=mt&&Ga(M,qe))),null!==M.tag&&"!"!==M.tag)if("?"===M.tag){for(null!==M.result&&"scalar"!==M.kind&&Jn(M,'unacceptable node kind for ! tag; it should be "scalar", not "'+M.kind+'"'),Pt=0,cn=M.implicitTypes.length;Pt tag; it should be "'+Wt.kind+'", not "'+M.kind+'"'),Wt.resolve(M.result)?(M.result=Wt.construct(M.result),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):Jn(M,"cannot resolve a node with !<"+M.tag+"> explicit tag")):Jn(M,"unknown tag !<"+M.tag+">");return null!==M.listener&&M.listener("close",M),null!==M.tag||null!==M.anchor||qt}function Q(M){var Dt,Ut,Bt,fe,ot=M.position,hn=!1;for(M.version=null,M.checkLineBreaks=M.legacy,M.tagMap={},M.anchorMap={};0!==(fe=M.input.charCodeAt(M.position))&&(Yr(M,!0,-1),fe=M.input.charCodeAt(M.position),!(M.lineIndent>0||37!==fe));){for(hn=!0,fe=M.input.charCodeAt(++M.position),Dt=M.position;0!==fe&&!en(fe);)fe=M.input.charCodeAt(++M.position);for(Bt=[],(Ut=M.input.slice(Dt,M.position)).length<1&&Jn(M,"directive name must not be less than one character in length");0!==fe;){for(;gn(fe);)fe=M.input.charCodeAt(++M.position);if(35===fe){do{fe=M.input.charCodeAt(++M.position)}while(0!==fe&&!Gt(fe));break}if(Gt(fe))break;for(Dt=M.position;0!==fe&&!en(fe);)fe=M.input.charCodeAt(++M.position);Bt.push(M.input.slice(Dt,M.position))}0!==fe&&ba(M),Ze.call(vu,Ut)?vu[Ut](M,Ut,Bt):Oc(M,'unknown document directive "'+Ut+'"')}Yr(M,!0,-1),0===M.lineIndent&&45===M.input.charCodeAt(M.position)&&45===M.input.charCodeAt(M.position+1)&&45===M.input.charCodeAt(M.position+2)?(M.position+=3,Yr(M,!0,-1)):hn&&Jn(M,"directives end mark is expected"),Y(M,M.lineIndent-1,ce,!1,!0),Yr(M,!0,-1),M.checkLineBreaks&&ee.test(M.input.slice(ot,M.position))&&Oc(M,"non-ASCII line breaks are interpreted as content"),M.documents.push(M.result),M.position===M.lineStart&&ll(M)?46===M.input.charCodeAt(M.position)&&(M.position+=3,Yr(M,!0,-1)):M.position"u"&&(Dt=ot,ot=null);var Ut=Ne(M,Dt);if("function"!=typeof ot)return Ut;for(var Bt=0,hn=Ut.length;Bt"u"&&(Dt=ot,ot=null),et(M,ot,nt.extend({schema:ze},Dt))},Yt.exports.safeLoad=function Zi(M,ot){return Ht(M,nt.extend({schema:ze},ot))}},48:(Yt,Dn,ke)=>{"use strict";var nt=ke(997);function Ie(ct,ze,_e,Ze,Ve){this.name=ct,this.buffer=ze,this.position=_e,this.line=Ze,this.column=Ve}Ie.prototype.getSnippet=function(ze,_e){var Ze,Ve,me,oe,ce;if(!this.buffer)return null;for(ze=ze||4,_e=_e||75,Ze="",Ve=this.position;Ve>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(Ve-1));)if(this.position-(Ve-=1)>_e/2-1){Ze=" ... ",Ve+=5;break}for(me="",oe=this.position;oe_e/2-1){me=" ... ",oe-=5;break}return ce=this.buffer.slice(Ve,oe),nt.repeat(" ",ze)+Ze+ce+me+"\n"+nt.repeat(" ",ze+this.position-Ve+Ze.length)+"^"},Ie.prototype.toString=function(ze){var _e,Ze="";return this.name&&(Ze+='in "'+this.name+'" '),Ze+="at line "+(this.line+1)+", column "+(this.column+1),ze||(_e=this.getSnippet())&&(Ze+=":\n"+_e),Ze},Yt.exports=Ie},372:(Yt,Dn,ke)=>{"use strict";var nt=ke(997),Ie=ke(314),ct=ke(647);function ze(Ve,me,oe){var ce=[];return Ve.include.forEach(function(se){oe=ze(se,me,oe)}),Ve[me].forEach(function(se){oe.forEach(function(T,A){T.tag===se.tag&&T.kind===se.kind&&ce.push(A)}),oe.push(se)}),oe.filter(function(se,T){return-1===ce.indexOf(T)})}function Ze(Ve){this.include=Ve.include||[],this.implicit=Ve.implicit||[],this.explicit=Ve.explicit||[],this.implicit.forEach(function(me){if(me.loadKind&&"scalar"!==me.loadKind)throw new Ie("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=ze(this,"implicit",[]),this.compiledExplicit=ze(this,"explicit",[]),this.compiledTypeMap=function _e(){var me,oe,Ve={scalar:{},sequence:{},mapping:{},fallback:{}};function ce(se){Ve[se.kind][se.tag]=Ve.fallback[se.tag]=se}for(me=0,oe=arguments.length;me{"use strict";var nt=ke(372);Yt.exports=new nt({include:[ke(147)]})},94:(Yt,Dn,ke)=>{"use strict";var nt=ke(372);Yt.exports=nt.DEFAULT=new nt({include:[ke(31)],explicit:[ke(771),ke(632),ke(716)]})},31:(Yt,Dn,ke)=>{"use strict";var nt=ke(372);Yt.exports=new nt({include:[ke(192)],implicit:[ke(934),ke(996)],explicit:[ke(486),ke(166),ke(711),ke(738)]})},746:(Yt,Dn,ke)=>{"use strict";var nt=ke(372);Yt.exports=new nt({explicit:[ke(464),ke(322),ke(71)]})},147:(Yt,Dn,ke)=>{"use strict";var nt=ke(372);Yt.exports=new nt({include:[ke(746)],implicit:[ke(568),ke(911),ke(877),ke(615)]})},647:(Yt,Dn,ke)=>{"use strict";var nt=ke(314),Ie=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ct=["scalar","sequence","mapping"];Yt.exports=function _e(Ze,Ve){if(Ve=Ve||{},Object.keys(Ve).forEach(function(me){if(-1===Ie.indexOf(me))throw new nt('Unknown option "'+me+'" is met in definition of "'+Ze+'" YAML type.')}),this.tag=Ze,this.kind=Ve.kind||null,this.resolve=Ve.resolve||function(){return!0},this.construct=Ve.construct||function(me){return me},this.instanceOf=Ve.instanceOf||null,this.predicate=Ve.predicate||null,this.represent=Ve.represent||null,this.defaultStyle=Ve.defaultStyle||null,this.styleAliases=function ze(Ze){var Ve={};return null!==Ze&&Object.keys(Ze).forEach(function(me){Ze[me].forEach(function(oe){Ve[String(oe)]=me})}),Ve}(Ve.styleAliases||null),-1===ct.indexOf(this.kind))throw new nt('Unknown kind "'+this.kind+'" is specified for "'+Ze+'" YAML type.')}},486:(Yt,Dn,ke)=>{"use strict";var nt;try{nt=ke(172).lW}catch{}var ct=ke(647),ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Yt.exports=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function _e(oe){if(null===oe)return!1;var ce,se,T=0,A=oe.length,F=ze;for(se=0;se64)){if(ce<0)return!1;T+=6}return T%8==0},construct:function Ze(oe){var ce,se,T=oe.replace(/[\r\n=]/g,""),A=T.length,F=ze,ee=0,Ae=[];for(ce=0;ce>16&255),Ae.push(ee>>8&255),Ae.push(255&ee)),ee=ee<<6|F.indexOf(T.charAt(ce));return 0==(se=A%4*6)?(Ae.push(ee>>16&255),Ae.push(ee>>8&255),Ae.push(255&ee)):18===se?(Ae.push(ee>>10&255),Ae.push(ee>>2&255)):12===se&&Ae.push(ee>>4&255),nt?nt.from?nt.from(Ae):new nt(Ae):Ae},predicate:function me(oe){return nt&&nt.isBuffer(oe)},represent:function Ve(oe){var T,A,ce="",se=0,F=oe.length,ee=ze;for(T=0;T>18&63],ce+=ee[se>>12&63],ce+=ee[se>>6&63],ce+=ee[63&se]),se=(se<<8)+oe[T];return 0==(A=F%3)?(ce+=ee[se>>18&63],ce+=ee[se>>12&63],ce+=ee[se>>6&63],ce+=ee[63&se]):2===A?(ce+=ee[se>>10&63],ce+=ee[se>>4&63],ce+=ee[se<<2&63],ce+=ee[64]):1===A&&(ce+=ee[se>>2&63],ce+=ee[se<<4&63],ce+=ee[64],ce+=ee[64]),ce}})},911:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function Ie(_e){if(null===_e)return!1;var Ze=_e.length;return 4===Ze&&("true"===_e||"True"===_e||"TRUE"===_e)||5===Ze&&("false"===_e||"False"===_e||"FALSE"===_e)},construct:function ct(_e){return"true"===_e||"True"===_e||"TRUE"===_e},predicate:function ze(_e){return"[object Boolean]"===Object.prototype.toString.call(_e)},represent:{lowercase:function(_e){return _e?"true":"false"},uppercase:function(_e){return _e?"TRUE":"FALSE"},camelcase:function(_e){return _e?"True":"False"}},defaultStyle:"lowercase"})},615:(Yt,Dn,ke)=>{"use strict";var nt=ke(997),Ie=ke(647),ct=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Ze=/^[-+]?[0-9]+e/;Yt.exports=new Ie("tag:yaml.org,2002:float",{kind:"scalar",resolve:function ze(oe){return!(null===oe||!ct.test(oe)||"_"===oe[oe.length-1])},construct:function _e(oe){var ce,se,T,A;return se="-"===(ce=oe.replace(/_/g,"").toLowerCase())[0]?-1:1,A=[],"+-".indexOf(ce[0])>=0&&(ce=ce.slice(1)),".inf"===ce?1===se?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===ce?NaN:ce.indexOf(":")>=0?(ce.split(":").forEach(function(F){A.unshift(parseFloat(F,10))}),ce=0,T=1,A.forEach(function(F){ce+=F*T,T*=60}),se*ce):se*parseFloat(ce,10)},predicate:function me(oe){return"[object Number]"===Object.prototype.toString.call(oe)&&(oe%1!=0||nt.isNegativeZero(oe))},represent:function Ve(oe,ce){var se;if(isNaN(oe))switch(ce){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===oe)switch(ce){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===oe)switch(ce){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nt.isNegativeZero(oe))return"-0.0";return se=oe.toString(10),Ze.test(se)?se.replace("e",".e"):se},defaultStyle:"lowercase"})},877:(Yt,Dn,ke)=>{"use strict";var nt=ke(997),Ie=ke(647);function ct(oe){return 48<=oe&&oe<=57||65<=oe&&oe<=70||97<=oe&&oe<=102}function ze(oe){return 48<=oe&&oe<=55}function _e(oe){return 48<=oe&&oe<=57}Yt.exports=new Ie("tag:yaml.org,2002:int",{kind:"scalar",resolve:function Ze(oe){if(null===oe)return!1;var A,ce=oe.length,se=0,T=!1;if(!ce)return!1;if(("-"===(A=oe[se])||"+"===A)&&(A=oe[++se]),"0"===A){if(se+1===ce)return!0;if("b"===(A=oe[++se])){for(se++;se=0?"0b"+oe.toString(2):"-0b"+oe.toString(2).slice(1)},octal:function(oe){return oe>=0?"0"+oe.toString(8):"-0"+oe.toString(8).slice(1)},decimal:function(oe){return oe.toString(10)},hexadecimal:function(oe){return oe>=0?"0x"+oe.toString(16).toUpperCase():"-0x"+oe.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Yt,Dn,ke)=>{"use strict";var nt;try{nt=ke(797)}catch{typeof window<"u"&&(nt=window.esprima)}var ct=ke(647);Yt.exports=new ct("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function ze(me){if(null===me)return!1;try{var ce=nt.parse("("+me+")",{range:!0});return!("Program"!==ce.type||1!==ce.body.length||"ExpressionStatement"!==ce.body[0].type||"ArrowFunctionExpression"!==ce.body[0].expression.type&&"FunctionExpression"!==ce.body[0].expression.type)}catch{return!1}},construct:function _e(me){var T,oe="("+me+")",ce=nt.parse(oe,{range:!0}),se=[];if("Program"!==ce.type||1!==ce.body.length||"ExpressionStatement"!==ce.body[0].type||"ArrowFunctionExpression"!==ce.body[0].expression.type&&"FunctionExpression"!==ce.body[0].expression.type)throw new Error("Failed to resolve function");return ce.body[0].expression.params.forEach(function(A){se.push(A.name)}),T=ce.body[0].expression.body.range,new Function(se,"BlockStatement"===ce.body[0].expression.body.type?oe.slice(T[0]+1,T[1]-1):"return "+oe.slice(T[0],T[1]))},predicate:function Ve(me){return"[object Function]"===Object.prototype.toString.call(me)},represent:function Ze(me){return me.toString()}})},632:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function Ie(Ze){if(null===Ze||0===Ze.length)return!1;var Ve=Ze,me=/\/([gim]*)$/.exec(Ze),oe="";return!("/"===Ve[0]&&(me&&(oe=me[1]),oe.length>3||"/"!==Ve[Ve.length-oe.length-1]))},construct:function ct(Ze){var Ve=Ze,me=/\/([gim]*)$/.exec(Ze),oe="";return"/"===Ve[0]&&(me&&(oe=me[1]),Ve=Ve.slice(1,Ve.length-oe.length-1)),new RegExp(Ve,oe)},predicate:function _e(Ze){return"[object RegExp]"===Object.prototype.toString.call(Ze)},represent:function ze(Ze){var Ve="/"+Ze.source+"/";return Ze.global&&(Ve+="g"),Ze.multiline&&(Ve+="m"),Ze.ignoreCase&&(Ve+="i"),Ve}})},771:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function Ie(){return!0},construct:function ct(){},predicate:function _e(Ze){return typeof Ze>"u"},represent:function ze(){return""}})},71:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Ie){return null!==Ie?Ie:{}}})},996:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function Ie(ct){return"<<"===ct||null===ct}})},568:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:null",{kind:"scalar",resolve:function Ie(_e){if(null===_e)return!0;var Ze=_e.length;return 1===Ze&&"~"===_e||4===Ze&&("null"===_e||"Null"===_e||"NULL"===_e)},construct:function ct(){return null},predicate:function ze(_e){return null===_e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},166:(Yt,Dn,ke)=>{"use strict";var nt=ke(647),Ie=Object.prototype.hasOwnProperty,ct=Object.prototype.toString;Yt.exports=new nt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function ze(Ze){if(null===Ze)return!0;var me,oe,ce,se,T,Ve=[],A=Ze;for(me=0,oe=A.length;me{"use strict";var nt=ke(647),Ie=Object.prototype.toString;Yt.exports=new nt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function ct(_e){if(null===_e)return!0;var Ze,Ve,me,oe,ce,se=_e;for(ce=new Array(se.length),Ze=0,Ve=se.length;Ze{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Ie){return null!==Ie?Ie:[]}})},738:(Yt,Dn,ke)=>{"use strict";var nt=ke(647),Ie=Object.prototype.hasOwnProperty;Yt.exports=new nt("tag:yaml.org,2002:set",{kind:"mapping",resolve:function ct(_e){if(null===_e)return!0;var Ze,Ve=_e;for(Ze in Ve)if(Ie.call(Ve,Ze)&&null!==Ve[Ze])return!1;return!0},construct:function ze(_e){return null!==_e?_e:{}}})},464:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Ie){return null!==Ie?Ie:""}})},934:(Yt,Dn,ke)=>{"use strict";var nt=ke(647),Ie=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ct=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Yt.exports=new nt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function ze(Ve){return null!==Ve&&(null!==Ie.exec(Ve)||null!==ct.exec(Ve))},construct:function _e(Ve){var me,oe,ce,se,T,A,F,Ft,ee=0,Ae=null;if(null===(me=Ie.exec(Ve))&&(me=ct.exec(Ve)),null===me)throw new Error("Date resolve error");if(oe=+me[1],ce=+me[2]-1,se=+me[3],!me[4])return new Date(Date.UTC(oe,ce,se));if(T=+me[4],A=+me[5],F=+me[6],me[7]){for(ee=me[7].slice(0,3);ee.length<3;)ee+="0";ee=+ee}return me[9]&&(Ae=6e4*(60*+me[10]+ +(me[11]||0)),"-"===me[9]&&(Ae=-Ae)),Ft=new Date(Date.UTC(oe,ce,se,T,A,F,ee)),Ae&&Ft.setTime(Ft.getTime()-Ae),Ft},instanceOf:Date,represent:function Ze(Ve){return Ve.toISOString()}})}},Yt=>{Yt(Yt.s=191)}]); \ No newline at end of file diff --git a/console/ui/dist/prod-nt/static/main.f133ecab0a8782e2.js b/console/ui/dist/prod-nt/static/main.f133ecab0a8782e2.js deleted file mode 100644 index 380f358dc5..0000000000 --- a/console/ui/dist/prod-nt/static/main.f133ecab0a8782e2.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{440:(Yt,Tn,De)=>{"use strict";function rt(t){return"function"==typeof t}let Oe=!1;const dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Oe&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Oe=t},get useDeprecatedSynchronousErrorHandling(){return Oe}};function Ge(t){setTimeout(()=>{throw t},0)}const _e={closed:!0,next(t){},error(t){if(dt.useDeprecatedSynchronousErrorHandling)throw t;Ge(t)},complete(){}},et=Array.isArray||(t=>t&&"number"==typeof t.length);function Ve(t){return null!==t&&"object"==typeof t}const se=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class ue{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof ue)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof se?e.errors:e),[])}ue.EMPTY=((t=new ue).closed=!0,t);const D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class O extends ue{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_e;break;case 1:if(!n){this.destination=_e;break}if("object"==typeof n){n instanceof O?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new te(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new te(this,n,e,i)}}[D](){return this}static create(n,e,i){const r=new O(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class te extends O{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;rt(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==_e&&(s=Object.create(e),rt(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;dt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=dt;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):Ge(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;Ge(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);dt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),dt.useDeprecatedSynchronousErrorHandling)throw i;Ge(i)}}__tryOrSetError(n,e,i){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return dt.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(Ge(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const kt="function"==typeof Symbol&&Symbol.observable||"@@observable";function jt(t){return t}function wn(t){return 0===t.length?jt:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let rn=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Je(t,n,e){if(t){if(t instanceof O)return t;if(t[D])return t[D]()}return t||n||e?new O(t,n,e):new O(_e)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||dt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),dt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){dt.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Me(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof O?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Mi(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[kt](){return this}pipe(...e){return 0===e.length?this:wn(e)(this)}toPromise(e){return new(e=Mi(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Mi(t){if(t||(t=dt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Xr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class hs extends ue{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Ya extends O{constructor(n){super(n),this.destination=n}}let tr=(()=>{class t extends rn{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[D](){return new Ya(this)}lift(e){const i=new mu(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Xr;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew mu(n,e),t})();class mu extends tr{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):ue.EMPTY}}function Sa(t){return t&&"function"==typeof t.schedule}function yn(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Cd(t,n))}}class Cd{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new kd(n,this.project,this.thisArg))}}class kd extends O{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Kn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function pl(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const nc=t=>{if(t&&"function"==typeof t[kt])return(t=>n=>{const e=t[kt]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Zr(t))return Kn(t);if(pl(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Ge),n))(t);if(t&&"function"==typeof t[Ro])return(t=>n=>{const e=t[Ro]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${Ve(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Oc(t,n){return new rn(e=>{const i=new ue;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function co(t,n){return n?function da(t,n){if(null!=t){if(function vu(t){return t&&"function"==typeof t[kt]}(t))return function Sd(t,n){return new rn(e=>{const i=new ue;return i.add(n.schedule(()=>{const r=t[kt]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(pl(t))return function Fc(t,n){return new rn(e=>{const i=new ue;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Zr(t))return Oc(t,n);if(function Ja(t){return t&&"function"==typeof t[Ro]}(t)||"string"==typeof t)return function Dd(t,n){if(!t)throw new Error("Iterable cannot be null");return new rn(e=>{const i=new ue;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Ro](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof rn?t:new rn(nc(t))}class ml extends O{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class W extends O{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Fe(t,n){if(!n.closed)return t instanceof rn?t.subscribe(n):nc(t)(n)}function nt(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(nt((r,o)=>co(t(r,o)).pipe(yn((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new zt(t,e)))}class zt{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new Qt(n,this.project,this.concurrent))}}class Qt extends W{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function A(t=Number.POSITIVE_INFINITY){return nt(jt,t)}function st(t,n){return n?Oc(t,n):new rn(Kn(t))}function Tt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return Sa(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof rn?t[0]:A(n)(st(t,e))}function Ut(){return function(n){return n.lift(new Vt(n))}}class Vt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new mn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class mn extends O{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class pe extends rn{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new ue,n.add(this.source.subscribe(new Nt(this.getSubject(),this))),n.closed&&(this._connection=null,n=ue.EMPTY)),n}refCount(){return Ut()(this)}}const yt=(()=>{const t=pe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Nt extends Ya{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class dn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function qt(){return new tr}function We(){return t=>Ut()(function Pt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new dn(r,n));const o=Object.create(i,yt);return o.source=i,o.subjectFactory=r,o}}(qt)(t))}function Xe(t){for(let n in t)if(t[n]===Xe)return n;throw Error("Could not find renamed property on target object.")}function bt(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Cn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Cn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function jr(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Y0=Xe({__forward_ref__:Xe});function Gi(t){return t.__forward_ref__=Gi,t.toString=function(){return Cn(this())},t}function wi(t){return tT(t)?t():t}function tT(t){return"function"==typeof t&&t.hasOwnProperty(Y0)&&t.__forward_ref__===Gi}function nT(t){return t&&!!t.\u0275providers}const U_="https://g.co/ng/security#xss";class Ot extends Error{constructor(n,e){super(G_(n,e)),this.code=n}}function G_(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Ri(t){return"string"==typeof t?t:null==t?"":String(t)}function W_(t,n){throw new Ot(-201,!1)}function jc(t,n){null==t&&function to(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Et(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ci(t){return{providers:t.providers||[],imports:t.imports||[]}}function q_(t){return _L(t,X_)||_L(t,wL)}function _L(t,n){return t.hasOwnProperty(n)?t[n]:null}function xL(t){return t&&(t.hasOwnProperty(iT)||t.hasOwnProperty(hge))?t[iT]:null}const X_=Xe({\u0275prov:Xe}),iT=Xe({\u0275inj:Xe}),wL=Xe({ngInjectableDef:Xe}),hge=Xe({ngInjectorDef:Xe});var ki=(()=>((ki=ki||{})[ki.Default=0]="Default",ki[ki.Host=1]="Host",ki[ki.Self=2]="Self",ki[ki.SkipSelf=4]="SkipSelf",ki[ki.Optional=8]="Optional",ki))();let rT;function Pc(t){const n=rT;return rT=t,n}function CL(t,n,e){const i=q_(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ki.Optional?null:void 0!==n?n:void W_(Cn(t))}const $o=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),J0={},oT="__NG_DI_FLAG__",Y_="ngTempTokenPath",pge="ngTokenPath",mge=/\n/gm,gge="\u0275",kL="__source";let K0;function sg(t){const n=K0;return K0=t,n}function vge(t,n=ki.Default){if(void 0===K0)throw new Ot(-203,!1);return null===K0?CL(t,void 0,n):K0.get(t,n&ki.Optional?null:void 0,n)}function ct(t,n=ki.Default){return(function fge(){return rT}()||vge)(wi(t),n)}function ar(t,n=ki.Default){return ct(t,J_(n))}function J_(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sT(t){const n=[];for(let e=0;e((Td=Td||{})[Td.OnPush=0]="OnPush",Td[Td.Default=1]="Default",Td))(),yu=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(yu||(yu={})),yu))();const kh={},Yr=[],K_=Xe({\u0275cmp:Xe}),aT=Xe({\u0275dir:Xe}),lT=Xe({\u0275pipe:Xe}),DL=Xe({\u0275mod:Xe}),Sh=Xe({\u0275fac:Xe}),Z0=Xe({__NG_ELEMENT_ID__:Xe});let xge=0;function Rt(t){return vf(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Td.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||Yr,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||yu.Emulated,id:"c"+xge++,styles:t.styles||Yr,_:null,setInput:null,schemas:t.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=t.dependencies,s=t.features;return r.inputs=AL(t.inputs,i),r.outputs=AL(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(TL).filter(EL):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(vl).filter(EL):null,r})}function TL(t){return no(t)||Ka(t)}function EL(t){return null!==t}function Di(t){return vf(()=>({type:t.type,bootstrap:t.bootstrap||Yr,declarations:t.declarations||Yr,imports:t.imports||Yr,exports:t.exports||Yr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function AL(t,n){if(null==t)return kh;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const Zt=Rt;function gl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function no(t){return t[K_]||null}function Ka(t){return t[aT]||null}function vl(t){return t[lT]||null}function rc(t,n){const e=t[DL]||null;if(!e&&!0===n)throw new Error(`Type ${Cn(t)} does not have '\u0275mod' property.`);return e}const Dh=0,Rn=1,Ji=2,fs=3,bu=4,Ep=5,Qa=6,lg=7,ks=8,Q_=9,Z_=10,ir=11,cT=12,e1=13,ML=14,cg=15,Za=16,t1=17,ug=18,Ed=19,n1=20,IL=21,Bo=22,uT=1,NL=2,ex=7,tx=8,dg=9,yl=10;function oc(t){return Array.isArray(t)&&"object"==typeof t[uT]}function _u(t){return Array.isArray(t)&&!0===t[uT]}function dT(t){return 0!=(4&t.flags)}function i1(t){return t.componentOffset>-1}function nx(t){return 1==(1&t.flags)}function xu(t){return null!==t.template}function kge(t){return 0!=(256&t[Ji])}function Ap(t,n){return t.hasOwnProperty(Sh)?t[Sh]:null}class Tge{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Hn(){return jL}function jL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Age),Ege}function Ege(){const t=LL(this),n=t?.current;if(n){const e=t.previous;if(e===kh)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Age(t,n,e,i){const r=this.declaredInputs[e],o=LL(t)||function Mge(t,n){return t[PL]=n}(t,{previous:kh,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Tge(l&&l.currentValue,n,a===kh),t[i]=n}Hn.ngInherit=!0;const PL="__ngSimpleChanges__";function LL(t){return t[PL]||null}const Lc=function(t,n,e){},RL="svg";function Ta(t){for(;Array.isArray(t);)t=t[Dh];return t}function ix(t,n){return Ta(n[t])}function sc(t,n){return Ta(n[t.index])}function BL(t,n){return t.data[n]}function hg(t,n){return t[n]}function ac(t,n){const e=n[t];return oc(e)?e:e[Dh]}function rx(t){return 64==(64&t[Ji])}function yf(t,n){return null==n?null:t[n]}function VL(t){t[ug]=0}function fT(t,n){t[Ep]+=n;let e=t,i=t[fs];for(;null!==i&&(1===n&&1===e[Ep]||-1===n&&0===e[Ep]);)i[Ep]+=n,e=i,i=i[fs]}const $i={lFrame:KL(null),bindingsEnabled:!0};function zL(){return $i.bindingsEnabled}function Gt(){return $i.lFrame.lView}function Pr(){return $i.lFrame.tView}function $e(t){return $i.lFrame.contextLView=t,t[ks]}function Be(t){return $i.lFrame.contextLView=null,t}function Ea(){let t=UL();for(;null!==t&&64===t.type;)t=t.parent;return t}function UL(){return $i.lFrame.currentTNode}function Ad(t,n){const e=$i.lFrame;e.currentTNode=t,e.isParent=n}function pT(){return $i.lFrame.isParent}function mT(){$i.lFrame.isParent=!1}function bl(){const t=$i.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function fg(){return $i.lFrame.bindingIndex++}function Eh(t){const n=$i.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function zge(t,n){const e=$i.lFrame;e.bindingIndex=e.bindingRootIndex=t,gT(n)}function gT(t){$i.lFrame.currentDirectiveIndex=t}function XL(){return $i.lFrame.currentQueryIndex}function yT(t){$i.lFrame.currentQueryIndex=t}function Gge(t){const n=t[Rn];return 2===n.type?n.declTNode:1===n.type?t[Qa]:null}function YL(t,n,e){if(e&ki.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&ki.Host||(r=Gge(o),null===r||(o=o[cg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=$i.lFrame=JL();return i.currentTNode=n,i.lView=t,!0}function bT(t){const n=JL(),e=t[Rn];$i.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function JL(){const t=$i.lFrame,n=null===t?null:t.child;return null===n?KL(t):n}function KL(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function QL(){const t=$i.lFrame;return $i.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ZL=QL;function _T(){const t=QL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function _l(){return $i.lFrame.selectedIndex}function Mp(t){$i.lFrame.selectedIndex=t}function es(){const t=$i.lFrame;return BL(t.tView,t.selectedIndex)}function at(){$i.lFrame.currentNamespace=RL}function Ip(){!function Yge(){$i.lFrame.currentNamespace=null}()}function ox(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[ug]+=65536),(a>11>16&&(3&t[Ji])===n){t[Ji]+=2048,Lc(4,a,o);try{o.call(a)}finally{Lc(5,a,o)}}}else{Lc(4,a,o);try{o.call(a)}finally{Lc(5,a,o)}}}const pg=-1;class o1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function CT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[cg],e--;return i}let kT=!0;function ux(t){const n=kT;return kT=t,n}const oR=255,sR=5;let ive=0;const Md={};function dx(t,n){const e=aR(t,n);if(-1!==e)return e;const i=n[Rn];i.firstCreatePass&&(t.injectorIndex=n.length,ST(i.data,t),ST(n,null),ST(i.blueprint,null));const r=DT(t,n),o=t.injectorIndex;if(rR(r)){const s=lx(r),a=cx(r,n),l=a[Rn].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function ST(t,n){t.push(0,0,0,0,0,0,0,0,n)}function aR(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function DT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=pR(r),null===i)return pg;if(e++,r=r[cg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return pg}function TT(t,n,e){!function rve(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Z0)&&(i=e[Z0]),null==i&&(i=e[Z0]=ive++);const r=i&oR;n.data[t+(r>>sR)]|=1<=0?n&oR:lve:n}(e);if("function"==typeof o){if(!YL(n,t,i))return i&ki.Host?lR(r,0,i):cR(n,e,i,r);try{const s=o(i);if(null!=s||i&ki.Optional)return s;W_()}finally{ZL()}}else if("number"==typeof o){let s=null,a=aR(t,n),l=pg,c=i&ki.Host?n[Za][Qa]:null;for((-1===a||i&ki.SkipSelf)&&(l=-1===a?DT(t,n):n[a+8],l!==pg&&fR(i,!1)?(s=n[Rn],a=lx(l),n=cx(l,n)):a=-1);-1!==a;){const u=n[Rn];if(hR(o,a,u.data)){const d=sve(a,n,e,s,i,c);if(d!==Md)return d}l=n[a+8],l!==pg&&fR(i,n[Rn].data[a+8]===c)&&hR(o,a,n)?(s=u,a=lx(l),n=cx(l,n)):a=-1}}return r}function sve(t,n,e,i,r,o){const s=n[Rn],a=s.data[t+8],u=hx(a,s,e,null==i?i1(a)&&kT:i!=s&&0!=(3&a.type),r&ki.Host&&o===a);return null!==u?Np(n,s,u,a):Md}function hx(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&xu(f)&&f.type===e)return l}return null}function Np(t,n,e,i){let r=t[e];const o=n.data;if(function Zge(t){return t instanceof o1}(r)){const s=r;s.resolving&&function rge(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Ot(-200,`Circular dependency in DI detected for ${t}${e}`)}(function eo(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ri(t)}(o[e]));const a=ux(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pc(s.injectImpl):null;YL(t,i,ki.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Kge(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=jL(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Pc(l),ux(a),s.resolving=!1,ZL()}}return r}function hR(t,n,e){return!!(e[n+(t>>sR)]&1<{const n=t.prototype.constructor,e=n[Sh]||ET(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Sh]||ET(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ET(t){return tT(t)?()=>{const n=ET(wi(t));return n&&n()}:Ap(t)}function pR(t){const n=t[Rn],e=n.type;return 2===e?n.declTNode:1===e?t[Qa]:null}function Ah(t){return function ove(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function AT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(vg)?l[vg]:Object.defineProperty(l,vg,{value:[]})[vg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class zn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Et({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Fp(t,n){t.forEach(e=>Array.isArray(e)?Fp(e,n):n(e))}function gR(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function fx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function c1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function fve(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function IT(t,n){const e=_g(t,n);if(e>=0)return t[1|e]}function _g(t,n){return function vR(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Bl=Bl||{})[Bl.Important=1]="Important",Bl[Bl.DashCase=2]="DashCase",Bl))();const LT=new Map;let jve=0;const $T="__ngContext__";function el(t,n){oc(n)?(t[$T]=n[n1],function Lve(t){LT.set(t[n1],t)}(n)):t[$T]=n}let BT;function VT(t,n){return BT(t,n)}function m1(t){const n=t[fs];return _u(n)?n[fs]:n}function HT(t){return LR(t[e1])}function zT(t){return LR(t[bu])}function LR(t){for(;null!==t&&!_u(t);)t=t[bu];return t}function wg(t,n,e,i,r){if(null!=i){let o,s=!1;_u(i)?o=i:oc(i)&&(s=!0,i=i[Dh]);const a=Ta(i);0===t&&null!==e?null==r?zR(n,e,a):Op(n,e,a,r||null,!0):1===t&&null!==e?Op(n,e,a,r||null,!0):2===t?function JT(t,n,e){const i=vx(t,n);i&&function i0e(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function s0e(t,n,e,i,r){const o=e[ex];o!==Ta(e)&&wg(n,t,i,o,r);for(let a=yl;a0&&(t[e-1][bu]=i[bu]);const o=fx(t,yl+n);!function Yve(t,n){g1(t,n,n[ir],2,null,null),n[Dh]=null,n[Qa]=null}(i[Rn],i);const s=o[Ed];null!==s&&s.detachView(o[Rn]),i[fs]=null,i[bu]=null,i[Ji]&=-65}return i}function BR(t,n){if(!(128&n[Ji])){const e=n[ir];e.destroyNode&&g1(t,n,e,3,null,null),function Qve(t){let n=t[e1];if(!n)return qT(t[Rn],t);for(;n;){let e=null;if(oc(n))e=n[e1];else{const i=n[yl];i&&(e=i)}if(!e){for(;n&&!n[bu]&&n!==t;)oc(n)&&qT(n[Rn],n),n=n[fs];null===n&&(n=t),oc(n)&&qT(n[Rn],n),e=n&&n[bu]}n=e}}(n)}}function qT(t,n){if(!(128&n[Ji])){n[Ji]&=-65,n[Ji]|=128,function n0e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===yu.None||o===yu.Emulated)return null}return sc(i,e)}}(t,n.parent,e)}function Op(t,n,e,i,r){t.insertBefore(n,e,i,r)}function zR(t,n,e){t.appendChild(n,e)}function UR(t,n,e,i,r){null!==i?Op(t,n,e,i,r):zR(t,n,e)}function vx(t,n){return t.parentNode(n)}function GR(t,n,e){return qR(t,n,e)}let XT,_x,ZT,xx,qR=function WR(t,n,e){return 40&t.type?sc(t,e):null};function yx(t,n,e,i){const r=VR(t,i,n),o=n[ir],a=GR(i.parent||n[Qa],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return _x}()?.createHTML(t)||t}function eE(){if(void 0===xx&&(xx=null,$o.trustedTypes))try{xx=$o.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xx}function e5(t){return eE()?.createHTML(t)||t}function n5(t){return eE()?.createScriptURL(t)||t}class jp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${U_})`}}class f0e extends jp{getTypeName(){return"HTML"}}class p0e extends jp{getTypeName(){return"Style"}}class m0e extends jp{getTypeName(){return"Script"}}class g0e extends jp{getTypeName(){return"URL"}}class v0e extends jp{getTypeName(){return"ResourceURL"}}function cc(t){return t instanceof jp?t.changingThisBreaksApplicationSecurity:t}function Id(t,n){const e=function y0e(t){return t instanceof jp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${U_})`)}return e===n}class k0e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Cg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class S0e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Cg(n),e}}const T0e=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function wx(t){return(t=String(t)).match(T0e)?t:"unsafe:"+t}function Mh(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function v1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const r5=Mh("area,br,col,hr,img,wbr"),o5=Mh("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),s5=Mh("rp,rt"),tE=v1(r5,v1(o5,Mh("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),v1(s5,Mh("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),v1(s5,o5)),nE=Mh("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),a5=v1(nE,Mh("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Mh("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),E0e=Mh("script,style,template");class A0e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!tE.hasOwnProperty(e))return this.sanitizedSomething=!0,!E0e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();tE.hasOwnProperty(e)&&!r5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(l5(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const M0e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I0e=/([^\#-~ |!])/g;function l5(t){return t.replace(/&/g,"&").replace(M0e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(I0e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Cx;function c5(t,n){let e=null;try{Cx=Cx||function i5(t){const n=new S0e(t);return function D0e(){try{return!!(new window.DOMParser).parseFromString(Cg(""),"text/html")}catch{return!1}}()?new k0e(n):n}(t);let i=n?String(n):"";e=Cx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Cx.getInertBodyElement(i)}while(i!==o);return Cg((new A0e).sanitizeChildren(iE(e)||e))}finally{if(e){const i=iE(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function iE(t){return"content"in t&&function N0e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ko=(()=>((ko=ko||{})[ko.NONE=0]="NONE",ko[ko.HTML=1]="HTML",ko[ko.STYLE=2]="STYLE",ko[ko.SCRIPT=3]="SCRIPT",ko[ko.URL=4]="URL",ko[ko.RESOURCE_URL=5]="RESOURCE_URL",ko))();function kx(t){const n=b1();return n?e5(n.sanitize(ko.HTML,t)||""):Id(t,"HTML")?e5(cc(t)):c5(function ZR(){return void 0!==ZT?ZT:typeof document<"u"?document:void 0}(),Ri(t))}function y1(t){const n=b1();return n?n.sanitize(ko.URL,t)||"":Id(t,"URL")?cc(t):wx(Ri(t))}function u5(t){const n=b1();if(n)return n5(n.sanitize(ko.RESOURCE_URL,t)||"");if(Id(t,"ResourceURL"))return n5(cc(t));throw new Ot(904,!1)}function b1(){const t=Gt();return t&&t[cT]}const Sx=new zn("ENVIRONMENT_INITIALIZER"),Dx=new zn("INJECTOR",-1),h5=new zn("INJECTOR_DEF_TYPES");class f5{get(n,e=J0){if(e===J0){const i=new Error(`NullInjectorError: No provider for ${Cn(n)}!`);throw i.name="NullInjectorError",i}return e}}function $0e(...t){return{\u0275providers:p5(0,t),\u0275fromNgModule:!0}}function p5(t,...n){const e=[],i=new Set;let r;return Fp(n,o=>{const s=o;rE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&m5(r,e),e}function m5(t,n){for(let e=0;e{n.push(o)})}}function rE(t,n,e,i){if(!(t=wi(t)))return!1;let r=null,o=xL(t);const s=!o&&no(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=xL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)rE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Fp(o.imports,u=>{rE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&m5(c,n)}if(!a){const c=Ap(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Yr},{provide:h5,useValue:r,multi:!0},{provide:Sx,useValue:()=>ct(r),multi:!0})}const l=o.providers;null==l||a||oE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function oE(t,n){for(let e of t)nT(e)&&(e=e.\u0275providers),Array.isArray(e)?oE(e,n):n(e)}const B0e=Xe({provide:String,useValue:Xe});function sE(t){return null!==t&&"object"==typeof t&&B0e in t}function Pp(t){return"function"==typeof t}const aE=new zn("Set Injector scope."),Tx={},H0e={};let lE;function Ex(){return void 0===lE&&(lE=new f5),lE}class Nd{}class y5 extends Nd{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,uE(n,s=>this.processProvider(s)),this.records.set(Dx,kg(void 0,this)),r.has("environment")&&this.records.set(Nd,kg(void 0,this));const o=this.records.get(aE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(h5.multi,Yr,ki.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=sg(this),i=Pc(void 0);try{return n()}finally{sg(e),Pc(i)}}get(n,e=J0,i=ki.Default){this.assertNotDestroyed(),i=J_(i);const r=sg(this),o=Pc(void 0);try{if(!(i&ki.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function q0e(t){return"function"==typeof t||"object"==typeof t&&t instanceof zn}(n)&&q_(n);a=l&&this.injectableDefInScope(l)?kg(cE(n),Tx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ki.Self?Ex():this.parent).get(n,e=i&ki.Optional&&e===J0?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Y_]=s[Y_]||[]).unshift(Cn(n)),r)throw s;return function bge(t,n,e,i){const r=t[Y_];throw n[kL]&&r.unshift(n[kL]),t.message=function _ge(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==gge?t.slice(2):t;let r=Cn(n);if(Array.isArray(n))r=n.map(Cn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Cn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(mge,"\n ")}`}("\n"+t.message,r,e,i),t[pge]=r,t[Y_]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Pc(o),sg(r)}}resolveInjectorInitializers(){const n=sg(this),e=Pc(void 0);try{const i=this.get(Sx.multi,Yr,ki.Self);for(const r of i)r()}finally{sg(n),Pc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Cn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ot(205,!1)}processProvider(n){let e=Pp(n=wi(n))?n:wi(n&&n.provide);const i=function U0e(t){return sE(t)?kg(void 0,t.useValue):kg(b5(t),Tx)}(n);if(Pp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=kg(void 0,Tx,!0),r.factory=()=>sT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Tx&&(e.value=H0e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W0e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=wi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function cE(t){const n=q_(t),e=null!==n?n.factory:Ap(t);if(null!==e)return e;if(t instanceof zn)throw new Ot(204,!1);if(t instanceof Function)return function z0e(t){const n=t.length;if(n>0)throw c1(n,"?"),new Ot(204,!1);const e=function uge(t){const n=t&&(t[X_]||t[wL]);return n?(function dge(t){if(t.hasOwnProperty("name"))return t.name;(""+t).match(/^function\s*([^\s(]+)/)}(t),n):null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ot(204,!1)}function b5(t,n,e){let i;if(Pp(t)){const r=wi(t);return Ap(r)||cE(r)}if(sE(t))i=()=>wi(t.useValue);else if(function v5(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...sT(t.deps||[]));else if(function g5(t){return!(!t||!t.useExisting)}(t))i=()=>ct(wi(t.useExisting));else{const r=wi(t&&(t.useClass||t.provide));if(!function G0e(t){return!!t.deps}(t))return Ap(r)||cE(r);i=()=>new r(...sT(t.deps))}return i}function kg(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function uE(t,n){for(const e of t)Array.isArray(e)?uE(e,n):e&&nT(e)?uE(e.\u0275providers,n):n(e)}class X0e{}class _5{}class J0e{resolveComponentFactory(n){throw function Y0e(t){const n=Error(`No component factory found for ${Cn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let $c=(()=>{class t{}return t.NULL=new J0e,t})();function K0e(){return Sg(Ea(),Gt())}function Sg(t,n){return new ti(sc(t,n))}let ti=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=K0e,t})();function Q0e(t){return t instanceof ti?t.nativeElement:t}class Lp{}let Ss=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Z0e(){const t=Gt(),e=ac(Ea().index,t);return(oc(e)?e:t)[ir]}(),t})(),e1e=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>null}),t})();class _1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const t1e=new _1("15.2.2"),dE={},hE="ngOriginalError";function fE(t){return t[hE]}class Dg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&fE(n);for(;e&&fE(e);)e=fE(e);return e||null}}function w5(t){return t.ownerDocument.defaultView}function Ih(t){return t instanceof Function?t():t}function k5(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const S5="ng-template";function d1e(t,n,e){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==k5(f,c,0)||2&i&&c!==h){if(wu(i))return!1;s=!0}}}}else{if(!s&&!wu(i)&&!wu(l))return!1;if(s&&wu(l))continue;s=!1,i=l|1&i}}return wu(i)||s}function wu(t){return 0==(1&t)}function p1e(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!wu(s)&&(n+=E5(o,r),r=""),i=s,o=o||!wu(i);e++}return""!==r&&(n+=E5(o,r)),n}const Bi={};function w(t){A5(Pr(),Gt(),_l()+t,!1)}function A5(t,n,e,i){if(!i)if(3==(3&n[Ji])){const o=t.preOrderCheckHooks;null!==o&&sx(n,o,e)}else{const o=t.preOrderHooks;null!==o&&ax(n,o,0,e)}Mp(e)}function F5(t,n=null,e=null,i){const r=O5(t,n,e,i);return r.resolveInjectorInitializers(),r}function O5(t,n=null,e=null,i,r=new Set){const o=[e||Yr,$0e(t)];return i=i||("object"==typeof t?void 0:Cn(t)),new y5(o,n||Ex(),i||null,r)}let Rs=(()=>{class t{static create(e,i){if(Array.isArray(e))return F5({name:""},i,e,"");{const r=e.name??"";return F5({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=J0,t.NULL=new f5,t.\u0275prov=Et({token:t,providedIn:"any",factory:()=>ct(Dx)}),t.__NG_ELEMENT_ID__=-1,t})();function le(t,n=ki.Default){const e=Gt();return null===e?ct(t,n):uR(Ea(),e,wi(t),n)}function H5(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;iBo&&A5(t,n,Bo,!1),Lc(s?2:0,r),e(i,r)}finally{Mp(o),Lc(s?3:1,r)}}function _E(t,n,e){if(dT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,x1(t,e,r.hostVars,Bi),r)}function Fd(t,n,e,i,r,o){const s=sc(t,n);!function DE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Ri(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[ir],s,o,t.value,e,i,r)}function oye(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&TE(e)}}function TE(t){for(let i=HT(t);null!==i;i=zT(i))for(let r=yl;r0&&TE(o)}const e=t[Rn].components;if(null!==e)for(let i=0;i0&&TE(r)}}function uye(t,n){const e=ac(n,t),i=e[Rn];(function dye(t,n){for(let e=n.length;e-1&&(WT(n,i),fx(e,i))}this._attachedToViewContainer=!1}BR(this._lView[Rn],this._lView)}onDestroy(n){G5(this._lView[Rn],this._lView,null,n)}markForCheck(){EE(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ji]&=-65}reattach(){this._lView[Ji]|=64}detectChanges(){Fx(this._lView[Rn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ot(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Kve(t,n){g1(t,n,n[ir],2,null,null)}(this._lView[Rn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ot(902,!1);this._appRef=n}}class hye extends w1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Fx(n[Rn],n,n[ks],!1)}checkNoChanges(){}get context(){return null}}class n8 extends $c{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=no(n);return new C1(e,this.ngModule)}}function i8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class pye{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=J_(i);const r=this.injector.get(n,dE,i);return r!==dE||e===dE?r:this.parentInjector.get(n,e,i)}}class C1 extends _5{get inputs(){return i8(this.componentDef.inputs)}get outputs(){return i8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function _1e(t){return t.map(b1e).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Nd?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new pye(n,o):n,a=s.get(Lp,null);if(null===a)throw new Ot(407,!1);const l=s.get(e1e,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function U1e(t,n,e){return t.selectRootElement(n,e===yu.ShadowDom)}(c,i,this.componentDef.encapsulation):GT(c,u,function fye(t){const n=t.toLowerCase();return"svg"===n?RL:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=CE(0,null,null,1,0,null,null,null,null,null),p=Mx(null,f,null,h,null,null,a,c,l,s,null);let m,g;bT(p);try{const v=this.componentDef;let y,_=null;v.findHostDirectiveDefs?(y=[],_=new Map,v.findHostDirectiveDefs(v,y,_),y.push(v)):y=[v];const C=function gye(t,n){const e=t[Rn],i=Bo;return t[i]=n,Ag(e,i,2,"#host",null)}(p,d),S=function vye(t,n,e,i,r,o,s,a){const l=r[Rn];!function yye(t,n,e,i){for(const r of t)n.mergedAttrs=s1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Ox(n,n.mergedAttrs,!0),null!==e&&QR(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Mx(r,U5(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&SE(l,t,i.length-1),Nx(r,u),r[t.index]=u}(C,d,v,y,p,a,c);g=BL(f,Bo),d&&function _ye(t,n,e,i){if(i)CT(t,e,["ng-version",t1e.full]);else{const{attrs:r,classes:o}=function x1e(t){const n=[],e=[];let i=1,r=2;for(;i0&&KR(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function xye(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=s1(r.hostAttrs,e=s1(e,r.hostAttrs))}}(i)}function IE(t){return t===kh?{}:t===Yr?[]:t}function kye(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Sye(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Dye(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Px(t){return!!NE(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function NE(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Od(t,n,e){return t[n]=e}function tl(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Rp(t,n,e,i){const r=tl(t,n,e);return tl(t,n+1,i)||r}function ht(t,n,e,i){const r=Gt();return tl(r,fg(),n)&&(Pr(),Fd(es(),r,t,n,e,i)),ht}function Ig(t,n,e,i){return tl(t,fg(),e)?n+Ri(e)+i:Bi}function Ng(t,n,e,i,r,o){const a=Rp(t,function Th(){return $i.lFrame.bindingIndex}(),e,r);return Eh(2),a?n+Ri(e)+i+Ri(r)+o:Bi}function J(t,n,e,i,r,o,s,a){const l=Gt(),c=Pr(),u=t+Bo,d=c.firstCreatePass?function Pye(t,n,e,i,r,o,s,a,l){const c=n.consts,u=Ag(n,t,4,s||null,yf(c,a));kE(n,e,u,yf(c,l)),ox(n,u);const d=u.tView=CE(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];Ad(d,!1);const h=l[ir].createComment("");yx(c,l,h,d),el(h,l),Nx(l,l[u]=K5(h,l,h,d)),nx(d)&&xE(c,l,d),null!=s&&wE(l,d,a)}function uo(t){return hg(function Vge(){return $i.lFrame.contextLView}(),Bo+t)}function k(t,n,e){const i=Gt();return tl(i,fg(),n)&&uc(Pr(),es(),i,t,n,i[ir],e,!1),k}function FE(t,n,e,i,r){const s=r?"class":"style";ME(t,e,n.inputs[s],s,i)}function b(t,n,e,i){const r=Gt(),o=Pr(),s=Bo+t,a=r[ir],l=o.firstCreatePass?function Rye(t,n,e,i,r,o){const s=n.consts,l=Ag(n,t,2,i,yf(s,r));return kE(n,e,l,yf(s,o)),null!==l.attrs&&Ox(l,l.attrs,!1),null!==l.mergedAttrs&&Ox(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,e,i):o.data[s],c=r[s]=GT(a,n,function Jge(){return $i.lFrame.currentNamespace}()),u=nx(l);return Ad(l,!0),QR(a,c,l),32!=(32&l.flags)&&yx(o,r,c,l),0===function Pge(){return $i.lFrame.elementDepthCount}()&&el(c,r),function Lge(){$i.lFrame.elementDepthCount++}(),u&&(xE(o,r,l),_E(o,l,r)),null!==i&&wE(r,l),b}function x(){let t=Ea();pT()?mT():(t=t.parent,Ad(t,!1));const n=t;!function Rge(){$i.lFrame.elementDepthCount--}();const e=Pr();return e.firstCreatePass&&(ox(e,t),dT(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function eve(t){return 0!=(8&t.flags)}(n)&&FE(e,n,Gt(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tve(t){return 0!=(16&t.flags)}(n)&&FE(e,n,Gt(),n.stylesWithoutHost,!1),x}function ge(t,n,e,i){return b(t,n,e,i),x(),ge}function ta(t,n,e){const i=Gt(),r=Pr(),o=t+Bo,s=r.firstCreatePass?function $ye(t,n,e,i,r){const o=n.consts,s=yf(o,i),a=Ag(n,t,8,"ng-container",s);return null!==s&&Ox(a,s,!0),kE(n,e,a,yf(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Ad(s,!0);const a=i[o]=i[ir].createComment("");return yx(r,i,a,s),el(a,i),nx(s)&&(xE(r,i,s),_E(r,s,i)),null!=e&&wE(i,s),ta}function na(){let t=Ea();const n=Pr();return pT()?mT():(t=t.parent,Ad(t,!1)),n.firstCreatePass&&(ox(n,t),dT(t)&&n.queries.elementEnd(t)),na}function vt(){return Gt()}function S1(t){return!!t&&"function"==typeof t.then}const OE=function v8(t){return!!t&&"function"==typeof t.subscribe};function ye(t,n,e,i){const r=Gt(),o=Pr(),s=Ea();return function b8(t,n,e,i,r,o,s){const a=nx(i),c=t.firstCreatePass&&Z5(t),u=n[ks],d=Q5(n);let h=!0;if(3&i.type||s){const m=sc(i,n),g=s?s(m):m,v=d.length,y=s?C=>s(Ta(C[i.index])):i.index;let _=null;if(!s&&a&&(_=function Bye(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==_)(_.__ngLastListenerFn__||_).__ngNextListenerFn__=o,_.__ngLastListenerFn__=o,h=!1;else{o=x8(i,n,u,o,!1);const C=e.listen(g,r,o);d.push(o,C),c&&c.push(r,y,v,v+1)}}else o=x8(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?ac(t.index,n):n);let l=_8(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=_8(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function j(t=1){return function Wge(t){return($i.lFrame.contextLView=function qge(t,n){for(;t>0;)n=n[cg],t--;return n}(t,$i.lFrame.contextLView))[ks]}(t)}function Vye(t,n){let e=null;const i=function m1e(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function jE(t){return 2|t}function Bp(t){return(131068&t)>>2}function PE(t,n){return-131069&t|n<<2}function LE(t){return 1|t}function M8(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?bf(o):Bp(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];qye(t[a],n)&&(l=!0,t[a+1]=i?LE(u):jE(u)),a=i?bf(u):Bp(u)}l&&(t[e+1]=i?jE(o):LE(o))}function qye(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&_g(t,n)>=0}const ia={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I8(t){return t.substring(ia.key,ia.keyEnd)}function N8(t,n){const e=ia.textEnd;return e===n?-1:(n=ia.keyEnd=function Kye(t,n,e){for(;n32;)n++;return n}(t,ia.key=n,e),$g(t,n,e))}function $g(t,n,e){for(;n=0;e=N8(n,e))lc(t,I8(n),!0)}function Du(t,n,e,i){const r=Gt(),o=Pr(),s=Eh(2);o.firstUpdatePass&&R8(o,t,s,i),n!==Bi&&tl(r,s,n)&&B8(o,o.data[_l()],r,r[ir],t,r[s+1]=function abe(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Cn(cc(t)))),t}(n,e),i,s)}function Tu(t,n,e,i){const r=Pr(),o=Eh(2);r.firstUpdatePass&&R8(r,null,o,i);const s=Gt();if(e!==Bi&&tl(s,o,e)){const a=r.data[_l()];if(H8(a,i)&&!L8(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=jr(l,e||"")),FE(r,a,s,e,i)}else!function sbe(t,n,e,i,r,o,s,a){r===Bi&&(r=Yr);let l=0,c=0,u=0=t.expandoStartIndex}function R8(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[_l()],s=L8(t,e);H8(o,i)&&null===n&&!s&&(n=!1),n=function tbe(t,n,e,i){const r=function vT(t){const n=$i.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=D1(e=RE(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=RE(r,t,n,e,i),null===o){let l=function nbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Bp(i))return t[bf(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=RE(null,t,n,l[1],i),l=D1(l,n.attrs,i),function ibe(t,n,e,i){t[bf(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function rbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=bf(t[a+1]);t[i+1]=$x(h,a),0!==h&&(t[h+1]=PE(t[h+1],i)),t[a+1]=function zye(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$x(a,0),0!==a&&(t[a+1]=PE(t[a+1],i)),a=i;else t[i+1]=$x(l,0),0===a?a=i:t[l+1]=PE(t[l+1],i),l=i;c&&(t[i+1]=jE(t[i+1])),M8(t,u,i,!0),M8(t,u,i,!1),function Wye(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&_g(o,n)>=0&&(e[i+1]=LE(e[i+1]))}(n,u,t,i,o),s=$x(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function RE(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Bi&&(h=d?Yr:void 0);let f=d?IT(h,i):u===i?h:void 0;if(c&&!Bx(f)&&(f=IT(l,i)),Bx(f)&&(a=f,s))return a;const p=t[r+1];r=s?bf(p):Bp(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=IT(l,i))}return a}function Bx(t){return void 0!==t}function H8(t,n){return 0!=(t.flags&(n?8:16))}function I(t,n=""){const e=Gt(),i=Pr(),r=t+Bo,o=i.firstCreatePass?Ag(i,r,1,n,null):i.data[r],s=e[r]=function UT(t,n){return t.createText(n)}(e[ir],n);yx(i,e,s,o),Ad(o,!1)}function Dt(t){return xn("",t,""),Dt}function xn(t,n,e){const i=Gt(),r=Ig(i,t,n,e);return r!==Bi&&Nh(i,_l(),r),xn}function Ld(t,n,e,i,r){const o=Gt(),s=Ng(o,t,n,e,i,r);return s!==Bi&&Nh(o,_l(),s),Ld}function dc(t,n,e){const i=Gt();return tl(i,fg(),n)&&uc(Pr(),es(),i,t,n,i[ir],e,!0),dc}const Vg="en-US";let u6=Vg;function VE(t,n,e,i,r){if(t=wi(t),Array.isArray(t))for(let o=0;o>20;if(Pp(t)||!t.multi){const f=new o1(l,r,le),p=zE(a,n,r?u:u+h,d);-1===p?(TT(dx(c,s),o,a),HE(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=zE(a,n,u+h,d),p=zE(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){TT(dx(c,s),o,a);const v=function x_e(t,n,e,i,r){const o=new o1(t,e,le);return o.multi=[],o.index=n,o.componentProviders=0,O6(o,r,i&&!e),o}(r?__e:b_e,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),HE(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else HE(o,t,f>-1?f:p,O6(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function HE(t,n,e,i){const r=Pp(n),o=function V0e(t){return!!t.useClass}(n);if(r||o){const l=(o?wi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function O6(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function zE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function y_e(t,n,e){const i=Pr();if(i.firstCreatePass){const r=xu(t);VE(e,i.data,i.blueprint,r,!0),VE(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class zg{}class j6{}class P6 extends zg{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new n8(this);const i=rc(n);this._bootstrapComponents=Ih(i.bootstrap),this._r3Injector=O5(n,e,[{provide:zg,useValue:this},{provide:$c,useValue:this.componentFactoryResolver}],Cn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class GE extends j6{constructor(n){super(),this.moduleType=n}create(n){return new P6(this.moduleType,n)}}class C_e extends zg{constructor(n,e,i){super(),this.componentFactoryResolver=new n8(this),this.instance=null;const r=new y5([...n,{provide:zg,useValue:this},{provide:$c,useValue:this.componentFactoryResolver}],e||Ex(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Gx(t,n,e=null){return new C_e(t,n,e).injector}let k_e=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=p5(0,e.type),r=i.length>0?Gx([i],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 t.\u0275prov=Et({token:t,providedIn:"environment",factory:()=>new t(ct(Nd))}),t})();function L6(t){t.getStandaloneInjector=n=>n.get(k_e).getOrCreateStandaloneInjector(t)}function wl(t,n,e){const i=bl()+t,r=Gt();return r[i]===Bi?Od(r,i,e?n.call(e):n()):function k1(t,n){return t[n]}(r,i)}function lr(t,n,e,i){return G6(Gt(),bl(),t,n,e,i)}function Sr(t,n,e,i,r){return function W6(t,n,e,i,r,o,s){const a=n+e;return Rp(t,a,r,o)?Od(t,a+2,s?i.call(s,r,o):i(r,o)):F1(t,a+2)}(Gt(),bl(),t,n,e,i,r)}function Ug(t,n,e,i,r,o){return function q6(t,n,e,i,r,o,s,a){const l=n+e;return function Lx(t,n,e,i,r){const o=Rp(t,n,e,i);return tl(t,n+2,r)||o}(t,l,r,o,s)?Od(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):F1(t,l+3)}(Gt(),bl(),t,n,e,i,r,o)}function F1(t,n){const e=t[n];return e===Bi?void 0:e}function G6(t,n,e,i,r,o){const s=n+e;return tl(t,s,r)?Od(t,s+1,o?i.call(o,r):i(r)):F1(t,s+1)}function XE(t,n,e){const i=t+Bo,r=Gt(),o=hg(r,i);return function O1(t,n){return t[Rn].data[n].pure}(r,i)?G6(r,bl(),n,o.transform,e,o):o.transform(e)}function YE(t){return n=>{setTimeout(t,void 0,n)}}const Ke=class z_e extends tr{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=YE(o),r&&(r=YE(r)),s&&(s=YE(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof ue&&n.add(a),a}};function U_e(){return this._results[Symbol.iterator]()}class JE{get changes(){return this._changes||(this._changes=new Ke)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=JE.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=U_e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Rc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function dve(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=q_e,t})();const G_e=Si,W_e=class extends G_e{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Mx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[t1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ed];return null!==s&&(r[Ed]=s.createEmbeddedView(i)),bE(i,r,n),new w1(r)}};function q_e(){return Wx(Ea(),Gt())}function Wx(t,n){return 4&t.type?new W_e(n,t,Sg(t,n)):null}let nl=(()=>{class t{}return t.__NG_ELEMENT_ID__=X_e,t})();function X_e(){return Q6(Ea(),Gt())}const Y_e=nl,J6=class extends Y_e{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Sg(this._hostTNode,this._hostLView)}get injector(){return new mg(this._hostTNode,this._hostLView)}get parentInjector(){const n=DT(this._hostTNode,this._hostLView);if(rR(n)){const e=cx(n,this._hostLView),i=lx(n);return new mg(e[Rn].data[i+8],e)}return new mg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=K6(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-yl}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function l1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new C1(no(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Nd,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[Rn];if(function jge(t){return _u(t[fs])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[fs],h=new J6(d,d[Qa],d[fs]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function Zve(t,n,e,i){const r=yl+i,o=e.length;i>0&&(e[r-1][bu]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=yl;d{class t{constructor(e){this.appInits=e,this.resolve=Xx,this.reject=Xx,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ct(Yx,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const P1=new zn("AppId",{providedIn:"root",factory:function x$(){return`${lA()}${lA()}${lA()}`}});function lA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const w$=new zn("Platform Initializer"),L1=new zn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),C$=new zn("AnimationModuleType");let xxe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const hc=new zn("LocaleId",{providedIn:"root",factory:()=>ar(hc,ki.Optional|ki.SkipSelf)||function wxe(){return typeof $localize<"u"&&$localize.locale||Vg}()});class kxe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let k$=(()=>{class t{compileModuleSync(e){return new GE(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Ih(rc(e).declarations).reduce((s,a)=>{const l=no(a);return l&&s.push(new C1(l)),s},[]);return new kxe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Txe=(()=>Promise.resolve(0))();function cA(t){typeof Zone>"u"?Txe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Wi{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ke(!1),this.onMicrotaskEmpty=new Ke(!1),this.onStable=new Ke(!1),this.onError=new Ke(!1),typeof Zone>"u")throw new Ot(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)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Exe(){let t=$o.requestAnimationFrame,n=$o.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Ixe(t){const n=()=>{!function Mxe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($o,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,dA(t),t.isCheckStableRunning=!0,uA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),dA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return T$(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),E$(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return T$(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),E$(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,dA(t),uA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wi.isInAngularZone())throw new Ot(909,!1)}static assertNotInAngularZone(){if(Wi.isInAngularZone())throw new Ot(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Axe,Xx,Xx);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Axe={};function uA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function dA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function T$(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function E$(t){t._nesting--,uA(t)}class Nxe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ke,this.onMicrotaskEmpty=new Ke,this.onStable=new Ke,this.onError=new Ke}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const A$=new zn(""),Kx=new zn("");let pA,hA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,pA||(function Fxe(t){pA=t}(r),r.addToWindow(i)),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:()=>{Wi.assertNotInAngularZone(),cA(()=>{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())cA(()=>{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(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.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,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(ct(Wi),ct(fA),ct(Kx))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),fA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return pA?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Oh=!1;let _f=null;const M$=new zn("AllowMultipleToken"),mA=new zn("PlatformDestroyListeners"),I$=new zn("appBootstrapListener");class N${constructor(n,e){this.name=n,this.token=e}}function O$(t,n,e=[]){const i=`Platform: ${n}`,r=new zn(i);return(o=[])=>{let s=gA();if(!s||s.injector.get(M$,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function Pxe(t){if(_f&&!_f.get(M$,!1))throw new Ot(400,!1);_f=t;const n=t.get(P$);(function F$(t){const n=t.get(w$,null);n&&n.forEach(e=>e())})(t)}(function j$(t=[],n){return Rs.create({name:n,providers:[{provide:aE,useValue:"platform"},{provide:mA,useValue:new Set([()=>_f=null])},...t]})}(a,i))}return function Rxe(t){const n=gA();if(!n)throw new Ot(401,!1);return n}()}}function gA(){return _f?.get(P$)??null}let P$=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function R$(t,n){let e;return e="noop"===t?new Nxe:("zone.js"===t?void 0:t)||new Wi(n),e}(i?.ngZone,function L$(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Wi,useValue:r}];return r.run(()=>{const s=Rs.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Dg,null);if(!l)throw new Ot(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Qx(this._modules,a),c.unsubscribe()})}),function $$(t,n,e){try{const i=e();return S1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Jx);return c.runInitializers(),c.donePromise.then(()=>(function d6(t){jc(t,"Expected localeId to be defined"),"string"==typeof t&&(u6=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(hc,Vg)||Vg),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=B$({},i);return function Oxe(t,n,e){const i=new GE(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Au);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ot(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ot(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(mA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ct(Rs))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function B$(t,n){return Array.isArray(n)?n.reduce(B$,t):{...t,...n}}let Au=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,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 o=new rn(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new rn(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Wi.assertNotInAngularZone(),cA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Wi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Tt(o,s.pipe(We()))}bootstrap(e,i){const r=e instanceof _5;if(!this._injector.get(Jx).done){!r&&function ag(t){const n=no(t)||Ka(t)||vl(t);return null!==n&&n.standalone}(e);throw new Ot(405,Oh)}let s;s=r?e:this._injector.get($c).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function jxe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(zg),c=s.create(Rs.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(A$,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Qx(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ot(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 i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Qx(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(I$,[]);i.push(...this._bootstrapListeners),i.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),()=>Qx(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ot(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(ct(Wi),ct(Nd),ct(Dg))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qx(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let qo=(()=>{class t{}return t.__NG_ELEMENT_ID__=Bxe,t})();function Bxe(t){return function Vxe(t,n,e){if(i1(t)&&!e){const i=ac(t.index,n);return new w1(i,i)}return 47&t.type?new w1(n[Za],n):null}(Ea(),Gt(),16==(16&t))}class G${constructor(){}supports(n){return Px(n)}create(n){return new qxe(n)}}const Wxe=(t,n)=>n;class qxe{constructor(n){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=n||Wxe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new Xxe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new W$),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W$),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Xxe{constructor(n,e){this.item=n,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 Yxe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class W${constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Yxe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function q$(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new Kxe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class Kxe{constructor(n){this.key=n,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 Y$(){return new tw([new G$])}let tw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Y$()),deps:[[t,new d1,new u1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ot(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:Y$}),t})();function J$(){return new R1([new X$])}let R1=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||J$()),deps:[[t,new d1,new u1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ot(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:J$}),t})();const ewe=O$(null,"core",[]);let twe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(ct(Au))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();function qg(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let xA=null;function jh(){return xA}class rwe{}const Ir=new zn("DocumentToken");let wA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function owe(){return ct(K$)}()},providedIn:"platform"}),t})();const swe=new zn("Location Initialized");let K$=(()=>{class t extends wA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jh().getBaseHref(this._doc)}onPopState(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){Q$()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){Q$()?this._history.replaceState(e,i,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 t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(){return function awe(){return new K$(ct(Ir))}()},providedIn:"platform"}),t})();function Q$(){return!!window.history.pushState}function CA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Z$(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ph(t){return t&&"?"!==t[0]?"?"+t:t}let zp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(tB)},providedIn:"root"}),t})();const eB=new zn("appBaseHref");let tB=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??ar(Ir).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 CA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ph(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Ph(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Ph(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(wA),ct(eB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lwe=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=CA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Ph(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Ph(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(wA),ct(eB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),kA=(()=>{class t{constructor(e){this._subject=new Ke,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function dwe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Z$(nB(i))),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,i=""){return this.path()==this.normalize(e+Ph(i))}normalize(e){return t.stripTrailingSlash(function uwe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,nB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ph(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ph(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Ph,t.joinWithSlash=CA,t.stripTrailingSlash=Z$,t.\u0275fac=function(e){return new(e||t)(ct(zp))},t.\u0275prov=Et({token:t,factory:function(){return function cwe(){return new kA(ct(zp))}()},providedIn:"root"}),t})();function nB(t){return t.replace(/\/index.html$/,"")}function pB(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const jA=/\s+/,mB=[];let Rh=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=mB,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(jA):mB}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(jA):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(jA).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(le(tw),le(R1),le(ti),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class Gwe{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,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 jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,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 i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Gwe(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),yB(a,r)}});for(let r=0,o=i.length;r{yB(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si),le(tw))},t.\u0275dir=Zt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function yB(t,n){t.context.$implicit=n.item}let gn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new qwe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){bB("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){bB("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,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si))},t.\u0275dir=Zt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class qwe{constructor(){this.$implicit=null,this.ngIf=null}}function bB(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Cn(n)}'.`)}class PA{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let dw=(()=>{class t{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 i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),_B=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new PA(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si),le(dw,9))},t.\u0275dir=Zt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),wB=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,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,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Bl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(R1),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),kl=(()=>{class t{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 i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(le(nl))},t.\u0275dir=Zt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]}),t})(),Vs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();const SB="browser";let _Ce=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>new xCe(ct(Ir),window)}),t})();class xCe{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function wCe(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=TB(this.window.history)||TB(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function TB(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class EB{}class YCe extends rwe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class VA extends YCe{static makeCurrent(){!function iwe(t){xA||(xA=t)}(new VA)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function JCe(){return H1=H1||document.querySelector("base"),H1?H1.getAttribute("href"):null}();return null==e?null:function KCe(t){pw=pw||document.createElement("a"),pw.setAttribute("href",t);const n=pw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){H1=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return pB(document.cookie,n)}}let pw,H1=null;const FB=new zn("TRANSITION_ID"),ZCe=[{provide:Yx,useFactory:function QCe(t,n,e){return()=>{e.get(Jx).donePromise.then(()=>{const i=jh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const mw=new zn("EventManagerPlugins");let gw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),z1=(()=>{class t extends jB{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const HA={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/"},zA=/%COMP%/g,RB=new zn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function $B(t,n){return n.flat(100).map(e=>e.replace(zA,t))}function BB(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let vw=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new UA(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof zB?r.applyToHost(e):r instanceof GA&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case yu.Emulated:o=new zB(s,a,i,this.appId,l);break;case yu.ShadowDom:return new l2e(s,a,e,i);default:o=new GA(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(ct(gw),ct(z1),ct(P1),ct(RB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class UA{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(HA[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(HB(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(HB(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=HA[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=HA[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Bl.DashCase|Bl.Important)?n.style.setProperty(e,i,r&Bl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Bl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,BB(i)):this.eventManager.addEventListener(n,e,BB(i))}}function HB(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class l2e extends UA{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=$B(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class GA extends UA{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=$B(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class zB extends GA{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function o2e(t){return"_ngcontent-%COMP%".replace(zA,t)}(s),this.hostAttr=function s2e(t){return"_nghost-%COMP%".replace(zA,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let c2e=(()=>{class t extends OB{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const UB=["alt","control","meta","shift"],u2e={"\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"},d2e={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let h2e=(()=>{class t extends OB{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),UB.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=u2e[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),UB.forEach(s=>{s!==r&&(0,d2e[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const WB=[{provide:L1,useValue:SB},{provide:w$,useValue:function f2e(){VA.makeCurrent()},multi:!0},{provide:Ir,useFactory:function m2e(){return function h0e(t){ZT=t}(document),document},deps:[]}],g2e=O$(ewe,"browser",WB),qB=new zn(""),XB=[{provide:Kx,useClass:class e2e{addToWindow(n){$o.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},$o.getAllAngularTestabilities=()=>n.getAllTestabilities(),$o.getAllAngularRootElements=()=>n.getAllRootElements(),$o.frameworkStabilizers||($o.frameworkStabilizers=[]),$o.frameworkStabilizers.push(i=>{const r=$o.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?jh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:A$,useClass:hA,deps:[Wi,fA,Kx]},{provide:hA,useClass:hA,deps:[Wi,fA,Kx]}],YB=[{provide:aE,useValue:"root"},{provide:Dg,useFactory:function p2e(){return new Dg},deps:[]},{provide:mw,useClass:c2e,multi:!0,deps:[Ir,Wi,L1]},{provide:mw,useClass:h2e,multi:!0,deps:[Ir]},{provide:vw,useClass:vw,deps:[gw,z1,P1,RB]},{provide:Lp,useExisting:vw},{provide:jB,useExisting:z1},{provide:z1,useClass:z1,deps:[Ir]},{provide:gw,useClass:gw,deps:[mw,Wi]},{provide:EB,useClass:t2e,deps:[]},[]];let qA=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:P1,useValue:e.appId},{provide:FB,useExisting:P1},ZCe]}}}return t.\u0275fac=function(e){return new(e||t)(ct(qB,12))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[...YB,...XB],imports:[Vs,twe]}),t})(),JB=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function y2e(){return new JB(ct(Ir))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let ZB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new(e||t):ct(e7),i},providedIn:"root"}),t})(),e7=(()=>{class t extends ZB{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ko.NONE:return i;case ko.HTML:return Id(i,"HTML")?cc(i):c5(this._doc,String(i)).toString();case ko.STYLE:return Id(i,"Style")?cc(i):i;case ko.SCRIPT:if(Id(i,"Script"))return cc(i);throw new Error("unsafe value used in a script context");case ko.URL:return Id(i,"URL")?cc(i):wx(String(i));case ko.RESOURCE_URL:if(Id(i,"ResourceURL"))return cc(i);throw new Error(`unsafe value used in a resource URL context (see ${U_})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${U_})`)}}bypassSecurityTrustHtml(e){return function b0e(t){return new f0e(t)}(e)}bypassSecurityTrustStyle(e){return function _0e(t){return new p0e(t)}(e)}bypassSecurityTrustScript(e){return function x0e(t){return new m0e(t)}(e)}bypassSecurityTrustUrl(e){return function w0e(t){return new g0e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function C0e(t){return new v0e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function C2e(t){return new e7(t.get(Ir))}(ct(Rs)),i},providedIn:"root"}),t})();function U1(t){return(U1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function K(t,n,e){return(n=function S2e(t){var n=function k2e(t,n){if("object"!==U1(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!==U1(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===U1(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}class t7{}class D2e{}const $h="*";function il(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ma(t,n=null){return{type:4,styles:n,timings:t}}function n7(t,n=null){return{type:2,steps:t,options:n}}function Dr(t){return{type:6,styles:t,offset:null}}function Ia(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function i7(t){Promise.resolve().then(t)}class G1{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){i7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class r7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?i7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const YA="!";function o7(t){return new Ot(3e3,!1)}function ake(){return typeof window<"u"&&typeof window.document<"u"}function JA(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function wf(t){switch(t.length){case 0:return new G1;case 1:return t[0];default:return new r7(t)}}function s7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case YA:v=r.get(m);break;case $h:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function Y2e(t){return new Ot(3502,!1)}();return a}function KA(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&QA(e,"start",t)));break;case"done":t.onDone(()=>i(e&&QA(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&QA(e,"destroy",t)))}}function QA(t,n,e){const o=ZA(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function ZA(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function fc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function a7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let eM=(t,n)=>!1,l7=(t,n,e)=>[],c7=null;function tM(t){const n=t.parentNode||t.host;return n===c7?null:n}(JA()||typeof Element<"u")&&(ake()?(c7=(()=>document.documentElement)(),eM=(t,n)=>{for(;n;){if(n===t)return!0;n=tM(n)}return!1}):eM=(t,n)=>t.contains(n),l7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Up=null,u7=!1;const d7=eM,h7=l7;let f7=(()=>{class t{validateStyleProperty(e){return function cke(t){Up||(Up=function uke(){return typeof document<"u"?document.body:null}()||{},u7=!!Up.style&&"WebkitAppearance"in Up.style);let n=!0;return Up.style&&!function lke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Up.style,!n&&u7&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Up.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return d7(e,i)}getParentElement(e){return tM(e)}query(e,i,r){return h7(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new G1(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),nM=(()=>{class t{}return t.NOOP=new f7,t})();const dke=1e3,iM="ng-enter",yw="ng-leave",bw="ng-trigger",_w=".ng-trigger",m7="ng-animating",rM=".ng-animating";function Bh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:oM(parseFloat(n[1]),n[2])}function oM(t,n){return"s"===n?t*dke:t}function xw(t,n,e){return t.hasOwnProperty("duration")?t:function fke(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(o7()),{duration:0,delay:0,easing:""};r=oM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=oM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function T2e(){return new Ot(3100,!1)}()),a=!0),o<0&&(n.push(function E2e(){return new Ot(3101,!1)}()),a=!0),a&&n.splice(l,0,o7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function W1(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function g7(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Cf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function y7(t,n,e){return e?n+":"+e+";":""}function b7(t){let n="";for(let e=0;e{const o=aM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),JA()&&b7(t))}function Gp(t,n){t.style&&(n.forEach((e,i)=>{const r=aM(i);t.style[r]=""}),JA()&&b7(t))}function q1(t){return Array.isArray(t)?1==t.length?t[0]:n7(t):t}const sM=new RegExp("{{\\s*(.+?)\\s*}}","g");function _7(t){let n=[];if("string"==typeof t){let e;for(;e=sM.exec(t);)n.push(e[1]);sM.lastIndex=0}return n}function X1(t,n,e){const i=t.toString(),r=i.replace(sM,(o,s)=>{let a=n[s];return null==a&&(e.push(function M2e(t){return new Ot(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function ww(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const gke=/-+([a-z0-9])/g;function aM(t){return t.replace(gke,(...n)=>n[1].toUpperCase())}function vke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function pc(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function I2e(t){return new Ot(3004,!1)}()}}function x7(t,n){return window.getComputedStyle(t)[n]}const Sw="*";function Cke(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function kke(t,n,e){if(":"==t[0]){const l=function Ske(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function U2e(t){return new Ot(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(w7(r,s));"<"==o[0]&&!(r==Sw&&s==Sw)&&n.push(w7(s,r))}(i,e,n)):e.push(t),e}const Dw=new Set(["true","1"]),Tw=new Set(["false","0"]);function w7(t,n){const e=Dw.has(t)||Tw.has(t),i=Dw.has(n)||Tw.has(n);return(r,o)=>{let s=t==Sw||t==r,a=n==Sw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Dw.has(t):Tw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Dw.has(n):Tw.has(n)),s&&a}}const Dke=new RegExp("s*:selfs*,?","g");function lM(t,n,e,i){return new Tke(t).build(n,e,i)}class Tke{constructor(n){this._driver=n}build(n,e,i){const r=new Mke(e);return this._resetContextStyleTimingState(r),pc(this,q1(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function F2e(){return new Ot(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function O2e(){return new Ot(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{_7(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(ww(o.values()),e.errors.push(function j2e(t,n){return new Ot(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=pc(this,q1(n.animation),e);return{type:1,matchers:Cke(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Wp(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>pc(this,i,e)),options:Wp(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=pc(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Wp(n.options)}}visitAnimate(n,e){const i=function Nke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return cM(xw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=cM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=xw(e,n);return cM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Dr({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Dr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===$h?i.push(a):e.errors.push(new Ot(3002,!1)):i.push(g7(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function L2e(t,n,e,i,r){return new Ot(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function mke(t,n,e){const i=n.params||{},r=_7(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function A2e(t){return new Ot(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function R2e(){return new Ot(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let _=null!=y.offset?y.offset:function Ike(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),C=0;return null!=_&&(o++,C=y.offset=_),l=l||C<0||C>1,a=a||C0&&o{const _=h>0?y==f?1:h*y:s[y],C=_*g;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(v,e),v.offset=_,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:pc(this,q1(n.animation),e),options:Wp(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Wp(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Wp(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Eke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Dke,"")),t=t.replace(/@\*/g,_w).replace(/@\w+/g,e=>_w+"-"+e.slice(1)).replace(/:animating/g,rM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,fc(e.collectedStyles,e.currentQuerySelector,new Map);const a=pc(this,q1(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Wp(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function H2e(){return new Ot(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:xw(n.timings,e.errors,!0);return{type:12,animation:pc(this,q1(n.animation),e),timings:i,options:null}}}class Mke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Wp(t){return t?(t=W1(t)).params&&(t.params=function Ake(t){return t?W1(t):null}(t.params)):t={},t}function cM(t,n,e){return{duration:t,delay:n,easing:e}}function uM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Ew{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const jke=new RegExp(":enter","g"),Lke=new RegExp(":leave","g");function dM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new Rke).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class Rke{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Ew;const d=new hM(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Bh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),pc(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[uM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Bh(X1(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Bh(i.duration):null,a=null!=i.delay?Bh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),pc(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Aw);const s=Bh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>pc(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Bh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),pc(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return xw(e.params?X1(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Bh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Aw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),pc(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;pc(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Aw={};class hM{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Aw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Mw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Bh(i.duration)),null!=i.delay&&(r.delay=Bh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=X1(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new hM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Aw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new $ke(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(jke,"."+this._enterClassName)).replace(Lke,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function z2e(t){return new Ot(3014,!1)}()),a}}class Mw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Mw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||$h),this._currentKeyframe.set(e,$h);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Bke(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,$h)}else Cf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=X1(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$h),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Cf(a,new Map,this._backFill);c.forEach((u,d)=>{u===YA?n.add(d):u===$h&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?ww(n.values()):[],s=e.size?ww(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return uM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class $ke extends Mw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Cf(n[0]);l.set("offset",0),o.push(l);const c=Cf(n[0]);c.set("offset",S7(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Cf(n[d]);const f=h.get("offset");h.set("offset",S7((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return uM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function S7(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class fM{}const Vke=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Hke extends fM{normalizePropertyName(n,e){return aM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(Vke.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function N2e(t,n){return new Ot(3005,!1)}())}return s+o}}function D7(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const pM={};class T7{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function zke(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||pM,p=this.buildStyles(i,a&&a.params||pM,d),m=l&&l.params||pM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,_=new Map,C="void"===r,S={params:Uke(m,h),delay:this.ast.options?.delay},M=u?[]:dM(n,e,this.ast.animation,o,s,p,g,S,c,d);let $=0;if(M.forEach(R=>{$=Math.max(R.duration+R.delay,$)}),d.length)return D7(e,this._triggerName,i,r,C,p,g,[],[],y,_,$,d);M.forEach(R=>{const z=R.element,U=fc(y,z,new Set);R.preStyleProps.forEach(re=>U.add(re));const q=fc(_,z,new Set);R.postStyleProps.forEach(re=>q.add(re)),z!==e&&v.add(z)});const G=ww(v.values());return D7(e,this._triggerName,i,r,C,p,g,M,G,y,_,$)}}function Uke(t,n){const e=W1(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class Gke{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=W1(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=X1(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class qke{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new Gke(r.style,r.options&&r.options.params||{},i))}),E7(this.states,"true","1"),E7(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new T7(n,r,this.states))}),this.fallbackTransition=function Xke(t,n,e){return new T7(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function E7(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const Yke=new Ew;class Jke{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=lM(this._driver,e,i,r);if(i.length)throw function J2e(t){return new Ot(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=s7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=dM(this._driver,e,o,iM,yw,new Map,new Map,i,Yke,r),s.forEach(u=>{const d=fc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function K2e(){return new Ot(3300,!1)}()),s=[]),r.length)throw function Q2e(t){return new Ot(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,$h))})});const c=wf(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function Z2e(t){return new Ot(3301,!1)}();return e}listen(n,e,i,r){const o=ZA(e,"","","");return KA(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const A7="ng-animate-queued",mM="ng-animate-disabled",tSe=[],M7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nSe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},zc="__ng_removed";class gM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function sSe(t){return t??null}(i?n.value:n),i){const o=W1(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Y1="void",vM=new gM(Y1);class iSe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Uc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function eke(t,n){return new Ot(3302,!1)}();if(null==i||0==i.length)throw function tke(t){return new Ot(3303,!1)}();if(!function aSe(t){return"start"==t||"done"==t}(i))throw function nke(t,n){return new Ot(3400,!1)}();const o=fc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=fc(this._engine.statesByElement,n,new Map);return a.has(e)||(Uc(n,bw),Uc(n,bw+"-"+e),a.set(e,vM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function ike(t){return new Ot(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new yM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Uc(n,bw),Uc(n,bw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new gM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=vM),c.value!==Y1&&l.value===c.value){if(!function uSe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Gp(n,g),Rd(n,v)})}return}const h=fc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Uc(n,A7),s.onStart(()=>{Xg(n,A7)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,_w,!0);i.forEach(r=>{if(r[zc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Y1,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&wf(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||vM,u=new gM(Y1),d=new yM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[zc];(!o||o===M7)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Uc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=ZA(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,KA(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class rSe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new iSe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Iw(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Iw(e))return;const o=e[zc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Uc(n,mM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Xg(n,mM))}removeNode(n,e,i,r){if(Iw(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[zc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Iw(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,_w,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,rM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return wf(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[zc];if(e&&e.setForRemoval){if(n[zc]=M7,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(mM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?wf(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function rke(t){return new Ot(3402,!1)}()}_flushAnimations(n,e){const i=new Ew,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Z=>{u.add(Z);const H=this.driver.query(Z,".ng-animate-queued",!0);for(let he=0;he{const he=iM+m++;p.set(H,he),Z.forEach(E=>Uc(E,he))});const g=[],v=new Set,y=new Set;for(let Z=0;Zv.add(E)):y.add(H))}const _=new Map,C=F7(h,Array.from(v));C.forEach((Z,H)=>{const he=yw+m++;_.set(H,he),Z.forEach(E=>Uc(E,he))}),n.push(()=>{f.forEach((Z,H)=>{const he=p.get(H);Z.forEach(E=>Xg(E,he))}),C.forEach((Z,H)=>{const he=_.get(H);Z.forEach(E=>Xg(E,he))}),g.forEach(Z=>{this.processLeaveNode(Z)})});const S=[],M=[];for(let Z=this._namespaceList.length-1;Z>=0;Z--)this._namespaceList[Z].drainQueuedTransitions(e).forEach(he=>{const E=he.player,N=he.element;if(S.push(E),this.collectedEnterElements.length){const xe=N[zc];if(xe&&xe.setForMove){if(xe.previousTriggersValues&&xe.previousTriggersValues.has(he.triggerName)){const tt=xe.previousTriggersValues.get(he.triggerName),ze=this.statesByElement.get(he.element);if(ze&&ze.has(he.triggerName)){const ot=ze.get(he.triggerName);ot.value=tt,ze.set(he.triggerName,ot)}}return void E.destroy()}}const F=!d||!this.driver.containsElement(d,N),Y=_.get(N),V=p.get(N),oe=this._buildInstruction(he,i,V,Y,F);if(oe.errors&&oe.errors.length)return void M.push(oe);if(F)return E.onStart(()=>Gp(N,oe.fromStyles)),E.onDestroy(()=>Rd(N,oe.toStyles)),void r.push(E);if(he.isFallbackTransition)return E.onStart(()=>Gp(N,oe.fromStyles)),E.onDestroy(()=>Rd(N,oe.toStyles)),void r.push(E);const fe=[];oe.timelines.forEach(xe=>{xe.stretchStartingKeyframe=!0,this.disabledNodes.has(xe.element)||fe.push(xe)}),oe.timelines=fe,i.append(N,oe.timelines),s.push({instruction:oe,player:E,element:N}),oe.queriedElements.forEach(xe=>fc(a,xe,[]).push(E)),oe.preStyleProps.forEach((xe,tt)=>{if(xe.size){let ze=l.get(tt);ze||l.set(tt,ze=new Set),xe.forEach((ot,B)=>ze.add(B))}}),oe.postStyleProps.forEach((xe,tt)=>{let ze=c.get(tt);ze||c.set(tt,ze=new Set),xe.forEach((ot,B)=>ze.add(B))})});if(M.length){const Z=[];M.forEach(H=>{Z.push(function oke(t,n){return new Ot(3505,!1)}())}),S.forEach(H=>H.destroy()),this.reportError(Z)}const $=new Map,G=new Map;s.forEach(Z=>{const H=Z.element;i.has(H)&&(G.set(H,H),this._beforeAnimationBuild(Z.player.namespaceId,Z.instruction,$))}),r.forEach(Z=>{const H=Z.element;this._getPreviousPlayers(H,!1,Z.namespaceId,Z.triggerName,null).forEach(E=>{fc($,H,[]).push(E),E.destroy()})});const R=g.filter(Z=>j7(Z,l,c)),z=new Map;N7(z,this.driver,y,c,$h).forEach(Z=>{j7(Z,l,c)&&R.push(Z)});const q=new Map;f.forEach((Z,H)=>{N7(q,this.driver,new Set(Z),l,YA)}),R.forEach(Z=>{const H=z.get(Z),he=q.get(Z);z.set(Z,new Map([...Array.from(H?.entries()??[]),...Array.from(he?.entries()??[])]))});const re=[],L=[],X={};s.forEach(Z=>{const{element:H,player:he,instruction:E}=Z;if(i.has(H)){if(u.has(H))return he.onDestroy(()=>Rd(H,E.toStyles)),he.disabled=!0,he.overrideTotalTime(E.totalTime),void r.push(he);let N=X;if(G.size>1){let Y=H;const V=[];for(;Y=Y.parentNode;){const oe=G.get(Y);if(oe){N=oe;break}V.push(Y)}V.forEach(oe=>G.set(oe,N))}const F=this._buildAnimation(he.namespaceId,E,$,o,q,z);if(he.setRealPlayer(F),N===X)re.push(he);else{const Y=this.playersByElement.get(N);Y&&Y.length&&(he.parentPlayer=wf(Y)),r.push(he)}}else Gp(H,E.fromStyles),he.onDestroy(()=>Rd(H,E.toStyles)),L.push(he),u.has(H)&&r.push(he)}),L.forEach(Z=>{const H=o.get(Z.element);if(H&&H.length){const he=wf(H);Z.setRealPlayer(he)}}),r.forEach(Z=>{Z.parentPlayer?Z.syncPlayerEvents(Z.parentPlayer):Z.destroy()});for(let Z=0;Z!F.destroyed);N.length?lSe(this,H,N):this.processLeaveNode(H)}return g.length=0,re.forEach(Z=>{this.players.push(Z),Z.onDone(()=>{Z.destroy();const H=this.players.indexOf(Z);this.players.splice(H,1)}),Z.play()}),re}elementContainsData(n,e){let i=!1;const r=e[zc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==Y1;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=fc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Gp(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[zc];if(g&&g.removedBeforeQueried)return new G1(p.duration,p.delay);const v=m!==l,y=function cSe(t){const n=[];return O7(t,n),n}((i.get(m)||tSe).map($=>$.getRealPlayer())).filter($=>!!$.element&&$.element===m),_=o.get(m),C=s.get(m),S=s7(0,this._normalizer,0,p.keyframes,_,C),M=this._buildPlayer(p,S,y);if(p.subTimeline&&r&&d.add(m),v){const $=new yM(n,a,m);$.setRealPlayer(M),c.push($)}return M});c.forEach(p=>{fc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function oSe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Uc(p,m7));const f=wf(h);return f.onDestroy(()=>{u.forEach(p=>Xg(p,m7)),Rd(l,e.toStyles)}),d.forEach(p=>{fc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new G1(n.duration,n.delay)}}class yM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new G1,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>KA(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){fc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Iw(t){return t&&1===t.nodeType}function I7(t,n){const e=t.style.display;return t.style.display=n??"none",e}function N7(t,n,e,i,r){const o=[];e.forEach(l=>o.push(I7(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[zc]=nSe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>I7(l,o[a++])),s}function F7(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Uc(t,n){t.classList?.add(n)}function Xg(t,n){t.classList?.remove(n)}function lSe(t,n,e){wf(e).onDone(()=>t.processLeaveNode(n))}function O7(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class Nw{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new rSe(n,e,i),this._timelineEngine=new Jke(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=lM(this._driver,o,l,c);if(l.length)throw function X2e(t,n){return new Ot(3404,!1)}();a=function Wke(t,n,e){return new qke(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=a7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=a7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let hSe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Rd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Rd(this._element,this._initialStyles),this._endStyles&&(Rd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Gp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gp(this._element,this._endStyles),this._endStyles=null),Rd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function bM(t){let n=null;return t.forEach((e,i)=>{(function fSe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class P7{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:x7(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pSe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return d7(n,e)}getParentElement(n){return tM(n)}query(n,e,i){return h7(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof P7);(function yke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function pke(t){return t.length?t[0]instanceof Map?t:t.map(n=>g7(n)):[]}(e).map(f=>Cf(f));d=function bke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,x7(t,a)))}}return n}(n,d,c);const h=function dSe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=bM(n[0]),n.length>1&&(i=bM(n[n.length-1]))):n instanceof Map&&(e=bM(n)),e||i?new hSe(t,e,i):null}(n,d);return new P7(n,d,l,h)}}let mSe=(()=>{class t extends t7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:yu.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?n7(e):e;return L7(this._renderer,null,i,"register",[r]),new gSe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ct(Lp),ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class gSe extends D2e{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new vSe(this._id,n,e||{},this._renderer)}}class vSe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return L7(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function L7(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const R7="@.disabled";let ySe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new $7("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new bSe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(ct(Lp),ct(Nw),ct(Wi))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class $7{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==R7?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class bSe extends $7{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==R7?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function _Se(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function xSe(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let wSe=(()=>{class t extends Nw{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir),ct(nM),ct(fM),ct(Au))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const B7=[{provide:t7,useClass:mSe},{provide:fM,useFactory:function CSe(){return new Hke}},{provide:Nw,useClass:wSe},{provide:Lp,useFactory:function kSe(t,n,e){return new ySe(t,n,e)},deps:[vw,Nw,Wi]}],_M=[{provide:nM,useFactory:()=>new pSe},{provide:C$,useValue:"BrowserAnimations"},...B7],xM=[{provide:nM,useClass:f7},{provide:C$,useValue:"NoopAnimations"},...B7];let SSe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?xM:_M}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:_M,imports:[qA]}),t})(),DSe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:xM,imports:[qA]}),t})();function $n(...t){let n=t[t.length-1];return Sa(n)?(t.pop(),Oc(t,n)):st(t)}class Hs extends tr{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Xr;return this._value}next(n){super.next(this._value=n)}}const Ow=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class wM extends O{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class TSe extends O{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function CM(t,n,e,i,r=new TSe(t,e,i)){if(!r.closed)return n instanceof rn?n.subscribe(r):nc(n)(r)}const V7={};function jw(...t){let n,e;return Sa(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&et(t[0])&&(t=t[0]),st(t,e).lift(new ESe(n))}class ESe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new ASe(n,this.resultSelector))}}class ASe extends wM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(V7),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function Lw(t){return t?function ISe(t){return new rn(n=>t.schedule(()=>n.complete()))}(t):Vh}function H7(t){return new rn(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?co(e):Lw()).subscribe(n)})}function qp(t,n){return new rn(n?e=>n.schedule(NSe,0,{error:t,subscriber:e}):e=>e.error(t))}function NSe({error:t,subscriber:n}){n.error(t)}function zl(t,n){return"function"==typeof n?e=>e.pipe(zl((i,r)=>co(t(i,r)).pipe(yn((o,s)=>n(i,o,r,s))))):e=>e.lift(new FSe(t))}class FSe{constructor(n){this.project=n}call(n,e){return e.subscribe(new OSe(n,this.project))}}class OSe extends W{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ml(this),r=this.destination;r.add(i),this.innerSubscription=Fe(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const z7=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Sl(t){return n=>0===t?Lw():n.lift(new jSe(t))}class jSe{constructor(n){if(this.total=n,this.total<0)throw new z7}call(n,e){return e.subscribe(new PSe(n,this.total))}}class PSe extends O{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function ns(t,n){return function(i){return i.lift(new LSe(t,n))}}class LSe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new RSe(n,this.predicate,this.thisArg))}}class RSe extends O{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function Rw(t=null){return n=>n.lift(new $Se(t))}class $Se{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new BSe(n,this.defaultValue))}}class BSe extends O{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function U7(t=zSe){return n=>n.lift(new VSe(t))}class VSe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new HSe(n,this.errorFactory))}}class HSe extends O{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function zSe(){return new Ow}function kf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ns((r,o)=>t(r,o,i)):jt,Sl(1),e?Rw(n):U7(()=>new Ow))}function Sf(t,n){return nt(t,n,1)}function Hh(){}function is(t,n,e){return function(r){return r.lift(new USe(t,n,e))}}class USe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new GSe(n,this.nextOrObserver,this.error,this.complete))}}class GSe extends O{constructor(n,e,i,r){super(n),this._tapNext=Hh,this._tapError=Hh,this._tapComplete=Hh,this._tapError=i||Hh,this._tapComplete=r||Hh,rt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Hh,this._tapError=e.error||Hh,this._tapComplete=e.complete||Hh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Ul(t){return function(e){const i=new WSe(t),r=e.lift(i);return i.caught=r}}class WSe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new qSe(n,this.selector,this.caught))}}class qSe extends W{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ml(this);this.add(i);const r=Fe(e,i);r!==i&&this.add(r)}}}function G7(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new XSe(t,n,e))}}class XSe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new YSe(n,this.accumulator,this.seed,this.hasSeed))}}class YSe extends O{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function kM(t){return function(e){return 0===t?Lw():e.lift(new JSe(t))}}class JSe{constructor(n){if(this.total=n,this.total<0)throw new z7}call(n,e){return e.subscribe(new KSe(n,this.total))}}class KSe extends O{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?ns((r,o)=>t(r,o,i)):jt,kM(1),e?Rw(n):U7(()=>new Ow))}class ZSe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new eDe(n,this.predicate,this.inclusive))}}class eDe extends O{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class nDe{constructor(n){this.value=n}call(n,e){return e.subscribe(new iDe(n,this.value))}}class iDe extends O{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function SM(t){return n=>n.lift(new rDe(t))}class rDe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new oDe(n,this.callback))}}class oDe extends O{constructor(n,e){super(n),this.add(new ue(e))}}const zi="primary",K1=Symbol("RouteTitle");class sDe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Yg(t){return new sDe(t)}function aDe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function X7(t){return Array.prototype.concat.apply([],t)}function Y7(t){return t.length>0?t[t.length-1]:null}function Na(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Df(t){return OE(t)?t:S1(t)?co(Promise.resolve(t)):$n(t)}const $w=!1,cDe={exact:function Q7(t,n,e){if(!Xp(t.segments,n.segments)||!Bw(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!Q7(t.children[i],n.children[i],e))return!1;return!0},subset:Z7},J7={exact:function uDe(t,n){return $d(t,n)},subset:function dDe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>q7(t[e],n[e]))},ignored:()=>!0};function K7(t,n,e){return cDe[e.paths](t.root,n.root,e.matrixParams)&&J7[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Z7(t,n,e){return e9(t,n,n.segments,e)}function e9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Xp(r,e)||n.hasChildren()||!Bw(r,e,i))}if(t.segments.length===e.length){if(!Xp(t.segments,e)||!Bw(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!Z7(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Xp(t.segments,r)&&Bw(t.segments,r,i)&&t.children[zi])&&e9(t.children[zi],n,o,i)}}function Bw(t,n,e){return n.every((i,r)=>J7[e](t[r].parameters,i.parameters))}class Tf{constructor(n=new fr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yg(this.queryParams)),this._queryParamMap}toString(){return pDe.serialize(this)}}class fr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Na(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vw(this)}}class Q1{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Yg(this.parameters)),this._parameterMap}toString(){return i9(this)}}function Xp(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let Z1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return new DM},providedIn:"root"}),t})();class DM{parse(n){const e=new CDe(n);return new Tf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${ey(n.root,!0)}`,i=function vDe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Hw(e)}=${Hw(r)}`).join("&"):`${Hw(e)}=${Hw(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function mDe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const pDe=new DM;function Vw(t){return t.segments.map(n=>i9(n)).join("/")}function ey(t,n){if(!t.hasChildren())return Vw(t);if(n){const e=t.children[zi]?ey(t.children[zi],!1):"",i=[];return Na(t.children,(r,o)=>{o!==zi&&i.push(`${o}:${ey(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function fDe(t,n){let e=[];return Na(t.children,(i,r)=>{r===zi&&(e=e.concat(n(i,r)))}),Na(t.children,(i,r)=>{r!==zi&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===zi?[ey(t.children[zi],!1)]:[`${r}:${ey(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[zi]?`${Vw(t)}/${e[0]}`:`${Vw(t)}/(${e.join("//")})`}}function t9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hw(t){return t9(t).replace(/%3B/gi,";")}function TM(t){return t9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zw(t){return decodeURIComponent(t)}function n9(t){return zw(t.replace(/\+/g,"%20"))}function i9(t){return`${TM(t.path)}${function gDe(t){return Object.keys(t).map(n=>`;${TM(n)}=${TM(t[n])}`).join("")}(t.parameters)}`}const yDe=/^[^\/()?;=#]+/;function Uw(t){const n=t.match(yDe);return n?n[0]:""}const bDe=/^[^=?&#]+/,xDe=/^[^&#]+/;class CDe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fr([],{}):new fr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[zi]=new fr(n,e)),i}parseSegment(){const n=Uw(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Ot(4009,$w);return this.capture(n),new Q1(zw(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Uw(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Uw(this.remaining);r&&(i=r,this.capture(i))}n[zw(e)]=zw(i)}parseQueryParam(n){const e=function _De(t){const n=t.match(bDe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function wDe(t){const n=t.match(xDe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=n9(e),o=n9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Uw(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Ot(4010,$w);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=zi);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zi]:new fr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Ot(4011,$w)}}function EM(t){return t.segments.length>0?new fr([],{[zi]:t}):t}function Gw(t){const n={};for(const i of Object.keys(t.children)){const o=Gw(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function kDe(t){if(1===t.numberOfChildren&&t.children[zi]){const n=t.children[zi];return new fr(t.segments.concat(n.segments),n.children)}return t}(new fr(t.segments,n))}function Yp(t){return t instanceof Tf}const AM=!1;function SDe(t,n,e,i,r){if(0===e.length)return Jg(n.root,n.root,n.root,i,r);const o=function l9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new a9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Na(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new a9(e,n,i)}(e);return o.toRoot()?Jg(n.root,n.root,new fr([],{}),i,r):function s(l){const c=function TDe(t,n,e,i){if(t.isAbsolute)return new Kg(n.root,!0,0);if(-1===i)return new Kg(e,e===n.root,0);return function c9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Ot(4005,AM&&"Invalid number of '../'");r=i.segments.length}return new Kg(i,!1,r-o)}(e,i+(ty(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?Qg(c.segmentGroup,c.index,o.commands):MM(c.segmentGroup,c.index,o.commands);return Jg(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function ty(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ny(t){return"object"==typeof t&&null!=t&&t.outlets}function Jg(t,n,e,i,r){let s,o={};i&&Na(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:s9(t,n,e);const a=EM(Gw(s));return new Tf(a,o,r)}function s9(t,n,e){const i={};return Na(t.children,(r,o)=>{i[o]=r===n?e:s9(r,n,e)}),new fr(t.segments,i)}class a9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ty(i[0]))throw new Ot(4003,AM&&"Root segment cannot have matrix parameters");const r=i.find(ny);if(r&&r!==Y7(i))throw new Ot(4004,AM&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Kg{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function MM(t,n,e){if(t||(t=new fr([],{})),0===t.segments.length&&t.hasChildren())return Qg(t,n,e);const i=function ADe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(ny(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!d9(l,c,s))return o;i+=2}else{if(!d9(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=MM(t.children[s],n,o))}),Na(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new fr(t.segments,r))}}function IM(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=IM(new fr([],{}),0,e))}),n}function u9(t){const n={};return Na(t,(e,i)=>n[i]=`${e}`),n}function d9(t,n,e){return t==e.path&&$d(n,e.parameters)}const iy="imperative";class Bd{constructor(n,e){this.id=n,this.url=e}}class Ww extends Bd{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zh extends Bd{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ry extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qw extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class Xw extends Bd{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class IDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FDe extends Bd{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ODe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class PDe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class LDe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class RDe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $De{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class BDe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class VDe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h9{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let UDe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return SDe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),WDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(n){return UDe.\u0275fac(n)},providedIn:"root"}),t})();class f9{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=NM(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=NM(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=FM(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return FM(n,this._root).map(e=>e.value)}}function NM(t,n){if(t===n.value)return n;for(const e of n.children){const i=NM(t,e);if(i)return i}return null}function FM(t,n){if(t===n.value)return[n];for(const e of n.children){const i=FM(t,e);if(i.length)return i.unshift(n),i}return[]}class Uh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Zg(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class p9 extends f9{constructor(n,e){super(n),this.snapshot=e,OM(this,n)}toString(){return this.snapshot.toString()}}function m9(t,n){const e=function qDe(t,n){const s=new Yw([],{},{},"",{},zi,n,null,t.root,-1,{});return new v9("",new Uh(s,[]))}(t,n),i=new Hs([new Q1("",{})]),r=new Hs({}),o=new Hs({}),s=new Hs({}),a=new Hs(""),l=new Rr(i,r,s,a,o,zi,n,e.root);return l.snapshot=e.root,new p9(new Uh(l,[]),e)}class Rr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(yn(c=>c[K1]))??$n(void 0),this._futureSnapshot=l}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(yn(n=>Yg(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(yn(n=>Yg(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function g9(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function XDe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Yw{get title(){return this.data?.[K1]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,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=Yg(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yg(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class v9 extends f9{constructor(n,e){super(e),this.url=n,OM(this,e)}toString(){return y9(this._root)}}function OM(t,n){n.value._routerState=t,n.children.forEach(e=>OM(t,e))}function y9(t){const n=t.children.length>0?` { ${t.children.map(y9).join(", ")} } `:"";return`${t.value}${n}`}function jM(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,$d(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),$d(n.params,e.params)||t.params.next(e.params),function lDe(t,n){if(t.length!==n.length)return!1;for(let e=0;e$d(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||PM(t.parent,n.parent))}function oy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function JDe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return oy(t,i,r);return oy(t,i)})}(t,n,e);return new Uh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>oy(t,a)),s}}const i=function KDe(t){return new Rr(new Hs(t.url),new Hs(t.params),new Hs(t.queryParams),new Hs(t.fragment),new Hs(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>oy(t,o));return new Uh(i,r)}}const LM="ngNavigationCancelingError";function b9(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Yp(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=_9(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function _9(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[LM]=!0,i.cancellationCode=n,e&&(i.url=e),i}function x9(t){return w9(t)&&Yp(t.url)}function w9(t){return t&&t[LM]}class QDe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new sy,this.attachRef=null}}let sy=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new QDe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Jw=!1;let Jp=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=zi,this.activateEvents=new Ke,this.deactivateEvents=new Ke,this.attachEvents=new Ke,this.detachEvents=new Ke,this.parentContexts=ar(sy),this.location=ar(nl),this.changeDetector=ar(qo),this.environmentInjector=ar(Nd)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}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 Ot(4012,Jw);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ot(4012,Jw);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ot(4012,Jw);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.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,i){if(this.isActivated)throw new Ot(4013,Jw);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ZDe(e,a,r.injector);if(i&&function eTe(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]}),t})();class ZDe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Rr?this.route:n===sy?this.childContexts:this.parent.get(n,e)}}let RM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ng-component"]],standalone:!0,features:[L6],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[Jp],encapsulation:2}),t})();function C9(t,n){return t.providers&&!t._injector&&(t._injector=Gx(t.providers,n,`Route: ${t.path}`)),t._injector??n}function BM(t){const n=t.children&&t.children.map(BM),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==zi&&(e.component=RM),e}function Gc(t){return t.outlet||zi}function k9(t,n){const e=t.filter(i=>Gc(i)===n);return e.push(...t.filter(i=>Gc(i)!==n)),e}function ay(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class oTe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),jM(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Zg(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Na(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Zg(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Zg(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=Zg(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new VDe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new $De(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(jM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),jM(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=ay(r.snapshot),l=a?.get($c)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class S9{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Kw{constructor(n,e){this.component=n,this.route=e}}function sTe(t,n,e){const i=t._root;return ly(i,n?n._root:null,e,[i.value])}function ev(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function cge(t){return null!==q_(t)}(t)?n.get(t):t:i}function ly(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Zg(n);return t.children.forEach(s=>{(function lTe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function cTe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Xp(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Xp(t.url,n.url)||!$d(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!PM(t,n)||!$d(t.queryParams,n.queryParams);default:return!PM(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new S9(i)):(o.data=s.data,o._resolvedData=s._resolvedData),ly(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Kw(a.outlet.component,s))}else s&&cy(n,a,r),r.canActivateChecks.push(new S9(i)),ly(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Na(o,(s,a)=>cy(s,e.getContext(a),r)),r}function cy(t,n,e){const i=Zg(t),r=t.value;Na(i,(o,s)=>{cy(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new Kw(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function uy(t){return"function"==typeof t}function VM(t){return t instanceof Ow||"EmptyError"===t?.name}const Qw=Symbol("INITIAL_VALUE");function tv(){return zl(t=>jw(t.map(n=>n.pipe(Sl(1),function J1(...t){const n=t[t.length-1];return Sa(n)?(t.pop(),e=>Pw(t,e,n)):e=>Pw(t,e)}(Qw)))).pipe(yn(n=>{for(const e of n)if(!0!==e){if(e===Qw)return Qw;if(!1===e||e instanceof Tf)return e}return!0}),ns(n=>n!==Qw),Sl(1)))}function D9(t){return function Wt(...t){return wn(t)}(is(n=>{if(Yp(n))throw b9(0,n)}),yn(n=>!0===n))}const HM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function T9(t,n,e,i,r){const o=zM(t,n,e);return o.matched?function DTe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?$n(r.map(s=>{const a=ev(s,t);return Df(function mTe(t){return t&&uy(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(tv(),D9()):$n(!0)}(i=C9(n,i),n,e).pipe(yn(s=>!0===s?o:{...HM})):$n(o)}function zM(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...HM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||aDe)(e,t,n);if(!r)return{...HM};const o={};Na(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Zw(t,n,e,i){if(e.length>0&&function ATe(t,n,e){return e.some(i=>eC(t,n,i)&&Gc(i)!==zi)}(t,e,i)){const o=new fr(n,function ETe(t,n,e,i){const r={};r[zi]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Gc(o)!==zi){const s=new fr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Gc(o)]=s}return r}(t,n,i,new fr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function MTe(t,n,e){return e.some(i=>eC(t,n,i))}(t,e,i)){const o=new fr(t.segments,function TTe(t,n,e,i,r){const o={};for(const s of i)if(eC(t,e,s)&&!r[Gc(s)]){const a=new fr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Gc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new fr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function eC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function E9(t,n,e,i){return!!(Gc(t)===i||i!==zi&&eC(n,e,t))&&("**"===t.path||zM(n,t,e).matched)}function A9(t,n,e){return 0===n.length&&!t.children[e]}const tC=!1;class nC{constructor(n){this.segmentGroup=n||null}}class M9{constructor(n){this.urlTree=n}}function dy(t){return qp(new nC(t))}function I9(t){return qp(new M9(t))}function ITe(t){return qp(new Ot(4e3,tC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class OTe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=Zw(this.urlTree.root,[],[],this.config).segmentGroup,e=new fr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,zi).pipe(yn(o=>this.createUrlTree(Gw(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ul(o=>{if(o instanceof M9)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof nC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,zi).pipe(yn(r=>this.createUrlTree(Gw(r),n.queryParams,n.fragment))).pipe(Ul(r=>{throw r instanceof nC?this.noMatchError(r):r}))}noMatchError(n){return new Ot(4002,tC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=EM(n);return new Tf(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(yn(o=>new fr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return co(r).pipe(Sf(o=>{const s=i.children[o],a=k9(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(yn(l=>({segment:l,outlet:o})))}),G7((o,s)=>(o[s.outlet]=s.segment,o),{}),W7())}expandSegment(n,e,i,r,o,s){return co(i).pipe(Sf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Ul(c=>{if(c instanceof nC)return $n(null);throw c}))),kf(a=>!!a),Ul((a,l)=>{if(VM(a))return A9(e,r,o)?$n(new fr([],{})):dy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return E9(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):dy(e):dy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?I9(o):this.lineralizeSegments(i,o).pipe(nt(s=>{const a=new fr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=zM(e,r,o);if(!a)return dy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?I9(d):this.lineralizeSegments(r,d).pipe(nt(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=C9(i,n),i.loadChildren?(i._loadedRoutes?$n({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(yn(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new fr(r,{})))):$n(new fr(r,{}))):T9(e,i,r,n).pipe(zl(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(nt(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=Zw(e,a,l,h),m=new fr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(yn(_=>new fr(a,_)));if(0===h.length&&0===p.length)return $n(new fr(a,{}));const g=Gc(i)===o;return this.expandSegment(d,m,h,p,g?zi:o,!0).pipe(yn(y=>new fr(a.concat(y.segments),y.children)))})):dy(e)))}getChildConfig(n,e,i){return e.children?$n({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?$n({routes:e._loadedRoutes,injector:e._loadedInjector}):function STe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?$n(!0):$n(r.map(s=>{const a=ev(s,t);return Df(function dTe(t){return t&&uy(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(tv(),D9())}(n,e,i).pipe(nt(r=>r?this.configLoader.loadChildren(n,e).pipe(is(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function NTe(t){return qp(_9(tC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):$n({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return $n(i);if(r.numberOfChildren>1||!r.children[zi])return ITe(n.redirectTo);r=r.children[zi]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Tf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Na(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Na(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new fr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Ot(4001,tC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class PTe{}class $Te{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=Zw(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,zi).pipe(yn(e=>{if(null===e)return null;const i=new Yw([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zi,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Uh(i,e),o=new v9(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=g9(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return co(Object.keys(i.children)).pipe(Sf(r=>{const o=i.children[r],s=k9(e,r);return this.processSegmentGroup(n,s,o,r)}),G7((r,o)=>r&&o?(r.push(...o),r):null),function QSe(t,n=!1){return e=>e.lift(new ZSe(t,n))}(r=>null!==r),Rw(null),W7(),yn(r=>{if(null===r)return null;const o=F9(r);return function BTe(t){t.sort((n,e)=>n.value.outlet===zi?-1:e.value.outlet===zi?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return co(e).pipe(Sf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),kf(s=>!!s),Ul(s=>{if(VM(s))return A9(i,r,o)?$n([]):$n(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!E9(e,i,r,o))return $n(null);let s;if("**"===e.path){const a=r.length>0?Y7(r).parameters:{},l=j9(i)+r.length;s=$n({snapshot:new Yw(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,P9(e),Gc(e),e.component??e._loadedComponent??null,e,O9(i),l,L9(e)),consumedSegments:[],remainingSegments:[]})}else s=T9(i,e,r,n).pipe(yn(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=j9(i)+l.length;return{snapshot:new Yw(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,P9(e),Gc(e),e.component??e._loadedComponent??null,e,O9(i),d,L9(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(zl(a=>{if(null===a)return $n(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function VTe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=Zw(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(yn(g=>null===g?null:[new Uh(l,g)]));if(0===h.length&&0===p.length)return $n([new Uh(l,[])]);const m=Gc(e)===o;return this.processSegment(d,h,f,p,m?zi:o).pipe(yn(g=>null===g?null:[new Uh(l,g)]))}))}}function HTe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function F9(t){const n=[],e=new Set;for(const i of t){if(!HTe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=F9(i.children);n.push(new Uh(i.value,r))}return n.filter(i=>!e.has(i))}function O9(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function j9(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function P9(t){return t.data||{}}function L9(t){return t.resolve||{}}function R9(t){return"string"==typeof t.title||null===t.title}function UM(t){return zl(n=>{const e=t(n);return e?co(e).pipe(yn(()=>n)):$n(n)})}const nv=new zn("ROUTES");let GM=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return $n(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Df(e.loadComponent()).pipe(yn(B9),is(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),SM(()=>{this.componentLoaders.delete(e)})),r=new pe(i,()=>new tr).pipe(Ut());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return $n({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(yn(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=X7(l.get(nv,[],ki.Self|ki.Optional)));return{routes:c.map(BM),injector:l}}),SM(()=>{this.childrenLoaders.delete(i)})),s=new pe(o,()=>new tr).pipe(Ut());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Df(e()).pipe(yn(B9),nt(r=>r instanceof j6||Array.isArray(r)?$n(r):co(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)(ct(Rs),ct(k$))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function B9(t){return function KTe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let rC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new tr,this.configLoader=ar(GM),this.environmentInjector=ar(Nd),this.urlSerializer=ar(Z1),this.rootContexts=ar(sy),this.navigationId=0,this.afterPreactivation=()=>$n(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new LDe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new PDe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new Hs({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:iy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ns(i=>0!==i.id),yn(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),zl(i=>{let r=!1,o=!1;return $n(i).pipe(is(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),zl(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new qw(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return V9(s.source)&&(e.browserUrlTree=s.extractedUrl),$n(s).pipe(zl(u=>{const d=this.transitions?.getValue();return this.events.next(new Ww(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Vh:Promise.resolve(u)}),function jTe(t,n,e,i){return zl(r=>function FTe(t,n,e,i,r){return new OTe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(yn(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),is(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function UTe(t,n,e,i,r){return nt(o=>function RTe(t,n,e,i,r,o,s="emptyOnly"){return new $Te(t,n,e,i,r,s,o).recognize().pipe(zl(a=>null===a?function LTe(t){return new rn(n=>n.error(t))}(new PTe):$n(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(yn(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),is(u=>{if(i.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 IDe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new Ww(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=m9(d,this.rootComponentType).snapshot;return $n(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new qw(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}}),is(s=>{const a=new NDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),yn(s=>i={...s,guards:sTe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function vTe(t,n){return nt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?$n({...e,guardsResult:!0}):function yTe(t,n,e,i){return co(t).pipe(nt(r=>function kTe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?$n(o.map(a=>{const l=ay(n)??r,c=ev(a,l);return Df(function pTe(t){return t&&uy(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(kf())})).pipe(tv()):$n(!0)}(r.component,r.route,e,n,i)),kf(r=>!0!==r,!0))}(s,i,r,t).pipe(nt(a=>a&&function uTe(t){return"boolean"==typeof t}(a)?function bTe(t,n,e,i){return co(n).pipe(Sf(r=>Pw(function xTe(t,n){return null!==t&&n&&n(new RDe(t)),$n(!0)}(r.route.parent,i),function _Te(t,n){return null!==t&&n&&n(new BDe(t)),$n(!0)}(r.route,i),function CTe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function aTe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>H7(()=>$n(s.guards.map(l=>{const c=ay(s.node)??e,u=ev(l,c);return Df(function fTe(t){return t&&uy(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(kf())})).pipe(tv())));return $n(o).pipe(tv())}(t,r.path,e),function wTe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return $n(!0);const r=i.map(o=>H7(()=>{const s=ay(n)??e,a=ev(o,s);return Df(function hTe(t){return t&&uy(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(kf())}));return $n(r).pipe(tv())}(t,r.route,e))),kf(r=>!0!==r,!0))}(i,o,t,n):$n(a)),yn(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),is(s=>{if(i.guardsResult=s.guardsResult,Yp(s.guardsResult))throw b9(0,s.guardsResult);const a=new FDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),ns(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),UM(s=>{if(s.guards.canActivateChecks.length)return $n(s).pipe(is(a=>{const l=new ODe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),zl(a=>{let l=!1;return $n(a).pipe(function GTe(t,n){return nt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return $n(e);let o=0;return co(r).pipe(Sf(s=>function WTe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!R9(r)&&(o[K1]=r.title),function qTe(t,n,e,i){const r=function XTe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return $n({});const o={};return co(r).pipe(nt(s=>function YTe(t,n,e,i){const r=ay(n)??i,o=ev(t,r);return Df(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(kf(),is(a=>{o[s]=a}))),kM(1),function tDe(t){return n=>n.lift(new nDe(t))}(o),Ul(s=>VM(s)?Vh:qp(s)))}(o,t,n,i).pipe(yn(s=>(t._resolvedData=s,t.data=g9(t,e).resolve,r&&R9(r)&&(t.data[K1]=r.title),null)))}(s.route,i,t,n)),is(()=>o++),kM(1),nt(s=>o===r.length?$n(e):Vh))})}(e.paramsInheritanceStrategy,this.environmentInjector),is({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),is(a=>{const l=new jDe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),UM(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(is(u=>{l.component=u}),yn(()=>{})));for(const u of l.children)c.push(...a(u));return c};return jw(a(s.targetSnapshot.root)).pipe(Rw(),Sl(1))}),UM(()=>this.afterPreactivation()),yn(s=>{const a=function YDe(t,n,e){const i=oy(t,n._root,e?e._root:void 0);return new p9(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),is(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>yn(i=>(new oTe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),is({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new zh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),SM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Ul(s=>{if(o=!0,w9(s)){x9(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ry(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),x9(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||V9(i.source)};e.scheduleNavigation(l,iy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new Xw(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Vh}))}))}cancelNavigationTransition(e,i,r){const o=new ry(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function V9(t){return t!==iy}let H9=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===zi);return i}getResolvedTitleForRoute(e){return e.data[K1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(QTe)},providedIn:"root"}),t})(),QTe=(()=>{class t extends H9{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(ct(JB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(tEe)},providedIn:"root"}),t})();class eEe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let tEe=(()=>{class t extends eEe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oC=new zn("",{providedIn:"root",factory:()=>({})});let iEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(rEe)},providedIn:"root"}),t})(),rEe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oEe(t){throw t}function sEe(t,n,e){return n.parse("/")}const aEe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lEe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let cr=(()=>{class t{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=ar(xxe),this.isNgZoneEnabled=!1,this.options=ar(oC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||oEe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||sEe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ar(iEe),this.routeReuseStrategy=ar(ZTe),this.urlCreationStrategy=ar(WDe),this.titleStrategy=ar(H9),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=X7(ar(nv,{optional:!0})??[]),this.navigationTransitions=ar(rC),this.urlSerializer=ar(Z1),this.location=ar(kA),this.isNgZoneEnabled=ar(Wi)instanceof Wi&&Wi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Tf,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=m9(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),iy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(BM),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,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Yp(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,iy,null,i)}navigate(e,i={skipLocationChange:!1}){return function cEe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!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&&(i&&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,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nu=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new tr;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof zh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=qg(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=qg(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=qg(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,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"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 d5(t,n,e){return function L0e(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?u5:y1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,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 t.\u0275fac=function(e){return new(e||t)(le(cr),le(Rr),Ah("tabindex"),le(Ss),le(ti),le(zp))},t.\u0275dir=Zt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&ye("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ht("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Hn]}),t})(),hy=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ke,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof zh&&this.update()})}ngAfterContentInit(){$n(this.links.changes,$n(null)).pipe(A()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=co(e).pipe(A()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=function uEe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(le(cr),le(ti),le(Ss),le(qo),le(Nu,8))},t.\u0275dir=Zt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,Nu,5),2&e){let o;cn(o=un())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]}),t})();class z9{}let dEe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ns(e=>e instanceof zh),Sf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Gx(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return co(r).pipe(A())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):$n(null);const o=r.pipe(nt(s=>null===s?$n(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?co([o,this.loader.loadComponent(i)]).pipe(A()):o})}}return t.\u0275fac=function(e){return new(e||t)(ct(cr),ct(k$),ct(Nd),ct(z9),ct(GM))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const qM=new zn("");let U9=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.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 Ww?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof zh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof h9&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new h9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function V5(){throw new Error("invalid")}()},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();var mc=(()=>((mc=mc||{})[mc.COMPLETE=0]="COMPLETE",mc[mc.FAILED=1]="FAILED",mc[mc.REDIRECTING=2]="REDIRECTING",mc))();const iv=!1;function Ef(t,n){return{\u0275kind:t,\u0275providers:n}}const XM=new zn("",{providedIn:"root",factory:()=>!1});function W9(){const t=ar(Rs);return n=>{const e=t.get(Au);if(n!==e.components[0])return;const i=t.get(cr),r=t.get(q9);1===t.get(YM)&&i.initialNavigation(),t.get(X9,null,ki.Optional)?.setUpPreloading(),t.get(qM,null,ki.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const q9=new zn(iv?"bootstrap done indicator":"",{factory:()=>new tr}),YM=new zn(iv?"initial navigation":"",{providedIn:"root",factory:()=>1});function gEe(){let t=[];return t=iv?[{provide:Sx,multi:!0,useFactory:()=>{const n=ar(cr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function HDe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Ef(1,t)}const X9=new zn(iv?"router preloader":"");function vEe(t){return Ef(0,[{provide:X9,useExisting:dEe},{provide:z9,useExisting:t}])}const fy=!1,Y9=new zn(fy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),yEe=[kA,{provide:Z1,useClass:DM},cr,sy,{provide:Rr,useFactory:function G9(t){return t.routerState.root},deps:[cr]},GM,fy?{provide:XM,useValue:!0}:[]];function bEe(){return new N$("Router",cr)}let J9=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[yEe,fy&&i?.enableTracing?gEe().\u0275providers:[],{provide:nv,multi:!0,useValue:e},{provide:Y9,useFactory:CEe,deps:[[cr,new u1,new d1]]},{provide:oC,useValue:i||{}},i?.useHash?{provide:zp,useClass:lwe}:{provide:zp,useClass:tB},{provide:qM,useFactory:()=>{const t=ar(_Ce),n=ar(Wi),e=ar(oC),i=ar(rC),r=ar(Z1);return e.scrollOffset&&t.setOffset(e.scrollOffset),new U9(r,i,t,n,e)}},i?.preloadingStrategy?vEe(i.preloadingStrategy).\u0275providers:[],{provide:N$,multi:!0,useFactory:bEe},i?.initialNavigation?kEe(i):[],[{provide:K9,useFactory:W9},{provide:I$,multi:!0,useExisting:K9}]]}}static forChild(e){return{ngModule:t,providers:[{provide:nv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(ct(Y9,8))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[RM]}),t})();function CEe(t){if(fy&&t)throw new Ot(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 kEe(t){return["disabled"===t.initialNavigation?Ef(3,[{provide:Yx,multi:!0,useFactory:()=>{const n=ar(cr);return()=>{n.setUpLocationChangeListener()}}},{provide:YM,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ef(2,[{provide:YM,useValue:0},{provide:Yx,multi:!0,deps:[Rs],useFactory:n=>{const e=n.get(swe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(cr),o=n.get(q9);(function hEe(t,n){t.events.pipe(ns(e=>e instanceof zh||e instanceof ry||e instanceof Xw||e instanceof qw),yn(e=>e instanceof zh||e instanceof qw?mc.COMPLETE:e instanceof ry&&(0===e.code||1===e.code)?mc.REDIRECTING:mc.FAILED),ns(e=>e!==mc.REDIRECTING),Sl(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(rC).afterPreactivation=()=>(i(!0),o.closed?$n(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const K9=new zn(fy?"Router Initializer":"");function sC(t,n){return new rn(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let Q9=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(le(Ss),le(ti))},t.\u0275dir=Zt({type:t}),t})(),Kp=(()=>{class t extends Q9{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,features:[vi]}),t})();const ha=new zn("NgValueAccessor"),TEe={provide:ha,useExisting:Gi(()=>aC),multi:!0};let aC=(()=>{class t extends Kp{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&ye("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Lr([TEe]),vi]}),t})();const EEe={provide:ha,useExisting:Gi(()=>Fa),multi:!0},MEe=new zn("CompositionEventMode");let Fa=(()=>{class t extends Q9{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function AEe(){const t=jh()?jh().getUserAgent():"";return/android (\d+)/.test(t.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 t.\u0275fac=function(e){return new(e||t)(le(Ss),le(ti),le(MEe,8))},t.\u0275dir=Zt({type:t,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,i){1&e&&ye("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Lr([EEe]),vi]}),t})();const IEe=!1;function Af(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Z9(t){return null!=t&&"number"==typeof t.length}const Oa=new zn("NgValidators"),Mf=new zn("NgAsyncValidators"),NEe=/^(?=.{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 Do{static min(n){return eV(n)}static max(n){return function tV(t){return n=>{if(Af(n.value)||Af(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return nV(n)}static requiredTrue(n){return function iV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function rV(t){return Af(t.value)||NEe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function oV(t){return n=>Af(n.value)||!Z9(n.value)?null:n.value.lengthZ9(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function aV(t){if(!t)return lC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Af(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return fV(n)}static composeAsync(n){return pV(n)}}function eV(t){return n=>{if(Af(n.value)||Af(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function dV(t,n){return n.map(e=>e(t))}function hV(t){return t.map(n=>function FEe(t){return!t.validate}(n)?n:e=>n.validate(e))}function fV(t){if(!t)return null;const n=t.filter(lV);return 0==n.length?null:function(e){return uV(dV(e,n))}}function JM(t){return null!=t?fV(hV(t)):null}function pV(t){if(!t)return null;const n=t.filter(lV);return 0==n.length?null:function(e){return function DEe(...t){if(1===t.length){const n=t[0];if(et(n))return sC(n,null);if(Ve(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return sC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return sC(t=1===t.length&&et(t[0])?t[0]:t,null).pipe(yn(e=>n(...e)))}return sC(t,null)}(dV(e,n).map(cV)).pipe(yn(uV))}}function KM(t){return null!=t?pV(hV(t)):null}function mV(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function gV(t){return t._rawValidators}function vV(t){return t._rawAsyncValidators}function QM(t){return t?Array.isArray(t)?t:[t]:[]}function cC(t,n){return Array.isArray(t)?t.includes(n):t===n}function yV(t,n){const e=QM(n);return QM(t).forEach(r=>{cC(e,r)||e.push(r)}),e}function bV(t,n){return QM(n).filter(e=>!cC(t,e))}class _V{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(n){this._rawValidators=n||[],this._composedValidatorFn=JM(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=KM(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Dl extends _V{get formDirective(){return null}get path(){return null}}class If extends _V{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xV{constructor(n){this._cd=n}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 rl=(()=>{class t extends xV{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(le(If,2))},t.\u0275dir=Zt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Mn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[vi]}),t})(),ol=(()=>{class t extends xV{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(le(Dl,10))},t.\u0275dir=Zt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Mn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[vi]}),t})();function wV(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const t3=!1,py="VALID",dC="INVALID",rv="PENDING",my="DISABLED";function n3(t){return(hC(t)?t.validators:t)||null}function i3(t,n){return(hC(n)?n.asyncValidators:t)||null}function hC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function CV(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Ot(1e3,t3?function LEe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new Ot(1001,t3?function REe(t,n){return`Cannot find form control ${wV(t,n)}`}(n,e):"")}function kV(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new Ot(1002,t3?function $Ee(t,n){return`Must supply a value for form control ${wV(t,n)}`}(n,r):"")})}class fC{constructor(n,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(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===py}get invalid(){return this.status===dC}get pending(){return this.status==rv}get disabled(){return this.status===my}get enabled(){return this.status!==my}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(yV(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(yV(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(bV(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(bV(n,this._rawAsyncValidators))}hasValidator(n){return cC(this._rawValidators,n)}hasAsyncValidator(n){return cC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=rv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=my,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=py,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===py||this.status===rv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?my:py}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=rv,this._hasOwnPendingAsyncValidator=!0;const e=cV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ke,this.statusChanges=new Ke}_calculateStatus(){return this._allControlsDisabled()?my:this.errors?dC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(rv)?rv:this._anyControlsHaveStatus(dC)?dC:py}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function BEe(t){return Array.isArray(t)?JM(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function VEe(t){return Array.isArray(t)?KM(t):t||null}(this._rawAsyncValidators)}}class gy extends fC{constructor(n,e,i){super(n3(e),i3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){kV(this,!0,n),Object.keys(n).forEach(i=>{CV(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class SV extends gy{}const Qp=new zn("CallSetDisabledState",{providedIn:"root",factory:()=>vy}),vy="always";function yy(t,n,e=vy){r3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function zEe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&DV(t,n)})}(t,n),function GEe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function UEe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&DV(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function HEe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function mC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),vC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function gC(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function r3(t,n){const e=gV(t);null!==n.validator?t.setValidators(mV(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=vV(t);null!==n.asyncValidator?t.setAsyncValidators(mV(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();gC(n._rawValidators,r),gC(n._rawAsyncValidators,r)}function vC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=gV(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=vV(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return gC(n._rawValidators,i),gC(n._rawAsyncValidators,i),e}function DV(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function AV(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function MV(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const _y=class extends fC{constructor(n=null,e,i){super(n3(e),i3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=MV(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){AV(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){AV(this._onDisabledChange,n)}_forEachChild(n){}_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(n){MV(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const eAe={provide:ha,useExisting:Gi(()=>c3),multi:!0};let c3=(()=>{class t extends Kp{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ye("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Lr([eAe]),vi]}),t})(),jV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();const u3=new zn("NgModelWithFormControlWarning"),oAe={provide:Dl,useExisting:Gi(()=>fa)};let fa=(()=>{class t extends Dl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ke,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vC(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 i=this.form.get(e.path);return yy(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){mC(e.control||null,e,!1),function YEe(t,n){const e=t.indexOf(n);e>-1&&t.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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function EV(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(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 i=e.control,r=this.form.get(e.path);i!==r&&(mC(i||null,e),(t=>t instanceof _y)(r)&&(yy(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function TV(t,n){r3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function WEe(t,n){return vC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){r3(this.form,this),this._oldForm&&vC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(le(Oa,10),le(Mf,10),le(Qp,8))},t.\u0275dir=Zt({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ye("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lr([oAe]),vi,Hn]}),t})();const lAe={provide:If,useExisting:Gi(()=>ja)};let ja=(()=>{class t extends If{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Ke,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function a3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Fa?e=o:function XEe(t){return Object.getPrototypeOf(t.constructor)===Kp}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function s3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(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 function pC(t,n){return[...n.path,t]}(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 t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(le(Dl,13),le(Oa,10),le(Mf,10),le(ha,10),le(u3,8))},t.\u0275dir=Zt({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Lr([lAe]),vi,Hn]}),t})();const cAe={provide:ha,useExisting:Gi(()=>ov),multi:!0};function BV(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let ov=(()=>{class t extends Kp{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=BV(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function uAe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&ye("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Lr([cAe]),vi]}),t})(),xy=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,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(BV(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 t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(ov,9))},t.\u0275dir=Zt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const dAe={provide:ha,useExisting:Gi(()=>f3),multi:!0};function VV(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let f3=(()=>{class t extends Kp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(VV(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(VV(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 t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(f3,9))},t.\u0275dir=Zt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let Zp=(()=>{class t{constructor(){this._validator=lC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):lC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,features:[Hn]}),t})();const pAe={provide:Oa,useExisting:Gi(()=>p3),multi:!0};let p3=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function zV(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>eV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ht("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[Lr([pAe]),vi]}),t})();const mAe={provide:Oa,useExisting:Gi(()=>Nf),multi:!0};let Nf=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=qg,this.createValidator=e=>nV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ht("required",i._enabled?"":null)},inputs:{required:"required"},features:[Lr([mAe]),vi]}),t})(),JV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[jV]}),t})();class KV extends fC{constructor(n,e,i){super(n3(e),i3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){kV(this,!1,n),n.forEach((i,r)=>{CV(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function QV(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let xAe=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return QV(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new gy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new SV(r,i)}control(e,i,r){let o={};return this.useNonNullable?(QV(i)?o=i:(o.validators=i,o.asyncValidators=r),new _y(e,{...o,nonNullable:!0})):new _y(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new KV(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof _y||e instanceof fC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tl=(()=>{class t extends xAe{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Qp,useValue:e.callSetDisabledState??vy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[JV]}),t})(),wAe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:u3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Qp,useValue:e.callSetDisabledState??vy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[JV]}),t})();const m3=new zn("ngx-segment-analytics.config"),CAe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js"};let g3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),yC=(()=>{class t{constructor(e,i,r){if(this._w=e,this._doc=i,this._config=Object.assign(Object.assign({},CAe),r),this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics.SNIPPET_VERSION="4.1.0",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}traits(){return this._w.analytics.traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}get plugins(){return this._w.analytics.plugins}}return t.\u0275fac=function(e){return new(e||t)(ct(g3),ct(Ir),ct(m3))},t.\u0275prov=Et({factory:function(){return new t(ct(g3),ct(Ir),ct(m3))},token:t,providedIn:"root"}),t})();function kAe(t){return function DB(t){return t===SB}(t)?window:{}}let SAe=(()=>{class t{constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static forRoot(e){return{ngModule:t,providers:[{provide:m3,useValue:e},yC]}}}return t.\u0275fac=function(e){return new(e||t)(ct(t,12))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[{provide:g3,useFactory:kAe,deps:[L1]}],imports:[Vs]}),t})();class bC{}class v3{}class Fu{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Fu?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Fu;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Fu?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class DAe{encodeKey(n){return eH(n)}encodeValue(n){return eH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const EAe=/%(\d[a-f0-9])/gi,AAe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function eH(t){return encodeURIComponent(t).replace(EAe,(n,e)=>AAe[e]??n)}function _C(t){return`${t}`}class In{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new DAe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function TAe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(_C):[_C(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new In({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(_C(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(_C(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class MAe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function tH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function nH(t){return typeof Blob<"u"&&t instanceof Blob}function iH(t){return typeof FormData<"u"&&t instanceof FormData}class Cy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function IAe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Fu),this.context||(this.context=new MAe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Cy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var zs=(()=>((zs=zs||{})[zs.Sent=0]="Sent",zs[zs.UploadProgress=1]="UploadProgress",zs[zs.ResponseHeader=2]="ResponseHeader",zs[zs.DownloadProgress=3]="DownloadProgress",zs[zs.Response=4]="Response",zs[zs.User=5]="User",zs))();class y3{constructor(n,e=200,i="OK"){this.headers=n.headers||new Fu,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class b3 extends y3{constructor(n={}){super(n),this.type=zs.ResponseHeader}clone(n={}){return new b3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class xC extends y3{constructor(n={}){super(n),this.type=zs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new xC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class rH extends y3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function _3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let wC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Cy)o=e;else{let l,c;l=r.headers instanceof Fu?r.headers:new Fu(r.headers),r.params&&(c=r.params instanceof In?r.params:new In({fromObject:r.params})),o=new Cy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=$n(o).pipe(Sf(l=>this.handler.handle(l)));if(e instanceof Cy||"events"===r.observe)return s;const a=s.pipe(ns(l=>l instanceof xC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(yn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(yn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(yn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(yn(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new In).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,_3(r,i))}post(e,i,r={}){return this.request("POST",e,_3(r,i))}put(e,i,r={}){return this.request("PUT",e,_3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(ct(bC))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function oH(t,n){return n(t)}function FAe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const x3=new zn("HTTP_INTERCEPTORS"),ky=new zn("HTTP_INTERCEPTOR_FNS");function jAe(){let t=null;return(n,e)=>(null===t&&(t=(ar(x3,{optional:!0})??[]).reduceRight(FAe,oH)),t(n,e))}let sH=(()=>{class t extends bC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(ky)));this.chain=i.reduceRight((r,o)=>function OAe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),oH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(ct(v3),ct(Nd))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const $Ae=/^\)\]\}',?\n/;let lH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new rn(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new Fu(r.getAllResponseHeaders()),m=function BAe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new b3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const _=v;v=v.replace($Ae,"");try{v=""!==v?JSON.parse(v):null}catch(C){v=_,y&&(y=!1,v={error:C,text:v})}}y?(i.next(new xC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new rH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new rH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:zs.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:zs.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:zs.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ct(EB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const w3=new zn("XSRF_ENABLED"),cH=new zn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),uH=new zn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class dH{}let zAe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,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 t.\u0275fac=function(e){return new(e||t)(ct(Ir),ct(L1),ct(cH))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function UAe(t,n){const e=t.url.toLowerCase();if(!ar(w3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=ar(dH).getToken(),r=ar(uH);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Ts=(()=>((Ts=Ts||{})[Ts.Interceptors=0]="Interceptors",Ts[Ts.LegacyInterceptors=1]="LegacyInterceptors",Ts[Ts.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ts[Ts.NoXsrfProtection=3]="NoXsrfProtection",Ts[Ts.JsonpSupport=4]="JsonpSupport",Ts[Ts.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ts))();function sv(t,n){return{\u0275kind:t,\u0275providers:n}}function GAe(...t){const n=[wC,lH,sH,{provide:bC,useExisting:sH},{provide:v3,useExisting:lH},{provide:ky,useValue:UAe,multi:!0},{provide:w3,useValue:!0},{provide:dH,useClass:zAe}];for(const e of t)n.push(...e.\u0275providers);return function R0e(t){return{\u0275providers:t}}(n)}const hH=new zn("LEGACY_INTERCEPTOR_FN");let qAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[GAe(sv(Ts.LegacyInterceptors,[{provide:hH,useFactory:jAe},{provide:ky,useExisting:hH,multi:!0}]))]}),t})();var oi=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(oi||(oi={})),oi))(),Sy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY"}(Sy||(Sy={})),Sy))();class C3{constructor(){K(this,"host",void 0),K(this,"timeoutMs",void 0)}}let xi=(()=>{class t{constructor(e,i){K(this,"httpClient",void 0),K(this,"config",void 0),this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new In({encoder:new Xn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new In({encoder:new Xn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new In({encoder:new Xn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new In({encoder:new Xn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new In({encoder:new Xn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new In({encoder:new Xn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new In({encoder:new Xn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new In({encoder:new Xn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new In({encoder:new Xn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new In({encoder:new Xn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new In({encoder:new Xn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new In({encoder:new Xn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new Fu).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new Fu).set("Authorization","Basic "+btoa(e+":"+i))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(wC),ct(C3,8))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class Xn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const fH=new zn("window"),JAe=[{provide:fH,useFactory:()=>window}],k3="currentSession";let Xo=(()=>{class t{constructor(e,i,r,o){K(this,"window",void 0),K(this,"segment",void 0),K(this,"http",void 0),K(this,"consoleService",void 0),K(this,"currentSessionSubject",void 0),K(this,"currentSession",void 0),this.window=e,this.segment=i,this.http=r,this.consoleService=o;const s=JSON.parse(localStorage.getItem(k3));this.currentSessionSubject=new Hs(s),this.currentSession=this.currentSessionSubject.asObservable()}get currentSessionValue(){return this.currentSessionSubject.getValue()}get username(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1])).usn}get sessionRole(){const e=this.currentSessionSubject.getValue().token;switch(JSON.parse(atob(e.split(".")[1])).rol){case 1:return oi.USER_ROLE_ADMIN;case 2:return oi.USER_ROLE_DEVELOPER;case 3:return oi.USER_ROLE_MAINTAINER;case 4:return oi.USER_ROLE_READONLY;default:return oi.USER_ROLE_UNKNOWN}}login(e,i){return this.consoleService.authenticate({username:e,password:i}).pipe(is(r=>{localStorage.setItem(k3,JSON.stringify(r)),this.currentSessionSubject.next(r)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(is(()=>{localStorage.removeItem(k3),this.currentSessionSubject.next(null)})):Vh}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(fH),ct(yC),ct(wC),ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function KAe(t,n){if(1&t&&(b(0,"div",17),I(1),x()),2&t){const e=j();w(1),xn(" ",e.error," ")}}const QAe=function(t){return{"was-validated":t}},pH=function(t){return{"is-invalid":t}};let ZAe=(()=>{class t{constructor(e,i,r,o,s){K(this,"segment",void 0),K(this,"formBuilder",void 0),K(this,"route",void 0),K(this,"router",void 0),K(this,"authenticationService",void 0),K(this,"error",""),K(this,"loginForm",void 0),K(this,"submitted",void 0),K(this,"returnUrl",void 0),this.segment=e,this.formBuilder=i,this.route=r,this.router=o,this.authenticationService=s}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",Do.compose([Do.required])],password:["",Do.compose([Do.required,Do.minLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authenticationService.login(this.f.username.value,this.f.password.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,this.router.navigate([this.returnUrl])},e=>{this.error=e,this.submitted=!1})}get f(){return this.loginForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(yC),le(Tl),le(Rr),le(cr),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:26,vars:14,consts:[[1,"bg-grad","d-flex","h-100"],[1,"align-self-center","mx-auto"],[1,"text-center","mb-4"],["src","/static/svg/logo.svg","alt","Nakama Logo","width","175"],["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"text-center"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group","form-row"],[1,"col-sm-12"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"h1",2),ge(3,"img",3),x(),J(4,KAe,2,1,"div",4),b(5,"div",5)(6,"div",6)(7,"h3",7),I(8,"Login"),x(),b(9,"form",8),ye("ngSubmit",function(){return i.onSubmit()}),b(10,"div",9)(11,"div",10)(12,"label",11),I(13,"Username"),x(),ge(14,"input",12),b(15,"div",13),I(16,"Please enter a username."),x()()(),b(17,"div",9)(18,"div",10)(19,"label",14),I(20,"Password"),x(),ge(21,"input",15),b(22,"div",13),I(23,"Password must be at least 8 characters."),x()()(),b(24,"button",16),I(25,"Login"),x()()()()()()),2&e&&(w(4),k("ngIf",i.error),w(5),k("formGroup",i.loginForm)("ngClass",lr(8,QAe,i.submitted)),w(5),k("ngClass",lr(10,pH,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(6),k("ngClass",lr(12,pH,i.f.password.dirty&&i.f.password.errors)),w(1),k("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),w(2),k("disabled",!i.loginForm.valid||i.submitted))},dependencies:[Rh,gn,sl,Fa,rl,ol,Nf,fa,ja],styles:["div[_ngcontent-%COMP%] .mx-auto[_ngcontent-%COMP%]{width:420px}"]})),t})(),eMe=(()=>{class t{constructor(e,i){K(this,"authService",void 0),K(this,"router",void 0),this.authService=e,this.router=i}canActivate(e,i){return!this.authService.currentSessionValue||(this.router.navigate(["/"]),!1)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo),ct(cr))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),tMe=(()=>{class t{constructor(e,i){K(this,"router",void 0),K(this,"authenticationService",void 0),this.router=e,this.authenticationService=i}canActivate(e,i){return!!this.authenticationService.currentSessionValue||(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(cr),ct(Xo))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class nMe extends ue{constructor(n,e){super()}schedule(n,e=0){return this}}class S3 extends nMe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let mH=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Hd extends mH{constructor(n,e=mH.now){super(n,()=>Hd.delegate&&Hd.delegate!==this?Hd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Hd.delegate&&Hd.delegate!==this?Hd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Dy=new Hd(S3);class rMe{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new sMe(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class oMe{constructor(){this.buffer=[]}}class sMe extends O{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(gH,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(vH,e,{subscriber:this,context:s})),this.add(o.schedule(aMe,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(gH,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new oMe;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function gH(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function aMe(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(vH,e,{subscriber:i,context:o})),this.schedule(t,n))}function vH(t){const{subscriber:n,context:e}=t;n.closeContext(e)}class lMe{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new cMe(n,this.compare,this.keySelector))}}class cMe extends O{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Es(t,n,e,i){return rt(e)&&(i=e,e=void 0),i?Es(t,n,e).pipe(yn(r=>et(r)?i(...r):i(r))):new rn(r=>{yH(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function yH(t,n,e,i,r){let o;if(function hMe(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function dMe(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function uMe(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function av(t=0,n,e){let i=-1;return bH(n)?i=Number(n)<1?1:Number(n):Sa(n)&&(e=n),Sa(e)||(e=Dy),new rn(r=>{const o=bH(t)?t:+t-e.now();return e.schedule(fMe,o,{index:0,period:i,subscriber:r})})}function fMe(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function _H(...t){if(1===t.length){if(!et(t[0]))return t[0];t=t[0]}return st(t,void 0).lift(new pMe)}class pMe{call(n,e){return e.subscribe(new mMe(n))}}class mMe extends wM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class _Me extends W{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Ro](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Fe(this.observable,new ml(this))}}function yo(t){return n=>n.lift(new wMe(t))}class wMe{constructor(n){this.notifier=n}call(n,e){const i=new CMe(n),r=Fe(this.notifier,new ml(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class CMe extends W{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function D3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new kMe(t,e))}}class kMe{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new SMe(n,this.observables,this.project))}}class SMe extends wM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Ou{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return $n(this.value);case"E":return qp(this.error);case"C":return Lw()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Ou("N",n):Ou.undefinedValueNotification}static createError(n){return new Ou("E",void 0,n)}static createComplete(){return Ou.completeNotification}}function T3(t,n=Dy){const i=function DMe(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new TMe(i,n))}Ou.completeNotification=new Ou("C"),Ou.undefinedValueNotification=new Ou("N",void 0);class TMe{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new E3(n,this.delay,this.scheduler))}}class E3 extends O{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(E3.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new EMe(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Ou.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Ou.createComplete()),this.unsubscribe()}}class EMe{constructor(n,e){this.time=n,this.notification=e}}function $Me(t,n){if(1&t){const e=vt();b(0,"button",1),ye("click",function(){return $e(e),Be(j().close())}),b(1,"span",2),I(2,"\xd7"),x()()}}const lv=["*"],b3e=["dialog"];function Ff(t){return null!=t}typeof Element<"u"&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const CH={animation:!0,transitionTimerDelayMs:5};let pa=(()=>{class t{constructor(){this.animation=CH.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({factory:function(){return new t},token:t,providedIn:"root"}),t})();const TIe=()=>{},{transitionTimerDelayMs:EIe}=CH,EC=new Map,ma=(t,n,e)=>{let i=e.context||{};const r=EC.get(t);if(r)switch(e.runningTransition){case"continue":return Vh;case"stop":r.transition$.complete(),i=Object.assign(r.context,i),EC.delete(t)}!function TC(t){return(t||document.body).offsetHeight}(t);const o=n(t,i)||TIe;if(!e.animation||"none"===window.getComputedStyle(t).transitionProperty)return o(),$n(void 0);const s=new tr,a=s.pipe(function xMe(...t){return n=>Pw(n,$n(...t))}(!0));EC.set(t,{transition$:s,context:i});const l=function DIe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(t),c=Es(t,"transitionend").pipe(yo(a),ns(({target:d})=>d===t));return _H(av(l+EIe).pipe(yo(a)),c).pipe(yo(a)).subscribe(()=>{EC.delete(t),o(),s.next(),s.complete()}),s.asObservable()};let AH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),IIe=(()=>{class t{constructor(e){this.dismissible=!0,this.type="warning",this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();const NIe=({classList:t})=>{t.remove("show")};let To=(()=>{class t{constructor(e,i,r){this._renderer=i,this._element=r,this.closed=new Ke,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=ma(this._element.nativeElement,NIe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(le(IIe),le(Ss),le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Mn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[Hn],ngContentSelectors:lv,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["type","button","class","close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,i){1&e&&(Cu(),ku(0),J(1,$Me,3,0,"button",0)),2&e&&(w(1),k("ngIf",i.dismissible))},dependencies:[gn],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),t})(),MH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),AC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,i){2&e&&Mn("btn",!0)("active",i.active)("disabled",i.disabled)("focus",i.focused)}}),t})(),OIe=0,N3=(()=>{class t{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+OIe++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[Lr([{provide:ha,useExisting:Gi(()=>t),multi:!0}])]}),t})(),IH=(()=>{class t{constructor(e,i,r,o,s){this._group=e,this._label=i,this._renderer=r,this._element=o,this._cd=s,this._value=null,this._group.register(this),this.updateDisabled()}set value(e){this._value=e;const i=e?e.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",i),this._group.onRadioValueUpdate()}set disabled(e){this._disabled=!1!==e,this.updateDisabled()}set focused(e){this._label&&(this._label.focused=e),e||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(e){this.value!==e&&this._cd.markForCheck(),this._checked=this.value===e,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}}return t.\u0275fac=function(e){return new(e||t)(le(N3),le(AC),le(Ss),le(ti),le(qo))},t.\u0275dir=Zt({type:t,selectors:[["","ngbButton","","type","radio"]],hostVars:3,hostBindings:function(e,i){1&e&&ye("change",function(){return i.onChange()})("focus",function(){return i.focused=!0})("blur",function(){return i.focused=!1}),2&e&&dc("checked",i.checked)("disabled",i.disabled)("name",i.nameAttr)},inputs:{value:"value",disabled:"disabled",name:"name"}}),t})(),NH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})(),PH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),LH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();var ur=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(ur||(ur={})),ur))();const FC=(t,n)=>!!n&&n.some(e=>e.contains(t)),VH=(t,n)=>!n||null!=function kIe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),sNe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),aNe=t=>sNe?()=>setTimeout(()=>t(),100):t;function Ey(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(aNe(()=>{const c=Es(n,"keydown").pipe(yo(r),ns(h=>h.which===ur.Escape),is(h=>h.preventDefault())),u=Es(n,"mousedown").pipe(yn(h=>{const f=h.target;return 2!==h.button&&!FC(f,s)&&("inside"===e?FC(f,o)&&VH(f,a):"outside"===e?!FC(f,o):VH(f,a)||!FC(f,o))}),yo(r)),d=Es(n,"mouseup").pipe(D3(u),ns(([h,f])=>f),T3(0),yo(r));_H([c.pipe(yn(h=>0)),d.pipe(yn(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const HH=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function zH(t){const n=Array.from(t.querySelectorAll(HH)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const cNe=/\s+/,GH=new class lNe{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))i=n.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const o=this.offsetParent(n);i=this.offset(n,!1),o!==document.documentElement&&(r=this.offset(o,!1)),r.top+=o.clientTop,r.left+=o.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(n,e=!0){const i=n.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft;let o={height:i.height||n.offsetHeight,width:i.width||n.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(n,e,i,r){const[o="top",s="center"]=i.split("-"),a=r?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),u=parseFloat(l.marginBottom),d=parseFloat(l.marginLeft),h=parseFloat(l.marginRight);let f=0,p=0;switch(o){case"top":f=a.top-(e.offsetHeight+c+u);break;case"bottom":f=a.top+a.height;break;case"left":p=a.left-(e.offsetWidth+d+h);break;case"right":p=a.left+a.width}switch(s){case"top":f=a.top;break;case"bottom":f=a.top+a.height-e.offsetHeight;break;case"left":p=a.left;break;case"right":p=a.left+a.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?p=a.left+a.width/2-e.offsetWidth/2:f=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(f)}px)`;const m=e.getBoundingClientRect(),g=document.documentElement,v=window.innerHeight||g.clientHeight,y=window.innerWidth||g.clientWidth;return m.left>=0&&m.top>=0&&m.right<=y&&m.bottom<=v}};function Ay(t,n,e,i,r){let o=Array.isArray(e)?e:e.split(cNe);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=n.classList,l=f=>{const[p,m]=f.split("-"),g=[];return r&&(g.push(`${r}-${p}`),m&&g.push(`${r}-${p}-${m}`),g.forEach(v=>{a.add(v)})),g};r&&s.forEach(f=>{a.remove(`${r}-${f}`)});let c=o.findIndex(f=>"auto"===f);c>=0&&s.forEach(function(f){null==o.find(p=>-1!==p.search("^"+f))&&o.splice(c++,1,f)});const u=n.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let d=null,h=!1;for(d of o){let f=l(d);if(GH.positionElements(t,n,d,i)){h=!0;break}r&&f.forEach(p=>{a.remove(p)})}return h||(d=o[0],l(d),GH.positionElements(t,n,d,i)),d}new Date(1882,10,12),new Date(2174,10,25);let ZH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs,ZV]}),t})(),xNe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["",8,"navbar"]]}),t})(),jf=(()=>{class t{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,i){2&e&&Mn("disabled",i.disabled)},inputs:{disabled:"disabled"}}),t})(),Pf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,jf,4),2&e){let o;cn(o=un())&&(i.menuItems=o)}},hostVars:5,hostBindings:function(e,i){1&e&&ye("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&(ht("x-placement",i.placement),Mn("dropdown-menu",!0)("show",i.dropdown.isOpen()))}}),t})(),LC=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ht("aria-expanded",i.dropdown.isOpen())}}),t})(),rm=(()=>{class t extends LC{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&ye("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ht("aria-expanded",i.dropdown.isOpen())},features:[Lr([{provide:LC,useExisting:Gi(()=>t)}]),vi]}),t})(),Pu=(()=>{class t{constructor(e,i,r,o,s,a,l){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._closed$=new tr,this._bodyContainer=null,this._open=!1,this.openChange=new Ke,this.placement=i.placement,this.container=i.container,this.autoClose=i.autoClose,this.display=l?"static":"dynamic",this._zoneSubscription=o.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Sl(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Ey(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==ur.Space&&i!==ur.Enter){if(i!==ur.Tab){if(a||s){if(this.open(),r.length){switch(i){case ur.ArrowDown:o=Math.min(o+1,r.length-1);break;case ur.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case ur.Home:o=0;break;case ur.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(HH);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Es(e.target,"focusout").pipe(Sl(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Es(s,"click").pipe(Sl(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?Ay(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const r=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,r),e.removeStyle(r,"position"),e.removeStyle(r,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1050"),i.appendChild(o,r),i.appendChild(this._document.body,o)}}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown"),i.placement="static"===this.display?null:e;const s=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,s);const a=this._bodyContainer;a&&(r.removeClass(a,"dropup"),r.removeClass(a,"dropdown"),r.addClass(a,s))}}}return t.\u0275fac=function(e){return new(e||t)(le(qo),le(xNe),le(Ir),le(Wi),le(ti),le(Ss),le(ez,8))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,Pf,5),ni(r,LC,5)),2&e){let o;cn(o=un())&&(i._menu=o.first),cn(o=un())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Mn("show",i.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[Hn]}),t})(),tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})(),nz=(()=>{class t{constructor(e){this.backdrop=!0,this.keyboard=!0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();class om{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class V3{constructor(n,e,i,r,o,s,a){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._componentFactoryResolver=s,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.asObservable().pipe(Sl(1)).pipe(nt(()=>this._ngZone.run(()=>ma(r,({classList:a})=>a.add("show"),{animation:i,runningTransition:"continue"}))));return{windowRef:this._windowRef,transition$:s}}close(n=!1){return this._windowRef?ma(this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(is(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),null!==(e=this._contentRef)&&void 0!==e&&e.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):$n(void 0)}_getContentRef(n,e){if(n){if(n instanceof Si){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new om([i.rootNodes],i)}return new om([[this._renderer.createText(`${n}`)]])}return new om([])}}const wNe=()=>{};let iz=(()=>{class t{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):wNe}_adjustBody(e){const i=this._document.body,r=i.style.paddingRight,o=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${o+e}px`,()=>i.style["padding-right"]=r}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const r=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),r}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({factory:function(){return new t(ct(Ir))},token:t,providedIn:"root"}),t})(),CNe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Sl(1)).subscribe(()=>{ma(this._el.nativeElement,({classList:e})=>e.add("show"),{animation:this.animation,runningTransition:"continue"})})}hide(){return ma(this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Su("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Mn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class rz{close(n){}dismiss(n){}}class kNe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new tr,this._dismissed=new tr,this._hidden=new tr,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(yo(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(yo(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(n)},()=>{}):!1!==e&&this._dismiss(n)}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():$n(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),kC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Ny=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(Ny||(Ny={})),Ny))();let SNe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new tr,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Ke,this.shown=new tr,this.hidden=new tr}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=kC(ma(e,()=>e.classList.remove("show"),i),ma(this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"continue"};kC(ma(e,()=>e.classList.add("show"),i),ma(this._dialogEl.nativeElement,()=>{},i)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Es(e,"keydown").pipe(yo(this._closed$),ns(r=>r.which===ur.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Ny.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Es(this._dialogEl.nativeElement,"mousedown").pipe(yo(this._closed$),is(()=>i=!1),zl(()=>Es(e,"mouseup").pipe(yo(this._closed$),Sl(1))),ns(({target:r})=>e===r)).subscribe(()=>{i=!0}),Es(e,"click").pipe(yo(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(Ny.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=zH(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&ma(this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(le(Ir),le(ti),le(Wi))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&io(b3e,7),2&e){let r;cn(r=un())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ht("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Su("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Mn("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:lv,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cu(),b(0,"div",0,1)(2,"div",2),ku(3),x()()),2&e&&Su("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),oz=(()=>{class t{constructor(e,i,r,o,s,a){this._applicationRef=e,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new tr,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new Ke,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Es(n,"focusin").pipe(yo(e),yn(o=>o.target));Es(n,"keydown").pipe(yo(e),ns(o=>o.which===ur.Tab),D3(r)).subscribe(([o,s])=>{const[a,l]=zH(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Es(n,"click").pipe(yo(e),D3(r),yn(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,r,o){const s=o.container instanceof HTMLElement?o.container:Ff(o.container)?this._document.querySelector(o.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);const u=new rz,d=this._getContentRef(e,o.injector||i,r,u,o);let h=!1!==o.backdrop?this._attachBackdrop(e,s):void 0,f=this._attachWindowComponent(e,s,d),p=new kNe(f,d,h,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.result.then(l,l),p.result.then(c,c),u.close=m=>{p.close(m)},u.dismiss=m=>{p.dismiss(m)},this._applyWindowOptions(f.instance,o),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),h&&h.instance&&this._applyBackdropOptions(h.instance,o),p}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let o=e.resolveComponentFactory(CNe).create(this._injector);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_attachWindowComponent(e,i,r){let s=e.resolveComponentFactory(SNe).create(this._injector,r.nodes);return this._applicationRef.attachView(s.hostView),i.appendChild(s.location.nativeElement),s}_applyWindowOptions(e,i){this._windowAttributes.forEach(r=>{Ff(i[r])&&(e[r]=i[r])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(r=>{Ff(i[r])&&(e[r]=i[r])})}_getContentRef(e,i,r,o,s){return r?r instanceof Si?this._createFromTemplateRef(r,o):function DC(t){return"string"==typeof t}(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new om([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new om([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new om([[i]])}_createFromComponent(e,i,r,o,s){const a=e.resolveComponentFactory(r),l=Rs.create({providers:[{provide:rz,useValue:o}],parent:i}),c=a.create(l),u=c.location.nativeElement;return s.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new om([[u]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(ct(Au),ct(Rs),ct(Ir),ct(iz),ct(Lp),ct(Wi))},t.\u0275prov=Et({factory:function(){return new t(ct(Au),ct(Dx),ct(Ir),ct(iz),ct(Lp),ct(Wi))},token:t,providedIn:"root"}),t})(),H3=(()=>{class t{constructor(e,i,r,o){this._moduleCFR=e,this._injector=i,this._modalStack=r,this._config=o}open(e,i={}){const r=Object.assign({},this._config,i);return this._modalStack.open(this._moduleCFR,this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(ct($c),ct(Rs),ct(oz),ct(nz))},t.\u0275prov=Et({factory:function(){return new t(ct($c),ct(Dx),ct(oz),ct(nz))},token:t,providedIn:"root"}),t})(),sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[H3]}),t})(),DNe=(()=>{class t{constructor(e){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();const az=t=>Ff(t)&&""!==t;let TNe=0,lz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(le(Si))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),sm=(()=>{class t{constructor(e,i){this.elementRef=i,this.disabled=!1,this.shown=new Ke,this.hidden=new Ke,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Ff(this.domId)||(this.domId="ngb-nav-"+TNe++)}get active(){return this._nav.activeId===this.id}get id(){return az(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Ff(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>am)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,lz,4),2&e){let o;cn(o=un())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Mn("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),am=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new Ke,this.shown=new Ke,this.hidden=new Ke,this.destroy$=new tr,this.navItemChange$=new tr,this.navChange=new Ke,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case ur.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case ur.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case ur.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case ur.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case ur.Home:s=0;break;case ur.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!Ff(this.activeId)){const e=this.items.first?this.items.first.id:null;az(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(yo(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(Ah("role"),le(DNe),le(qo),le(Ir))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,sm,4),ni(r,fv,5)),2&e){let o;cn(o=un())&&(i.items=o),cn(o=un())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&ye("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ht("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Mn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[Hn]}),t})(),fv=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ah("role"),le(sm),le(am),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,i){1&e&&ye("click",function(o){return i.nav.click(i.navItem),o.preventDefault()}),2&e&&(dc("id",i.navItem.domId),ht("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Mn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))}}),t})(),cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();class NNe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const FNe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},vz=t=>t>0?T3(t):n=>n;let bz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),_z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),xz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),Sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),Dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),QNe=(()=>{class t{constructor(e){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})(),ZNe=0,eFe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(dc("id",i.id),Su("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Mn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:lv,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Cu(),ge(0,"div",0),b(1,"div",1),ku(2),x())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),tFe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d){this._elementRef=e,this._renderer=i,this._ngZone=l,this._document=c,this._changeDetector=u,this.shown=new Ke,this.hidden=new Ke,this._ngbTooltipWindowId="ngb-tooltip-"+ZNe++,this._windowRef=null,this.animation=a.animation,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new V3(eFe,r,s,i,this._ngZone,o,d),this._zoneSubscription=l.onStable.subscribe(()=>{this._windowRef&&Ay(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Ey(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function yz(t,n,e,i,r,o,s=0,a=0){const l=function ONe(t,n=FNe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new NNe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function jNe(t,n,e,i){return new rn(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function PNe(t,n,e){return i=>{let r=null;const o=i.pipe(yn(l=>({open:l})),ns(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),We());return Tt(o.pipe(ns(l=>l.open),vz(t)),o.pipe(ns(l=>!l.open),vz(n))).pipe(ns(l=>l===r&&(r=null,l.open!==e())),yn(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(Rs),le($c),le(nl),le(QNe),le(Wi),le(Ir),le(qo),le(Au))},t.\u0275dir=Zt({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[Hn]}),t})(),Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();new zn("live announcer delay",{providedIn:"root",factory:function rFe(){return 100}});let Mz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();const lFe=[AH,MH,NH,PH,LH,ZH,tz,sz,cz,gz,bz,_z,xz,Sz,Dz,Tz,Mz];let cFe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[lFe,AH,MH,NH,PH,LH,ZH,tz,sz,cz,gz,bz,_z,xz,Sz,Dz,Tz,Mz]}),t})(),Iz=(()=>{class t{constructor(){K(this,"restrictedPages",new Map([["users",oi.USER_ROLE_ADMIN],["config",oi.USER_ROLE_DEVELOPER],["modules",oi.USER_ROLE_DEVELOPER],["apiexplorer",oi.USER_ROLE_DEVELOPER]]))}}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function uFe(t,n){if(1&t&&(ta(0,5),b(1,"a",27),ge(2,"img",28),b(3,"span",12),I(4),x()(),na()),2&t){const e=j().$implicit;k("ngbNavItem",e.navItem),w(1),k("routerLink",e.routerLink),w(1),$p("src","/static/svg/",e.icon,".svg",y1),w(2),Dt(e.label)}}function dFe(t,n){1&t&&ge(0,"hr")}function hFe(t,n){if(1&t&&(J(0,uFe,5,4,"ng-container",26),J(1,dFe,1,0,"hr",25)),2&t){const e=n.$implicit;k("ngIf",j().getSessionRole()<=e.minRole),w(1),k("ngIf",e.separator)}}function fFe(t,n){if(1&t&&(b(0,"div",29)(1,"h2",30),ge(2,"img",31),I(3,"An error has occurred!"),x(),b(4,"h6",32),I(5),x(),b(6,"p"),I(7,"Please refresh the page to try again."),x()()),2&t){const e=j();w(5),Dt(e.error)}}function pFe(t,n){1&t&&(b(0,"div",33),ge(1,"img",34),x())}function mFe(t,n){1&t&&ge(0,"router-outlet")}const gFe=function(){return["/"]},vFe=function(){return["/login"]};let yFe=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"segment",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"routerSub",void 0),K(this,"segmentRouterSub",void 0),K(this,"loading",!0),K(this,"error",""),K(this,"routes",[{navItem:"status",routerLink:["/status"],label:"Status",minRole:oi.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:oi.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:oi.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:oi.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:oi.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:oi.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:oi.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:oi.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:oi.USER_ROLE_READONLY,icon:"chat"},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:oi.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:oi.USER_ROLE_DEVELOPER,icon:"api-explorer"}]),this.route=e,this.router=i,this.segment=r,this.consoleService=o,this.authService=s,this.loading=!1,this.routerSub=this.router.events.pipe(function iMe(t){let n=arguments.length,e=Dy;Sa(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new rMe(t,i,r,e))}}(2e3)).subscribe(a=>{if(0===a.length)return;const l=a[a.length-1];l instanceof Ww&&(this.loading=!0),l instanceof zh&&(this.loading=!1),l instanceof ry&&(this.loading=!1),l instanceof Xw&&(this.loading=!1,this.error=l.error)}),this.segmentRouterSub=i.events.pipe(function CC(t,n){return e=>e.lift(new lMe(t,n))}((a,l)=>!(l instanceof zh)||a.url===l.url)).subscribe(a=>{})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(yC),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:40,vars:11,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","https://cloud.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/docs","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"nav",2,3),ye("navChange",function(o){return i.onSidebarNavChange(o)}),b(4,"div",4),ta(5,5),b(6,"a",6),ge(7,"img",7)(8,"img",8),x(),na(),ge(9,"hr"),J(10,hFe,2,2,"ng-template",9),ge(11,"hr"),b(12,"a",10),ge(13,"img",11),b(14,"span",12),I(15,"Heroic Cloud"),x()(),b(16,"a",13),ge(17,"img",14),b(18,"span",12),I(19,"Documentation"),x()(),b(20,"a",15),ge(21,"img",16),b(22,"span",12),I(23,"Forum"),x()(),b(24,"a",17),ge(25,"img",18),b(26,"span",12),I(27,"Heroic Labs Blog"),x()(),ge(28,"hr"),b(29,"div",19),I(30),x(),ta(31,5),b(32,"a",20),ye("click",function(){return i.logout()}),ge(33,"img",21),b(34,"span",12),I(35,"Logout"),x()(),na(),x()(),b(36,"main",22),J(37,fFe,8,1,"div",23),J(38,pFe,2,0,"div",24),J(39,mFe,1,0,"router-outlet",25),x()()()),2&e&&(w(5),k("ngbNavItem","logo"),w(1),k("routerLink",wl(9,gFe)),w(4),k("ngForOf",i.routes),w(20),xn("Logged in as: ",i.getUsername(),""),w(1),k("ngbNavItem","logout"),w(1),k("routerLink",wl(10,vFe)),w(5),k("ngIf",i.error),w(1),k("ngIf",!i.error&&i.loading),w(1),k("ngIf",!i.error&&!i.loading))},dependencies:[Jp,Nu,hy,jn,gn,am,sm,fv],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})),t})(),bFe=(()=>{class t{constructor(e,i,r){K(this,"authService",void 0),K(this,"router",void 0),K(this,"globals",void 0),this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Rs.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class kFe extends CFe{}class EFe{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new AFe(n,this.dueTime,this.scheduler))}}class AFe extends O{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(MFe,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function MFe(t){t.debouncedNext()}function IFe(){}function W3(t){return null==t?IFe:function(){return this.querySelector(t)}}function FFe(){return[]}function Lz(t){return null==t?FFe:function(){return this.querySelectorAll(t)}}function Rz(t){return function(){return this.matches(t)}}function $z(t){return new Array(t.length)}function $C(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$C.prototype={constructor:$C,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Bz="$";function RFe(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var q3="http://www.w3.org/1999/xhtml";const Vz={svg:"http://www.w3.org/2000/svg",xhtml:q3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function BC(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Vz.hasOwnProperty(n)?{space:Vz[n],local:t}:t}function ZFe(t){return function(){this.removeAttribute(t)}}function eOe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tOe(t,n){return function(){this.setAttribute(t,n)}}function nOe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function iOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function rOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Hz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function sOe(t){return function(){this.style.removeProperty(t)}}function aOe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function lOe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function pv(t,n){return t.style.getPropertyValue(n)||Hz(t).getComputedStyle(t,null).getPropertyValue(n)}function uOe(t){return function(){delete this[t]}}function dOe(t,n){return function(){this[t]=n}}function hOe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function zz(t){return t.trim().split(/^|\s+/)}function X3(t){return t.classList||new Uz(t)}function Uz(t){this._node=t,this._names=zz(t.getAttribute("class")||"")}function Gz(t,n){for(var e=X3(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Xz={},Vr=null;function HOe(t,n,e){return t=Yz(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function Yz(t,n,e){return function(i){var r=Vr;Vr=i;try{t.call(this,this.__data__,n,e)}finally{Vr=r}}}function UOe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=_&&(_=y+1);!(S=g[_])&&++_=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function GFe(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=WFe);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?sOe:"function"==typeof n?lOe:aOe)(t,n,e??"")):pv(this.node(),t)},property:function fOe(t,n){return arguments.length>1?this.each((null==n?uOe:"function"==typeof n?hOe:dOe)(t,n)):this.node()[t]},classed:function vOe(t,n){var e=zz(t+"");if(arguments.length<2){for(var i=X3(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?GOe:UOe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?zC(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?zC(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=i4e.exec(t))?new vc(n[1],n[2],n[3],1):(n=r4e.exec(t))?new vc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=o4e.exec(t))?zC(n[1],n[2],n[3],n[4]):(n=s4e.exec(t))?zC(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=a4e.exec(t))?cU(n[1],n[2]/100,n[3]/100,1):(n=l4e.exec(t))?cU(n[1],n[2]/100,n[3]/100,n[4]):iU.hasOwnProperty(t)?sU(iU[t]):"transparent"===t?new vc(NaN,NaN,NaN,0):null}function sU(t){return new vc(t>>16&255,t>>8&255,255&t,1)}function zC(t,n,e,i){return i<=0&&(t=n=e=NaN),new vc(t,n,e,i)}function Ly(t,n,e,i){return 1===arguments.length?function u4e(t){return t instanceof Oy||(t=lm(t)),t?new vc((t=t.rgb()).r,t.g,t.b,t.opacity):new vc}(t):new vc(t,n,e,i??1)}function vc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function aU(){return"#"+K3(this.r)+K3(this.g)+K3(this.b)}function lU(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function K3(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function cU(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ud(t,n,e,i)}function uU(t){if(t instanceof Ud)return new Ud(t.h,t.s,t.l,t.opacity);if(t instanceof Oy||(t=lm(t)),!t)return new Ud;if(t instanceof Ud)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Ud(s,a,l,t.opacity)}function Ud(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function Q3(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function dU(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function Z3(t){return function(){return t}}function fU(t,n){var e=n-t;return e?function hU(t,n){return function(e){return t+e*n}}(t,e):Z3(isNaN(t)?n:t)}J3(Oy,lm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:rU,formatHex:rU,formatHsl:function c4e(){return uU(this).formatHsl()},formatRgb:oU,toString:oU}),J3(vc,Ly,nU(Oy,{brighter:function(t){return t=null==t?HC:Math.pow(HC,t),new vc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new vc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aU,formatHex:aU,formatRgb:lU,toString:lU})),J3(Ud,function d4e(t,n,e,i){return 1===arguments.length?uU(t):new Ud(t,n,e,i??1)},nU(Oy,{brighter:function(t){return t=null==t?HC:Math.pow(HC,t),new Ud(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ud(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new vc(Q3(t>=240?t-240:t+120,r,i),Q3(t,r,i),Q3(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const UC=function t(n){var e=function m4e(t){return 1==(t=+t)?fU:function(n,e){return e-n?function p4e(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):Z3(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=Ly(r)).r,(o=Ly(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=fU(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function pU(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return dU((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Lu(i,r)})),e=tI.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--gv}()}finally{gv=0,function T4e(){for(var t,e,n=GC,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:GC=e);By=t,nI(i)}(),um=0}}function D4e(){var t=Vy.now(),n=t-WC;n>bU&&(qC-=n,WC=t)}function nI(t){gv||(Ry&&(Ry=clearTimeout(Ry)),t-um>24?(t<1/0&&(Ry=setTimeout(wU,t-Vy.now()-qC)),$y&&($y=clearInterval($y))):($y||(WC=Vy.now(),$y=setInterval(D4e,bU)),gv=1,_U(wU)))}function CU(t,n,e){var i=new YC;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}YC.prototype=xU.prototype={constructor:YC,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?XC():+e)+(null==n?0:+n),!this._next&&By!==this&&(By?By._next=this:GC=this,By=this),this._call=t,this._time=e,nI()},stop:function(){this._call&&(this._call=null,this._time=1/0,nI())}};var E4e=tU("start","end","cancel","interrupt"),A4e=[],kU=0,SU=1,iI=2,JC=3,DU=4,rI=5,KC=6;function QC(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function M4e(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==SU)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===JC)return CU(s);f.state===DU?(f.state=KC,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+ukU)throw new Error("too late; already scheduled");return e}function Gh(t,n){var e=Ru(t,n);if(e.state>JC)throw new Error("too late; already running");return e}function Ru(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function sI(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>iI&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Lu(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Lu(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Lu(c,d)},{i:m-2,x:Lu(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?oI:Gh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function G4e(t,n){var e=BC(t),i="transform"===e?j4e:IU;return this.attrTween(t,"function"==typeof n?(e.local?U4e:z4e)(e,i,cI(this,"attr."+t,n)):null==n?(e.local?B4e:$4e)(e):(e.local?H4e:V4e)(e,i,n))},attrTween:function J4e(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=BC(t);return this.tween(e,(i.local?X4e:Y4e)(i,n))},style:function _je(t,n,e){var i="transform"==(t+="")?O4e:IU;return null==n?this.styleTween(t,function gje(t,n){var e,i,r;return function(){var o=pv(this,t),s=(this.style.removeProperty(t),pv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,NU(t)):"function"==typeof n?this.styleTween(t,function yje(t,n,e){var i,r,o;return function(){var s=pv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=pv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,cI(this,"style."+t,n))).each(function bje(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Gh(this,t),c=l.on,u=null==l.value[o]?a||(a=NU(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function vje(t,n,e){var i,o,r=e+"";return function(){var s=pv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function Cje(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function wje(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function xje(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function Dje(t){return this.tween("text","function"==typeof t?function Sje(t){return function(){var n=t(this);this.textContent=n??""}}(cI(this,"text",t)):function kje(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function Aje(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function Eje(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function Tje(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function dje(){return this.on("end.remove",function uje(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function R4e(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Ru(this.node(),e).tween,r=0,o=i.length;r0&&(R=z-N),C<0?he=E-F:C>0&&(q=re-F),y=fI,B.attr("cursor",qh.selection),Ie());break;default:return}hI()},!0).on("keyup.brush",function _t(){switch(Vr.keyCode){case 16:V&&(oe=fe=V=!1,Ie());break;case 18:y===bv&&(_<0?X=Z:_>0&&(R=z),C<0?he=E:C>0&&(q=re),y=yv,Ie());break;case 32:y===fI&&(Vr.altKey?(_&&(X=Z-N*_,R=z+N*_),C&&(he=E-F*C,q=re+F*C),y=bv):(_<0?X=Z:_>0&&(R=z),C<0?he=E:C>0&&(q=re),y=yv),B.attr("cursor",qh[v]),Ie());break;default:return}hI()},!0),function e4e(t){var n=t.document.documentElement,e=va(t).on("dragstart.drag",Y3,!0);"onselectstart"in n?e.on("selectstart.drag",Y3,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Vr.view)}OU(),sI(g),c.call(g),ze.start()}function ie(){var At=Ne(g);V&&!oe&&!fe&&(Math.abs(At[0]-tt[0])>Math.abs(At[1]-tt[1])?fe=!0:oe=!0),tt=At,Y=!0,hI(),Ie()}function Ie(){var At;switch(N=tt[0]-xe[0],F=tt[1]-xe[1],y){case fI:case jU:_&&(N=Math.max(G-R,Math.min(L-X,N)),z=R+N,Z=X+N),C&&(F=Math.max(U-q,Math.min(H-he,F)),re=q+F,E=he+F);break;case yv:_<0?(N=Math.max(G-R,Math.min(L-R,N)),z=R+N,Z=X):_>0&&(N=Math.max(G-X,Math.min(L-X,N)),z=R,Z=X+N),C<0?(F=Math.max(U-q,Math.min(H-q,F)),re=q+F,E=he):C>0&&(F=Math.max(U-he,Math.min(H-he,F)),re=q,E=he+F);break;case bv:_&&(z=Math.max(G,Math.min(L,R-N*_)),Z=Math.max(G,Math.min(L,X+N*_))),C&&(re=Math.max(U,Math.min(H,q-F*C)),E=Math.max(U,Math.min(H,he+F*C)))}Zn?1:t>=n?0:NaN}function yI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function Xje(t){return(n,e)=>vI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var bI=Math.sqrt(50),_I=Math.sqrt(10),xI=Math.sqrt(2);function $U(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=bI?10:o>=_I?5:o>=xI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=bI?10:o>=_I?5:o>=xI?2:1)}function wI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=bI?r*=10:o>=_I?r*=5:o>=xI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return CI.setTime(+o),kI.setTime(+s),t(CI),t(kI),Math.floor(e(CI,kI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var SI=$u(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});SI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$u(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Jje=SI;var BU=$u(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const Kje=BU;var Uy=6e4,Zje=6048e5;function dm(t){return $u(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Uy)/Zje})}var HU=dm(0),zU=(dm(1),dm(2),dm(3),dm(4),dm(5),dm(6),$u(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Uy)/864e5,t=>t.getDate()-1));const sPe=zU;var UU=$u(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Uy)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()});const aPe=UU;var GU=$u(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,n){t.setTime(+t+n*Uy)},function(t,n){return(n-t)/Uy},function(t){return t.getMinutes()});const lPe=GU;var WU=$u(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()});const cPe=WU;var i2=$u(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});i2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$u(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):i2:null};const uPe=i2;var DI=new Date,TI=new Date;function Xh(t,n,e,i){function r(o){return t(o=0===arguments.length?new Date:new Date(+o)),o}return r.floor=function(o){return t(o=new Date(+o)),o},r.ceil=function(o){return t(o=new Date(o-1)),n(o,1),t(o),o},r.round=function(o){var s=r(o),a=r.ceil(o);return o-s0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return DI.setTime(+o),TI.setTime(+s),t(DI),t(TI),Math.floor(e(DI,TI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var qU=6e4,YU=6048e5;function hm(t){return Xh(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/YU})}var JU=hm(0),r2=hm(1),_v=(hm(2),hm(3),hm(4)),KU=(hm(5),hm(6),Xh(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const QU=KU;function fm(t){return Xh(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*qU)/YU})}var ZU=fm(0),o2=fm(1),xv=(fm(2),fm(3),fm(4)),eG=(fm(5),fm(6),Xh(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qU)/864e5},function(t){return t.getDate()-1}));const tG=eG;var EI=Xh(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});EI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xh(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Gy=EI;var AI=Xh(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});AI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xh(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Wy=AI;function MI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function II(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function qy(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var wv,gG,nG={"-":"",_:" ",0:"0"},ya=/^\s*\d+/,_Pe=/^%/,xPe=/[\\^$*+?|[\]().{}]/g;function Gr(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function EPe(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function APe(t,n,e){var i=ya.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function MPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function oG(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function IPe(t,n,e){var i=ya.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function sG(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function NPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function FPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function OPe(t,n,e){var i=ya.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function jPe(t,n,e){var i=ya.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function PPe(t,n,e){var i=_Pe.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function LPe(t,n,e){var i=ya.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function RPe(t,n,e){var i=ya.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function aG(t,n){return Gr(t.getDate(),n,2)}function $Pe(t,n){return Gr(t.getHours(),n,2)}function BPe(t,n){return Gr(t.getHours()%12||12,n,2)}function VPe(t,n){return Gr(1+tG.count(Gy(t),t),n,3)}function lG(t,n){return Gr(t.getMilliseconds(),n,3)}function HPe(t,n){return lG(t,n)+"000"}function zPe(t,n){return Gr(t.getMonth()+1,n,2)}function UPe(t,n){return Gr(t.getMinutes(),n,2)}function GPe(t,n){return Gr(t.getSeconds(),n,2)}function WPe(t){var n=t.getDay();return 0===n?7:n}function qPe(t,n){return Gr(ZU.count(Gy(t)-1,t),n,2)}function cG(t){var n=t.getDay();return n>=4||0===n?xv(t):xv.ceil(t)}function XPe(t,n){return t=cG(t),Gr(xv.count(Gy(t),t)+(4===Gy(t).getDay()),n,2)}function YPe(t){return t.getDay()}function JPe(t,n){return Gr(o2.count(Gy(t)-1,t),n,2)}function KPe(t,n){return Gr(t.getFullYear()%100,n,2)}function QPe(t,n){return Gr((t=cG(t)).getFullYear()%100,n,2)}function ZPe(t,n){return Gr(t.getFullYear()%1e4,n,4)}function eLe(t,n){var e=t.getDay();return Gr((t=e>=4||0===e?xv(t):xv.ceil(t)).getFullYear()%1e4,n,4)}function tLe(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Gr(n/60|0,"0",2)+Gr(n%60,"0",2)}function uG(t,n){return Gr(t.getUTCDate(),n,2)}function nLe(t,n){return Gr(t.getUTCHours(),n,2)}function iLe(t,n){return Gr(t.getUTCHours()%12||12,n,2)}function rLe(t,n){return Gr(1+QU.count(Wy(t),t),n,3)}function dG(t,n){return Gr(t.getUTCMilliseconds(),n,3)}function oLe(t,n){return dG(t,n)+"000"}function sLe(t,n){return Gr(t.getUTCMonth()+1,n,2)}function aLe(t,n){return Gr(t.getUTCMinutes(),n,2)}function lLe(t,n){return Gr(t.getUTCSeconds(),n,2)}function cLe(t){var n=t.getUTCDay();return 0===n?7:n}function uLe(t,n){return Gr(JU.count(Wy(t)-1,t),n,2)}function hG(t){var n=t.getUTCDay();return n>=4||0===n?_v(t):_v.ceil(t)}function dLe(t,n){return t=hG(t),Gr(_v.count(Wy(t),t)+(4===Wy(t).getUTCDay()),n,2)}function hLe(t){return t.getUTCDay()}function fLe(t,n){return Gr(r2.count(Wy(t)-1,t),n,2)}function pLe(t,n){return Gr(t.getUTCFullYear()%100,n,2)}function mLe(t,n){return Gr((t=hG(t)).getUTCFullYear()%100,n,2)}function gLe(t,n){return Gr(t.getUTCFullYear()%1e4,n,4)}function vLe(t,n){var e=t.getUTCDay();return Gr((t=e>=4||0===e?_v(t):_v.ceil(t)).getUTCFullYear()%1e4,n,4)}function yLe(){return"+0000"}function fG(){return"%"}function pG(t){return+t}function mG(t){return Math.floor(+t/1e3)}function vG(t){return null===t?NaN:+t}!function wLe(t){wv=function bPe(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=Xy(r),u=Yy(r),d=Xy(o),h=Yy(o),f=Xy(s),p=Yy(s),m=Xy(a),g=Yy(a),v=Xy(l),y=Yy(l),_={a:function H(ze){return s[ze.getDay()]},A:function he(ze){return o[ze.getDay()]},b:function E(ze){return l[ze.getMonth()]},B:function N(ze){return a[ze.getMonth()]},c:null,d:aG,e:aG,f:HPe,g:QPe,G:eLe,H:$Pe,I:BPe,j:VPe,L:lG,m:zPe,M:UPe,p:function F(ze){return r[+(ze.getHours()>=12)]},q:function Y(ze){return 1+~~(ze.getMonth()/3)},Q:pG,s:mG,S:GPe,u:WPe,U:qPe,V:XPe,w:YPe,W:JPe,x:null,X:null,y:KPe,Y:ZPe,Z:tLe,"%":fG},C={a:function V(ze){return s[ze.getUTCDay()]},A:function oe(ze){return o[ze.getUTCDay()]},b:function fe(ze){return l[ze.getUTCMonth()]},B:function Ne(ze){return a[ze.getUTCMonth()]},c:null,d:uG,e:uG,f:oLe,g:mLe,G:vLe,H:nLe,I:iLe,j:rLe,L:dG,m:sLe,M:aLe,p:function xe(ze){return r[+(ze.getUTCHours()>=12)]},q:function tt(ze){return 1+~~(ze.getUTCMonth()/3)},Q:pG,s:mG,S:lLe,u:cLe,U:uLe,V:dLe,w:hLe,W:fLe,x:null,X:null,y:pLe,Y:gLe,Z:yLe,"%":fG},S={a:function z(ze,ot,B){var ne=f.exec(ot.slice(B));return ne?(ze.w=p[ne[0].toLowerCase()],B+ne[0].length):-1},A:function U(ze,ot,B){var ne=d.exec(ot.slice(B));return ne?(ze.w=h[ne[0].toLowerCase()],B+ne[0].length):-1},b:function q(ze,ot,B){var ne=v.exec(ot.slice(B));return ne?(ze.m=y[ne[0].toLowerCase()],B+ne[0].length):-1},B:function re(ze,ot,B){var ne=m.exec(ot.slice(B));return ne?(ze.m=g[ne[0].toLowerCase()],B+ne[0].length):-1},c:function L(ze,ot,B){return G(ze,n,ot,B)},d:oG,e:oG,f:jPe,g:rG,G:iG,H:sG,I:sG,j:IPe,L:OPe,m:MPe,M:NPe,p:function R(ze,ot,B){var ne=c.exec(ot.slice(B));return ne?(ze.p=u[ne[0].toLowerCase()],B+ne[0].length):-1},q:APe,Q:LPe,s:RPe,S:FPe,u:kPe,U:SPe,V:DPe,w:CPe,W:TPe,x:function X(ze,ot,B){return G(ze,e,ot,B)},X:function Z(ze,ot,B){return G(ze,i,ot,B)},y:rG,Y:iG,Z:EPe,"%":PPe};function M(ze,ot){return function(B){var Le,_t,At,ne=[],ie=-1,Ie=0,Ye=ze.length;for(B instanceof Date||(B=new Date(+B));++ie53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Ye=(Ie=II(qy(ne.y,0,1))).getUTCDay(),Ie=Ye>4||0===Ye?r2.ceil(Ie):r2(Ie),Ie=QU.offset(Ie,7*(ne.V-1)),ne.y=Ie.getUTCFullYear(),ne.m=Ie.getUTCMonth(),ne.d=Ie.getUTCDate()+(ne.w+6)%7):(Ye=(Ie=MI(qy(ne.y,0,1))).getDay(),Ie=Ye>4||0===Ye?o2.ceil(Ie):o2(Ie),Ie=tG.offset(Ie,7*(ne.V-1)),ne.y=Ie.getFullYear(),ne.m=Ie.getMonth(),ne.d=Ie.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Ye="Z"in ne?II(qy(ne.y,0,1)).getUTCDay():MI(qy(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+7*ne.W-(Ye+5)%7:ne.w+7*ne.U-(Ye+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,II(ne)):MI(ne)}}function G(ze,ot,B,ne){for(var Le,_t,ie=0,Ie=ot.length,Ye=B.length;ie=Ye)return-1;if(37===(Le=ot.charCodeAt(ie++))){if(Le=ot.charAt(ie++),!(_t=S[Le in nG?ot.charAt(ie++):Le])||(ne=_t(ze,B,ne))<0)return-1}else if(Le!=B.charCodeAt(ne++))return-1}return ne}return _.x=M(e,_),_.X=M(i,_),_.c=M(n,_),C.x=M(e,C),C.X=M(i,C),C.c=M(n,C),{format:function(ze){var ot=M(ze+="",_);return ot.toString=function(){return ze},ot},parse:function(ze){var ot=$(ze+="",!1);return ot.toString=function(){return ze},ot},utcFormat:function(ze){var ot=M(ze+="",C);return ot.toString=function(){return ze},ot},utcParse:function(ze){var ot=$(ze+="",!0);return ot.toString=function(){return ze},ot}}}(t),gG=wv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const CLe=yI(vI).right,bG=(yI(vG),CLe);function kLe(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function DLe(t){return+t}var _G=[0,1];function Cv(t){return t}function NI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function SLe(t){return function(){return t}}(isNaN(n)?NaN:.5)}function ELe(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?ALe:ELe,l=c=null,d}function d(h){return isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Lu)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,DLe),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=kLe,u()},d.clamp=function(h){return arguments.length?(s=!!h||Cv,u()):s!==Cv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Cv,Cv)}function Jy(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Ky=1e3,Qy=60*Ky,Zy=60*Qy,eb=24*Zy,NLe=7*eb,CG=30*eb,FI=365*eb;function FLe(t){return new Date(t)}function OLe(t){return t instanceof Date?+t:+new Date(+t)}function kG(t,n,e,i,r,o,s,a,l){var c=wG(),u=c.invert,d=c.domain,h=l(".%L"),f=l(":%S"),p=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),v=l("%b %d"),y=l("%B"),_=l("%Y"),C=[[s,1,Ky],[s,5,5*Ky],[s,15,15*Ky],[s,30,30*Ky],[o,1,Qy],[o,5,5*Qy],[o,15,15*Qy],[o,30,30*Qy],[r,1,Zy],[r,3,3*Zy],[r,6,6*Zy],[r,12,12*Zy],[i,1,eb],[i,2,2*eb],[e,1,NLe],[n,1,CG],[n,3,3*CG],[t,1,FI]];function S($){return(s($)<$?h:o($)<$?f:r($)<$?p:i($)<$?m:n($)<$?e($)<$?g:v:t($)<$?y:_)($)}function M($,G,R){if(null==$&&($=10),"number"==typeof $){var q,z=Math.abs(R-G)/$,U=yI(function(re){return re[2]}).right(C,z);return U===C.length?(q=wI(G/FI,R/FI,$),$=t):U?(q=(U=C[z/C[U-1][2]=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s2(t){if(!(n=jLe.exec(t)))throw new Error("invalid format: "+t);var n;return new OI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function OI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function a2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function kv(t){return(t=a2(Math.abs(t)))?t[1]:NaN}function DG(t,n){var e=a2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}s2.prototype=OI.prototype,OI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const TG={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function PLe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return DG(100*t,n)},r:DG,s:function VLe(t,n){var e=a2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(SG=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+a2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function EG(t){return t}var l2,jI,IG,AG=Array.prototype.map,MG=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qLe(t){var n=t.domain;return t.ticks=function(e){var i=n();return function Yje(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),s=new Array(o=Math.ceil(n-t+1));++r0;){if((c=$U(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function bo(){var t=wG();return t.copy=function(){return xG(t,bo())},Jy.apply(t,arguments),qLe(t)}function NG(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(AG.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?EG:function $Le(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(AG.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=s2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,_=d.precision,C=d.trim,S=d.type;"n"===S?(y=!0,S="g"):TG[S]||(void 0===_&&(_=12),C=!0,S="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var M="$"===m?e:"#"===m&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",$="$"===m?i:/[%p]/.test(S)?s:"",G=TG[S],R=/[defgprs%]/.test(S);function z(U){var L,X,Z,q=M,re=$;if("c"===S)re=G(U)+re,U="";else{var H=(U=+U)<0||1/U<0;if(U=isNaN(U)?l:G(Math.abs(U),_),C&&(U=function BLe(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(U)),H&&0==+U&&"+"!==p&&(H=!1),q=(H?"("===p?p:a:"-"===p||"("===p?"":p)+q,re=("s"===S?MG[8+SG/3]:"")+re+(H&&"("===p?")":""),R)for(L=-1,X=U.length;++L(Z=U.charCodeAt(L))||Z>57){re=(46===Z?r+U.slice(L+1):U.slice(L))+re,U=U.slice(0,L);break}}y&&!g&&(U=n(U,1/0));var he=q.length+U.length+re.length,E=he>1)+q+U+re+E.slice(he);break;default:U=E+q+U+re}return o(U)}return _=void 0===_?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),z.toString=function(){return d+""},z}return{format:c,formatPrefix:function u(d,h){var f=c(((d=s2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(kv(h)/3))),m=Math.pow(10,-p),g=MG[8+p/3];return function(v){return f(m*v)+g}}}}(t),jI=l2.format,IG=l2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const FG=Symbol("implicit");function PI(){var t=new Map,n=[],e=[],i=FG;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==FG)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return PI(n,e).unknown(i)},Jy.apply(r,arguments),r}function La(){var o,s,t=PI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function jG(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],avm)if(Math.abs(u*a-l*c)>vm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((LI-Math.acos((p+d-m)/(2*g*v)))/2),_=y/v,C=y/g;Math.abs(_-1)>vm&&(this._+="L"+(t+_*c)+","+(n+_*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+C*a)+","+(this._y1=n+C*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vm||Math.abs(this._y1-c)>vm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%RI+RI),d>YLe?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>vm&&(this._+="A"+e+","+e+",0,"+ +(d>=LI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const BI=LG;function mo(t){return function(){return t}}function RG(t){return t[0]}function $G(t){return t[1]}function c2(){var t=RG,n=$G,e=mo(!0),i=null,r=gm,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=BI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],_[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),_[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):_[d]))}if(v)return a=null,v+""||null}function c(){return c2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:mo(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:mo(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:mo(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:mo(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:mo(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:mo(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:mo(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function BG(){}function VI(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function VG(t,n){this._context=t,this._k=(1-n)/6}function HG(t,n){this._context=t,this._k=(1-n)/6}function zG(t){this._curve=t}function fRe(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function XG(t,n){var r,s,a,l,c,e=new rb(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=FRe);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new rb(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(YG)}function FRe(t){return t.children}function ORe(t){t.data=t.data.data}function YG(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function rb(t){this.data=t,this.depth=this.height=0,this.parent=null}VG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:VI(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:VI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new VG(i,n)}return e.tension=function(i){return t(+i)},e}(0),HG.prototype={areaStart:BG,areaEnd:BG,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:VI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new HG(i,n)}return e.tension=function(i){return t(+i)},e}(0),function UG(t){function n(e){return new zG(t(e))}return n._curve=t,n}(gm),zG.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function gRe(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,_,C,S,M,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),M=g*g*S,(_=Math.max(y/M,M/v))>C){g-=c;break}C=_}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),rb.prototype=XG.prototype={constructor:rb,count:function _Re(){return this.eachAfter(bRe)},each:function xRe(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function kRe(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function SRe(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function DRe(t){for(var n=this,e=function TRe(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function ERe(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function ARe(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function MRe(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function IRe(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function NRe(){return XG(this).eachBefore(ORe)}};const $Re=["caretElm"];function BRe(t,n){}const VRe=function(t){return{model:t}};function HRe(t,n){if(1&t&&(b(0,"span"),J(1,BRe,0,0,"ng-template",5),x()),2&t){const e=j();w(1),k("ngTemplateOutlet",e.template)("ngTemplateOutletContext",lr(2,VRe,e.context))}}function zRe(t,n){1&t&&ge(0,"span",6),2&t&&k("innerHTML",j().title,kx)}function URe(t,n){if(1&t&&(at(),Ip(),ge(0,"ngx-charts-scale-legend",4)),2&t){const e=j();k("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function GRe(t,n){if(1&t){const e=vt();at(),Ip(),b(0,"ngx-charts-legend",5),ye("labelClick",function(r){return $e(e),Be(j().legendLabelClick.emit(r))})("labelActivate",function(r){return $e(e),Be(j().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return $e(e),Be(j().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=j();k("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const QG=["*"],WRe=["ngx-charts-axis-label",""],ZG=["ticksel"],qRe=["ngx-charts-x-axis-ticks",""];function XRe(t,n){if(1&t&&(at(),b(0,"g",3)(1,"title"),I(2),x(),b(3,"text",4),I(4),x()()),2&t){const e=n.$implicit,i=j();ht("transform",i.tickTransform(e)),w(2),Dt(i.tickFormat(e)),w(1),rr("font-size","12px"),ht("text-anchor",i.textAnchor)("transform",i.textTransform),w(1),xn(" ",i.tickTrim(i.tickFormat(e))," ")}}function YRe(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"line",6),x()),2&t){const e=j(2);ht("transform",e.gridLineTransform()),w(1),ht("y1",-e.gridLineHeight)}}function JRe(t,n){if(1&t&&(at(),b(0,"g"),J(1,YRe,2,2,"g",5),x()),2&t){const e=n.$implicit,i=j();ht("transform",i.tickTransform(e)),w(1),k("ngIf",i.showGridLines)}}const KRe=["ngx-charts-x-axis",""];function QRe(t,n){if(1&t){const e=vt();at(),b(0,"g",2),ye("dimensionsChanged",function(r){return $e(e),Be(j().emitTicksHeight(r))}),x()}if(2&t){const e=j();k("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function ZRe(t,n){if(1&t&&(at(),ge(0,"g",3)),2&t){const e=j();k("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const e5e=["ngx-charts-y-axis-ticks",""];function t5e(t,n){if(1&t&&(at(),b(0,"g",4)(1,"title"),I(2),x(),b(3,"text",5),I(4),x()()),2&t){const e=n.$implicit,i=j();ht("transform",i.transform(e)),w(2),Dt(i.tickFormat(e)),w(1),rr("font-size","12px"),ht("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),w(1),xn(" ",i.tickTrim(i.tickFormat(e))," ")}}function n5e(t,n){if(1&t&&(at(),ge(0,"path",6)),2&t){const e=j();ht("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function i5e(t,n){1&t&&(at(),ge(0,"line",9)),2&t&&ht("x2",j(3).gridLineWidth)}function r5e(t,n){1&t&&(at(),ge(0,"line",9)),2&t&&ht("x2",-j(3).gridLineWidth)}function o5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,i5e,1,1,"line",8),J(2,r5e,1,1,"line",8),x()),2&t){const e=j(2);ht("transform",e.gridLineTransform()),w(1),k("ngIf","left"===e.orient),w(1),k("ngIf","right"===e.orient)}}function s5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,o5e,3,3,"g",7),x()),2&t){const e=n.$implicit,i=j();ht("transform",i.transform(e)),w(1),k("ngIf",i.showGridLines)}}function a5e(t,n){if(1&t&&(at(),b(0,"g")(1,"title"),I(2),x(),b(3,"text",11),I(4),x()()),2&t){const e=j(2).$implicit,i=j();w(2),Dt(i.tickTrim(i.tickFormat(e.value))),w(1),ht("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),w(1),xn(" ",e.name," ")}}function l5e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"line",10),J(2,a5e,5,6,"g",7),x()),2&t){const e=j().$implicit,i=j();ht("transform",i.transform(e.value)),w(1),ht("x2",i.gridLineWidth)("transform",i.gridLineTransform()),w(1),k("ngIf",i.showRefLabels)}}function c5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,l5e,3,4,"g",7),x()),2&t){const e=j();w(1),k("ngIf",e.showRefLines)}}const u5e=["ngx-charts-y-axis",""];function d5e(t,n){if(1&t){const e=vt();at(),b(0,"g",2),ye("dimensionsChanged",function(r){return $e(e),Be(j().emitTicksWidth(r))}),x()}if(2&t){const e=j();k("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function h5e(t,n){if(1&t&&(at(),ge(0,"g",3)),2&t){const e=j();k("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const f5e=["ngx-charts-circle-series",""];function p5e(t,n){if(1&t&&(at(),ge(0,"rect",4)),2&t){const e=j(2);k("@animationState","active"),ht("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const m5e=function(t){return{name:t}};function g5e(t,n){if(1&t){const e=vt();at(),b(0,"g")(1,"defs"),ge(2,"g",1),x(),J(3,p5e,1,6,"rect",2),b(4,"g",3),ye("select",function(){$e(e);const r=j();return Be(r.onClick(r.circle.data))})("activate",function(){return $e(e),Be(j().activateCircle())})("deactivate",function(){return $e(e),Be(j().deactivateCircle())}),x()()}if(2&t){const e=j();w(2),k("name",e.gradientId)("stops",e.circle.gradientStops),w(1),k("ngIf",e.barVisible&&"standard"===e.type),w(1),Mn("active",e.isActive(lr(18,m5e,e.circle.seriesName))),k("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const v5e=["ngx-charts-circle",""],x5e=["ngx-charts-svg-linear-gradient",""];function w5e(t,n){if(1&t&&(at(),ge(0,"stop")),2&t){const e=n.$implicit;rr("stop-color",e.color)("stop-opacity",e.opacity),ht("offset",e.offset+"%")}}const S5e=["ngx-charts-area",""];function D5e(t,n){if(1&t&&(at(),b(0,"defs"),ge(1,"g",2),x()),2&t){const e=j();w(1),k("name",e.gradientId)("stops",e.gradientStops)}}const E5e=["tooltipAnchor"],A5e=["ngx-charts-tooltip-area",""];function M5e(t,n){if(1&t&&(b(0,"div",6),ge(1,"span",7),I(2),x()),2&t){const e=n.$implicit,i=j(2);w(1),rr("background-color",e.color),w(1),xn(" ",i.getToolTipText(e)," ")}}function I5e(t,n){if(1&t&&(at(),Ip(),b(0,"div",4),J(1,M5e,3,3,"div",5),x()),2&t){const e=n.model;w(1),k("ngForOf",e)}}const N5e=["ngx-charts-timeline",""];function F5e(t,n){if(1&t&&(b(0,"header",4)(1,"span",5),I(2),x()()),2&t){const e=j();w(2),Dt(e.title)}}function O5e(t,n){if(1&t){const e=vt();b(0,"li",6)(1,"ngx-charts-legend-entry",7),ye("select",function(r){return $e(e),Be(j().labelClick.emit(r))})("activate",function(r){return $e(e),Be(j().activate(r))})("deactivate",function(r){return $e(e),Be(j().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=j();w(1),k("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Us=["tooltipTemplate"],p2=["seriesTooltipTemplate"],Eo=function(t,n){return[t,n]},n6e=["ngx-charts-line",""];function i6e(t,n){if(1&t){const e=vt();at(),b(0,"g",7),ye("dimensionsChanged",function(r){return $e(e),Be(j().updateXAxisHeight(r))}),x()}if(2&t){const e=j();k("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function r6e(t,n){if(1&t){const e=vt();at(),b(0,"g",8),ye("dimensionsChanged",function(r){return $e(e),Be(j().updateYAxisWidth(r))}),x()}if(2&t){const e=j();k("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function o6e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"g",9),x()),2&t){const e=n.$implicit,i=j();k("@animationState","active"),w(1),k("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function s6e(t,n){if(1&t){const e=vt();at(),b(0,"g")(1,"g",13),ye("select",function(r){return $e(e),Be(j(2).onClick(r))})("activate",function(r){return $e(e),Be(j(2).onActivate(r))})("deactivate",function(r){return $e(e),Be(j(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=j(2);w(1),k("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function a6e(t,n){if(1&t){const e=vt();at(),b(0,"g",10),ye("mouseleave",function(){return $e(e),Be(j().hideCircles())}),b(1,"g",11),ye("hover",function(r){return $e(e),Be(j().updateHoveredVertical(r))}),x(),J(2,s6e,2,9,"g",12),x()}if(2&t){const e=j();w(1),k("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),w(1),k("ngForOf",e.results)}}function l6e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"g",15),x()),2&t){const e=n.$implicit,i=j(2);w(1),k("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function c6e(t,n){if(1&t){const e=vt();at(),b(0,"g",14),ye("onDomainChange",function(r){return $e(e),Be(j().updateDomain(r))}),J(1,l6e,2,8,"g",4),x()}if(2&t){const e=j();k("results",e.results)("view",Sr(10,Eo,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ht("transform",e.timelineTransform),w(1),k("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const u6e=["ngx-charts-line-series",""];function d6e(t,n){if(1&t&&(at(),ge(0,"g",4)),2&t){const e=j();k("name",e.gradientId)("stops",e.gradientStops)}}function h6e(t,n){if(1&t&&(at(),ge(0,"g",5)),2&t){const e=j();Mn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),k("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let iW=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function a$e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new kFe(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Nz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(ct(Au),ct($c),ct(Rs))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function l$e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function c$e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:l$e(o.value,t,n)}),this[r]}}}}var Gs=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Gs||(Gs={})),Gs))();const Lf=7;function rW(t,n,e){return"top"===e?t.top-Lf:"bottom"===e?t.top+t.height-n.height+Lf:"center"===e?t.top+t.height/2-n.height/2:void 0}function oW(t,n,e){return"left"===e?t.left-Lf:"right"===e?t.left+t.width-n.width+Lf:"center"===e?t.left+t.width/2-n.width/2:void 0}class yc{static calculateVerticalAlignment(n,e,i){let r=rW(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Lf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Lf),"center"===r&&(o=e.height/2-i.height/2);const s=rW(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=oW(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Lf),"right"===r&&(o=e.width-n.width/2-i.width/2-Lf),"center"===r&&(o=e.width/2-i.width/2);const s=oW(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===Gs.right?(a=-7,s=yc.calculateVerticalCaret(i,e,r,o)):n===Gs.left?(a=e.width,s=yc.calculateVerticalCaret(i,e,r,o)):n===Gs.top?(s=e.height,a=yc.calculateHorizontalCaret(i,e,r,o)):n===Gs.bottom&&(s=-7,a=yc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===Gs.right?(a=i.left+i.width+r,s=yc.calculateVerticalAlignment(i,e,o)):n===Gs.left?(a=i.left-e.width-r,s=yc.calculateVerticalAlignment(i,e,o)):n===Gs.top?(s=i.top-e.height-r,a=yc.calculateHorizontalAlignment(i,e,o)):n===Gs.bottom&&(s=i.top+i.height+r,a=yc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(yc.shouldFlip(i,e,n,r)){if(n===Gs.right)return Gs.left;if(n===Gs.left)return Gs.right;if(n===Gs.top)return Gs.bottom;if(n===Gs.bottom)return Gs.top}return n}}let u$e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=yc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=yc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=yc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&io($Re,5),2&e){let r;cn(r=un())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ye("resize",function(){return i.onWindowResize()},0,w5),2&e&&Su(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(b(0,"div"),ge(1,"span",0,1),b(3,"div",2),J(4,HRe,2,4,"span",3),J(5,zRe,1,1,"span",4),x()()),2&e&&(w(1),function J8(t,n,e){Tu(lc,Pd,Ig(Gt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),k("hidden",!i.showCaret),w(3),k("ngIf",!i.title),w(1),k("ngIf",i.title))},dependencies:[gn,kl],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function SFe(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);r>3&&o&&Object.defineProperty(n,e,o)}([c$e(100)],t.prototype,"onWindowResize",null),t})();class d$e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let UI=(()=>{class t extends d$e{constructor(e){super(e),this.type=u$e}}return t.\u0275fac=function(e){return new(e||t)(ct(iW))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),os=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new Ke,this.legendLabelActivate=new Ke,this.legendLabelDeactivate=new Ke}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[Lr([UI]),Hn],ngContentSelectors:QG,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Cu(),b(0,"div",0),at(),b(1,"svg",1),ku(2),x(),J(3,URe,1,5,"ngx-charts-scale-legend",2),J(4,GRe,1,7,"ngx-charts-legend",3),x()),2&e&&(rr("width",i.view[0],"px"),k("@animationState","active")("@.disabled",!i.animations),w(1),ht("width",i.chartWidth)("height",i.view[1]),w(2),k("ngIf",i.showLegend&&"scaleLegend"===i.legendType),w(1),k("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[gn,vW,bW]},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({opacity:0}),Ma("500ms 100ms",Dr({opacity:1}))])])]},changeDetection:0}),t})(),h$e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new Ke,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi))},t.\u0275dir=Zt({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),ss=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new Ke}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new h$e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new EFe(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi),le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[Hn],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"div")},encapsulation:2}),t})(),GI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[Hn],attrs:WRe,decls:2,vars:6,template:function(e,i){1&e&&(at(),b(0,"text"),I(1),x()),2&e&&(ht("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),w(1),xn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Rf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function sW(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new Ke,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=sW(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Rf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&io(ZG,5),2&e){let r;cn(r=un())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:qRe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(at(),b(0,"g",null,0),J(2,XRe,5,7,"g",1),x(),J(3,JRe,2,2,"g",2)),2&e&&(w(2),k("ngForOf",i.ticks),w(1),k("ngForOf",i.ticks))},dependencies:[jn,gn],encapsulation:2,changeDetection:0}),t})(),Wl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new Ke,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&io(aW,5),2&e){let r;cn(r=un())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:KRe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(at(),b(0,"g"),J(1,QRe,1,12,"g",0),J(2,ZRe,1,5,"g",1),x()),2&e&&(ht("class",i.xAxisClassName)("transform",i.transform),w(1),k("ngIf",i.xScale),w(1),k("ngIf",i.showLabel))},dependencies:[gn,GI,aW],encapsulation:2,changeDetection:0}),t})();let lW=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new Ke,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function Yh(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=sW(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Rf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&io(ZG,5),2&e){let r;cn(r=un())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:e5e,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(at(),b(0,"g",null,0),J(2,t5e,5,9,"g",1),x(),J(3,n5e,1,2,"path",2),J(4,s5e,2,2,"g",3),J(5,c5e,2,1,"g",3)),2&e&&(w(2),k("ngForOf",i.ticks),w(1),k("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),w(1),k("ngForOf",i.ticks),w(1),k("ngForOf",i.referenceLines))},dependencies:[jn,gn],encapsulation:2,changeDetection:0}),t})(),El=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new Ke,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&io(lW,5),2&e){let r;cn(r=un())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:u5e,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(at(),b(0,"g"),J(1,d5e,1,14,"g",0),J(2,h5e,1,5,"g",1),x()),2&e&&(ht("class",i.yAxisClassName)("transform",i.transform),w(1),k("ngIf",i.yScale),w(1),k("ngIf",i.showLabel))},dependencies:[gn,GI,lW],encapsulation:2,changeDetection:0}),t})(),cW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();var m2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(m2||(m2={})),m2))(),g2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(g2||(g2={})),g2))(),$f=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}($f||($f={})),$f))();let Bu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Gs.top,this.tooltipAlignment=g2.center,this.tooltipType=m2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=$f.all,this.tooltipImmediateExit=!1,this.show=new Ke,this.hide=new Ke}get listensForFocus(){return this.tooltipShowEvent===$f.all||this.tooltipShowEvent===$f.focus}get listensForHover(){return this.tooltipShowEvent===$f.all||this.tooltipShowEvent===$f.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(le(UI),le(nl),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&ye("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),uW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[iW,UI],imports:[Vs]}),t})();function Ra(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function oa(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const dW={};function Al(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,dW[t]?Al():(dW[t]=!0,t)}let YI,ob=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=Ra(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${oa(r)} \u2022 ${oa(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Hn],attrs:f5e,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&J(0,g5e,5,20,"g",0),2&e&&k("ngIf",i.circle)},dependencies:function(){return[gn,Bu,v2,bm]},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({opacity:0}),Ma(250,Dr({opacity:1}))])])]},changeDetection:0}),t})(),v2=(()=>{class t{constructor(){this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&ye("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Hn],attrs:v5e,decls:1,vars:8,template:function(e,i){1&e&&(at(),ge(0,"circle")),2&e&&ht("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),bm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[Hn],attrs:x5e,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(at(),b(0,"linearGradient",0),J(1,w5e,1,5,"stop",1),x()),2&e&&(k("id",i.name),ht("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),w(1),k("ngForOf",i.stops))},dependencies:[jn],encapsulation:2,changeDetection:0}),t})(),XI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new Ke,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=va(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[Hn],attrs:S5e,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(J(0,D5e,2,2,"defs",0),at(),ge(1,"path",1)),2&e&&(k("ngIf",i.gradient),w(1),rr("opacity",i.opacity),ht("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[gn,bm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?YI=window:typeof global<"u"&&(YI=global);const gW=YI.MouseEvent;function JI(t,n=!1,e=!0){if("function"==typeof gW)return new gW(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let sb=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new Ke}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=JI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=JI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=JI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&io(E5e,5),2&e){let r;cn(r=un())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:A5e,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(at(),b(0,"g")(1,"rect",0),ye("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),J(2,I5e,2,1,"ng-template",null,1,Ur),ge(4,"rect",2,3),x()),2&e){const r=uo(3);w(1),ht("x",0)("width",i.dims.width)("height",i.dims.height),w(3),rr("opacity",i.anchorOpacity)("pointer-events","none"),k("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ht("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[jn,Bu],encapsulation:2,data:{animation:[il("animationState",[Ia("inactive => active",[Dr({opacity:0}),Ma(250,Dr({opacity:.7}))]),Ia("active => inactive",[Dr({opacity:.7}),Ma(250,Dr({opacity:0}))])])]},changeDetection:0}),t})(),ab=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new Ke,this.onDomainChange=new Ke,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Al().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=pm().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=bo().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=mm().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function qje(){return gI(e2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Vr.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),va(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),va(this.element).select(".brush").call(this.brush),va(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[Hn],attrs:N5e,ngContentSelectors:QG,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Cu(),at(),b(0,"g",0)(1,"filter"),ge(2,"feColorMatrix",1),x(),b(3,"g",2),ku(4),x(),ge(5,"rect",3)(6,"g",4),x()),2&e&&(ht("transform",i.transform),w(1),ht("id",i.filterId),w(4),ht("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),vW=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new Ke,this.labelActivate=new Ke,this.labelDeactivate=new Ke,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=Ra(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[Hn],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(b(0,"div"),J(1,F5e,3,1,"header",0),b(2,"div",1)(3,"ul",2),J(4,O5e,2,4,"li",3),x()()()),2&e&&(rr("width",i.width,"px"),w(1),k("ngIf",(null==i.title?null:i.title.length)>0),w(2),rr("max-height",i.height-45,"px"),Mn("horizontal-legend",i.horizontal),w(1),k("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[jn,gn,yW]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),yW=(()=>{class t{constructor(){this.isActive=!1,this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke,this.toggle=new Ke}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&ye("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(b(0,"span",0),ye("click",function(){return i.select.emit(i.formattedLabel)}),b(1,"span",1),ye("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),b(2,"span",2),I(3),x()()),2&e&&(Mn("active",i.isActive),k("title",i.formattedLabel),w(1),rr("background-color",i.color),w(2),xn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),bW=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(le(ZB))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[Hn],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"span"),I(3),x()(),ge(4,"div",2),b(5,"div",1)(6,"span"),I(7),x()()()),2&e&&(rr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Mn("horizontal-legend",i.horizontal),w(3),Dt(i.valueRange[1].toLocaleString()),w(1),rr("background",i.gradient),w(3),Dt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Vu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs,cW,uW,Vs,cW,uW]}),t})();let xW=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class vs{constructor(n,e,i,r){"string"==typeof n&&(n=xW.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=xW.find(o=>o.name===n)),"quantile"===e)r=jG().range(n.domain).domain(i);else if("ordinal"===e)r=PI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=NG(0,1,1/o.length);r=bo().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=bo().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=bo().domain(this.domain).range([0,1]),r=La().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let f$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),CW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),m$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),y$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),DW=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new Ke,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=va(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[Hn],attrs:n6e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(at(),ge(0,"path",0)),2&e&&(k("@animationState","active"),ht("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({strokeDasharray:2e3,strokeDashoffset:2e3}),Ma(1e3,Dr({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),b$e=(()=>{class t extends ss{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=gm,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new Ke,this.deactivate=new Ke,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function gs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Al().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function b2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function Bf(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=pm().range([0,i]).domain(e):"linear"===this.scaleType?(r=bo().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=mm().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=bo().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new vs(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(ni(r,Us,5),ni(r,p2,5)),2&e){let o;cn(o=un())&&(i.tooltipTemplate=o.first),cn(o=un())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&ye("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[vi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(b(0,"ngx-charts-chart",0),ye("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),at(),b(1,"defs")(2,"clipPath"),ge(3,"rect"),x()(),b(4,"g",1),J(5,i6e,1,10,"g",2),J(6,r6e,1,12,"g",3),b(7,"g"),J(8,o6e,2,11,"g",4),J(9,a6e,3,9,"g",5),x()(),J(10,c6e,2,13,"g",6),x()),2&e&&(k("view",Sr(17,Eo,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),w(2),ht("id",i.clipPathId),w(1),ht("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),w(1),ht("transform",i.transform),w(1),k("ngIf",i.xAxis),w(1),k("ngIf",i.yAxis),w(1),ht("clip-path",i.clipPath),w(1),k("ngForOf",i.results)("ngForTrackBy",i.trackBy),w(1),k("ngIf",!i.tooltipDisabled),w(1),k("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[jn,gn,Wl,El,sb,os,ob,ab,_$e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[il("animationState",[Ia(":leave",[Dr({opacity:1}),Ma(500,Dr({opacity:0}))])])]},changeDetection:0}),t})(),_$e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return c2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Sv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Sv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function KI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function ZI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function QI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Al().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[Hn],attrs:u6e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(at(),b(0,"g")(1,"defs"),J(2,d6e,1,2,"g",0),x(),ge(3,"g",1)(4,"g",2),J(5,h6e,1,9,"g",3),x()),2&e&&(w(2),k("ngIf",i.hasGradient),w(1),Mn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),k("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),w(1),Mn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),k("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),w(1),k("ngIf",i.hasRange))},dependencies:[gn,XI,bm,DW],encapsulation:2,changeDetection:0}),t})(),TW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})();Math;let iN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),S$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,iN,TW]}),t})(),A$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),N$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),j$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,iN,CW]}),t})(),L$e=(()=>{class t{constructor(){!function P$e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,f$e,CW,m$e,y$e,TW,S$e,A$e,iN,N$e,j$e]}),t})();function R$e(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function $$e(t,n){1&t&&ge(0,"img",31)}function B$e(t,n){1&t&&ge(0,"img",32)}function V$e(t,n){1&t&&ge(0,"img",33)}function H$e(t,n){1&t&&ge(0,"img",34)}function z$e(t,n){if(1&t&&(b(0,"tr",24)(1,"td"),ta(2,25),J(3,$$e,1,0,"img",26),J(4,B$e,1,0,"img",27),J(5,V$e,1,0,"img",28),J(6,H$e,1,0,"img",29),na(),b(7,"span"),I(8),x()(),b(9,"td"),I(10),b(11,"span",30),I(12),x()(),b(13,"td"),I(14),b(15,"span",30),I(16),x()(),b(17,"td"),I(18),b(19,"span",30),I(20),x()(),b(21,"td"),I(22),b(23,"span",30),I(24),x()()()),2&t){const e=n.$implicit,i=j(2);w(2),k("ngSwitch",e.health),w(1),k("ngSwitchCase",0),w(1),k("ngSwitchCase",1),w(1),k("ngSwitchCase",2),w(1),k("ngSwitchCase",3),w(2),Dt(e.name),w(2),xn("",e.session_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxSessionCount()-e.session_count," delta)"),w(2),xn("",e.presence_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),w(2),xn("",e.match_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxMatchCount()-e.match_count," delta)"),w(2),xn("",e.goroutine_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function U$e(t,n){if(1&t&&(b(0,"tbody"),J(1,z$e,25,18,"tr",22),b(2,"tr",3),ge(3,"td",23),b(4,"th",3),I(5),x(),b(6,"th",3),I(7),x(),b(8,"th",3),I(9),x(),b(10,"th",3),I(11),x()()()),2&t){const e=j();w(1),k("ngForOf",e.statusData.nodes),w(4),Dt(e.getTotalSessionCount()),w(2),Dt(e.getMaxPresenceCount()),w(2),Dt(e.getTotalMatchCount()),w(2),Dt(e.getTotalGorountineCount())}}function G$e(t,n){if(1&t&&(b(0,"option",35),I(1),x()),2&t){const e=n.$implicit,i=j();Fh("value",e),w(1),Dt(i.ranges[e])}}const w2=function(t){return{"background-color":t}};function W$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function q$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,W$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function X$e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",37),J(2,q$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function Y$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function J$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,Y$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function K$e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",43),J(2,J$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function Q$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function Z$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,Q$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function eBe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",44),J(2,Z$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function tBe(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function nBe(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,tBe,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function iBe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",45),J(2,nBe,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let rBe=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"showDelta",!1),K(this,"statusData",void 0),K(this,"rateGraphData",[]),K(this,"latencyGraphData",[]),K(this,"inputGraphData",[]),K(this,"outputGraphData",[]),K(this,"rangeForm",void 0),K(this,"ranges",{1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"}),K(this,"rangesKeys",Object.keys(this.ranges).map(o=>+o)),K(this,"colorScheme",{domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]}),K(this,"samples",60),K(this,"refreshTimer",void 0),K(this,"$refreshTimer",void 0),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=av(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=av(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Status"),x(),J(2,R$e,4,2,"ngb-alert",1),b(3,"table",2),ye("mouseover",function(){return i.showDelta=!0})("mouseout",function(){return i.showDelta=!1}),b(4,"thead",3)(5,"tr")(6,"th",4),I(7,"Node name"),x(),b(8,"th",4),I(9,"Sessions"),x(),b(10,"th",4),I(11,"Presences"),x(),b(12,"th",4),I(13,"Authoritative Matches"),x(),b(14,"th",4),I(15,"Goroutines"),x()()(),J(16,U$e,12,5,"tbody",5),x(),b(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),I(21,"View:"),x(),b(22,"div",9)(23,"select",10),ye("change",function(o){return i.setRange(o)}),J(24,G$e,2,2,"option",11),function qE(t,n){const e=Pr();let i;const r=t+Bo;e.firstCreatePass?(i=function R_e(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ap(i.type)),s=Pc(le);try{const a=ux(!1),l=o();return ux(a),function Lye(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Gt(),r,l),l}finally{Pc(s)}}(25,"sortNumbers"),x()()()()(),b(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),I(30,"Processing Latency"),x(),b(31,"small"),I(32," (ms)"),x()()(),b(33,"div",13)(34,"div",14)(35,"h5",15),I(36,"Rate"),x(),b(37,"small"),I(38," (rpc/s)"),x()()()(),b(39,"div",12)(40,"div",16),J(41,X$e,4,12,"div",17),x(),b(42,"div",16),J(43,K$e,4,12,"div",17),x()(),b(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),I(48,"Input"),x(),b(49,"small"),I(50," (kb/s)"),x()()(),b(51,"div",13)(52,"div",14)(53,"h5",15),I(54,"Output"),x(),b(55,"small"),I(56," (kb/s)"),x()()()(),b(57,"div",12)(58,"div",16),J(59,eBe,4,12,"div",17),x(),b(60,"div",16),J(61,iBe,4,12,"div",17),x()()),2&e&&(w(2),k("ngIf",i.error),w(14),k("ngIf",i.statusData),w(1),k("formGroup",i.rangeForm),w(7),k("ngForOf",XE(25,8,i.rangesKeys)),w(17),k("ngIf",i.latencyGraphData.length>0),w(2),k("ngIf",i.rateGraphData.length>0),w(16),k("ngIf",i.inputGraphData.length>0),w(2),k("ngIf",i.outputGraphData.length>0))},dependencies:function(){return[jn,gn,wB,dw,_B,To,Pu,tFe,b$e,sl,xy,wy,ov,rl,ol,fa,ja,sBe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})),t})(),oBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(nt(r=>$n(r.nodes.map(o=>o.name)))).pipe(Ul(r=>(e.data={...e.data,error:r},$n([]))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),sBe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275pipe",gl({name:"sortNumbers",type:t,pure:!1})),t})();var aBe=De(870),rN=De(327);const lBe=["fileSelector"];function cBe(t,n){if(1&t&&(b(0,"div",8),I(1),x()),2&t){const e=j(2);w(1),Dt(e.dropZoneLabel)}}function uBe(t,n){if(1&t){const e=vt();b(0,"div")(1,"input",9),ye("click",function(r){return $e(e),Be(j(2).openFileSelector(r))}),x()()}if(2&t){const e=j(2);w(1),Fh("value",e.browseBtnLabel),k("className",e.browseBtnClassName)}}function dBe(t,n){if(1&t&&(J(0,cBe,2,1,"div",6),J(1,uBe,2,2,"div",7)),2&t){const e=j();k("ngIf",e.dropZoneLabel),w(1),k("ngIf",e.showBrowseBtn)}}function hBe(t,n){}const fBe=function(t){return{openFileSelector:t}};class C2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let OW=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(le(Si))},t.\u0275dir=Zt({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),jW=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new Ke,this.onFileOver=new Ke,this.onFileLeave=new Ke,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new C2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=av(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new C2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new C2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(le(Wi),le(Ss))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&ni(r,OW,5,Si),2&e){let o;cn(o=un())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&io(lBe,7),2&e){let r;cn(r=un())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(b(0,"div",0),ye("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),b(1,"div",1)(2,"input",2,3),ye("change",function(o){return i.uploadFiles(o)}),x(),J(4,dBe,2,2,"ng-template",null,4,Ur),J(6,hBe,0,0,"ng-template",5),x()()),2&e){const r=uo(5);Mn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),k("className",i.dropZoneClassName),w(1),k("className",i.contentClassName),w(1),k("accept",i.accept)("multiple",i.multiple),ht("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),w(4),k("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",lr(13,fBe,i.openFileSelector))}},dependencies:[gn,kl],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),pBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t,bootstrap:function(){return[jW]}}),t.\u0275inj=Ci({imports:[Vs]}),t})();function mBe(t,n){1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),I(3,"Failed to retrieve configuration."),x()()),2&t&&k("dismissible",!1)}function gBe(t,n){if(1&t&&(b(0,"span",33),I(1),x()),2&t){const e=j(2).$implicit;k("id",e.name),w(1),Dt(e.value)}}function vBe(t,n){1&t&&(b(0,"span",34),I(1,"(empty)"),x()),2&t&&k("id",j(2).$implicit.name)}function yBe(t,n){if(1&t&&(b(0,"div",35)(1,"b"),I(2),x(),b(3,"label",27)(4,"a",28),ge(5,"img",10),x()()()),2&t){const e=j(2).index,i=j();w(2),Dt(i.flatConfig[e+1].name),w(1),k("for",i.flatConfig[e+1].name),w(1),$p("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",i.flatConfig[e+1].name,"",y1)}}function bBe(t,n){if(1&t&&(b(0,"span",33),I(1),x()),2&t){const e=j(3).index,i=j();k("id",i.flatConfig[e+1].name),w(1),Dt(i.flatConfig[e+1].value)}}function _Be(t,n){if(1&t&&(b(0,"span",34),I(1,"(empty)"),x()),2&t){const e=j(3).index;k("id",j().flatConfig[e+1].name)}}function xBe(t,n){if(1&t&&(b(0,"div",36),J(1,bBe,2,2,"span",29),J(2,_Be,2,1,"span",30),x()),2&t){const e=j(2).index,i=j();w(1),k("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),w(1),k("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function wBe(t,n){if(1&t&&(b(0,"div",26)(1,"div",7)(2,"b"),I(3),x(),b(4,"label",27)(5,"a",28),ge(6,"img",10),x()()(),b(7,"div",7),J(8,gBe,2,2,"span",29),J(9,vBe,2,1,"span",30),x(),J(10,yBe,6,3,"div",31),J(11,xBe,3,2,"div",32),x()),2&t){const e=j(),i=e.index,r=e.$implicit,o=j();Mn("border-top-0",i>0),w(3),Dt(r.name),w(1),k("for",r.name),w(1),$p("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",r.value.name,"",y1),w(3),k("ngIf",!o.isEmpty(r.value)),w(1),k("ngIf",o.isEmpty(r.value)),w(1),k("ngIf",i{class t{constructor(e,i,r,o,s,a){K(this,"config",void 0),K(this,"route",void 0),K(this,"httpClient",void 0),K(this,"modalService",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"configError",""),K(this,"uploadError",""),K(this,"deleteError",""),K(this,"jsonConfig",void 0),K(this,"flatConfig",void 0),K(this,"nakamaVersion",void 0),K(this,"file",void 0),K(this,"uploading",!1),K(this,"uploadSuccess",!1),K(this,"deleteSuccess",!1),K(this,"deleting",!1),K(this,"confirmDeleteForm",void 0),K(this,"apiConfig",void 0),this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Do.compose([Do.required,Do.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,aBe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});rN.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(T3(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(C3),le(Rr),le(wC),le(H3),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:43,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height",""],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["confirmDelete",""],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],[1,"mt-2"],["autocomplete","off",3,"formGroup"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,i){if(1&e){const r=vt();J(0,mBe,4,1,"ngb-alert",0),b(1,"h2",1),I(2,"Server Configuration"),x(),b(3,"div",2)(4,"h5")(5,"b"),I(6,"Server version:"),x(),I(7),x(),b(8,"button",3),ye("click",function(){return i.exportYaml()}),I(9,"Export Configuration"),x()(),b(10,"div",4),J(11,CBe,2,1,"ng-container",5),b(12,"div",6)(13,"div",7)(14,"b"),I(15,"runtime.env"),x(),b(16,"label",8)(17,"a",9),ge(18,"img",10),x()()(),b(19,"div",11),J(20,SBe,2,1,"div",12),J(21,DBe,3,0,"div",12),x()()(),b(22,"h5",13),I(23,"Import storage data"),x(),b(24,"p"),I(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),J(26,TBe,6,2,"ngb-alert",0),J(27,EBe,4,1,"ngb-alert",14),b(28,"ngx-file-drop",15),ye("onFileDrop",function(s){return i.dropped(s)}),J(29,ABe,2,0,"ng-template",16),x(),b(30,"h5",13),I(31,"Delete all data"),x(),J(32,MBe,6,2,"ngb-alert",0),J(33,IBe,4,1,"ngb-alert",14),b(34,"div",17)(35,"div"),ge(36,"img",18),b(37,"small",19),I(38,"Warning - this operation is not reversible!"),x()(),J(39,FBe,19,5,"ng-template",null,20,Ur),b(41,"button",21),ye("click",function(){$e(r);const s=uo(40);return Be(i.openDeleteDataModal(s))}),I(42,"Delete all"),x()()}2&e&&(k("ngIf",i.configError),w(7),xn(" ",i.nakamaVersion,""),w(4),k("ngForOf",i.flatConfig),w(9),k("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&i.jsonConfig.runtime.env.length>0),w(1),k("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&0===i.jsonConfig.runtime.env.length),w(5),k("ngIf",i.uploadError),w(1),k("ngIf",i.uploadSuccess),w(1),k("disabled",i.uploading),w(4),k("ngIf",i.deleteError),w(1),k("ngIf",i.deleteSuccess),w(8),k("disabled",i.deleting))},dependencies:[jW,OW,Rh,jn,gn,To,sl,Fa,rl,ol,fa,ja],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})),t})(),jBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function PBe(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function LBe(t,n){1&t&&(b(0,"tr")(1,"td",51),I(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(w(1),k("colSpan",4))}function RBe(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td")(6,"span",36),I(7,"Administrator"),x(),b(8,"span",36),I(9,"Developer"),x(),b(10,"span",36),I(11,"Maintainer"),x(),b(12,"span",36),I(13,"View Only"),x()(),b(14,"td")(15,"button",52),ye("click",function(){const o=$e(e).$implicit;return Be(j().deleteUser(o.username))}),I(16,"Delete"),x()()()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.username),w(2),Dt(e.email),w(2),k("hidden",e.role!==i.adminRole),w(2),k("hidden",e.role!==i.developerRole),w(2),k("hidden",e.role!==i.maintainerRole),w(2),k("hidden",e.role!==i.readonlyRole)}}function $Be(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),I(3,"An error occurred:"),x(),b(4,"p",53),I(5),x()()),2&t){const e=j();k("dismissible",!1),w(5),Dt(e.userCreateError)}}const oN=function(t){return{"is-invalid":t}};let BBe=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"userCreateError",""),K(this,"users",[]),K(this,"createUserForm",void 0),K(this,"adminRole",oi.USER_ROLE_ADMIN),K(this,"developerRole",oi.USER_ROLE_DEVELOPER),K(this,"maintainerRole",oi.USER_ROLE_MAINTAINER),K(this,"readonlyRole",oi.USER_ROLE_READONLY),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",Do.required],email:["",[Do.required,Do.email]],password:["",Do.compose([Do.required,Do.minLength(8)])],role:[+this.readonlyRole,Do.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}deleteUser(e){this.error="",this.consoleService.deleteUser("",e).pipe(nt(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=oi.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=oi.USER_ROLE_ADMIN;break;case 2:e=oi.USER_ROLE_DEVELOPER;break;case 3:e=oi.USER_ROLE_MAINTAINER;break;case 4:e=oi.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value}).pipe(nt(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-users"]],decls:121,vars:24,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"text-muted",3,"colSpan"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Management"),x(),J(2,PBe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th",4),I(7,"Username"),x(),b(8,"th"),I(9,"Email"),x(),b(10,"th",5),I(11,"Role"),x(),b(12,"th",6),I(13,"Action"),x()()(),b(14,"tbody"),J(15,LBe,3,1,"tr",7),J(16,RBe,17,6,"tr",8),x()(),b(17,"h5",9),I(18,"Add new user"),x(),b(19,"ngb-alert",10)(20,"h6",11),I(21,"User roles"),x(),b(22,"div",12)(23,"div",13)(24,"div",14),ge(25,"img",15),b(26,"h6",16),I(27,"Administrator"),x()(),b(28,"small"),I(29," Owners have complete control over the server, its users and resources. "),x()(),b(30,"div",13)(31,"div",14),ge(32,"img",17),b(33,"h6",16),I(34,"Developer"),x()(),b(35,"small"),I(36," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),b(37,"div",13)(38,"div",14),ge(39,"img",18),b(40,"h6",16),I(41,"Maintainer"),x()(),b(42,"small"),I(43," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),b(44,"div",13)(45,"div",14),ge(46,"img",19),b(47,"h6",16),I(48,"View Only"),x()(),b(49,"small"),I(50," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),J(51,$Be,6,2,"ngb-alert",1),b(52,"div",20)(53,"form",21),ye("ngSubmit",function(){return i.addUser()}),b(54,"div",22)(55,"div",23)(56,"div",24)(57,"label",25),I(58,"Email"),x()(),b(59,"div",26),ge(60,"input",27),b(61,"div",28),I(62,"Email is required"),x()()()(),b(63,"div",22)(64,"div",23)(65,"div",24)(66,"label",29),I(67,"Username"),x()(),b(68,"div",26),ge(69,"input",30),b(70,"div",28),I(71,"Username is required"),x()()()(),b(72,"div",22)(73,"div",23)(74,"div",24)(75,"label",31),I(76,"Password"),x()(),b(77,"div",26),ge(78,"input",32),b(79,"div",28),I(80,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),b(81,"div",22)(82,"div",23)(83,"div",24)(84,"label",33),I(85,"Role"),x()(),b(86,"div",26)(87,"div",34)(88,"button",35)(89,"span",36),I(90,"Administrator"),x(),b(91,"span",36),I(92,"Developer"),x(),b(93,"span",36),I(94,"Maintainer"),x(),b(95,"span",36),I(96,"View Only"),x()(),b(97,"div",37),ge(98,"button",38),b(99,"div",39)(100,"button",40),ye("click",function(){return i.f.role.setValue(+i.adminRole)}),I(101,"Administrator"),x(),b(102,"button",40),ye("click",function(){return i.f.role.setValue(+i.developerRole)}),I(103,"Developer"),x(),b(104,"button",40),ye("click",function(){return i.f.role.setValue(+i.maintainerRole)}),I(105,"Maintainer"),x(),b(106,"button",40),ye("click",function(){return i.f.role.setValue(+i.readonlyRole)}),I(107,"View Only"),x()()()(),b(108,"div",28),I(109,"Role is required"),x()()()(),b(110,"div",41)(111,"div",42),ge(112,"div",24),b(113,"div",26)(114,"div",43),ge(115,"input",44),b(116,"label",45),I(117,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),b(118,"div",46)(119,"button",47),I(120,"Save"),x()()()()),2&e&&(w(2),k("ngIf",i.error),w(13),k("ngIf",0===i.users.length),w(1),k("ngForOf",i.users),w(3),k("type","secondary"),w(32),k("ngIf",i.userCreateError),w(2),k("formGroup",i.createUserForm),w(7),k("ngClass",lr(18,oN,i.f.email.dirty&&i.f.email.errors)),w(1),k("hidden",i.f.email.disabled||i.f.email.valid||i.f.email.pristine),w(8),k("ngClass",lr(20,oN,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(8),k("ngClass",lr(22,oN,i.f.password.dirty&&i.f.password.errors)),w(1),k("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),w(10),k("hidden",i.f.role.value!==+i.adminRole),w(2),k("hidden",i.f.role.value!==+i.developerRole),w(2),k("hidden",i.f.role.value!==+i.maintainerRole),w(2),k("hidden",i.f.role.value!==+i.readonlyRole),w(13),k("hidden",i.f.role.disabled||i.f.role.valid||i.f.role.pristine),w(11),k("disabled",i.createUserForm.invalid))},dependencies:[Rh,jn,gn,To,Pu,rm,Pf,jf,sl,Fa,aC,rl,ol,Nf,fa,ja],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})),t})(),VBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function HBe(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Failed to retrieve runtime information: ",e.error,"")}}function zBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function UBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No Go modules were found."),x(),ge(3,"td"),x())}function GBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function WBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No Lua modules were found."),x(),ge(3,"td"),x())}function qBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function XBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No JavaScript modules were found."),x(),ge(3,"td"),x())}const sN=function(){return["/apiexplorer"]},aN=function(t){return{endpoint:t}};function YBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sN))("queryParams",lr(4,aN,e))}}function JBe(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No Go RPC functions were found."),x()())}function KBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sN))("queryParams",lr(4,aN,e))}}function QBe(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No Lua RPC functions were found."),x()())}function ZBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sN))("queryParams",lr(4,aN,e))}}function e7e(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No JavaScript RPC functions were found."),x()())}let t7e=(()=>{class t{constructor(e,i){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"runtimeInfo",void 0),this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Runtime Modules"),x(),J(2,HBe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),I(7,"Go Modules"),x(),b(8,"th",4),I(9,"Last Modified"),x()()(),b(10,"tbody"),J(11,zBe,5,2,"tr",5),J(12,UBe,4,0,"tr",6),x(),b(13,"thead",3)(14,"tr")(15,"th",7),I(16,"Lua Modules"),x()()(),b(17,"tbody"),J(18,GBe,5,2,"tr",5),J(19,WBe,4,0,"tr",6),x(),b(20,"thead",3)(21,"tr")(22,"th",7),I(23,"JavaScript Modules"),x()()(),b(24,"tbody"),J(25,qBe,5,2,"tr",5),J(26,XBe,4,0,"tr",6),x()(),b(27,"h4",8),I(28,"Registered RPC Functions"),x(),b(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),I(33,"Go RPC Functions"),x()()(),b(34,"tbody"),J(35,YBe,7,6,"tr",5),J(36,JBe,3,0,"tr",6),x(),b(37,"thead",3)(38,"tr")(39,"th",7),I(40,"Lua RPC Functions"),x()()(),b(41,"tbody"),J(42,KBe,7,6,"tr",5),J(43,QBe,3,0,"tr",6),x(),b(44,"thead",3)(45,"tr")(46,"th",7),I(47,"JavaScript RPC Functions"),x()()(),b(48,"tbody"),J(49,ZBe,7,6,"tr",5),J(50,e7e,3,0,"tr",6),x()()),2&e&&(w(2),k("ngIf",i.error),w(9),k("ngForOf",i.runtimeInfo.go_modules),w(1),k("ngIf",0===i.runtimeInfo.go_modules.length),w(6),k("ngForOf",i.runtimeInfo.lua_modules),w(1),k("ngIf",0===i.runtimeInfo.lua_modules.length),w(6),k("ngForOf",i.runtimeInfo.js_modules),w(1),k("ngIf",0===i.runtimeInfo.js_modules.length),w(9),k("ngForOf",i.runtimeInfo.go_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.go_rpc_functions.length),w(6),k("ngForOf",i.runtimeInfo.lua_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.lua_rpc_functions.length),w(6),k("ngForOf",i.runtimeInfo.js_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.js_rpc_functions.length))},dependencies:[Nu,jn,gn,To],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})),t})(),n7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function i7e(t,n){1&t&&(b(0,"span"),I(1,"Filter by collection"),x())}function r7e(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.f.collection.value)}}function o7e(t,n){if(1&t){const e=vt();b(0,"button",34),ye("click",function(){const o=$e(e).$implicit;return Be(j().f.collection.setValue(o))}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function s7e(t,n){if(1&t&&(b(0,"ngb-alert",35),ge(1,"img",36),b(2,"h6",37),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying storage objects: ",e.error,"")}}function a7e(t,n){1&t&&(b(0,"th",38),I(1,"Remove"),x())}function l7e(t,n){1&t&&(b(0,"tr")(1,"td",39),I(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function c7e(t,n){if(1&t){const e=vt();b(0,"td",42)(1,"button",43),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteObject(r,s,a))}),I(2,"Delete"),x()()}}function u7e(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(2),x(),b(3,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(4),x(),b(5,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(6),x(),b(7,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(8),x(),J(9,c7e,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.collection),w(2),Dt(e.key),w(2),Dt(e.user_id),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed())}}let d7e=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"collections",[]),K(this,"objects",[]),K(this,"objectCount",0),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Storage Objects"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),J(12,i7e,2,0,"span",10),J(13,r7e,2,1,"span",10),x(),b(14,"div",11)(15,"button",12),ye("click",function(){return i.f.collection.reset()}),I(16,"\u2718 Deselect collection"),x(),ge(17,"div",13),J(18,o7e,2,1,"button",14),x()()(),ge(19,"input",15)(20,"input",16),b(21,"div",17)(22,"span",18),ye("click",function(){return i.f.user_id.setValue(i.systemUserId)}),ge(23,"img",19),x()(),b(24,"div",17)(25,"button",20),ye("click",function(){return i.search(0)}),I(26,"Search"),x()()()()(),b(27,"div",21)(28,"div",22)(29,"button",23),ye("click",function(){return i.search(0)}),ge(30,"img",24),x(),b(31,"button",23),ye("click",function(){return i.search(1)}),ge(32,"img",25),x()()()()(),J(33,s7e,4,2,"ngb-alert",26),b(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),I(39,"Collection Name"),x(),b(40,"th"),I(41,"Key Name"),x(),b(42,"th",30),I(43,"User ID"),x(),b(44,"th",31),I(45,"Last Update"),x(),J(46,a7e,2,0,"th",32),x()(),b(47,"tbody"),J(48,l7e,3,0,"tr",10),J(49,u7e,10,5,"tr",33),x()()()),2&e&&(w(3),xn("",i.objectCount," objects found."),w(4),k("formGroup",i.searchForm),w(4),k("disabled",0===i.collections.length),w(1),k("ngIf",!i.f.collection.value||""===i.f.collection.value),w(1),k("ngIf",i.f.collection.value&&""!==i.f.collection.value),w(2),k("hidden",!i.f.collection.value||""===i.f.collection.value),w(2),k("hidden",!i.f.collection.value||""===i.f.collection.value),w(1),k("ngForOf",i.collections),w(7),k("disabled",i.disableSearch()),w(4),k("disabled",0===i.objects.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.objects.length),w(1),k("ngForOf",i.objects))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Fa,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),h7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),f7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();var lN,PW,LW,RW,$W,BW,VW,HW,zW,UW,GW,WW,qW,XW,YW,JW,KW,QW,ZW,eq,tq,nq,iq,rq,oq,sq,aq,lq,cq,uq,dq,hq,fq,pq,mq,gq,vq,yq,bq,_q,xq,wq,Cq,kq,Sq,Dq,Tq,Eq,Aq,Mq,Iq,Nq,Fq,Oq,jq,Pq,Lq,Rq,$q,Bq,Vq,Hq,zq,Uq,Gq,Wq,qq,Xq,Yq,Jq,Kq,Qq,Zq,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,bX,_X,xX,wX,CX,kX,SX,DX,TX,EX,AX,MX,IX,NX,FX,OX,jX,PX,LX,RX,$X,BX,VX,HX,zX,UX,GX,WX,qX,XX,YX,JX,KX,QX,ZX,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,bY,_Y,xY,wY,CY,kY,SY,DY,TY,EY,AY,MY,IY,NY,FY,OY,jY,PY,LY,RY,$Y,BY,VY,HY,zY,UY,GY,WY,qY,XY,YY,JY,KY,QY,ZY,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,bJ,_J,xJ,wJ,CJ,kJ,SJ,DJ,TJ,EJ,AJ,MJ,IJ,NJ,FJ,OJ,jJ,PJ,LJ,RJ,$J,BJ,VJ,HJ,zJ,UJ,GJ,WJ,qJ,XJ,YJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,bK,_K,xK,wK,CK,kK,SK,DK,TK,EK,AK,MK,IK,NK,FK,OK,jK,PK,LK,RK,$K,BK,VK,HK,zK,UK,GK,WK,qK,p7e=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],m7e=["mainAxis","crossAxis","limiter"];function lb(t){var n="function"==typeof Map?new Map:void 0;return lb=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return cN(e,arguments,qi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),cb(r,e)},lb(t)}function cN(t,n,e){return(cN=ZK()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&cb(a,o.prototype),a}).apply(null,arguments)}function Ae(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function XK(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Re(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=k2(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function vn(){vn=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(q,re,L){q[re]=L.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(q,re,L){return Object.defineProperty(q,re,{value:L,enumerable:!0,configurable:!0,writable:!0}),q[re]}try{l({},"")}catch{l=function(re,L,X){return re[L]=X}}function c(q,re,L,X){var H=Object.create((re&&re.prototype instanceof h?re:h).prototype),he=new R(X||[]);return i(H,"_invoke",{value:S(q,L,he)}),H}function u(q,re,L){try{return{type:"normal",arg:q.call(re,L)}}catch(X){return{type:"throw",arg:X}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(z([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function _(q){["next","throw","return"].forEach(function(re){l(q,re,function(L){return this._invoke(re,L)})})}function C(q,re){function L(Z,H,he,E){var N=u(q[Z],q,H);if("throw"!==N.type){var F=N.arg,Y=F.value;return Y&&"object"==bn(Y)&&e.call(Y,"__await")?re.resolve(Y.__await).then(function(V){L("next",V,he,E)},function(V){L("throw",V,he,E)}):re.resolve(Y).then(function(V){F.value=V,he(F)},function(V){return L("throw",V,he,E)})}E(N.arg)}var X;i(this,"_invoke",{value:function(Z,H){function he(){return new re(function(E,N){L(Z,H,E,N)})}return X=X?X.then(he,he):he()}})}function S(q,re,L){var X="suspendedStart";return function(Z,H){if("executing"===X)throw new Error("Generator is already running");if("completed"===X){if("throw"===Z)throw H;return{value:void 0,done:!0}}for(L.method=Z,L.arg=H;;){var he=L.delegate;if(he){var E=M(he,L);if(E){if(E===d)continue;return E}}if("next"===L.method)L.sent=L._sent=L.arg;else if("throw"===L.method){if("suspendedStart"===X)throw X="completed",L.arg;L.dispatchException(L.arg)}else"return"===L.method&&L.abrupt("return",L.arg);X="executing";var N=u(q,re,L);if("normal"===N.type){if(X=L.done?"completed":"suspendedYield",N.arg===d)continue;return{value:N.arg,done:L.done}}"throw"===N.type&&(X="completed",L.method="throw",L.arg=N.arg)}}}function M(q,re){var L=re.method,X=q.iterator[L];if(void 0===X)return re.delegate=null,"throw"===L&&q.iterator.return&&(re.method="return",re.arg=void 0,M(q,re),"throw"===re.method)||"return"!==L&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+L+"' method")),d;var Z=u(X,q.iterator,re.arg);if("throw"===Z.type)return re.method="throw",re.arg=Z.arg,re.delegate=null,d;var H=Z.arg;return H?H.done?(re[q.resultName]=H.value,re.next=q.nextLoc,"return"!==re.method&&(re.method="next",re.arg=void 0),re.delegate=null,d):H:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,d)}function $(q){var re={tryLoc:q[0]};1 in q&&(re.catchLoc=q[1]),2 in q&&(re.finallyLoc=q[2],re.afterLoc=q[3]),this.tryEntries.push(re)}function G(q){var re=q.completion||{};re.type="normal",delete re.arg,q.completion=re}function R(q){this.tryEntries=[{tryLoc:"root"}],q.forEach($,this),this.reset(!0)}function z(q){if(q){var re=q[o];if(re)return re.call(q);if("function"==typeof q.next)return q;if(!isNaN(q.length)){var L=-1,X=function Z(){for(;++L=0;--X){var Z=this.tryEntries[X],H=Z.completion;if("root"===Z.tryLoc)return L("end");if(Z.tryLoc<=this.prev){var he=e.call(Z,"catchLoc"),E=e.call(Z,"finallyLoc");if(he&&E){if(this.prev=0;--L){var X=this.tryEntries[L];if(X.tryLoc<=this.prev&&e.call(X,"finallyLoc")&&this.prev=0;--re){var L=this.tryEntries[re];if(L.finallyLoc===q)return this.complete(L.completion,L.afterLoc),G(L),d}},catch:function(q){for(var re=this.tryEntries.length-1;re>=0;--re){var L=this.tryEntries[re];if(L.tryLoc===q){var X=L.completion;if("throw"===X.type){var Z=X.arg;G(L)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(q,re,L){return this.delegate={iterator:z(q),resultName:re,nextLoc:L},"next"===this.method&&(this.arg=void 0),d}},t}function YK(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Zi(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){YK(o,i,r,s,a,"next",l)}function a(l){YK(o,i,r,s,a,"throw",l)}s(void 0)})}}function Un(t,n){return KK(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||k2(t,n)||JK()}function JK(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function KK(t){if(Array.isArray(t))return t}function QK(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function Ze(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function ke(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function eQ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function qd(t,n){return new t(n)}var db,D2=new Map,fN=0;function fQ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function x7e(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=hN(t),m=D2.get(p)||function w7e(t,n){var e={stylesheet:b7e(n),rules:{}};return D2.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),fN+=1,f}function hb(t){db=t}function Tv(){if(!db)throw new Error("Function called outside component initialization");return db}function Wc(t){Tv().$$.on_mount.push(t)}function Hu(t){Tv().$$.on_destroy.push(t)}function pQ(){var t=Tv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=hQ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function mQ(t,n){return Tv().$$.context.set(t,n),n}function xa(t){return Tv().$$.context.get(t)}function T2(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Ev=[],Vi=[],E2=[],pN=[],gQ=Promise.resolve(),mN=!1;function vQ(){mN||(mN=!0,gQ.then(yQ))}function Xl(){return vQ(),gQ}function _m(t){E2.push(t)}function zu(t){pN.push(t)}var A2,gN=new Set,Av=0;function yQ(){if(0===Av){var t=db;do{try{for(;Avl.start&&(a=d(l,_),l=null,vN(t,a.b,"start"),G&&(u(),c=fQ(t,s,a.b,a.duration,0,S,o.css))),a&&(z>=a.end?($(s=a.b,1-s),vN(t,a.b,"end"),l||(a.b?u():--a.group.r||ho(a.group.c)),a=null):z>=a.start&&(s=a.a+a.d*S((z-a.start)/a.duration),$(s,1-s))),!(!a&&!l)},0===ub.size&&dN(lQ),new Promise(function(z){ub.add({c:p,f:z})}))}return{run:function(f){ba(o)?(A2||(A2=Promise.resolve()).then(function(){A2=null}),A2).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var yN=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function D7e(t,n){t.d(1),n.delete(t.key)}function bN(t,n){ce(t,1,1,function(){n.delete(t.key)})}function N2(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var _=d(r,o,p),C=e(_),S=s.get(C);S?i&&S.p(_,n):(S=c(C,_)).c(),v.set(C,g[p]=S),C in m&&y.set(C,Math.abs(p-m[C]))}var M=new Set,$=new Set;function G(L){Q(L,1),L.m(a,u),s.set(L.key,L),u=L.first,f--}for(;h&&f;){var R=g[f-1],z=t[h-1],U=R.key,q=z.key;R===z?(u=R.first,h--,f--):v.has(q)?!s.has(U)||M.has(U)?G(R):$.has(q)?h--:y.get(U)>y.get(q)?($.add(U),G(R)):(M.add(q),h--):(l(z,s),h--)}for(;h--;){var re=t[h];v.has(re.key)||l(re,s)}for(;f;)G(g[f-1]);return g}function xm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function F2(t){return"object"===bn(t)&&null!==t?t:{}}function Uu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function mt(t){t&&t.c()}function ft(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||_m(function(){var a,l=t.$$.on_mount.map(rQ).filter(ba);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,si(l)):ho(l),t.$$.on_mount=[]}),s.forEach(_m)}function pt(t,n){var e=t.$$;null!==e.fragment&&(ho(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Pn(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=db;hb(t);var c=t.$$={fragment:null,ctx:[],props:o,update:Lt,not_equal:r,bound:oQ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:oQ(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function T7e(t,n){-1===t.$$.dirty[0]&&(Ev.push(t),vQ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function M7e(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function I7e(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?iQ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var F7e=yN.window;function O7e(t){pi(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function _Q(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=t[1].closeButton&&xQ(t),C=t[2];return C&&(s=qd(C,{})),{c:function(){n=be("div"),e=be("div"),i=be("div"),_&&_.c(),r=it(),o=be("div"),s&&mt(s.$$.fragment),P(o,"class",a=Ao(t[1].classContent)+" svelte-n7cvum"),P(o,"style",t[9]),Mt(o,"content",!t[0]),P(i,"class",l=Ao(t[1].classWindow)+" svelte-n7cvum"),P(i,"role","dialog"),P(i,"aria-modal","true"),P(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),P(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),P(i,"style",t[8]),Mt(i,"window",!t[0]),P(e,"class",h=Ao(t[1].classWindowWrap)+" svelte-n7cvum"),P(e,"style",t[7]),Mt(e,"wrap",!t[0]),P(n,"id",f=t[1].id),P(n,"class",p=Ao(t[1].classBg)+" svelte-n7cvum"),P(n,"style",t[6]),Mt(n,"bg",!t[0])},m:function(S,M){Pe(S,n,M),de(n,e),de(e,i),_&&_.m(i,null),de(i,r),de(i,o),s&&ft(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[Ft(i,"introstart",function(){ba(t[13])&&t[13].apply(this,arguments)}),Ft(i,"outrostart",function(){ba(t[14])&&t[14].apply(this,arguments)}),Ft(i,"introend",function(){ba(t[15])&&t[15].apply(this,arguments)}),Ft(i,"outroend",function(){ba(t[16])&&t[16].apply(this,arguments)}),Ft(n,"mousedown",t[20]),Ft(n,"mouseup",t[21])],v=!0)},p:function(S,M){if((t=S)[1].closeButton?_?(_.p(t,M),2&M[0]&&Q(_,1)):((_=xQ(t)).c(),Q(_,1),_.m(i,r)):_&&($t(),ce(_,1,1,function(){_=null}),Bt()),C!==(C=t[2])){if(s){$t();var $=s;ce($.$$.fragment,1,0,function(){pt($,1)}),Bt()}C?(mt((s=qd(C,{})).$$.fragment),Q(s.$$.fragment,1),ft(s,o,null)):s=null}(!g||2&M[0]&&a!==(a=Ao(t[1].classContent)+" svelte-n7cvum"))&&P(o,"class",a),(!g||512&M[0])&&P(o,"style",t[9]),(!g||3&M[0])&&Mt(o,"content",!t[0]),(!g||2&M[0]&&l!==(l=Ao(t[1].classWindow)+" svelte-n7cvum"))&&P(i,"class",l),(!g||2&M[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&P(i,"aria-label",c),(!g||2&M[0]&&u!==(u=t[1].ariaLabelledBy||null))&&P(i,"aria-labelledby",u),(!g||256&M[0])&&P(i,"style",t[8]),(!g||3&M[0])&&Mt(i,"window",!t[0]),(!g||2&M[0]&&h!==(h=Ao(t[1].classWindowWrap)+" svelte-n7cvum"))&&P(e,"class",h),(!g||128&M[0])&&P(e,"style",t[7]),(!g||3&M[0])&&Mt(e,"wrap",!t[0]),(!g||2&M[0]&&f!==(f=t[1].id))&&P(n,"id",f),(!g||2&M[0]&&p!==(p=Ao(t[1].classBg)+" svelte-n7cvum"))&&P(n,"class",p),(!g||64&M[0])&&P(n,"style",t[6]),(!g||3&M[0])&&Mt(n,"bg",!t[0])},i:function(S){g||(Q(_),s&&Q(s.$$.fragment,S),_m(function(){d||(d=I2(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),_m(function(){m||(m=I2(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(S){ce(_),s&&ce(s.$$.fragment,S),d||(d=I2(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=I2(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(S){S&&je(n),_&&_.d(),s&&pt(s),t[50](null),S&&d&&d.end(),t[51](null),t[52](null),S&&m&&m.end(),v=!1,ho(y)}}}function xQ(t){var n,e,i,r,o,s=[P7e,j7e],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=_r()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):($t(),ce(a[d],1,1,function(){a[d]=null}),Bt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){ce(i),o=!1},d:function(c){a[e].d(c),c&&je(r)}}}function j7e(t){var n,e,i,r;return{c:function(){P(n=be("button"),"class",e=Ao(t[1].classCloseButton)+" svelte-n7cvum"),P(n,"aria-label","Close modal"),P(n,"style",t[10]),P(n,"type","button"),Mt(n,"close",!t[0])},m:function(o,s){Pe(o,n,s),i||(r=Ft(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Ao(o[1].classCloseButton)+" svelte-n7cvum")&&P(n,"class",e),1024&s[0]&&P(n,"style",o[10]),3&s[0]&&Mt(n,"close",!o[0])},i:Lt,o:Lt,d:function(o){o&&je(n),i=!1,r()}}}function P7e(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=qd(r,o(t))),{c:function(){n&&mt(n.$$.fragment),e=_r()},m:function(s,a){n&&ft(n,s,a),Pe(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){$t();var l=n;ce(l.$$.fragment,1,0,function(){pt(l,1)}),Bt()}r?(mt((n=qd(r,o(s))).$$.fragment),Q(n.$$.fragment,1),ft(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&Q(n.$$.fragment,s),i=!0)},o:function(s){n&&ce(n.$$.fragment,s),i=!1},d:function(s){s&&je(e),n&&pt(n,s)}}}function L7e(t){var n,e,i,r,o=t[2]&&_Q(t),s=t[49].default,a=Ms(s,t,t[48],null);return{c:function(){o&&o.c(),n=it(),a&&a.c()},m:function(l,c){o&&o.m(l,c),Pe(l,n,c),a&&a.m(l,c),e=!0,i||(r=Ft(F7e,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&Q(o,1)):((o=_Q(l)).c(),Q(o,1),o.m(n.parentNode,n)):o&&($t(),ce(o,1,1,function(){o=null}),Bt()),a&&a.p&&(!e||131072&c[1])&&Ns(a,s,l,l[48],e?Is(s,l[48],c,null):Fs(l[48]),null)},i:function(l){e||(Q(o),Q(a,l),e=!0)},o:function(l){ce(o),ce(a,l),e=!1},d:function(l){o&&o.d(l),l&&je(n),a&&a.d(l),i=!1,r()}}}function wQ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(Ze(Ze({},e),{},{props:Ze(Ze({},n),e.props)}))}}function R7e(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,_=void 0===y?{}:y,C=n.$$scope,S=pQ(),$=n.isTabbable,G=void 0===$?function(Ue){return Ue.tabIndex>=0&&!Ue.hidden&&!Ue.disabled&&"none"!==Ue.style.display&&"hidden"!==Ue.type&&Boolean(Ue.offsetWidth||Ue.offsetHeight||Ue.getClientRects().length)}:$,R=n.show,z=void 0===R?null:R,U=n.id,q=void 0===U?null:U,re=n.key,L=void 0===re?"simple-modal":re,X=n.ariaLabel,Z=void 0===X?null:X,H=n.ariaLabelledBy,he=void 0===H?null:H,E=n.closeButton,N=void 0===E||E,F=n.closeOnEsc,Y=void 0===F||F,V=n.closeOnOuterClick,oe=void 0===V||V,fe=n.styleBg,Ne=void 0===fe?{}:fe,xe=n.styleWindowWrap,tt=void 0===xe?{}:xe,ze=n.styleWindow,ot=void 0===ze?{}:ze,B=n.styleContent,ne=void 0===B?{}:B,ie=n.styleCloseButton,Ie=void 0===ie?{}:ie,Ye=n.classBg,Le=void 0===Ye?null:Ye,_t=n.classWindowWrap,At=void 0===_t?null:_t,_n=n.classWindow,ci=void 0===_n?null:_n,on=n.classContent,Ni=void 0===on?null:on,pn=n.classCloseButton,Fr=void 0===pn?null:pn,$r=n.unstyled,wr=void 0!==$r&&$r,Or=n.setContext,Ai=void 0===Or?mQ:Or,Wr=n.transitionBg,jo=void 0===Wr?N7e:Wr,Fn=n.transitionBgProps,xt=void 0===Fn?{duration:250}:Fn,ui=n.transitionWindow,Fi=void 0===ui?jo:ui,Cr=n.transitionWindowProps,xo=void 0===Cr?xt:Cr,Qo=n.disableFocusTrap,gt=void 0!==Qo&&Qo,On={id:q,ariaLabel:Z,ariaLabelledBy:he,closeButton:N,closeOnEsc:Y,closeOnOuterClick:oe,styleBg:Ne,styleWindowWrap:tt,styleWindow:ot,styleContent:ne,styleCloseButton:Ie,classBg:Le,classWindowWrap:At,classWindow:ci,classContent:Ni,classCloseButton:Fr,transitionBg:jo,transitionBgProps:xt,transitionWindow:Fi,transitionWindowProps:xo,disableFocusTrap:gt,isTabbable:G,unstyled:wr},ai=Ze({},On),bi=null,Er=function(Ue){return Ue?Object.keys(Ue).reduce(function(Dn,ii){return"".concat(Dn,"; ").concat((hi=ii,hi.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ue[ii]);var hi},""):""},qr=function(Ue){return!!(Ue&&Ue.constructor&&Ue.call&&Ue.apply)},ao=function(){e(6,a=Er(Object.assign({},{width:window.innerWidth,height:window.innerHeight},ai.styleBg))),e(7,l=Er(ai.styleWindowWrap)),e(8,c=Er(ai.styleWindow)),e(9,u=Er(ai.styleContent)),e(10,d=Er(ai.styleCloseButton)),e(11,h=ai.transitionBg),e(12,f=ai.transitionWindow)},Js=function(){},vr=Js,Ks=Js,qa=Js,Xa=Js,Ic=function(Ue){var ii=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},hi=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,bi=wQ(Ue,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,ai=Ze(Ze({},On),ii)),ao(),He(),e(13,vr=function(di){hi.onOpen&&hi.onOpen(di),S("open"),S("opening")}),e(14,Ks=function(di){hi.onClose&&hi.onClose(di),S("close"),S("closing")}),e(15,qa=function(di){hi.onOpened&&hi.onOpened(di),S("opened")}),e(16,Xa=function(di){hi.onClosed&&hi.onClosed(di),S("closed")})},we=function(){var Ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};bi&&(e(14,Ks=Ue.onClose||Ks),e(16,Xa=Ue.onClosed||Xa),e(2,bi=null),qe())},He=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},qe=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};Ai(L,{open:Ic,close:we});var ut=!1;return Hu(function(){ut&&we()}),Wc(function(){e(47,ut=!0)}),t.$$set=function(Ue){"isTabbable"in Ue&&e(22,G=Ue.isTabbable),"show"in Ue&&e(23,z=Ue.show),"id"in Ue&&e(24,q=Ue.id),"key"in Ue&&e(25,L=Ue.key),"ariaLabel"in Ue&&e(26,Z=Ue.ariaLabel),"ariaLabelledBy"in Ue&&e(27,he=Ue.ariaLabelledBy),"closeButton"in Ue&&e(28,N=Ue.closeButton),"closeOnEsc"in Ue&&e(29,Y=Ue.closeOnEsc),"closeOnOuterClick"in Ue&&e(30,oe=Ue.closeOnOuterClick),"styleBg"in Ue&&e(31,Ne=Ue.styleBg),"styleWindowWrap"in Ue&&e(32,tt=Ue.styleWindowWrap),"styleWindow"in Ue&&e(33,ot=Ue.styleWindow),"styleContent"in Ue&&e(34,ne=Ue.styleContent),"styleCloseButton"in Ue&&e(35,Ie=Ue.styleCloseButton),"classBg"in Ue&&e(36,Le=Ue.classBg),"classWindowWrap"in Ue&&e(37,At=Ue.classWindowWrap),"classWindow"in Ue&&e(38,ci=Ue.classWindow),"classContent"in Ue&&e(39,Ni=Ue.classContent),"classCloseButton"in Ue&&e(40,Fr=Ue.classCloseButton),"unstyled"in Ue&&e(0,wr=Ue.unstyled),"setContext"in Ue&&e(41,Ai=Ue.setContext),"transitionBg"in Ue&&e(42,jo=Ue.transitionBg),"transitionBgProps"in Ue&&e(43,xt=Ue.transitionBgProps),"transitionWindow"in Ue&&e(44,Fi=Ue.transitionWindow),"transitionWindowProps"in Ue&&e(45,xo=Ue.transitionWindowProps),"disableFocusTrap"in Ue&&e(46,gt=Ue.disableFocusTrap),"$$scope"in Ue&&e(48,C=Ue.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&ut&&(qr(z)?Ic(z):we())},[wr,ai,bi,i,r,o,a,l,c,u,d,h,f,vr,Ks,qa,Xa,qr,we,function(Ue){if(ai.closeOnEsc&&bi&&"Escape"===Ue.key&&(Ue.preventDefault(),we()),bi&&"Tab"===Ue.key&&!ai.disableFocusTrap){var Dn=o.querySelectorAll("*"),ii=Array.from(Dn).filter(ai.isTabbable).sort(function(di,kr){return di.tabIndex-kr.tabIndex}),hi=ii.indexOf(document.activeElement);-1===hi&&Ue.shiftKey&&(hi=0),hi+=ii.length+(Ue.shiftKey?-1:1),ii[hi%=ii.length].focus(),Ue.preventDefault()}},function(Ue){!ai.closeOnOuterClick||Ue.target!==i&&Ue.target!==r||(v=Ue.target)},function(Ue){ai.closeOnOuterClick&&Ue.target===v&&(Ue.preventDefault(),we())},G,z,q,L,Z,he,N,Y,oe,Ne,tt,ot,ne,Ie,Le,At,ci,Ni,Fr,Ai,jo,xt,Fi,xo,gt,ut,C,_,function(Ue){Vi[Ue?"unshift":"push"](function(){e(5,o=Ue)})},function(Ue){Vi[Ue?"unshift":"push"](function(){e(4,r=Ue)})},function(Ue){Vi[Ue?"unshift":"push"](function(){e(3,i=Ue)})}]}var Jo,ro,Gu,Xd,Wu,qc,CQ=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,R7e,L7e,ys,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},O7e,[-1,-1,-1]),r}return Se(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Jo||(Jo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(ro||(ro={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Gu||(Gu={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Xd||(Xd={})),function(t){t.key="key",t.value="value"}(Wu||(Wu={})),function(t){t.asc="asc",t.desc="desc"}(qc||(qc={}));var wm=[{start:0,end:100}],Cm={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},$7e=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),B7e=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),kQ=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),_N="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",xN="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",V7e="NO",wN="SELF",CN="NEXT_INSIDE",H7e=(ql(lN={},qc.asc,"ascending"),ql(lN,qc.desc,"descending"),lN),z7e=0;function fb(){return++z7e}function Uf(t){return(Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function oo(t){return Array.isArray(t)}function Mo(t){return null!==t&&"object"===Uf(t)&&t.constructor===Object}function SQ(t){return!(!t||"object"!==Uf(t))&&"add"===t.op}function DQ(t){return!(!t||"object"!==Uf(t))&&"remove"===t.op}function kN(t){return!(!t||"object"!==Uf(t))&&"replace"===t.op}function SN(t){return!(!t||"object"!==Uf(t))&&"copy"===t.op}function Mv(t){return!(!t||"object"!==Uf(t))&&"move"===t.op}function DN(t){return(DN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function U7e(t,n){return t===n}function TQ(t){return t.slice(0,t.length-1)}function EQ(t){return"object"===DN(t)&&null!==t}function pb(t){return(pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function AQ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function G7e(t,n,e){return r=function(o,s){if("object"!==pb(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==pb(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===pb(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function TN(t){if(oo(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Mo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=qu(t?t[r]:void 0,n.slice(1),e,i);if(Mo(t)||oo(t))return EN(t,r,o);if(i){var s=W7e.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var W7e=/^\d+$/;function MQ(t,n,e){if(0===n.length)return e(t);if(!EQ(t))throw new Error("Path doesn't exist");var i=n[0];return EN(t,i,MQ(t[i],n.slice(1),e))}function AN(t,n){if(0===n.length)return t;if(!EQ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=TN(t);return oo(i)&&i.splice(parseInt(e),1),Mo(i)&&delete i[e],i}return t}var r=n[0];return EN(t,r,AN(t[r],n.slice(1)))}function MN(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return MQ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=TN(o);return s.splice(parseInt(r),0,e),s})}function Xc(t,n){return void 0!==t&&(0===n.length||null!==t&&Xc(t[n[0]],n.slice(1)))}function Xu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function ln(t){return t.map(IQ).join("")}function IQ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function IN(t,n){return t+IQ(n)}function Iv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function Yu(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:U7e;if(p.length=0?G=function(){var z="",U=!0;"-"==t[s]&&(z+=h()),z+="0"==t[s]?h():m(),"."==t[s]&&(z+=h()+m(),U=!1),"e"!=t[s]&&"E"!=t[s]||(z+=h(),"+"!=t[s]&&"-"!=t[s]||(z+=h()),z+=m(),U=!1);var q=+z;return a&&U&&(q>Number.MAX_SAFE_INTEGER||q="a"&&G<="f"?$+=G.charCodeAt()-n9e+10:G>="0"&&G<="9"?$+=+G:C()}return String.fromCharCode($)}function m(){for(var M="";t[s]>="0"&&t[s]<="9";)M+=h();if(M.length)return M;S(),_()}function g(M,$){v(M,$,y())}function v(M,$,G){i[M]=i[M]||{},i[M][$]=G}function y(){return{line:r,column:o,pos:s}}function _(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function C(){f(),_()}function S(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},O2.stringify=function(t,n,e){if(j2(t)){var i,r,o=0,s="object"==bn(e)?e.space:e;switch(bn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var r9e=/"|\\/g,o9e=/[\b]/g,s9e=/\f/g,a9e=/\n/g,l9e=/\r/g,c9e=/\t/g;function P2(t){return'"'+(t=t.replace(r9e,"\\$&").replace(s9e,"\\f").replace(o9e,"\\b").replace(a9e,"\\n").replace(l9e,"\\r").replace(c9e,"\\t"))+'"'}var u9e=/~/g,d9e=/\//g;function ON(t){return t.replace(u9e,"~0").replace(d9e,"~1")}function jN(t){return(jN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function PN(t){var n="function"==typeof Map?new Map:void 0;return PN=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return LN(e,arguments,vb(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),gb(r,e)},PN(t)}function LN(t,n,e){return(LN=RQ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&gb(a,o.prototype),a}).apply(null,arguments)}function RQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gb(t,n){return(gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function vb(t){return(vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var Gf=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&gb(l,c)}(a,PN(Error));var n,e,i,s=(n=a,e=RQ(),function(){var l,c=vb(n);if(e){var u=vb(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function h9e(t,n){if(n&&("object"===jN(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function L2(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function R2(t){return t>=48&&t<=57}function f9e(t){return t>=32&&t<=1114111}var p9e=/^[,:[\]{}()\n]$/;function $Q(t){return m9e.test(t)||t&&B2(t.charCodeAt(0))}var m9e=/^[[{\w-]$/;function g9e(t){return 10===t||13===t||9===t||8===t||12===t}function $2(t){return 32===t||10===t||9===t||13===t}function v9e(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function B2(t){return BQ(t)||RN(t)}function BQ(t){return 34===t||8220===t||8221===t}function RN(t){return 39===t||8216===t||8217===t||96===t||180===t}function yb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function km(t,n){var e=t.length;if(!$2(t.charCodeAt(e-1)))return t+n;for(;$2(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function y9e(t,n,e){return t.substring(0,n)+t.substring(n+e)}var b9e={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},_9e={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Yd(t){var n=0,e="";r()||function(){throw new Gf("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),$Q(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=km(e,",")),function(){for(var _=!0,C=!0;C;)_?_=!1:l(44)||(e=km(e,",")),C=r();C||(e=yb(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=yb(e,",")),n>=t.length)return e;function r(){o();var _=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var C=!0;n=49&&S<=57)for(n++;R2(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(C);R2(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(C);R2(t.charCodeAt(n));)n++;return n>C&&(e+=t.slice(C,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),_}function o(){var _=n,C=s();do{(C=a())&&(C=s())}while(C);return n>_}function s(){for(var _,C="";(_=$2(t.charCodeAt(n)))||v9e(t.charCodeAt(n));)C+=_?t[n]:" ",n++;return C.length>0&&(e+=C,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nC){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;$2(t.charCodeAt(n-1))&&n>0;)n--;var S=t.slice(C,n);return e+=JSON.stringify(S),!0}}function f(_){if(!R2(t.charCodeAt(n))){var C=t.slice(_,n);throw new Gf("Invalid number '".concat(C,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(_){throw new Gf("Invalid character "+JSON.stringify(_),n)}function m(){throw new Gf("Object key expected",n)}function g(){throw new Gf("Object value expected",n)}function v(){throw new Gf("Colon expected",n)}function y(_){for(var C=_+2;/\w/.test(t[C]);)C++;var S=t.slice(_,C);throw new Gf('Invalid unicode character "'.concat(S,'"'),n)}!function(){throw new Gf("Unexpected character "+JSON.stringify(t[n]),n)}()}function x9e(t,n){return"*"===t[n]&&"/"===t[n+1]}function Ws(t){return parseInt(t,10)}function $N(t){return w9e.test(t)}var w9e=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Io(t){return"object"===bn(t)&&null!==t&&t.constructor===Object}function Ho(t){return"object"===bn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function BN(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return BN(Number(t));try{var n=t&&t.valueOf();if(n!==t)return BN(n)}catch{return!1}return!1}function VQ(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function VN(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return bn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Io(t))return"object";var e=n.stringify(t);return e&&$N(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var C9e=/^https?:\/\/\S+$/;function V2(t){return"string"==typeof t&&C9e.test(t)}function Nv(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&($N(e)?n.parse(e):t)}var k9e=/^-?[0-9]+$/,zQ="object"==(typeof global>"u"?"undefined":bn(global))&&global&&global.Object===Object&&global,S9e="object"==(typeof self>"u"?"undefined":bn(self))&&self&&self.Object===Object&&self,Ca=zQ||S9e||Function("return this")(),ll=Ca.Symbol,UQ=Object.prototype,D9e=UQ.hasOwnProperty,T9e=UQ.toString,bb=ll?ll.toStringTag:void 0,E9e=Object.prototype.toString,GQ=ll?ll.toStringTag:void 0;function Ml(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":GQ&&GQ in Object(t)?function(n){var e=D9e.call(n,bb),i=n[bb];try{n[bb]=void 0;var r=!0}catch{}var o=T9e.call(n);return r&&(e?n[bb]=i:delete n[bb]),o}(t):E9e.call(t)}function ls(t){return null!=t&&"object"==bn(t)}function Yl(t){return"symbol"==bn(t)||ls(t)&&"[object Symbol]"==Ml(t)}function WQ(t){return"number"==typeof t?t:Yl(t)?NaN:+t}function Ko(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var lZ=aZ(nZ),K9e=/\{\n\/\* \[wrapped with (.+)\] \*/,Q9e=/,? & /,Z9e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function q2(t){return function(){return t}}var eVe=function(){try{var t=Dm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),X2=eVe,tVe=X2?function(t,n){return X2(t,"toString",{configurable:!0,enumerable:!1,value:q2(n),writable:!0})}:cl,UN=aZ(tVe);function Jc(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var nVe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function uZ(t,n,e){var o,i=n+"";return UN(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(Z9e,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return Jc(nVe,function(s){var a="_."+s[0];o&s[1]&&!J2(r,a)&&r.push(a)}),r.sort()}((o=i.match(K9e))?o[1].split(Q9e):[],e)))}function dZ(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return zN(t)&&lZ(h,d),h.placeholder=i,uZ(h,t,n)}function Pv(t){return t.placeholder}var iVe=/^(?:0|[1-9]\d*)$/;function Zh(t,n){var e=bn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&iVe.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Il(t){return null!=t&&Cb(t.length)&&!Kd(t)}function Nl(t,n,e){if(!zo(e))return!1;var i=bn(n);return!!("number"==i?Il(e)&&Zh(n,e.length):"string"==i&&n in e)&&Kc(e[n],t)}function Lv(t){return dr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&Nl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,yZ=vZ&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,bZ=yZ&&yZ.exports===vZ?Ca.Buffer:void 0,nf=(bZ?bZ.isBuffer:void 0)||Q2,Uo={};function Cc(t){return function(n){return t(n)}}Uo["[object Float32Array]"]=Uo["[object Float64Array]"]=Uo["[object Int8Array]"]=Uo["[object Int16Array]"]=Uo["[object Int32Array]"]=Uo["[object Uint8Array]"]=Uo["[object Uint8ClampedArray]"]=Uo["[object Uint16Array]"]=Uo["[object Uint32Array]"]=!0,Uo["[object Arguments]"]=Uo["[object Array]"]=Uo["[object ArrayBuffer]"]=Uo["[object Boolean]"]=Uo["[object DataView]"]=Uo["[object Date]"]=Uo["[object Error]"]=Uo["[object Function]"]=Uo["[object Map]"]=Uo["[object Number]"]=Uo["[object Object]"]=Uo["[object RegExp]"]=Uo["[object Set]"]=Uo["[object String]"]=Uo["[object WeakMap]"]=!1;var _Z="object"==(typeof exports>"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,Sb=_Z&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,qN=Sb&&Sb.exports===_Z&&zQ.process,Qc=function(){try{return Sb&&Sb.require&&Sb.require("util").types||qN&&qN.binding&&qN.binding("util")}catch{}}(),xZ=Qc&&Qc.isTypedArray,Tm=xZ?Cc(xZ):function(t){return ls(t)&&Cb(t.length)&&!!Uo[Ml(t)]},hVe=Object.prototype.hasOwnProperty;function wZ(t,n){var e=Pi(t),i=!e&&qf(t),r=!e&&!i&&nf(t),o=!e&&!i&&!r&&Tm(t),s=e||i||r||o,a=s?WN(t.length,String):[],l=a.length;for(var c in t)!n&&!hVe.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zh(c,l))||a.push(c);return a}function CZ(t,n){return function(e){return t(n(e))}}var fVe=CZ(Object.keys,Object),pVe=Object.prototype.hasOwnProperty;function XN(t){if(!kb(t))return fVe(t);var n=[];for(var e in Object(t))pVe.call(t,e)&&"constructor"!=e&&n.push(e);return n}function qs(t){return Il(t)?wZ(t):XN(t)}var mVe=Object.prototype.hasOwnProperty,gVe=Lv(function(t,n){if(kb(n)||Il(n))Qd(n,qs(n),t);else for(var e in n)mVe.call(n,e)&&wb(t,e,n[e])}),kZ=gVe,vVe=Object.prototype.hasOwnProperty;function Fl(t){return Il(t)?wZ(t,!0):function yVe(t){if(!zo(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=kb(t),e=[];for(var i in t)("constructor"!=i||!n&&vVe.call(t,i))&&e.push(i);return e}(t)}var bVe=Lv(function(t,n){Qd(n,Fl(n),t)}),Z2=bVe,_Ve=Lv(function(t,n,e,i){Qd(n,Fl(n),t,i)}),Rv=_Ve,xVe=Lv(function(t,n,e,i){Qd(n,qs(n),t,i)}),SZ=xVe,wVe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CVe=/^\w*$/;function YN(t,n){if(Pi(t))return!1;var e=bn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Yl(t))||CVe.test(t)||!wVe.test(t)||null!=n&&t in Object(n)}var Db=Dm(Object,"create"),kVe=Object.prototype.hasOwnProperty,SVe=Object.prototype.hasOwnProperty;function Em(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},rf.prototype.set=function(t,n){var e=this.__data__,i=ek(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var Tb=Dm(Ca,"Map");function tk(t,n){var i,r,e=t.__data__;return("string"==(r=bn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function sf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?$a(a,n-1,e,i,r):Yf(r,a):i||(r[r.length]=a)}return r}function KN(t){return null!=t&&t.length?$a(t,1):[]}function af(t){return UN(pZ(t,void 0,KN),t+"")}var EZ=af(JN),ik=CZ(Object.getPrototypeOf,Object),AZ=Function.prototype.toString,FVe=Object.prototype.hasOwnProperty,OVe=AZ.call(Object);function Bv(t){if(!ls(t)||"[object Object]"!=Ml(t))return!1;var n=ik(t);if(null===n)return!0;var e=FVe.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&AZ.call(e)==OVe}function rk(t){if(!ls(t))return!1;var n=Ml(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Bv(t)}var jVe=dr(function(t,n){try{return wc(t,void 0,n)}catch(e){return rk(e)?e:new Error(e)}}),QN=jVe;function ZN(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Ui(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var eF=dr(function(t,n,e){var i=1;if(e.length){var r=Wf(e,Pv(eF));i|=32}return ef(t,i,n,e,r)});eF.placeholder={};var tF=eF,PVe=af(function(t,n){return Jc(n,function(e){e=Zd(e),tf(t,e,tF(t[e],t))}),t}),MZ=PVe,nF=dr(function(t,n,e){var i=3;if(e.length){var r=Wf(e,Pv(nF));i|=32}return ef(n,i,t,e,r)});nF.placeholder={};var IZ=nF;function Zc(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:Zc(t,n,e)}var LVe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Vv(t){return LVe.test(t)}var iF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rF="\\ud83c[\\udffb-\\udfff]",NZ="[^\\ud800-\\udfff]",FZ="(?:\\ud83c[\\udde6-\\uddff]){2}",OZ="[\\ud800-\\udbff][\\udc00-\\udfff]",jZ="(?:"+iF+"|"+rF+")?",$Ve="[\\ufe0e\\ufe0f]?"+jZ+"(?:\\u200d(?:"+[NZ,FZ,OZ].join("|")+")[\\ufe0e\\ufe0f]?"+jZ+")*",BVe="(?:"+[NZ+iF+"?",iF,FZ,OZ,"[\\ud800-\\udfff]"].join("|")+")",VVe=RegExp(rF+"(?="+rF+")|"+BVe+$Ve,"g");function Ku(t){return Vv(t)?function(n){return n.match(VVe)||[]}(t):function(n){return n.split("")}(t)}function PZ(t){return function(n){var e=Vv(n=Jr(n))?Ku(n):void 0,i=e?e[0]:n.charAt(0),r=e?Jf(e,1).join(""):n.slice(1);return i[t]()+r}}var ok=PZ("toUpperCase");function oF(t){return ok(Jr(t).toLowerCase())}function sF(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function JZ(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=xc(e))==e?e:0),void 0!==n&&(n=(n=xc(n))==n?n:0),Mm(xc(t),n,e)}function Qu(t){var n=this.__data__=new rf(t);this.size=n.size}function KZ(t,n){return t&&Qd(n,qs(n),t)}Qu.prototype.clear=function(){this.__data__=new rf,this.size=0},Qu.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Qu.prototype.get=function(t){return this.__data__.get(t)},Qu.prototype.has=function(t){return this.__data__.has(t)},Qu.prototype.set=function(t,n){var e=this.__data__;if(e instanceof rf){var i=e.__data__;if(!Tb||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new sf(i)}return e.set(t,n),this.size=e.size,this};var QZ="object"==(typeof exports>"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,ZZ=QZ&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,eee=ZZ&&ZZ.exports===QZ?Ca.Buffer:void 0,tee=eee?eee.allocUnsafe:void 0;function nee(t,n){if(n)return t.slice();var e=t.length,i=tee?tee(e):new t.constructor(e);return t.copy(i),i}function Kf(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Nm:void 0;for(o.set(t,n),o.set(n,t);++d=n||C<0||d&&_-c>=o}function g(){var C,S,_=Mb();if(m(_))return v(_);a=setTimeout(g,(S=n-((C=_)-l),d?CHe(S,o-(C-c)):S))}function v(_){return a=void 0,h&&i?f(_):(i=r=void 0,s)}function y(){var _=Mb(),C=m(_);if(i=arguments,r=this,l=_,C){if(void 0===a)return function p(_){return c=_,a=setTimeout(g,n),u?f(_):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=xc(n)||0,zo(e)&&(u=!!e.leading,o=(d="maxWait"in e)?wHe(xc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Mb())},y}function Fee(t,n){return null==t||t!=t?n:t}var Oee=Object.prototype,kHe=Oee.hasOwnProperty,SHe=dr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&Nl(n[0],n[1],r)&&(i=1);++e=200&&(o=Eb,s=!1,n=new Nm(n));e:for(;++r=0&&t.slice(e,r)==n}function Qee(t){return function(n){var i,r,o,e=eh(n);return"[object Map]"==e?CF(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return Ko(r,function(o){return[o,i[o]]})}(n,t(n))}}var vk=Qee(qs),yk=Qee(Fl),FHe=aF({"&":"&","<":"<",">":">",'"':""","'":"'"}),Zee=/[&<>"']/g,OHe=RegExp(Zee.source);function PF(t){return(t=Jr(t))&&OHe.test(t)?t.replace(Zee,FHe):t}var ete=/[\\^$.*+?()[\]{}|]/g,jHe=RegExp(ete.source);function tte(t){return(t=Jr(t))&&jHe.test(t)?t.replace(ete,"\\$&"):t}function nte(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Ui(l))<0&&(l+=c),l=a>l?0:LF(l);a-1?r[o?n[s]:s]:void 0}}var LHe=Math.max;function RF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Ui(e);return r<0&&(r=LHe(i+r,0)),Y2(t,Li(n),r)}var lte=ate(RF);function cte(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function ute(t,n){return cte(t,Li(n),th)}var RHe=Math.max,$He=Math.min;function $F(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Ui(e),r=e<0?RHe(i+r,0):$He(r,i-1)),Y2(t,Li(n),r,!0)}var dte=ate($F);function hte(t,n){return cte(t,Li(n),jF)}function sa(t){return t&&t.length?t[0]:void 0}function fte(t,n){var e=-1,i=Il(t)?Array(t.length):[];return Qf(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function Wv(t,n){return(Pi(t)?Ko:fte)(t,Li(n))}function pte(t,n){return $a(Wv(t,n),1)}function mte(t,n){return $a(Wv(t,n),1/0)}function gte(t,n,e){return e=void 0===e?1:Ui(e),$a(Wv(t,n),e)}function vte(t){return null!=t&&t.length?$a(t,1/0):[]}function yte(t,n){return null!=t&&t.length?$a(t,n=void 0===n?1:Ui(n)):[]}function bte(t){return ef(t,512)}var _te=uF("floor");function xte(t){return af(function(n){var e=n.length,i=e,r=Yc.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==W2(o))var s=new Yc([],!0)}for(i=s?i:e;++in}function _k(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=xc(n),e=xc(e)),t(n,e)}}var Ite=_k(BF),Nte=_k(function(t,n){return t>=n}),HHe=Object.prototype.hasOwnProperty;function zHe(t,n){return null!=t&&HHe.call(t,n)}function Fte(t,n){return null!=t&&Cee(t,n,zHe)}var UHe=Math.max,GHe=Math.min;function Ote(t,n,e){return n=Jd(n),void 0===e?(e=n,n=0):e=Jd(e),(i=t=xc(t))>=GHe(r=n,o=e)&&i-1:!!r&&jv(t,n,e)>-1}var qHe=Math.max;function Pte(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Ui(e);return r<0&&(r=qHe(i+r,0)),jv(t,n,r)}function Xi(t){return null!=t&&t.length?Zc(t,0,-1):[]}var XHe=Math.min;function HF(t,n,e){for(var i=e?OF:J2,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=Ko(u,Cc(n))),l=XHe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Nm(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function cne(t){return void 0===t}function une(t){return ls(t)&&"[object WeakMap]"==eh(t)}function dne(t){return ls(t)&&"[object WeakSet]"==Ml(t)}function hne(t){return Li("function"==typeof t?t:eu(t,1))}var oze=Array.prototype.join;function fne(t,n){return null==t?"":oze.call(t,n)}var sze=zv(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),pne=sze,aze=dk(function(t,n,e){tf(t,e,n)}),mne=aze,lze=Math.max,cze=Math.min;function gne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Ui(e))<0?lze(i+r,0):cze(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):Y2(t,cZ,r,!0)}var uze=zv(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),vne=uze,yne=PZ("toLowerCase");function WF(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function One(t,n){var e=t.length;if(e)return Zh(n+=n<0?e:0,e)?t[n]:void 0}function jne(t,n){return t&&t.length?One(t,Ui(n)):void 0}function Pne(t){return t=Ui(t),dr(function(n){return One(n,t)})}function ZF(t,n){return null==(t=Ute(t,n=Xf(n,t)))||delete t[Zd(Ln(n))]}function pze(t){return Bv(t)?void 0:t}var mze=af(function(t,n){var e={};if(null==t)return e;var i=!1;n=Ko(n,function(o){return o=Xf(o,t),i||(i=o.length>1),o}),Qd(t,pF(t),e),i&&(e=eu(e,7,pze));for(var r=n.length;r--;)ZF(e,n[r]);return e}),Lne=mze;function jb(t,n,e,i){if(!zo(t))return t;for(var r=-1,o=(n=Xf(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(fte(t,function(o,s,a){return{criteria:Ko(n,function(c){return c(o)}),index:++i,value:o}}))}function zne(t,n,e,i){return null==t?[]:(Pi(n)||(n=null==n?[]:[n]),Pi(e=i?void 0:e)||(e=null==e?[]:[e]),Hne(t,n,e))}function tO(t){return af(function(n){return n=Ko(n,Cc(Li)),dr(function(e){var i=this;return t(n,function(r){return wc(r,i,e)})})})}var Une=tO(Ko),vze=Math.min,yze=dr(function(t,n){var e=(n=1==n.length&&Pi(n[0])?Ko(n[0],Cc(Li)):Ko($a(n,1),Cc(Li))).length;return dr(function(i){for(var r=-1,o=vze(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=bze(n/2))&&(t+=t)}while(n);return e}var _ze=TF("length"),iO="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rO="\\ud83c[\\udffb-\\udfff]",Xne="[^\\ud800-\\udfff]",Yne="(?:\\ud83c[\\udde6-\\uddff]){2}",Jne="[\\ud800-\\udbff][\\udc00-\\udfff]",Kne="(?:"+iO+"|"+rO+")?",wze="[\\ufe0e\\ufe0f]?"+Kne+"(?:\\u200d(?:"+[Xne,Yne,Jne].join("|")+")[\\ufe0e\\ufe0f]?"+Kne+")*",Cze="(?:"+[Xne+iO+"?",iO,Yne,Jne,"[\\ud800-\\udfff]"].join("|")+")",Qne=RegExp(rO+"(?="+rO+")|"+Cze+wze,"g");function Jv(t){return Vv(t)?function(n){for(var e=Qne.lastIndex=0;Qne.test(n);)++e;return e}(t):_ze(t)}var kze=Math.ceil;function Ck(t,n){var e=(n=void 0===n?" ":_c(n)).length;if(e<2)return e?nO(n,t):n;var i=nO(n,kze(t/Jv(n)));return Vv(n)?Jf(Ku(i),0,t).join(""):i.slice(0,t)}var Sze=Math.ceil,Dze=Math.floor;function Zne(t,n,e){t=Jr(t);var i=(n=Ui(n))?Jv(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return Ck(Dze(r),e)+t+Ck(Sze(r),e)}function eie(t,n,e){t=Jr(t);var i=(n=Ui(n))?Jv(t):0;return n&&i-1;)a!==t&&sie.call(a,l,1),sie.call(t,l,1);return t}function dO(t,n){return t&&t.length&&n&&n.length?uO(t,n):t}var aie=dr(dO);function lie(t,n,e){return t&&t.length&&n&&n.length?uO(t,n,Li(e)):t}function cie(t,n,e){return t&&t.length&&n&&n.length?uO(t,n,void 0,e):t}var Nze=Array.prototype.splice;function uie(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;Zh(r)?Nze.call(t,r,1):ZF(t,r)}}return t}var Fze=af(function(t,n){var e=null==t?0:t.length,i=JN(t,n);return uie(t,Ko(n,function(r){return Zh(r,e)?+r:r}).sort(Vne)),i}),die=Fze,Oze=Math.floor,jze=Math.random;function hO(t,n){return t+Oze(jze()*(n-t+1))}var Pze=parseFloat,Lze=Math.min,Rze=Math.random;function hie(t,n,e){if(e&&"boolean"!=typeof e&&Nl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Jd(t),void 0===n?(n=t,t=0):n=Jd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=Rze();return Lze(t+r*(n-t+Pze("1e-"+((r+"").length-1))),n)}return hO(t,n)}var $ze=Math.ceil,Bze=Math.max;function fie(t){return function(n,e,i){return i&&"number"!=typeof i&&Nl(n,e,i)&&(e=i=void 0),n=Jd(n),void 0===e?(e=n,n=0):e=Jd(e),function(r,o,s,a){for(var l=-1,c=Bze($ze((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&Nl(t,n[0],n[1])?n=[]:e>2&&Nl(n[0],n[1],n[2])&&(n=[n[0]]),Hne(t,$a(n,1),[])}),pO=Kze,Qze=Math.floor,Zze=Math.min;function mO(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=Yl(n),c=void 0===n;r>>1,s=t[o];null!==s&&!Yl(s)&&(e?s<=n:s>>0)?(t=Jr(t))&&("string"==typeof n||null!=n&&!xk(n))&&!(n=_c(n))&&Vv(t)?Jf(Ku(t),0,e):t.split(n,e):[]}var eUe=Math.max;function Wie(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:eUe(Ui(n),0),dr(function(e){var i=e[n],r=Jf(e,0,n);return i&&Yf(r,i),wc(t,this,r)})}var tUe=zv(function(t,n,e){return t+(e?" ":"")+ok(n)}),qie=tUe;function Xie(t,n,e){return t=Jr(t),e=null==e?0:Mm(Ui(e),0,t.length),n=_c(n),t.slice(e,e+n.length)==n}function Yie(){return{}}function Jie(){return""}function Kie(){return!0}var Qie=H2(function(t,n){return t-n},0);function Zie(t){return t&&t.length?XF(t,cl):0}function ere(t,n){return t&&t.length?XF(t,Li(n)):0}function tre(t){var n=null==t?0:t.length;return n?Zc(t,1,n):[]}function nre(t,n,e){return t&&t.length?Zc(t,0,(n=e||void 0===n?1:Ui(n))<0?0:n):[]}function ire(t,n,e){var i=null==t?0:t.length;return i?Zc(t,(n=i-(n=e||void 0===n?1:Ui(n)))<0?0:n,i):[]}function rre(t,n){return t&&t.length?mk(t,Li(n),!1,!0):[]}function ore(t,n){return t&&t.length?mk(t,Li(n)):[]}function sre(t,n){return n(t),t}var are=Object.prototype,nUe=are.hasOwnProperty;function lre(t,n,e,i){return void 0===t||Kc(t,are[e])&&!nUe.call(i,e)?n:t}var iUe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function rUe(t){return"\\"+iUe[t]}var cre=/<%=([\s\S]+?)%>/g,Tk={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:cre,variable:"",imports:{_:{escape:PF}}},oUe=/\b__p \+= '';/g,sUe=/\b(__p \+=) '' \+/g,aUe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lUe=/[()=,{}\[\]\/\s]/,cUe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ek=/($^)/,uUe=/['\n\r\u2028\u2029\\]/g,ure=Object.prototype.hasOwnProperty;function dre(t,n,e){var i=Tk.imports._.templateSettings||Tk;e&&Nl(t,n,e)&&(n=void 0),t=Jr(t),n=Rv({},n,i,lre);var r,o,s=Rv({},n.imports,i.imports,lre),a=qs(s),l=VF(s,a),c=0,u=n.interpolate||Ek,d="__p += '",h=RegExp((n.escape||Ek).source+"|"+u.source+"|"+(u===cre?cUe:Ek).source+"|"+(n.evaluate||Ek).source+"|$","g"),f=ure.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,_,C,S){return y||(y=_),d+=t.slice(c,S).replace(uUe,rUe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),C&&(o=!0,d+="';\n"+C+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=S+g.length,g}),d+="';\n";var p=ure.call(n,"variable")&&n.variable;if(p){if(lUe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(oUe,""):d).replace(sUe,"$1").replace(aUe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=QN(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,rk(m))throw m;return m}function gO(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return zo(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),Gv(t,n,{leading:i,maxWait:n,trailing:r})}function Kv(t,n){return n(t)}var dUe=Math.min;function vO(t,n){if((t=Ui(t))<1||t>9007199254740991)return[];var e=4294967295,i=dUe(t,4294967295);t-=4294967295;for(var r=WN(i,n=nh(n));++e-1;);return e}function bre(t,n){for(var e=-1,i=t.length;++e-1;);return e}function _re(t,n,e){if((t=Jr(t))&&(e||void 0===n))return KQ(t);if(!t||!(n=_c(n)))return t;var i=Ku(t),r=Ku(n);return Jf(i,bre(i,r),yre(i,r)+1).join("")}function xre(t,n,e){if((t=Jr(t))&&(e||void 0===n))return t.slice(0,JQ(t)+1);if(!t||!(n=_c(n)))return t;var i=Ku(t);return Jf(i,0,yre(i,Ku(n))+1).join("")}var hUe=/^\s+/;function wre(t,n,e){if((t=Jr(t))&&(e||void 0===n))return t.replace(hUe,"");if(!t||!(n=_c(n)))return t;var i=Ku(t);return Jf(i,bre(i,Ku(n))).join("")}var fUe=/\w*$/;function Cre(t,n){var e=30,i="...";if(zo(n)){var r="separator"in n?n.separator:r;e="length"in n?Ui(n.length):e,i="omission"in n?_c(n.omission):i}var o=(t=Jr(t)).length;if(Vv(t)){var s=Ku(t);o=s.length}if(e>=o)return t;var a=e-Jv(i);if(a<1)return i;var l=s?Jf(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),xk(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Jr(fUe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(_c(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function kre(t){return GN(t,1)}var pUe=aF({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Sre=/&(?:amp|lt|gt|quot|#39);/g,mUe=RegExp(Sre.source);function Dre(t){return(t=Jr(t))&&mUe.test(t)?t.replace(Sre,pUe):t}var gUe=Uv&&1/lk(new Uv([,-0]))[1]==1/0?function(t){return new Uv(t)}:go,vUe=gUe;function Zf(t,n,e){var i=-1,r=J2,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=OF;else if(o>=200){var c=n?null:vUe(t);if(c)return lk(c);s=!1,r=Eb,l=new Nm}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Tr&&Zh(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:Kv,args:[r],thisArg:void 0}),new Yc(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),Vre=CUe;function Hre(){return dF(this)}function zre(){var t=this.__wrapped__;if(t instanceof Tr){var n=t;return this.__actions__.length&&(n=new Tr(this)),(n=n.reverse()).__actions__.push({func:Kv,args:[kk],thisArg:void 0}),new Yc(n,this.__chain__)}return this.thru(kk)}function _O(t,n,e){var i=t.length;if(i<2)return i?Zf(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,bO(t,e)}),Kre=SUe,Gn={chunk:YZ,compact:mee,concat:gee,difference:Vee,differenceBy:Hee,differenceWith:zee,drop:Gee,dropRight:Wee,dropRightWhile:qee,dropWhile:Xee,fill:rte,findIndex:RF,findLastIndex:$F,first:sa,flatten:KN,flattenDeep:vte,flattenDepth:yte,fromPairs:Ete,head:sa,indexOf:Pte,initial:Xi,intersection:Lte,intersectionBy:Rte,intersectionWith:$te,join:fne,last:Ln,lastIndexOf:gne,nth:jne,pull:aie,pullAll:dO,pullAllBy:lie,pullAllWith:cie,pullAt:die,remove:_ie,reverse:kk,slice:Fie,sortedIndex:Pie,sortedIndexBy:Lie,sortedIndexOf:Rie,sortedLastIndex:$ie,sortedLastIndexBy:Bie,sortedLastIndexOf:Vie,sortedUniq:zie,sortedUniqBy:Uie,tail:tre,take:nre,takeRight:ire,takeRightWhile:rre,takeWhile:ore,union:Tre,unionBy:Ere,unionWith:Are,uniq:Mre,uniqBy:Ire,uniqWith:Nre,unzip:Ak,unzipWith:bO,without:$re,xor:Ure,xorBy:Gre,xorWith:Wre,zip:qre,zipObject:Yre,zipObjectDeep:Jre,zipWith:Kre},vo={countBy:Iee,each:gk,eachRight:Nb,every:ite,filter:ste,find:lte,findLast:dte,flatMap:pte,flatMapDeep:mte,flatMapDepth:gte,forEach:gk,forEachRight:Nb,groupBy:qv,includes:jte,invokeMap:Wte,keyBy:mne,map:Wv,orderBy:zne,partition:lO,reduce:vie,reduceRight:yie,reject:bie,sample:Tie,sampleSize:Eie,shuffle:Iie,size:Nie,some:jie,sortBy:pO},DUe={now:Mb},_s={after:QQ,ary:GN,before:ZN,bind:tF,bindKey:IZ,curry:hk,curryRight:fk,debounce:Gv,defer:$ee,delay:Bee,flip:bte,memoize:$v,negate:Yv,once:Bne,overArgs:Gne,partial:sO,partialRight:iie,rearg:mie,rest:Cie,spread:Wie,throttle:gO,unary:kre,wrap:Bre},mi={castArray:qZ,clone:hee,cloneDeep:fee,cloneDeepWith:_F,cloneWith:pee,conformsTo:Eee,eq:Kc,gt:Ite,gte:Nte,isArguments:qf,isArray:Pi,isArrayBuffer:Xte,isArrayLike:Il,isArrayLikeObject:bs,isBoolean:Yte,isBuffer:nf,isDate:Kte,isElement:Qte,isEmpty:Hi,isEqual:or,isEqualWith:Zte,isError:rk,isFinite:ene,isFunction:Kd,isInteger:UF,isLength:Cb,isMap:yF,isMatch:tne,isMatchWith:nne,isNaN:ine,isNative:rne,isNil:one,isNull:sne,isNumber:GF,isObject:zo,isObjectLike:ls,isPlainObject:Bv,isRegExp:xk,isSafeInteger:lne,isSet:bF,isString:Fb,isSymbol:Yl,isTypedArray:Tm,isUndefined:cne,isWeakMap:une,isWeakSet:dne,lt:bne,lte:_ne,toArray:KF,toFinite:Jd,toInteger:Ui,toLength:LF,toNumber:xc,toPlainObject:NF,toSafeInteger:mre,toString:Jr},Ol={add:YQ,ceil:XZ,divide:Uee,floor:_te,max:kne,maxBy:Sne,mean:Tne,meanBy:Ene,min:Nne,minBy:Xv,multiply:Fne,round:Sie,subtract:Qie,sum:Zie,sumBy:ere},TUe=JZ,EUe=Ote,AUe=hie,Ii={assign:kZ,assignIn:Z2,assignInWith:Rv,assignWith:SZ,at:EZ,create:Nee,defaults:jee,defaultsDeep:Lee,entries:vk,entriesIn:yk,extend:Z2,extendWith:Rv,findKey:ute,findLastKey:hte,forIn:kte,forInRight:Ste,forOwn:Dte,forOwnRight:Tte,functions:Ate,functionsIn:Mte,get:nk,has:Fte,hasIn:uk,invert:Vte,invertBy:zte,invoke:Gte,keys:qs,keysIn:Fl,mapKeys:xne,mapValues:qF,merge:Ane,mergeWith:FF,omit:Lne,omitBy:$ne,pick:rie,pickBy:eO,result:kie,set:Aie,setWith:Mie,toPairs:vk,toPairsIn:yk,transform:vre,unset:Fre,update:jre,updateWith:Pre,values:Fm,valuesIn:Rre},ih={at:Vre,chain:dF,commit:xF,lodash:me,next:QF,plant:cO,reverse:zre,tap:sre,thru:Kv,toIterator:yO,toJSON:Om,value:Om,valueOf:Om,wrapperChain:Hre},Kr={camelCase:WZ,capitalize:oF,deburr:lF,endsWith:Kee,escape:PF,escapeRegExp:tte,kebabCase:pne,lowerCase:vne,lowerFirst:yne,pad:Zne,padEnd:eie,padStart:tie,parseInt:nie,repeat:xie,replace:wie,snakeCase:Oie,split:Gie,startCase:qie,startsWith:Xie,template:dre,templateSettings:Tk,toLower:fre,toUpper:gre,trim:_re,trimEnd:xre,trimStart:wre,truncate:Cre,unescape:Dre,upperCase:Lre,upperFirst:ok,words:cF},so={attempt:QN,bindAll:MZ,cond:See,conforms:Tee,constant:q2,defaultTo:Fee,flow:wte,flowRight:Cte,identity:cl,iteratee:hne,matches:wne,matchesProperty:Cne,method:Mne,methodOf:Ine,mixin:YF,noop:go,nthArg:Pne,over:Une,overEvery:Wne,overSome:qne,property:EF,propertyOf:oie,range:fO,rangeRight:pie,stubArray:sk,stubFalse:Q2,stubObject:Yie,stubString:Jie,stubTrue:Kie,times:vO,toPath:pre,uniqueId:ep},MUe=Math.max,IUe=Math.min,NUe=Math.min,FUe=Array.prototype,Qre=Object.prototype.hasOwnProperty,Zre=ll?ll.iterator:void 0,OUe=Math.max,eoe=Math.min,wO=function(t){return function(n,e,i){if(null==i){var r=zo(e),o=r&&qs(e),s=o&&o.length&&bk(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}(YF);me.after=_s.after,me.ary=_s.ary,me.assign=Ii.assign,me.assignIn=Ii.assignIn,me.assignInWith=Ii.assignInWith,me.assignWith=Ii.assignWith,me.at=Ii.at,me.before=_s.before,me.bind=_s.bind,me.bindAll=so.bindAll,me.bindKey=_s.bindKey,me.castArray=mi.castArray,me.chain=ih.chain,me.chunk=Gn.chunk,me.compact=Gn.compact,me.concat=Gn.concat,me.cond=so.cond,me.conforms=so.conforms,me.constant=so.constant,me.countBy=vo.countBy,me.create=Ii.create,me.curry=_s.curry,me.curryRight=_s.curryRight,me.debounce=_s.debounce,me.defaults=Ii.defaults,me.defaultsDeep=Ii.defaultsDeep,me.defer=_s.defer,me.delay=_s.delay,me.difference=Gn.difference,me.differenceBy=Gn.differenceBy,me.differenceWith=Gn.differenceWith,me.drop=Gn.drop,me.dropRight=Gn.dropRight,me.dropRightWhile=Gn.dropRightWhile,me.dropWhile=Gn.dropWhile,me.fill=Gn.fill,me.filter=vo.filter,me.flatMap=vo.flatMap,me.flatMapDeep=vo.flatMapDeep,me.flatMapDepth=vo.flatMapDepth,me.flatten=Gn.flatten,me.flattenDeep=Gn.flattenDeep,me.flattenDepth=Gn.flattenDepth,me.flip=_s.flip,me.flow=so.flow,me.flowRight=so.flowRight,me.fromPairs=Gn.fromPairs,me.functions=Ii.functions,me.functionsIn=Ii.functionsIn,me.groupBy=vo.groupBy,me.initial=Gn.initial,me.intersection=Gn.intersection,me.intersectionBy=Gn.intersectionBy,me.intersectionWith=Gn.intersectionWith,me.invert=Ii.invert,me.invertBy=Ii.invertBy,me.invokeMap=vo.invokeMap,me.iteratee=so.iteratee,me.keyBy=vo.keyBy,me.keys=qs,me.keysIn=Ii.keysIn,me.map=vo.map,me.mapKeys=Ii.mapKeys,me.mapValues=Ii.mapValues,me.matches=so.matches,me.matchesProperty=so.matchesProperty,me.memoize=_s.memoize,me.merge=Ii.merge,me.mergeWith=Ii.mergeWith,me.method=so.method,me.methodOf=so.methodOf,me.mixin=wO,me.negate=Yv,me.nthArg=so.nthArg,me.omit=Ii.omit,me.omitBy=Ii.omitBy,me.once=_s.once,me.orderBy=vo.orderBy,me.over=so.over,me.overArgs=_s.overArgs,me.overEvery=so.overEvery,me.overSome=so.overSome,me.partial=_s.partial,me.partialRight=_s.partialRight,me.partition=vo.partition,me.pick=Ii.pick,me.pickBy=Ii.pickBy,me.property=so.property,me.propertyOf=so.propertyOf,me.pull=Gn.pull,me.pullAll=Gn.pullAll,me.pullAllBy=Gn.pullAllBy,me.pullAllWith=Gn.pullAllWith,me.pullAt=Gn.pullAt,me.range=so.range,me.rangeRight=so.rangeRight,me.rearg=_s.rearg,me.reject=vo.reject,me.remove=Gn.remove,me.rest=_s.rest,me.reverse=Gn.reverse,me.sampleSize=vo.sampleSize,me.set=Ii.set,me.setWith=Ii.setWith,me.shuffle=vo.shuffle,me.slice=Gn.slice,me.sortBy=vo.sortBy,me.sortedUniq=Gn.sortedUniq,me.sortedUniqBy=Gn.sortedUniqBy,me.split=Kr.split,me.spread=_s.spread,me.tail=Gn.tail,me.take=Gn.take,me.takeRight=Gn.takeRight,me.takeRightWhile=Gn.takeRightWhile,me.takeWhile=Gn.takeWhile,me.tap=ih.tap,me.throttle=_s.throttle,me.thru=Kv,me.toArray=mi.toArray,me.toPairs=Ii.toPairs,me.toPairsIn=Ii.toPairsIn,me.toPath=so.toPath,me.toPlainObject=mi.toPlainObject,me.transform=Ii.transform,me.unary=_s.unary,me.union=Gn.union,me.unionBy=Gn.unionBy,me.unionWith=Gn.unionWith,me.uniq=Gn.uniq,me.uniqBy=Gn.uniqBy,me.uniqWith=Gn.uniqWith,me.unset=Ii.unset,me.unzip=Gn.unzip,me.unzipWith=Gn.unzipWith,me.update=Ii.update,me.updateWith=Ii.updateWith,me.values=Ii.values,me.valuesIn=Ii.valuesIn,me.without=Gn.without,me.words=Kr.words,me.wrap=_s.wrap,me.xor=Gn.xor,me.xorBy=Gn.xorBy,me.xorWith=Gn.xorWith,me.zip=Gn.zip,me.zipObject=Gn.zipObject,me.zipObjectDeep=Gn.zipObjectDeep,me.zipWith=Gn.zipWith,me.entries=Ii.toPairs,me.entriesIn=Ii.toPairsIn,me.extend=Ii.assignIn,me.extendWith=Ii.assignInWith,wO(me,me),me.add=Ol.add,me.attempt=so.attempt,me.camelCase=Kr.camelCase,me.capitalize=Kr.capitalize,me.ceil=Ol.ceil,me.clamp=TUe,me.clone=mi.clone,me.cloneDeep=mi.cloneDeep,me.cloneDeepWith=mi.cloneDeepWith,me.cloneWith=mi.cloneWith,me.conformsTo=mi.conformsTo,me.deburr=Kr.deburr,me.defaultTo=so.defaultTo,me.divide=Ol.divide,me.endsWith=Kr.endsWith,me.eq=mi.eq,me.escape=Kr.escape,me.escapeRegExp=Kr.escapeRegExp,me.every=vo.every,me.find=vo.find,me.findIndex=Gn.findIndex,me.findKey=Ii.findKey,me.findLast=vo.findLast,me.findLastIndex=Gn.findLastIndex,me.findLastKey=Ii.findLastKey,me.floor=Ol.floor,me.forEach=vo.forEach,me.forEachRight=vo.forEachRight,me.forIn=Ii.forIn,me.forInRight=Ii.forInRight,me.forOwn=Ii.forOwn,me.forOwnRight=Ii.forOwnRight,me.get=Ii.get,me.gt=mi.gt,me.gte=mi.gte,me.has=Ii.has,me.hasIn=Ii.hasIn,me.head=Gn.head,me.identity=cl,me.includes=vo.includes,me.indexOf=Gn.indexOf,me.inRange=EUe,me.invoke=Ii.invoke,me.isArguments=mi.isArguments,me.isArray=Pi,me.isArrayBuffer=mi.isArrayBuffer,me.isArrayLike=mi.isArrayLike,me.isArrayLikeObject=mi.isArrayLikeObject,me.isBoolean=mi.isBoolean,me.isBuffer=mi.isBuffer,me.isDate=mi.isDate,me.isElement=mi.isElement,me.isEmpty=mi.isEmpty,me.isEqual=mi.isEqual,me.isEqualWith=mi.isEqualWith,me.isError=mi.isError,me.isFinite=mi.isFinite,me.isFunction=mi.isFunction,me.isInteger=mi.isInteger,me.isLength=mi.isLength,me.isMap=mi.isMap,me.isMatch=mi.isMatch,me.isMatchWith=mi.isMatchWith,me.isNaN=mi.isNaN,me.isNative=mi.isNative,me.isNil=mi.isNil,me.isNull=mi.isNull,me.isNumber=mi.isNumber,me.isObject=zo,me.isObjectLike=mi.isObjectLike,me.isPlainObject=mi.isPlainObject,me.isRegExp=mi.isRegExp,me.isSafeInteger=mi.isSafeInteger,me.isSet=mi.isSet,me.isString=mi.isString,me.isSymbol=mi.isSymbol,me.isTypedArray=mi.isTypedArray,me.isUndefined=mi.isUndefined,me.isWeakMap=mi.isWeakMap,me.isWeakSet=mi.isWeakSet,me.join=Gn.join,me.kebabCase=Kr.kebabCase,me.last=Ln,me.lastIndexOf=Gn.lastIndexOf,me.lowerCase=Kr.lowerCase,me.lowerFirst=Kr.lowerFirst,me.lt=mi.lt,me.lte=mi.lte,me.max=Ol.max,me.maxBy=Ol.maxBy,me.mean=Ol.mean,me.meanBy=Ol.meanBy,me.min=Ol.min,me.minBy=Ol.minBy,me.stubArray=so.stubArray,me.stubFalse=so.stubFalse,me.stubObject=so.stubObject,me.stubString=so.stubString,me.stubTrue=so.stubTrue,me.multiply=Ol.multiply,me.nth=Gn.nth,me.noop=so.noop,me.now=DUe.now,me.pad=Kr.pad,me.padEnd=Kr.padEnd,me.padStart=Kr.padStart,me.parseInt=Kr.parseInt,me.random=AUe,me.reduce=vo.reduce,me.reduceRight=vo.reduceRight,me.repeat=Kr.repeat,me.replace=Kr.replace,me.result=Ii.result,me.round=Ol.round,me.sample=vo.sample,me.size=vo.size,me.snakeCase=Kr.snakeCase,me.some=vo.some,me.sortedIndex=Gn.sortedIndex,me.sortedIndexBy=Gn.sortedIndexBy,me.sortedIndexOf=Gn.sortedIndexOf,me.sortedLastIndex=Gn.sortedLastIndex,me.sortedLastIndexBy=Gn.sortedLastIndexBy,me.sortedLastIndexOf=Gn.sortedLastIndexOf,me.startCase=Kr.startCase,me.startsWith=Kr.startsWith,me.subtract=Ol.subtract,me.sum=Ol.sum,me.sumBy=Ol.sumBy,me.template=Kr.template,me.times=so.times,me.toFinite=mi.toFinite,me.toInteger=Ui,me.toLength=mi.toLength,me.toLower=Kr.toLower,me.toNumber=mi.toNumber,me.toSafeInteger=mi.toSafeInteger,me.toString=mi.toString,me.toUpper=Kr.toUpper,me.trim=Kr.trim,me.trimEnd=Kr.trimEnd,me.trimStart=Kr.trimStart,me.truncate=Kr.truncate,me.unescape=Kr.unescape,me.uniqueId=so.uniqueId,me.upperCase=Kr.upperCase,me.upperFirst=Kr.upperFirst,me.each=vo.forEach,me.eachRight=vo.forEachRight,me.first=Gn.head,wO(me,(xO={},th(me,function(t,n){Qre.call(me.prototype,n)||(xO[n]=t)}),xO),{chain:!1}),me.VERSION="4.17.21",(me.templateSettings=Kr.templateSettings).imports._=me,Jc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){me[t].placeholder=me}),Jc(["drop","take"],function(t,n){Tr.prototype[t]=function(e){e=void 0===e?1:OUe(Ui(e),0);var i=this.__filtered__&&!n?new Tr(this):this.clone();return i.__filtered__?i.__takeCount__=eoe(e,i.__takeCount__):i.__views__.push({size:eoe(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Tr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Jc(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Tr.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:Li(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),Jc(["head","last"],function(t,n){var e="take"+(n?"Right":"");Tr.prototype[t]=function(){return this[e](1).value()[0]}}),Jc(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Tr.prototype[t]=function(){return this.__filtered__?new Tr(this):this[e](1)}}),Tr.prototype.compact=function(){return this.filter(cl)},Tr.prototype.find=function(t){return this.filter(t).head()},Tr.prototype.findLast=function(t){return this.reverse().find(t)},Tr.prototype.invokeMap=dr(function(t,n){return"function"==typeof t?new Tr(this):this.map(function(e){return Ob(e,t,n)})}),Tr.prototype.reject=function(t){return this.filter(Yv(Li(t)))},Tr.prototype.slice=function(t,n){t=Ui(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Tr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Ui(n))<0?e.dropRight(-n):e.take(n-t)),e)},Tr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Tr.prototype.toArray=function(){return this.take(4294967295)},th(Tr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=me[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(me.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Tr,c=a[0],u=l||Pi(s),d=function(v){var y=r.apply(me,Yf([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Tr(this);var g=t.apply(s,a);return g.__actions__.push({func:Kv,args:[d],thisArg:void 0}),new Yc(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),Jc(["pop","push","shift","sort","splice","unshift"],function(t){var n=FUe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);me.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(Pi(o)?o:[],r)}return this[e](function(s){return n.apply(Pi(s)?s:[],r)})}}),th(Tr.prototype,function(t,n){var e=me[n];if(e){var i=e.name+"";Qre.call(Ov,i)||(Ov[i]=[]),Ov[i].push({name:n,func:e})}}),Ov[K2(void 0,2).name]=[{name:"wrapper",func:void 0}],Tr.prototype.clone=function(){var t=new Tr(this.__wrapped__);return t.__actions__=Jl(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Jl(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Jl(this.__views__),t},Tr.prototype.reverse=function(){if(this.__filtered__){var t=new Tr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Tr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Pi(t),i=n<0,r=e?t.length:0,o=function(S,M,$){for(var G=-1,R=$.length;++G1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Io(l)||n&&c.length>0)&&(e[ln(c)]=!0),Io(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function noe(t){return Ze({},t)}function ioe(t){return Object.values(t)}function roe(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(si(o))),r}function kO(t,n){try{return n.parse(t)}catch{return n.parse(Yd(t))}}function ooe(t,n){try{return kO(t,n)}catch{return}}function Ik(t,n){t=t.replace(aoe,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function soe(t){t=t.replace(aoe,"");try{return Yd(t)}catch{}try{var n=Yd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Yd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var aoe=/,\s*$/;function Nk(t,n){var e=uoe.exec(n);if(e){var i=Ws(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return Qv(t)?t:{text:e.stringify(t.json,null,n)}}function loe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return DO(t)?t:{json:n.parse(t.text)}}function Fk(t,n,e){return Zv(t,n,e).text}function coe(t,n){return function RUe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(Qv(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Io(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var uoe=/(position|char) (\d+)/,$Ue=/line (\d+)/,BUe=/column (\d+)/;function hoe(t){return VUe.test(t)&&t.length>2}var VUe=/^[[{]\S/;function TO(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?HUe:zUe:e?UUe:GUe}var HUe={escapeValue:function(t){return foe(goe(String(t)))},unescapeValue:function(t){return voe(poe(t))}},zUe={escapeValue:function(t){return goe(String(t))},unescapeValue:function(t){return voe(t)}},UUe={escapeValue:function(t){return foe(String(t))},unescapeValue:function(t){return poe(t)}},GUe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function foe(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function poe(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return moe[e]||e}catch{return n}})}var moe={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},WUe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function goe(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return moe[n]||n})}function voe(t){return t.replace(/\\["bfnrt\\]/g,function(n){return WUe[n]||n})}function jm(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function yoe(t,n){return Pb(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function Pm(t,n,e){return Pb(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function Pb(t,n){return!!EO(t,n)}function EO(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function boe(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function Ok(t,n,e){var i=e0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,boe(r))}}function e0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function jk(t){var e=e0(t)?.document.activeElement;return!!e&&Pb(e,function(i){return i===t})}function _oe(t,n){return EO(t,function(e){return e.nodeName===n})}function AO(t){return Pm(t,"data-type","selectable-key")?ro.key:Pm(t,"data-type","selectable-value")?ro.value:Pm(t,"data-type","insert-selection-area-inside")?ro.inside:Pm(t,"data-type","insert-selection-area-after")?ro.after:ro.multi}function t0(t){return encodeURIComponent(ln(t))}function xoe(t){var e=EO(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Xu(decodeURIComponent(e)):null}function tp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in XUe||e.push(i),e.join(n)}var XUe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},MO=yN.window;function YUe(t){pi(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function woe(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&C>h,G="left"===v||_+u>window.innerWidth&&_>u;return{left:G?y.right-g:_+g,top:$?C-p:y.bottom+p,positionAbove:$,positionLeft:G}}if("number"==typeof n.left&&"number"==typeof n.top){var R=n.left,z=n.top,U=n.width,q=void 0===U?0:U,re=n.height,L=void 0===re?0:re;return{left:R,top:z,positionAbove:z+L>window.innerHeight&&z>L,positionLeft:R+q>window.innerWidth&&R>q}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function QUe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!Pb(l.target,function(c){return c===i})&&s(o.id)}return Wc(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===tp(l)&&s(o.id)},function(l){a(l)},s,function(l){Vi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Vi[l?"unshift":"push"](function(){e(1,i=l)})}]}var ZUe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,QUe,JUe,ys,{popup:0,closeAbsolutePopup:6},YUe),r}return Se(e)}();function koe(t,n,e){var i=t.slice();return i[6]=n[e],i}function Soe(t){var n,e;return n=new ZUe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function eGe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(iGe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var iGe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function Lb(t){return{value:t,label:Hi(t)?"(whole item)":tu(Kl(t))}}function rh(t){return t.map(function(n){return NO.test(n)?"?.[".concat(n,"]"):IO.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var IO=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,NO=/^\d+$/;function Rb(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function oh(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var rGe={id:"javascript",name:"JavaScript",description:"\n

    \n Enter a JavaScript function to filter, sort, or transform the data.\n

    \n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(rh(e.path)),a=function FO(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function HQ(t){return k9e.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(rh(i.path),"\n")+" const valueB = b".concat(rh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(rh(i.path),"\n")+" const valueB = b".concat(rh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(rh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(rh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},oGe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},$b={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},Bb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},sGe={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function aGe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var OGe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,FGe,NGe,Ei,{path:4,value:0,readOnly:1,onPatch:5,focus:6},IGe),r}return Se(e)}();function Poe(t){for(var n=pO(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=Rk(n,u);jO(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Io(l)&&i(o)){r[ln(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=Re(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),Ze(Ze({},n),{},{expandedMap:r})}function Loe(t,n){var e=n0(t.expandedMap,n),i=n0(t.enforceStringMap,n),r=n0(t.visibleSectionsMap,n);return Ze(Ze({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Roe(t,n,e){if(e){var i=Ze({},t.enforceStringMap);return i[n]=e,Ze(Ze({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=Ze({},t.enforceStringMap);return delete r[n],Ze(Ze({},t),{},{enforceStringMap:r})}return t}function $oe(t,n,e){var i=Yu(t,e),r=e.reduce(function(o,s){return SQ(s)?Boe(i,o,s):DQ(s)?Voe(i,o,s):kN(s)?(u=(c=s).path,d=BO(a=i,(l=o).expandedMap),h=BO(a,l.enforceStringMap),f=BO(a,l.visibleSectionsMap),Mo(c.value)||oo(c.value)||delete d[u],oo(c.value)||delete f[u],(Mo(c.value)||oo(c.value))&&delete h[u],Ze(Ze({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):SN(s)||Mv(s)?function(a,l,c){if(Mv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=$O(LO(l.expandedMap,c.from),u),h=$O(LO(l.enforceStringMap,c.from),u),f=$O(LO(l.visibleSectionsMap,c.from),u),p=l;Mv(c)&&(p=Voe(a,p,{op:"remove",path:c.from}));var m=RO((p=Boe(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=RO(p.enforceStringMap,h),v=RO(p.visibleSectionsMap,f);return Ze(Ze({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function Boe(t,n,e){var i=Ju(t,e.path),r=Xi(i),o=ln(r);if(oo(Sn(t,r))){var s=Ws(Ln(i)),a=r0(n.expandedMap,r,s,1),l=r0(n.enforceStringMap,r,s,1),c=r0(n.visibleSectionsMap,r,s,1);return c=Hoe(c,o,function(u){return zoe(u,s,1)}),Ze(Ze({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function Voe(t,n,e){var i=Ju(t,e.path),r=Xi(i),o=ln(r),s=Sn(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=n0(a,i),l=n0(l,i),c=n0(c,i),oo(s)){var u=Ws(Ln(i));a=r0(a,r,u,-1),l=r0(l,r,u,-1),c=Hoe(c=r0(c,r,u,-1),o,function(d){return zoe(d,u,-1)})}return Ze(Ze({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function n0(t,n){var e={},i=ln(n);return Object.keys(t).forEach(function(r){Iv(r,i)||(e[r]=t[r])}),e}function LO(t,n){var e={};return Object.keys(t).forEach(function(i){Iv(i,n)&&(e[i]=t[i])}),e}function RO(t,n){return Ze(Ze({},t),n)}function $O(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function r0(t,n,e,i){for(var r=n.length,o=ln(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:ln(u),value:t[c]}))}}if(0===s.length)return t;var h=Ze({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function BO(t,n){var e={};return Object.keys(n).filter(function(i){return Xc(t,Ju(t,i))}).forEach(function(i){e[i]=n[i]}),e}function Hoe(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!or(i,r)){var o=Ze({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function zoe(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function lf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof Nv(o,i)}function Vb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function VO(t,n){var e=[];return function i(r,o){e.push(o);var s=ln(o);if(r&&!0===n.expandedMap[s]){if(oo(r)){var a=Rk(n,s);jO(r,a,function(l){i(r[l],o.concat(String(l)))})}Mo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function Uoe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Gu.value});var a=ln(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Gu.inside}),oo(o)){var l=Rk(n,a);jO(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Gu.after})})}Mo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Gu.key}),r(o[c],u),e&&i.push({path:u,type:Gu.after})})}}(t,[]),i}function HO(t,n,e){var i=VO(t,n),r=i.map(ln).indexOf(ln(e));return-1!==r&&r0;){if(!0===t.pointersMap[ln(i)])return!0;i.pop()}return xs(t)?e===ro.key&&or(t.focusPath,n):!(!Yi(t)||!(e===ro.value&&or(t.focusPath,n)||l0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===ro.key||e===ro.value||e===ro.multi)))}function qoe(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Nr(r)?r.focusPath:sa(r.paths),s=function LGe(t,n,e){var i=VO(t,n),r=i.map(ln),o=ln(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return Zu(r)||Xs(r)?Os(t,r.anchorPath,r.anchorPath):Os(t,r.anchorPath,l);if(xs(r)){var u=Sn(t,Xi(s));return Array.isArray(u)||Hi(s)?mr(s,!1):iu(s,!1)}return Yi(r)?mr(s,!1):Zu(r)||Xs(r)?Os(t,o,o):Os(t,a,l)}function Xoe(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=Uoe(t,n,e),o=r.findIndex(function(s){return or(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Sn(t,Xi(r)))?mr(r,!1):iu(r,!1)}function a0(t,n){if(1===n.length){var e=sa(n);if("replace"===e.op||"move"===e.op)return mr(Ju(t,e.path),!1)}if(!Hi(n)&&n.every(function(s){return"move"===s.op})){var i=sa(n),r=n.slice(1);if((SN(i)||Mv(i))&&i.from!==i.path&&r.every(function(s){return(SN(s)||Mv(s))&&s.from===s.path}))return iu(Ju(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return Ju(t,s.path)});if(!Hi(o))return{type:ro.multi,paths:o,anchorPath:sa(o),focusPath:Ln(o),pointersMap:Yoe(o)}}function Yoe(t){var n={};return t.forEach(function(e){n[ln(e)]=!0}),n}function Bk(t){return ql({},ln(t),!0)}function zb(t){return void 0!==t&&(xs(t)||Yi(t)||Nr(t)&&1===t.paths.length)}function Joe(t,n){return zb(n)&&Ho(Sn(t,n.focusPath))?n.focusPath:Xi(n.focusPath)}function l0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return Ze(Ze({},r),{},{active:o===n})});return Ze(Ze({},t),{},{items:i,itemsMap:qv(i,function(r){return ln(r.path)}),activeItem:e,activeIndex:n})}function WGe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return Ze(Ze({},r),{},{active:o===n})});return Ze(Ze({},t),{},{items:i,itemsMap:qv(i,function(r){return ln(r.path)}),activeItem:e,activeIndex:n})}function ase(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Mo(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else lse(String(c),l,r,Wu.value,o)}(t.toLowerCase(),n),i}function lse(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function WO(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function cse(t,n,e){var i=t;return Nb(e,function(r){i=WO(i,n,r.start,r.end)}),i}function qGe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Wu.key){var c=Xi(s),u=Sn(t,c),d=Ln(s),h=Gb(c,Object.keys(u),d,WO(d,e,a,l));return{newSelection:a0(t,h),operations:h}}if(o===Wu.value){var f=Sn(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(ln(s)));var p="string"==typeof f?f:String(f),m=ln(s),g=lf(f,n.enforceStringMap,m,r),v=WO(p,e,a,l),y=[{op:"replace",path:ln(s),value:g?v:Nv(v,r)}];return{newSelection:a0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function XGe(t,n,e,i,r){for(var o=ase(e,t,1/0),s=[],a=0;an.floating[o]&&(s=Xk(s)),{main:s,cross:Xk(s)}}var OWe={start:"end",end:"start"};function e4(t){return t.replace(/start|end/g,function(n){return OWe[n]})}var jWe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,he,E,N,F,Y,V,oe;return vn().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,_=void 0===(y=u.fallbackAxisSideDirection)?"none":y,S=void 0===(C=u.flipAlignment)||C,M=XK(u,p7e),$=Bm(r),G=Bm(a)===a,fe.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return R=fe.sent,z=m||(G||!S?[Xk(a)]:(void 0,xe=Xk(Ne=a),[e4(Ne),xe,e4(xe)])),m||"none"===_||z.push.apply(z,si(function(Ne,xe,tt,ze){var ot=Wk(Ne),B=function(ne,ie,Ie){var Ye=["left","right"],Le=["right","left"];switch(ne){case"top":case"bottom":return Ie?ie?Le:Ye:ie?Ye:Le;case"left":case"right":return ie?["top","bottom"]:["bottom","top"];default:return[]}}(Bm(Ne),"start"===tt,ze);return ot&&(B=B.map(function(ne){return ne+"-"+ot}),xe&&(B=B.concat(B.map(e4)))),B}(a,S,_,R))),U=[a].concat(si(z)),fe.next=29,Sse(n,M);case 29:if(q=fe.sent,re=[],L=(null==(i=o.flip)?void 0:i.overflows)||[],h&&re.push(q[$]),p&&(X=FWe(r,s,R),re.push(q[X.main],q[X.cross])),L=[].concat(si(L),[{placement:r,overflows:re}]),re.every(function(Ne){return Ne<=0})){fe.next=48;break}if(N=((null==(he=o.flip)?void 0:he.index)||0)+1,!(F=U[N])){fe.next=37;break}return fe.abrupt("return",{data:{index:N,overflows:L},reset:{placement:F}});case 37:if(Y=null==(E=L.filter(function(Ne){return Ne.overflows[0]<=0}).sort(function(Ne,xe){return Ne.overflows[1]-xe.overflows[1]})[0])?void 0:E.placement,Y){fe.next=46;break}fe.t0=v,fe.next="bestFit"===fe.t0?42:"initialPlacement"===fe.t0?45:46;break;case 42:return oe=null==(V=L.map(function(Ne){return[Ne.placement,Ne.overflows.filter(function(xe){return xe>0}).reduce(function(xe,tt){return xe+tt},0)]}).sort(function(Ne,xe){return Ne[1]-xe[1]})[0])?void 0:V[0],oe&&(Y=oe),fe.abrupt("break",46);case 45:Y=a;case 46:if(r===Y){fe.next=48;break}return fe.abrupt("return",{reset:{placement:Y}});case 48:return fe.abrupt("return",{});case 49:case"end":return fe.stop()}var Ne,xe},e)}))()}}},PWe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o;return vn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=Zi(vn().mark(function l(c,u){var d,h,f,p,m,g,v,y,_,C,S,M,$,G;return vn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return d=c.placement,h=c.platform,f=c.elements,R.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=R.sent,m=Bm(d),g=Wk(d),v="x"===qk(d),y=["left","top"].includes(m)?-1:1,_=p&&v?-1:1,C="function"==typeof u?u(c):u,S="number"==typeof C?{mainAxis:C,crossAxis:0,alignmentAxis:null}:Ze({mainAxis:0,crossAxis:0,alignmentAxis:null},C),M=S.mainAxis,$=S.crossAxis,G=S.alignmentAxis,R.abrupt("return",(g&&"number"==typeof G&&($="end"===g?-1*G:G),v?{x:$*_,y:M*y}:{x:M*y,y:$*_}));case 14:case"end":return R.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function LWe(t){return"x"===t?"y":"x"}var RWe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,$;return vn().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(R){return{x:R.x,y:R.y}}}:h,p=XK(a,m7e),m={x:r,y:o},G.next=14,Sse(n,p);case 14:return g=G.sent,v=qk(Bm(s)),y=LWe(v),_=m[v],C=m[y],c&&(_=Dse(_+g["y"===v?"top":"left"],_,_-g["y"===v?"bottom":"right"])),d&&(C=Dse(C+g["y"===y?"top":"left"],C,C-g["y"===y?"bottom":"right"])),$=f.fn(Ze(Ze({},n),{},(ql(i={},v,_),ql(i,y,C),i))),G.abrupt("return",Ze(Ze({},$),{},{data:{x:$.x-r,y:$.y-o}}));case 22:case"end":return G.stop()}},e)}))()}}};function kc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function lh(t){return kc(t).getComputedStyle(t)}var t4,Tse=Math.min,qb=Math.max,Yk=Math.round;function Ese(t){var n=lh(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=Yk(e)!==r||Yk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function ap(t){return Mse(t)?(t.nodeName||"").toLowerCase():""}function Ase(){if(t4)return t4;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t4=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function ch(t){return t instanceof kc(t).HTMLElement}function td(t){return t instanceof kc(t).Element}function Mse(t){return t instanceof kc(t).Node}function Ise(t){return typeof ShadowRoot<"u"&&(t instanceof kc(t).ShadowRoot||t instanceof ShadowRoot)}function Jk(t){var n=lh(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function $We(t){return["table","td","th"].includes(ap(t))}function n4(t){var n=/firefox/i.test(Ase()),e=lh(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function i4(){return/^((?!chrome|android).)*safari/i.test(Ase())}function r4(t){return["html","body","#document"].includes(ap(t))}function Nse(t){return td(t)?t:t.contextElement}var Fse={x:1,y:1};function m0(t){var n=Nse(t);if(!ch(n))return Fse;var e=n.getBoundingClientRect(),i=Ese(n),r=i.width,o=i.height,s=i.fallback,a=(s?Yk(e.width):e.width)/r,l=(s?Yk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function Vm(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Nse(t),l=Fse;n&&(i?td(i)&&(l=m0(i)):l=m0(t));var c=a?kc(a):window,u=i4()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=kc(a),g=i&&td(i)?kc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=m0(v),_=v.getBoundingClientRect(),C=getComputedStyle(v);_.x+=(v.clientLeft+parseFloat(C.paddingLeft))*y.x,_.y+=(v.clientTop+parseFloat(C.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=_.x,h+=_.y,v=kc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function lp(t){return((Mse(t)?t.ownerDocument:t.document)||window.document).documentElement}function Kk(t){return td(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ose(t){return Vm(lp(t)).left+Kk(t).scrollLeft}function Xb(t){if("html"===ap(t))return t;var n=t.assignedSlot||t.parentNode||Ise(t)&&t.host||lp(t);return Ise(n)?n.host:n}function jse(t){var n=Xb(t);return r4(n)?n.ownerDocument.body:ch(n)&&Jk(n)?n:jse(n)}function Yb(t,n){var e;void 0===n&&(n=[]);var i=jse(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=kc(i);return r?n.concat(o,o.visualViewport||[],Jk(i)?i:[]):n.concat(i,Yb(i))}function Pse(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=kc(l),d=lp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=i4();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=lp(t),c=lp(l),u=Kk(l),h=qb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=qb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Ose(l),m=-u.scrollTop,"rtl"===lh(d).direction&&(p+=qb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(td(n))i=function(l,c){var u=Vm(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=ch(l)?m0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=Ze({},n);if(i4()){var o,s,a=kc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return QO(i)}function Lse(t,n){return ch(t)&&"fixed"!==lh(t).position?n?n(t):t.offsetParent:null}function Rse(t,n){for(var e=kc(t),i=Lse(t,n);i&&$We(i)&&"static"===lh(i).position;)i=Lse(i,n);return i&&("html"===ap(i)||"body"===ap(i)&&"static"===lh(i).position&&!n4(i))?e:i||function(r){for(var o=Xb(r);ch(o)&&!r4(o);){if(n4(o))return o;o=Xb(o)}return null}(t)||e}function BWe(t,n,e){var i=ch(n),r=lp(n),o=Vm(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==ap(n)||Jk(r))&&(s=Kk(n)),ch(n)){var l=Vm(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Ose(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var VWe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=Yb(c).filter(function(y){return td(y)&&"body"!==ap(y)}),f=null,p="fixed"===lh(c).position,m=p?Xb(c):c;td(m)&&!r4(m);){var g=lh(m),v=n4(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=Xb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(si(o),[i]),l=s.reduce(function(c,u){var d=Pse(n,u,r);return c.top=qb(d.top,c.top),c.right=Tse(d.right,c.right),c.bottom=Tse(d.bottom,c.bottom),c.left=qb(d.left,c.left),c},Pse(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=ch(e),o=lp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==ap(e)||Jk(o))&&(s=Kk(e)),ch(e))){var c=Vm(e);a=m0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:td,getDimensions:function(t){return ch(t)?Ese(t):t.getBoundingClientRect()},getOffsetParent:Rse,getDocumentElement:lp,getScale:m0,getElementRects:function(t){var n=this;return Zi(vn().mark(function e(){var i,r,o,s,a;return vn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Rse,a=n.getDimensions,l.t0=BWe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=Ze,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===lh(t).direction}};function UWe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==bn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function GWe(t){return o4.apply(this,arguments)}function o4(){return o4=Zi(vn().mark(function t(n){var e,i,r,o,s;return vn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==bn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),o4.apply(this,arguments)}function WWe(t){pi(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function qWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("path"),"fill","currentColor"),P(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),P(n,"width","100%"),P(n,"height","100%"),P(n,"viewBox","0 0 20 20"),P(n,"focusable","false"),P(n,"aria-hidden","true"),P(n,"class","svelte-qbd276")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var XWe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,qWe,ys,{},WWe),r}return Se(e)}();function YWe(t){pi(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function JWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("path"),"fill","currentColor"),P(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),P(n,"width","100%"),P(n,"height","100%"),P(n,"viewBox","-2 -2 50 50"),P(n,"focusable","false"),P(n,"aria-hidden","true"),P(n,"role","presentation"),P(n,"class","svelte-whdbu1")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var Qk=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,JWe,ys,{},YWe),r}return Se(e)}();function KWe(t){pi(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function QWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("circle"),"class","circle_path svelte-1p3nqvd"),P(e,"cx","50"),P(e,"cy","50"),P(e,"r","20"),P(e,"fill","none"),P(e,"stroke","currentColor"),P(e,"stroke-width","5"),P(e,"stroke-miterlimit","10"),P(n,"class","loading svelte-1p3nqvd"),P(n,"viewBox","25 25 50 50")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var ZWe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,QWe,ys,{},KWe),r}return Se(e)}();function eqe(t){pi(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var tqe=function(t){return{value:8&t[0]}},$se=function(t){return{value:t[3]}},nqe=function(t){return{listOpen:64&t[0]}},Bse=function(t){return{listOpen:t[6]}},iqe=function(t){return{}},Vse=function(t){return{}},rqe=function(t){return{}},Hse=function(t){return{}},oqe=function(t){return{selection:8&t[0]}},zse=function(t){return{selection:t[3]}};function Use(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var sqe=function(t){return{}},Gse=function(t){return{}},aqe=function(t){return{selection:8&t[0]}},Wse=function(t){return{selection:t[127],index:t[129]}},lqe=function(t){return{}},qse=function(t){return{}},cqe=function(t){return{}},Xse=function(t){return{}};function Yse(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var uqe=function(t){return{item:16777216&t[0]}},Jse=function(t){return{item:t[127],index:t[129]}},dqe=function(t){return{filteredItems:16777216&t[0]}},Kse=function(t){return{filteredItems:t[24]}};function Qse(t){var n,e,i,r,o,s,a=[pqe,fqe,hqe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=be("div"),i&&i.c(),P(n,"class","svelte-select-list svelte-tyxmms"),Mt(n,"prefloat",t[28])},m:function(u,d){Pe(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[_a(t[49].call(null,n)),Ft(n,"scroll",t[41]),Ft(n,"pointerdown",Jh(t[50])),Ft(n,"pointerup",Kh(Jh(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&($t(),ce(l[h],1,1,function(){l[h]=null}),Bt()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),Q(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&Mt(n,"prefloat",u[28])},i:function(u){r||(Q(i),r=!0)},o:function(u){ce(i),r=!1},d:function(u){u&&je(n),~e&&l[e].d(),t[91](null),o=!1,ho(s)}}}function hqe(t){var n,e,i=t[83].empty,r=Ms(i,t,t[82],Xse),o=r||{c:function(){(e=be("div")).textContent="No options",P(e,"class","empty svelte-tyxmms")},m:function(s,a){Pe(s,e,a)},p:Lt,d:function(s){s&&je(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Ns(r,i,s,s[82],n?Is(i,s[82],a,cqe):Fs(s[82]),Xse)},i:function(s){n||(Q(o,s),n=!0)},o:function(s){ce(o,s),n=!1},d:function(s){o&&o.d(s)}}}function fqe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(Qe,Jn)}:Dn,hi=n.debounceWait,di=void 0===hi?300:hi,kr=n.hideEmptyState,Qr=void 0!==kr&&kr,gi=n.inputAttributes,yr=void 0===gi?{}:gi,Ee=n.listAutoWidth,St=void 0===Ee||Ee,Ht=n.showChevron,sn=void 0!==Ht&&Ht,hn=n.listOffset,ri=void 0===hn?5:hn,Oi=n.hoverItemIndex,Bn=void 0===Oi?0:Oi,ei=n.floatingConfig,Yn=void 0===ei?{}:ei,br=n.class,Ar=void 0===br?"":br;function Po(Qe){var Jn=[],er={};Qe.forEach(function(wd){var Br=$r(wd);Jn.includes(Br)||(Jn.push(Br),er[Br]=[],Br&&er[Br].push(Object.assign(Js(Br,wd),{id:Br,groupHeader:!0,selectable:Wr}))),er[Br].push(Object.assign({groupItem:!!Br},wd))});var Qs=[];return Or(Jn).forEach(function(wd){er[wd]&&Qs.push.apply(Qs,si(er[wd]))}),Qs}function ca(){var Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Jn=arguments.length>1?arguments[1]:void 0;e(7,Bn=Qe<0?0:Qe),!Jn&&$r&&c[Bn]&&!c[Bn].selectable&&wo(1)}function md(){var Qe=!0;if(B){var Jn=[],er=[];B.forEach(function(Qs){Jn.includes(Qs[Fn])?Qe=!1:(Jn.push(Qs[Fn]),er.push(Qs))}),Qe||e(3,B=er)}return Qe}function hu(Qe){var Jn=Qe?Qe[Fn]:B[Fn];return _n.find(function(er){return er[Fn]===Jn})}function ua(Qe){return Rl.apply(this,arguments)}function Rl(){return(Rl=Zi(vn().mark(function Qe(Jn){var er;return vn().wrap(function(Qs){for(;;)switch(Qs.prev=Qs.next){case 0:er=B[Jn],e(3,B=1===B.length?void 0:B.filter(function(wd){return wd!==er})),$("clear",er);case 3:case"end":return Qs.stop()}},Qe)}))).apply(this,arguments)}function gd(Qe){var Jn;ze&&F===(null===(Jn=document)||void 0===Jn?void 0:Jn.activeElement)||(Qe&&$("focus",Qe),F.focus(),e(2,ze=!0))}function Ps(Qe){return vd.apply(this,arguments)}function vd(){return(vd=Zi(vn().mark(function Qe(Jn){return vn().wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(!fi&&!z_){er.next=2;break}return er.abrupt("return");case 2:(Ue||ze)&&($("blur",Jn),yd(),e(2,ze=!1),e(26,f=void 0),F.blur());case 3:case"end":return er.stop()}},Qe)}))).apply(this,arguments)}function yd(){e(4,ie=""),e(6,Ue=!1)}y=Zi(vn().mark(function Qe(){return vn().wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:e(78,p=B),e(79,m=ie),e(80,g=V);case 3:case"end":return Jn.stop()}},Qe)})),Tv().$$.before_update.push(y),Wc(function(){Ue&&e(2,ze=!0),ze&&F&&F.focus()});var an,eT=n.ariaValues,Ce=void 0===eT?function(Qe){return"Option ".concat(Qe,", selected.")}:eT,lt=n.ariaListOpen,It=void 0===lt?function(Qe,Jn){return"You are currently focused on option ".concat(Qe,". There are ").concat(Jn," results available.")}:lt,Jt=n.ariaFocused,nn=void 0===Jt?function(){return"Select is focused, type to refine list, press down to open the menu."}:Jt,Vn=null;function li(){clearTimeout(an),an=setTimeout(function(){fi=!1},100)}Hu(function(){var Qe;null===(Qe=Vn)||void 0===Qe||Qe.remove()});var fi=!1;function Lo(Qe){Qe&&!1!==Qe.selectable&&function(Jn){if(Jn){e(4,ie="");var er=Object.assign({},Jn);if(er.groupHeader&&!er.selectable)return;e(3,B=V?B?B.concat([er]):[er]:e(3,B=er)),setTimeout(function(){qr&&yd(),e(26,f=void 0),$("change",B),$("select",Jn)})}}(Qe)}function Ls(Qe){fi||e(7,Bn=Qe)}function Zo(Qe){var Qs,Jn=Qe.item,er=Qe.i;if(!1!==Jn?.selectable){if(B&&!V&&B[Fn]===Jn[Fn])return yd();((Qs=Jn).groupHeader&&Qs.selectable||Qs.selectable||!Qs.hasOwnProperty("selectable"))&&(e(7,Bn=er),Lo(Jn)),z_=!1}}function wo(Qe){if(0===c.filter(function(er){return!Object.hasOwn(er,"selectable")||!0===er.selectable}).length)return e(7,Bn=0);e(7,Qe>0&&Bn===c.length-1?Bn=0:Qe<0&&0===Bn?Bn=c.length-1:Bn+=Qe);var Jn=c[Bn];Jn&&!1===Jn.selectable&&(1!==Qe&&-1!==Qe||wo(Qe))}var $l=bd,wh=bd;function bd(Qe){return{update:function(Jn){Jn.scroll&&(li(),Qe.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Mr={strategy:"absolute",placement:"bottom-start",middleware:[PWe(ri),jWe(),RWe()],autoUpdate:!1},tc=Un(function zWe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return Ze(Ze(Ze({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=Ze({platform:VWe},d),p=Ze(Ze({},f.platform),{},{_c:h}),EWe(c,u,Ze(Ze({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){Hu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function HWe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(si(td(t)?Yb(t):t.contextElement?Yb(t.contextElement):[]),si(Yb(n))):[];p.forEach(function(_){f&&_.addEventListener("scroll",e,{passive:!0}),l&&_.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),td(t)&&!h&&g.observe(t),td(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?Vm(t):null;return h&&function _(){var C=Vm(t);!y||C.x===y.x&&C.y===y.y&&C.width===y.width&&C.height===y.height||e(),y=C,m=requestAnimationFrame(_)}(),e(),function(){var _;p.forEach(function(C){f&&C.removeEventListener("scroll",e),l&&C.removeEventListener("resize",e)}),null==(_=g)||_.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Mr),3),fu=tc[0],_d=tc[1],Ch=tc[2],xd=!0,z_=!1;return t.$$set=function(Qe){"justValue"in Qe&&e(53,R=Qe.justValue),"filter"in Qe&&e(54,U=Qe.filter),"getItems"in Qe&&e(55,re=Qe.getItems),"id"in Qe&&e(56,X=Qe.id),"name"in Qe&&e(8,H=Qe.name),"container"in Qe&&e(0,E=Qe.container),"input"in Qe&&e(1,F=Qe.input),"multiple"in Qe&&e(9,V=Qe.multiple),"multiFullItemClearable"in Qe&&e(10,fe=Qe.multiFullItemClearable),"disabled"in Qe&&e(11,xe=Qe.disabled),"focused"in Qe&&e(2,ze=Qe.focused),"value"in Qe&&e(3,B=Qe.value),"filterText"in Qe&&e(4,ie=Qe.filterText),"placeholder"in Qe&&e(57,Ye=Qe.placeholder),"placeholderAlwaysShow"in Qe&&e(58,_t=Qe.placeholderAlwaysShow),"items"in Qe&&e(52,_n=Qe.items),"label"in Qe&&e(12,on=Qe.label),"itemFilter"in Qe&&e(59,pn=Qe.itemFilter),"groupBy"in Qe&&e(60,$r=Qe.groupBy),"groupFilter"in Qe&&e(61,Or=Qe.groupFilter),"groupHeaderSelectable"in Qe&&e(62,Wr=Qe.groupHeaderSelectable),"itemId"in Qe&&e(13,Fn=Qe.itemId),"loadOptions"in Qe&&e(63,ui=Qe.loadOptions),"containerStyles"in Qe&&e(14,Cr=Qe.containerStyles),"hasError"in Qe&&e(15,Qo=Qe.hasError),"filterSelectedItems"in Qe&&e(64,On=Qe.filterSelectedItems),"required"in Qe&&e(16,bi=Qe.required),"closeListOnChange"in Qe&&e(65,qr=Qe.closeListOnChange),"createGroupHeaderItem"in Qe&&e(66,Js=Qe.createGroupHeaderItem),"searchable"in Qe&&e(17,Ks=Qe.searchable),"inputStyles"in Qe&&e(18,Xa=Qe.inputStyles),"clearable"in Qe&&e(68,we=Qe.clearable),"loading"in Qe&&e(5,qe=Qe.loading),"listOpen"in Qe&&e(6,Ue=Qe.listOpen),"debounce"in Qe&&e(69,ii=Qe.debounce),"debounceWait"in Qe&&e(70,di=Qe.debounceWait),"hideEmptyState"in Qe&&e(19,Qr=Qe.hideEmptyState),"inputAttributes"in Qe&&e(71,yr=Qe.inputAttributes),"listAutoWidth"in Qe&&e(72,St=Qe.listAutoWidth),"showChevron"in Qe&&e(20,sn=Qe.showChevron),"listOffset"in Qe&&e(73,ri=Qe.listOffset),"hoverItemIndex"in Qe&&e(7,Bn=Qe.hoverItemIndex),"floatingConfig"in Qe&&e(74,Yn=Qe.floatingConfig),"class"in Qe&&e(21,Ar=Qe.class),"ariaValues"in Qe&&e(75,Ce=Qe.ariaValues),"ariaListOpen"in Qe&&e(76,It=Qe.ariaListOpen),"ariaFocused"in Qe&&e(77,nn=Qe.ariaFocused),"$$scope"in Qe&&e(82,S=Qe.$$scope)},t.$$.update=function(){var Qe,Jn,er,Qs,wd,Br;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&B&&function(){if("string"==typeof B){var Br,Zs=(_n||[]).find(function(pu){return pu[Fn]===B});e(3,B=Zs||(ql(Br={},Fn,B),ql(Br,"label",B),Br))}else V&&Array.isArray(B)&&B.length>0&&e(3,B=B.map(function(pu){return"string"==typeof pu?{value:pu,label:pu}:pu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!yr&&Ks||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},yr)),X&&e(27,v.id=X,v),Ks||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&B&&(Array.isArray(B)?e(3,B=si(B)):e(3,B=[B])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&B&&e(3,B=null),520&t.$$.dirty[0]&&V&&B&&B.length>1&&md(),8&t.$$.dirty[0]&&B&&(V?JSON.stringify(B)!==JSON.stringify(p)&&md()&&$("input",B):p&&JSON.stringify(B[Fn])===JSON.stringify(p[Fn])||$("input",B)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!B&&V&&p&&$("input",B),6&t.$$.dirty[0]&&!ze&&F&&yd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&ie!==m&&(ui||0!==ie.length)&&(ui?ii(Zi(vn().mark(function Br(){var Zs;return vn().wrap(function(pu){for(;;)switch(pu.prev=pu.next){case 0:return e(5,qe=!0),pu.next=3,re({dispatch:$,loadOptions:ui,convertStringItemsToObjects:lae,filterText:ie});case 3:(Zs=pu.sent)?(e(5,qe=Zs.loading),e(6,Ue=Ue?Zs.listOpen:ie.length>0),e(2,ze=Ue&&Zs.focused),e(52,_n=$r?Po(Zs.filteredItems):Zs.filteredItems)):(e(5,qe=!1),e(2,ze=!0),e(6,Ue=!0));case 5:case"end":return pu.stop()}},Br)})),di):(e(6,Ue=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=U({loadOptions:ui,filterText:ie,items:_n,multiple:V,value:B,itemId:Fn,groupBy:$r,label:on,filterSelectedItems:On,itemFilter:pn,convertStringItemsToObjects:lae,filterGroupedItems:Po})),16777800&t.$$.dirty[0]&&!V&&Ue&&B&&c&&(Qe=c.findIndex(function(Br){return Br[Fn]===B[Fn]}),ca(Qe,!0)),576&t.$$.dirty[0]&&Ue&&V&&e(7,Bn=0),16&t.$$.dirty[0]&&ie&&e(7,Bn=0),128&t.$$.dirty[0]&&$("hoverItem",Bn),520&t.$$.dirty[0]&&e(25,i=V?B&&B.length>0:B),33554448&t.$$.dirty[0]&&e(35,r=i&&ie.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&we&&!xe&&!qe),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=_t&&V||V&&0===(null===(Jn=B)||void 0===Jn?void 0:Jn.length)?Ye:B?"":Ye),520&t.$$.dirty[0]&&e(32,a=B?(er=V&&B.length>0?B.map(function(Br){return Br[on]}).join(", "):B[on],Ce(er)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var Br=c[Bn];return Ue&&Br?It(Br[on],c?c.length:0):nn()}()),2097152&t.$$.dirty[1]&&(Br=_n)&&0!==Br.length&&!Br.some(function(Zs){return"object"!==bn(Zs)})&&B&&(V?!B.some(function(Zs){return!Zs||!Zs[Fn]}):B[Fn])&&(Array.isArray(B)?e(3,B=B.map(function(Zs){return hu(Zs)||Zs})):e(3,B=hu()||B)),8712&t.$$.dirty[0]&&e(53,R=V?B?B.map(function(Br){return Br[Fn]}):null:B&&B[Fn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||B||$("input",B)),16777800&t.$$.dirty[0]&&Ue&&c&&!V&&!B&&ca(),16777216&t.$$.dirty[0]&&function(Br){Ue&&$("filter",Br)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&E&&void 0===(null===(Qs=Yn)||void 0===Qs?void 0:Qs.autoUpdate)&&e(81,Mr.autoUpdate=!0,Mr),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&E&&Yn&&Ch(Object.assign(Mr,Yn)),8388608&t.$$.dirty[0]&&e(30,u=!!Vn),8388672&t.$$.dirty[0]&&function(Br,Zs){if(!Br||!Zs)return e(28,xd=!0);setTimeout(function(){e(28,xd=!1)},0)}(Vn,Ue),8388673&t.$$.dirty[0]&&Ue&&E&&Vn&&(wd=E.getBoundingClientRect().width,e(23,Vn.style.width=St?wd+"px":"auto",Vn)),128&t.$$.dirty[0]&&e(29,d=Bn),70&t.$$.dirty[0]&&F&&Ue&&!ze&&gd()},[E,F,ze,B,ie,qe,Ue,Bn,H,V,fe,xe,on,Fn,Cr,Qo,bi,Ks,Xa,Qr,sn,Ar,function(){$("clear",B),e(3,B=void 0),yd(),gd()},Vn,c,i,f,v,xd,d,u,l,a,s,o,r,ua,function(Qe){if(ze)switch(Qe.stopPropagation(),Qe.key){case"Escape":Qe.preventDefault(),yd();break;case"Enter":if(Qe.preventDefault(),Ue){if(0===c.length)break;if(B&&!V&&B[Fn]===c[Bn][Fn]){yd();break}Lo(c[Bn])}break;case"ArrowDown":Qe.preventDefault(),Ue?wo(1):(e(6,Ue=!0),e(26,f=void 0));break;case"ArrowUp":Qe.preventDefault(),Ue?wo(-1):(e(6,Ue=!0),e(26,f=void 0));break;case"Tab":if(Ue&&ze){if(0===c.length||B&&B[Fn]===c[Bn][Fn])return yd();Qe.preventDefault(),Lo(c[Bn]),yd()}break;case"Backspace":if(!V||ie.length>0)return;if(V&&B&&B.length>0){if(ua(void 0!==f?f:B.length-1),0===f||void 0===f)break;e(26,f=B.length>f?f-1:void 0)}break;case"ArrowLeft":if(!B||!V||ie.length>0)return;void 0===f?e(26,f=B.length-1):B.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!B||!V||ie.length>0||void 0===f)return;f===B.length-1?e(26,f=void 0):f",">="].map(function(X){return{value:X,label:X}}),R=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],z=null!==(i=M)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?Lb(M.filter.path):null,U=null!==(o=M)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?G.find(function(X){var Z;return X.value===(null===(Z=M.filter)||void 0===Z?void 0:Z.relation)}):null,q=(null===(a=M)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",re=null!==(c=M)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?Lb(M.sort.path):null,L=null!==(d=M)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?R.find(function(X){var Z;return X.value===(null===(Z=M.sort)||void 0===Z?void 0:Z.direction)}):null;return t.$$set=function(X){"json"in X&&e(11,C=X.json),"queryOptions"in X&&e(10,M=X.queryOptions),"onChange"in X&&e(12,$=X.onChange)},t.$$.update=function(){var X,Z,H,he,E,N,F,Y,V,oe,fe,Ne,xe,tt,ze,ot,B,ne,ie,Ie,Ye;2048&t.$$.dirty&&e(15,f=Array.isArray(C)),34816&t.$$.dirty&&e(14,p=f?CO(C):[]),34816&t.$$.dirty&&e(13,m=f?CO(C,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(Lb)),8192&t.$$.dirty&&e(6,v=m?m.map(Lb):[]),1088&t.$$.dirty&&e(5,y=null!==(X=M)&&void 0!==X&&null!==(Z=X.projection)&&void 0!==Z&&Z.paths&&v?M.projection.paths.map(function(ie){return v.find(function(Ie){return or(Ie.value,ie)})}).filter(function(ie){return!!ie}):null),1&t.$$.dirty&&(he=(null===(H=z)||void 0===H?void 0:H.value)||null,or(null===(E=M)||void 0===E||null===(N=E.filter)||void 0===N?void 0:N.path,he)||(_("changeFilterPath",he),e(10,M=qu(M,["filter","path"],he,!0)),$(M))),2&t.$$.dirty&&(Y=(null===(F=U)||void 0===F?void 0:F.value)||null,or(null===(V=M)||void 0===V||null===(oe=V.filter)||void 0===oe?void 0:oe.relation,Y)||(_("changeFilterRelation",Y),e(10,M=qu(M,["filter","relation"],Y,!0)),$(M))),4&t.$$.dirty&&(or(null===(Ne=M)||void 0===Ne||null===(xe=Ne.filter)||void 0===xe?void 0:xe.value,fe=q||null)||(_("changeFilterValue",fe),e(10,M=qu(M,["filter","value"],fe,!0)),$(M))),8&t.$$.dirty&&(ie=(null===(tt=re)||void 0===tt?void 0:tt.value)||null,or(null===(Ie=M)||void 0===Ie||null===(Ye=Ie.sort)||void 0===Ye?void 0:Ye.path,ie)||(_("changeSortPath",ie),e(10,M=qu(M,["sort","path"],ie,!0)),$(M))),16&t.$$.dirty&&(ot=(null===(ze=L)||void 0===ze?void 0:ze.value)||null,or(null===(B=M)||void 0===B||null===(ne=B.sort)||void 0===ne?void 0:ne.direction,ot)||(_("changeSortDirection",ot),e(10,M=qu(M,["sort","direction"],ot,!0)),$(M))),32&t.$$.dirty&&function(ie){var Ie,Ye;or(null===(Ie=M)||void 0===Ie||null===(Ye=Ie.projection)||void 0===Ye?void 0:Ye.paths,ie)||(_("changeProjectionPaths",ie),e(10,M=qu(M,["projection","paths"],ie,!0)),$(M))}(y?y.map(function(ie){return ie.value}):null)},[z,U,q,re,L,y,v,g,G,R,M,C,$,m,p,f,function(X){e(0,z=X)},function(X){e(1,U=X)},function(){e(2,q=this.value)},function(X){e(3,re=X)},function(X){e(4,L=X)},function(X){e(5,y=X),e(10,M),e(6,v),e(13,m),e(15,f),e(11,C)}]}var wqe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,xqe,_qe,Ei,{json:11,queryOptions:10,onChange:12},bqe),r}return Se(e)}();function Cqe(t){pi(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function cae(t,n,e){var i=t.slice();return i[5]=n[e],i}function kqe(t){var n,e;return n=new sr({props:{data:Bb}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Sqe(t){var n,e;return n=new sr({props:{data:$b}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function uae(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[Sqe,kqe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=be("button"),i.c(),r=it(),o=tn(d),s=it(),P(n,"type","button"),P(n,"class","jse-query-language svelte-19cxesy"),P(n,"title",a="Select ".concat(t[5].name," as query language")),Mt(n,"selected",t[5].id===t[0])},m:function(g,v){Pe(g,n,v),f[e].m(n,null),de(n,r),de(n,o),de(n,s),l=!0,c||(u=Ft(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):($t(),ce(f[y],1,1,function(){f[y]=null}),Bt(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),Q(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&qn(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&P(n,"title",a),(!l||3&v)&&Mt(n,"selected",t[5].id===t[0])},i:function(g){l||(Q(i),l=!0)},o:function(g){ce(i),l=!1},d:function(g){g&&je(n),f[e].d(),c=!1,u()}}}function Dqe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&dae(t);return s=new sr({props:{data:p0}}),{c:function(){n=be("div"),(e=be("div")).textContent="Transform",i=it(),u&&u.c(),r=it(),o=be("button"),mt(s.$$.fragment),P(e,"class","jse-title svelte-d01h2s"),P(o,"type","button"),P(o,"class","jse-close svelte-d01h2s"),P(n,"class","jse-header svelte-d01h2s")},m:function(d,h){Pe(d,n,h),de(n,e),de(n,i),u&&u.m(n,null),de(n,r),de(n,o),ft(s,o,null),a=!0,l||(c=Ft(o,"click",t[2]),l=!0)},p:function(d,h){var f=Un(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&Q(u,1)):((u=dae(d)).c(),Q(u,1),u.m(n,r)):u&&($t(),ce(u,1,1,function(){u=null}),Bt())},i:function(d){a||(Q(u),Q(s.$$.fragment,d),a=!0)},o:function(d){ce(u),ce(s.$$.fragment,d),a=!1},d:function(d){d&&je(n),u&&u.d(),pt(s),l=!1,c()}}}function Iqe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=xa("simple-modal").close,c=xa("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(Eqe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Vi[h?"unshift":"push"](function(){e(1,i=h)})}]}var Nqe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Iqe,Mqe,Ei,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},Aqe),r}return Se(e)}(),s4=wa("jsoneditor:AutoScrollHandler"),Fqe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},hae=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||Fqe,s=y.a11y||!1,bn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),bn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,bn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},Zk=wa("jsoneditor:History");function fae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){Zk("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){Zk("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,Zk("undo",h),a(),h}},redo:function d(){if(o())return Zk("redo",e[i-=1]),a(),e[i]}}}function g0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var v0=wa("validation");function pae(t,n,e,i){return v0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function Oqe(t,n,e,i){if(v0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Xd.info}]};if(0===t.length)return null;try{var r=g0(function(){return e.parse(t)},function(l){return v0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:g0(function(){return i.parse(t)},function(l){return v0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=g0(function(){return n(o)},function(l){return v0("validate: validated json in ".concat(l," ms"))});return Hi(s)?null:{validationErrors:s}}catch(l){var a=g0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Yd(c)),!0}catch{return!1}}(t,e)},function(c){return v0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:Nk(t,l.message||l.toString()),isRepairable:a}}}var eS=wa("jsoneditor:FocusTracker");function a4(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(eS("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){eS("blur"),l=!1,a()}))}(0,t.onMount)(function(){eS("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){eS("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function jqe(t){pi(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function mae(t,n,e){var i=t.slice();return i[8]=n[e],i}function gae(t){var n,e;return n=new sr({props:{data:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function vae(t){var n,e;return n=new sr({props:{data:t[8].icon}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function yae(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&vae(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=be("button"),d&&d.c(),e=it(),i=tn(u),r=it(),P(n,"type","button"),P(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),P(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){Pe(p,n,m),d&&d.m(n,null),de(n,e),de(n,i),de(n,r),a=!0,l||(c=[Ft(n,"click",h),Ft(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&Q(d,1)):((d=vae(t)).c(),Q(d,1),d.m(n,e)):d&&($t(),ce(d,1,1,function(){d=null}),Bt()),(!a||8&m)&&u!==(u=t[8].text+"")&&qn(i,u),(!a||8&m&&o!==(o=t[8].title))&&P(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(Q(d),a=!0)},o:function(p){ce(d),a=!1},d:function(p){p&&je(n),d&&d.d(),l=!1,ho(c)}}}function Pqe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&gae(t),f=t[3],p=[],m=0;m100&&Cae(t);return{c:function(){n=be("table"),e=be("tbody");for(var u=0;u100?c?c.p(u,d):((c=Cae(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&xae(t);function y(){return t[6](t[7])}return{c:function(){n=be("tr"),e=be("td"),mt(i.$$.fragment),r=it(),o=be("td"),s=tn(m),a=it(),l=be("td"),c=tn(g),u=it(),d=be("td"),v&&v.c(),P(e,"class","jse-validation-error-icon svelte-1oe8e8r"),P(o,"class","svelte-1oe8e8r"),P(l,"class","svelte-1oe8e8r"),P(d,"class","jse-validation-error-action svelte-1oe8e8r"),P(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(_,C){Pe(_,n,C),de(n,e),ft(i,e,null),de(n,r),de(n,o),de(o,s),de(n,a),de(n,l),de(l,c),de(n,u),de(n,d),v&&v.m(d,null),h=!0,f||(p=Ft(n,"click",y),f=!0)},p:function(_,C){t=_,(!h||1&C)&&m!==(m=tu(Kl(t[7].path))+"")&&qn(s,m),(!h||1&C)&&g!==(g=t[7].message+"")&&qn(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,C),1&C&&Q(v,1)):((v=xae(t)).c(),Q(v,1),v.m(d,null)):v&&($t(),ce(v,1,1,function(){v=null}),Bt())},i:function(_){h||(Q(i.$$.fragment,_),Q(v),h=!0)},o:function(_){ce(i.$$.fragment,_),ce(v),h=!1},d:function(_){_&&je(n),pt(i),v&&v.d(),f=!1,p()}}}function Cae(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=be("tr"),e=be("td"),i=it(),r=be("td"),o=it(),s=be("td"),a=tn("(and "),l=tn(h),c=tn(" more errors)"),u=it(),d=be("td"),P(e,"class","svelte-1oe8e8r"),P(r,"class","svelte-1oe8e8r"),P(s,"class","svelte-1oe8e8r"),P(d,"class","svelte-1oe8e8r"),P(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){Pe(f,n,p),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),de(s,a),de(s,l),de(s,c),de(n,u),de(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&qn(l,h)},d:function(f){f&&je(n)}}}function Vqe(t){var n,e,i=!Hi(t[0]),r=i&&_ae(t);return{c:function(){r&&r.c(),n=_r()},m:function(o,s){r&&r.m(o,s),Pe(o,n,s),e=!0},p:function(o,s){var a=Un(s,1)[0];1&a&&(i=!Hi(o[0])),i?r?(r.p(o,a),1&a&&Q(r,1)):((r=_ae(o)).c(),Q(r,1),r.m(n.parentNode,n)):r&&($t(),ce(r,1,1,function(){r=null}),Bt())},i:function(o){e||(Q(r),e=!0)},o:function(o){ce(r),e=!1},d:function(o){r&&r.d(o),o&&je(n)}}}function Hqe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var l4=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Hqe,Vqe,Ei,{validationErrors:0,selectError:1},Rqe),r}return Se(e)}(),zqe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Uqe(t){pi(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function Gqe(t){var n,e,i,r,o,s,a,l,c;return s=new sr({props:{data:p0}}),{c:function(){n=be("div"),e=be("div"),i=tn(t[0]),r=it(),o=be("button"),mt(s.$$.fragment),P(e,"class","jse-title svelte-d01h2s"),P(o,"type","button"),P(o,"class","jse-close svelte-d01h2s"),P(n,"class","jse-header svelte-d01h2s")},m:function(u,d){Pe(u,n,d),de(n,e),de(e,i),de(n,r),de(n,o),ft(s,o,null),a=!0,l||(c=Ft(o,"click",t[3]),l=!0)},p:function(u,d){var h=Un(d,1)[0];(!a||1&h)&&qn(i,u[0])},i:function(u){a||(Q(s.$$.fragment,u),a=!0)},o:function(u){ce(s.$$.fragment,u),a=!1},d:function(u){u&&je(n),pt(s),l=!1,c()}}}function Wqe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=xa("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var c4=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Wqe,Gqe,Ei,{title:0,onClose:1},Uqe),r}return Se(e)}();function qqe(t){pi(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function Xqe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G;return e=new c4({props:{title:"Copying and pasting"}}),{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),(o=be("div")).textContent="These actions are unavailable via the menu. Please use:",s=it(),a=be("div"),l=be("div"),(c=be("div")).textContent="".concat(t[1],"+C"),u=tn("\n for copy"),d=it(),h=be("div"),(f=be("div")).textContent="".concat(t[1],"+X"),p=tn("\n for cut"),m=it(),g=be("div"),(v=be("div")).textContent="".concat(t[1],"+V"),y=tn("\n for paste"),_=it(),C=be("div"),(S=be("button")).textContent="Close",P(c,"class","jse-key svelte-1olothd"),P(l,"class","jse-shortcut"),P(f,"class","jse-key svelte-1olothd"),P(h,"class","jse-shortcut"),P(v,"class","jse-key svelte-1olothd"),P(g,"class","jse-shortcut"),P(a,"class","jse-shortcuts svelte-1olothd"),P(S,"type","button"),P(S,"class","jse-primary svelte-1olothd"),P(C,"class","jse-actions svelte-1olothd"),P(r,"class","jse-modal-contents svelte-1olothd"),P(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(R,z){Pe(R,n,z),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(r,s),de(r,a),de(a,l),de(l,c),de(l,u),de(a,d),de(a,h),de(h,f),de(h,p),de(a,m),de(a,g),de(g,v),de(g,y),de(r,_),de(r,C),de(C,S),M=!0,$||(G=Ft(S,"click",t[0]),$=!0)},p:Lt,i:function(R){M||(Q(e.$$.fragment,R),M=!0)},o:function(R){ce(e.$$.fragment,R),M=!1},d:function(R){R&&je(n),pt(e),$=!1,G()}}}function Yqe(t){return[xa("simple-modal").close,zqe?"\u2318":"Ctrl"]}var kae=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Yqe,Xqe,Ei,{},qqe),r}return Se(e)}();function Sae(t){return!!t&&("space"===t.type||!0===t.space)}function tS(t){return!!t&&("separator"===t.type||!0===t.separator)}function Jb(t){return!!t&&"function"==typeof t.onClick}function u4(t){return!!t&&"dropdown-button"===t.type&&Jb(t.main)&&Array.isArray(t.items)}function Dae(t){return Io(t)&&Io(t.parseError)}function Kqe(t){pi(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var Qqe=function(t){return{}},Tae=function(t){return{}};function Eae(t,n,e){var i=t.slice();return i[3]=n[e],i}var Zqe=function(t){return{}},Aae=function(t){return{}};function eXe(t){var n,e=Fae(t[3])+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=Fae(i[3])+"")&&qn(n,e)},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function tXe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&Mae(t),u=t[3].text&&Iae(t);return{c:function(){n=be("button"),c&&c.c(),e=it(),u&&u.c(),P(n,"type","button"),P(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),P(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){Pe(d,n,h),c&&c.m(n,null),de(n,e),u&&u.m(n,null),s=!0,a||(l=Ft(n,"click",function(){ba(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&Q(c,1)):((c=Mae(t)).c(),Q(c,1),c.m(n,e)):c&&($t(),ce(c,1,1,function(){c=null}),Bt()),t[3].text?u?u.p(t,h):((u=Iae(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&P(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&P(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(Q(c),s=!0)},o:function(d){ce(c),s=!1},d:function(d){d&&je(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function nXe(t){var n;return{c:function(){P(n=be("div"),"class","jse-space svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function iXe(t){var n;return{c:function(){P(n=be("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function Mae(t){var n,e;return n=new sr({props:{data:t[3].icon}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Iae(t){var n,e=t[3].text+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&qn(n,e)},d:function(i){i&&je(n)}}}function Nae(t){var n,e,i,r,o,s,a,l=[iXe,nXe,tXe,eXe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!tS(d[3])),n?0:(null==e&&(e=!!Sae(d[3])),e?1:(null==i&&(i=!!Jb(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=_r()},m:function(d,h){c[r].m(d,h),Pe(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):($t(),ce(c[f],1,1,function(){c[f]=null}),Bt(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(d){a||(Q(o),a=!0)},o:function(d){ce(o),a=!1},d:function(d){c[r].d(d),d&&je(s)}}}function rXe(t){for(var n,e,i,r,o=t[2].left,s=Ms(o,t,t[1],Aae),a=t[0],l=[],c=0;c0&&_.height>0}),u),c=u(e);function u(y){var _=y.getBoundingClientRect();return{x:_.left+_.width/2,y:_.top+_.height/2,rect:_,element:y}}function d(y,_){var S=y.x-_.x,M=(y.y-_.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(S*S+M*M)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(Xv(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(Xv(g.filter(function(y){return o(y.element)}),h)||Xv(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Vi[a?"unshift":"push"](function(){e(2,i=a)})}]}var Jae=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,GXe,UXe,Ei,{items:0,tip:1},EXe),r}return Se(e)}();function WXe(t){var n,e;return n=new Jae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function qXe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$=n.json,G=n.documentState,R=n.parser,z=n.showTip,U=n.onCloseContextMenu,q=n.onEditKey,re=n.onEditValue,L=n.onToggleEnforceString,X=n.onCut,Z=n.onCopy,H=n.onPaste,he=n.onRemove,E=n.onDuplicate,N=n.onExtract,F=n.onInsertBefore,Y=n.onInsert,V=n.onConvert,oe=n.onInsertAfter,fe=n.onSort,Ne=n.onTransform;function xe(){U(),q()}function tt(){U(),re()}function ze(){U(),L()}function ot(){U(),X(!0)}function B(){U(),X(!1)}function ne(){U(),Z(!0)}function ie(){U(),Z(!1)}function Ie(){U(),H()}function Ye(){U(),he()}function Le(){U(),E()}function _t(){U(),N()}function At(pn){U(),c?V(pn):Y(pn)}function _n(){U(),fe()}function ci(){U(),Ne()}function on(){U(),F()}function Ni(){U(),oe()}return t.$$set=function(pn){"json"in pn&&e(2,$=pn.json),"documentState"in pn&&e(3,G=pn.documentState),"parser"in pn&&e(4,R=pn.parser),"showTip"in pn&&e(0,z=pn.showTip),"onCloseContextMenu"in pn&&e(5,U=pn.onCloseContextMenu),"onEditKey"in pn&&e(6,q=pn.onEditKey),"onEditValue"in pn&&e(7,re=pn.onEditValue),"onToggleEnforceString"in pn&&e(8,L=pn.onToggleEnforceString),"onCut"in pn&&e(9,X=pn.onCut),"onCopy"in pn&&e(10,Z=pn.onCopy),"onPaste"in pn&&e(11,H=pn.onPaste),"onRemove"in pn&&e(12,he=pn.onRemove),"onDuplicate"in pn&&e(13,E=pn.onDuplicate),"onExtract"in pn&&e(14,N=pn.onExtract),"onInsertBefore"in pn&&e(15,F=pn.onInsertBefore),"onInsert"in pn&&e(16,Y=pn.onInsert),"onConvert"in pn&&e(17,V=pn.onConvert),"onInsertAfter"in pn&&e(18,oe=pn.onInsertAfter),"onSort"in pn&&e(19,fe=pn.onSort),"onTransform"in pn&&e(20,Ne=pn.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=G.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==$),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Hi(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Sn($,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Io(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Nr(i)||xs(i)||Yi(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Nr(i)||Yi(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&zb(i)&&!s&&!Array.isArray(Sn($,Xi(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&zb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!Ho(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?Lm(i)&&!Io(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,_=m?Lm(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,C=m?Lm(i)&&Ho(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,S=null!=i&&lf(a,G.enforceStringMap,ln(i.focusPath),R)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,M=[{type:"row",items:[{type:"button",onClick:xe,icon:h0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:tt,icon:h0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:h0,text:l,title:"Edit the value (Double-click on the value)",onClick:tt,disabled:!f},{type:"button",icon:S?$b:Bb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:ze,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:ot,icon:d0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:d0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:ot,disabled:!c},{type:"button",icon:d0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:B,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ne,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ne,disabled:!c},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:ie,disabled:!c}]},{type:"button",onClick:Ie,icon:mse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:Le,icon:wse,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:_t,icon:wWe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:_n,icon:Gk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:ci,icon:Hk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ye,icon:XO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return At("structure")},icon:m?Uk:f0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return At("object")},icon:m?Uk:f0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return At("array")},icon:m?Uk:f0,text:"Array",title:g+" array",disabled:!_},{type:"button",onClick:function(){return At("value")},icon:m?Uk:f0,text:"Value",title:g+" value",disabled:!C}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:on,icon:_We,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Ni,icon:vWe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[z,M,$,G,R,U,q,re,L,X,Z,H,he,E,N,F,Y,V,oe,fe,Ne,s,c,C,g,m,_,y,v,d,u,o,p,S,f,l,h,i,a,r]}var XXe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,qXe,WXe,Ei,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Se(e)}();function YXe(t){pi(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function Kae(t,n,e){var i=t.slice();return i[13]=n[e],i}function Qae(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=be("button"),e=tn("show "),i=tn(c),r=tn("-"),o=tn(u),s=it(),P(n,"type","button"),P(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){Pe(h,n,f),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),a||(l=Ft(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&qn(i,c),16&f&&u!==(u=t[13].end+"")&&qn(o,u)},d:function(h){h&&je(n),a=!1,l()}}}function JXe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&_.end<=M.start)&&$.push(_),M.start>=(G?_.end:v.end)&&$.push(M),a=$))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var ZXe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,QXe,JXe,Ei,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},YXe),r}return Se(e)}();function eYe(t){pi(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function tYe(t){var n,e,i,r,o;return e=new sr({props:{data:ru}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-context-menu-pointer svelte-1yzl4st"),P(n,"title",xN),Mt(n,"jse-selected",t[0])},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=Ft(n,"click",t[1]),r=!0)},p:function(s,a){var l=Un(a,1)[0];(!i||1&l)&&Mt(n,"jse-selected",s[0])},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function nYe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var cp=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,nYe,tYe,Ei,{selected:0,onContextMenu:2},eYe),r}return Se(e)}();function iYe(t){pi(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function rYe(t){var n,e,i,r,o,s,a,l=[aYe,sYe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=be("div"),i.c(),P(n,"data-type","selectable-key"),P(n,"class",r=Ao(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){Pe(d,n,h),c[e].m(n,null),o=!0,s||(a=Ft(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):($t(),ce(c[f],1,1,function(){c[f]=null}),Bt(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),Q(i,1),i.m(n,null)),(!o||1&h&&r!==(r=Ao(d[6](d[0]))+" svelte-24a1b2"))&&P(n,"class",r)},i:function(d){o||(Q(i),o=!0)},o:function(d){ce(i),o=!1},d:function(d){d&&je(n),c[e].d(),s=!1,a()}}}function oYe(t){var n,e;return n=new tse({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function sYe(t){var n,e=jm(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){5&r&&e!==(e=jm(i[2].normalization.escapeValue(i[0]))+"")&&qn(n,e)},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function aYe(t){var n,e;return n=new pse({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ele(t){var n,e;return n=new cp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function lYe(t){var n,e,i,r,o,s=[oYe,rYe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&ele(t);return{c:function(){e.c(),i=it(),c&&c.c(),r=_r()},m:function(u,d){a[n].m(u,d),Pe(u,i,d),c&&c.m(u,d),Pe(u,r,d),o=!0},p:function(u,d){var h=Un(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):($t(),ce(a[f],1,1,function(){a[f]=null}),Bt(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),Q(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&($t(),ce(c,1,1,function(){c=null}),Bt()):c?(c.p(u,h),28&h&&Q(c,1)):((c=ele(u)).c(),Q(c,1),c.m(r.parentNode,r))},i:function(u){o||(Q(e),Q(c),o=!0)},o:function(u){ce(e),ce(c),o=!1},d:function(u){a[n].d(u),u&&je(i),c&&c.d(u),u&&je(r)}}}function cYe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&xs(l):void 0),2056&t.$$.dirty&&e(4,r=i&&ip(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(iu(o,!0)))},function(h){return ah("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=Xi(o).concat(p);d.onSelect(f===CN?mr(m,!1):iu(m,!1)),f!==wN&&d.focus()},function(){d.onSelect(iu(o,!1)),d.focus()},o,s,l,u]}var uYe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,cYe,lYe,Ei,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},iYe),r}return Se(e)}();function tle(t,n,e){var i=t.slice();return i[8]=n[e],i}function nle(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=$k(u.selection),v=f.findIndex(function(z){return or(z.path,g)}),y=0,_=v,C=function(){var z;return null===(z=f[_+1])||void 0===z?void 0:z.height};void 0!==C()&&Math.abs(m)>y+C()/2;)y+=C(),_+=1;var M=Sn(h,Xi(g)),$=Array.isArray(M),G=null===(d=f[$?_:_+1])||void 0===d?void 0:d.path,R=_-v;return G?{beforePath:G,offset:R}:{append:!0,offset:R}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,_,C,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=Xi(d.focusPath),g=Sn(u,m);if(!(p||f&&l0(f,m)&&f.length>m.length))return[];var v=o0(d),y=$k(d),_=Ln(v),C=Ln(y),S=f?f[m.length]:void 0;if(!Mo(g)){if(oo(g)){var M=Ws(_),$=Ws(C),G=void 0!==S?Ws(S):g.length;return vO($-M+1,Gz?[].concat(si(R.slice(z,U+1)),si(R.slice(q,R.length))).map(function(re){return Rm(m,re)}):[].concat(si(R.slice(q,z)),si(R.slice(U+1,R.length))).map(function(re){return Rm(m,re)}):[]}(n,o,s),l=Sn(n,Xi(o0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=o0(m=u.selection),y=$k(m),_=f.findIndex(function($){return or($.path,v)}),C=f.findIndex(function($){return or($.path,y)}),Os(p,null===(d=f[_+g])||void 0===d?void 0:d.path,null===(h=f[C+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function uh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Iv(e,n)})}function mYe(t){pi(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function gYe(t){var n,e,i,r,o,s;return e=new sr({props:{data:$m}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){Pe(a,n,l),ft(e,n,null),r=!0,o||(s=[Ft(n,"click",function(){ba(t[0])&&t[0].apply(this,arguments)}),_a(i=qO.call(null,n,Ze({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Un(l,1)[0];t=a,i&&ba(i.update)&&2&c&&i.update.call(null,Ze({text:t[1]},t[2]))},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){ce(e.$$.fragment,a),r=!1},d:function(a){a&&je(n),pt(e),o=!1,ho(s)}}}function vYe(t,n,e){var i,r=xa("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var _0=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,vYe,gYe,ys,{validationError:3,onExpand:0},mYe),r}return Se(e)}();function yYe(t){pi(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var bYe=function(t){return{}},ile=function(t){return{}};function rle(t,n,e){var i=t.slice();return i[53]=n[e],i}var _Ye=function(t){return{}},ole=function(t){return{}};function sle(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function ale(t,n,e){var i=t.slice();return i[50]=n[e],i}var xYe=function(t){return{}},lle=function(t){return{}};function wYe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Nr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),d=t[34].identifier,h=Ms(d,t,t[35],ile),f=!t[17]&&cle();o=new pYe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:dse(t[6],t[9]),context:t[8]}});var p=u&&ule(t),m=t[15]&&dle(t),g=!t[17]&&hle(t);return{c:function(){n=be("div"),e=be("div"),h&&h.c(),i=it(),f&&f.c(),r=it(),mt(o.$$.fragment),s=it(),p&&p.c(),a=it(),m&&m.c(),l=it(),g&&g.c(),P(e,"class","jse-contents svelte-1wlxti1"),P(n,"class","jse-contents-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(v,y){Pe(v,n,y),de(n,e),h&&h.m(e,null),de(e,i),f&&f.m(e,null),de(e,r),ft(o,e,null),de(e,s),p&&p.m(e,null),de(n,a),m&&m.m(n,null),de(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Ns(h,d,v,v[35],c?Is(d,v[35],y,bYe):Fs(v[35]),ile),v[17]?f&&(f.d(1),f=null):f||((f=cle()).c(),f.m(e,r));var _={};2&y[0]&&(_.path=v[1]),1&y[0]&&(_.value=v[0]),8192&y[0]&&(_.enforceString=v[13]),65664&y[0]&&(_.selection=v[16]?v[7]:void 0),576&y[0]&&(_.searchResultItems=dse(v[6],v[9])),256&y[0]&&(_.context=v[8]),o.$set(_),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(Yi(v[7])||Nr(v[7]))&&!v[7].edit&&or(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&Q(p,1)):((p=ule(v)).c(),Q(p,1),p.m(e,null)):p&&($t(),ce(p,1,1,function(){p=null}),Bt()),v[15]?m?(m.p(v,y),32768&y[0]&&Q(m,1)):((m=dle(v)).c(),Q(m,1),m.m(n,l)):m&&($t(),ce(m,1,1,function(){m=null}),Bt()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=hle(v)).c(),g.m(n,null)),(!c||262144&y[0])&&P(n,"style",v[18])},i:function(v){c||(Q(h,v),Q(o.$$.fragment,v),Q(p),Q(m),c=!0)},o:function(v){ce(h,v),ce(o.$$.fragment,v),ce(p),ce(m),c=!1},d:function(v){v&&je(n),h&&h.d(v),f&&f.d(),pt(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function CYe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Nr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),C=[DYe,SYe],S=[];function M(E,N){return E[12]?0:1}r=M(t),o=S[r]=C[r](t);var $=t[34].identifier,G=Ms($,t,t[35],ole),R=!t[17]&&fle();function z(E,N){return E[12]?EYe:TYe}var U=z(t),q=U(t),re=_&&ple(t),L=t[15]&&(!t[12]||!t[15].isChildError)&&mle(t);function X(E,N){return E[12]?MYe:E[17]?void 0:AYe}var Z=X(t),H=Z&&Z(t),he=t[12]&&gle(t);return{c:function(){n=be("div"),e=be("div"),i=be("button"),o.c(),s=it(),G&&G.c(),a=it(),R&&R.c(),l=it(),c=be("div"),u=be("div"),q.c(),d=it(),re&&re.c(),h=it(),L&&L.c(),f=it(),H&&H.c(),p=it(),he&&he.c(),m=_r(),P(i,"type","button"),P(i,"class","jse-expand svelte-1wlxti1"),P(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),P(u,"class","jse-meta-inner svelte-1wlxti1"),P(c,"class","jse-meta svelte-1wlxti1"),P(c,"data-type","selectable-value"),P(e,"class","jse-header svelte-1wlxti1"),P(n,"class","jse-header-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(E,N){Pe(E,n,N),de(n,e),de(e,i),S[r].m(i,null),de(e,s),G&&G.m(e,null),de(e,a),R&&R.m(e,null),de(e,l),de(e,c),de(c,u),q.m(u,null),de(e,d),re&&re.m(e,null),de(n,h),L&&L.m(n,null),de(n,f),H&&H.m(n,null),Pe(E,p,N),he&&he.m(E,N),Pe(E,m,N),g=!0,v||(y=Ft(i,"click",t[21]),v=!0)},p:function(E,N){var F=r;(r=M(E))===F?S[r].p(E,N):($t(),ce(S[F],1,1,function(){S[F]=null}),Bt(),(o=S[r])?o.p(E,N):(o=S[r]=C[r](E)).c(),Q(o,1),o.m(i,null)),G&&G.p&&(!g||16&N[1])&&Ns(G,$,E,E[35],g?Is($,E[35],N,_Ye):Fs(E[35]),ole),E[17]?R&&(R.d(1),R=null):R||((R=fle()).c(),R.m(e,l)),U===(U=z(E))&&q?q.p(E,N):(q.d(1),(q=U(E))&&(q.c(),q.m(u,null))),65922&N[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Nr(E[7]))&&!E[7].edit&&or(E[7].focusPath,E[1])),_?re?(re.p(E,N),65922&N[0]&&Q(re,1)):((re=ple(E)).c(),Q(re,1),re.m(e,null)):re&&($t(),ce(re,1,1,function(){re=null}),Bt()),!E[15]||E[12]&&E[15].isChildError?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,N),36864&N[0]&&Q(L,1)):((L=mle(E)).c(),Q(L,1),L.m(n,f)),Z===(Z=X(E))&&H?H.p(E,N):(H&&H.d(1),(H=Z&&Z(E))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&P(n,"style",E[18]),E[12]?he?(he.p(E,N),4096&N[0]&&Q(he,1)):((he=gle(E)).c(),Q(he,1),he.m(m.parentNode,m)):he&&($t(),ce(he,1,1,function(){he=null}),Bt())},i:function(E){g||(Q(o),Q(G,E),Q(re),Q(L),Q(he),g=!0)},o:function(E){ce(o),ce(G,E),ce(re),ce(L),ce(he),g=!1},d:function(E){E&&je(n),S[r].d(),G&&G.d(E),R&&R.d(),q.d(),re&&re.d(),L&&L.d(),H&&H.d(),E&&je(p),he&&he.d(E),E&&je(m),v=!1,y()}}}function kYe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Nr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),C=[FYe,NYe],S=[];function M(E,N){return E[12]?0:1}r=M(t),o=S[r]=C[r](t);var $=t[34].identifier,G=Ms($,t,t[35],lle),R=!t[17]&&_le();function z(E,N){return E[12]?jYe:OYe}var U=z(t),q=U(t),re=_&&xle(t),L=t[15]&&(!t[12]||!t[15].isChildError)&&wle(t);function X(E,N){return E[12]?LYe:PYe}var Z=X(t),H=Z(t),he=t[12]&&Cle(t);return{c:function(){n=be("div"),e=be("div"),i=be("button"),o.c(),s=it(),G&&G.c(),a=it(),R&&R.c(),l=it(),c=be("div"),u=be("div"),q.c(),d=it(),re&&re.c(),h=it(),L&&L.c(),f=it(),H.c(),p=it(),he&&he.c(),m=_r(),P(i,"type","button"),P(i,"class","jse-expand svelte-1wlxti1"),P(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),P(u,"class","jse-meta-inner svelte-1wlxti1"),P(u,"data-type","selectable-value"),P(c,"class","jse-meta svelte-1wlxti1"),P(e,"class","jse-header svelte-1wlxti1"),P(n,"class","jse-header-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(E,N){Pe(E,n,N),de(n,e),de(e,i),S[r].m(i,null),de(e,s),G&&G.m(e,null),de(e,a),R&&R.m(e,null),de(e,l),de(e,c),de(c,u),q.m(u,null),de(e,d),re&&re.m(e,null),de(n,h),L&&L.m(n,null),de(n,f),H.m(n,null),Pe(E,p,N),he&&he.m(E,N),Pe(E,m,N),g=!0,v||(y=Ft(i,"click",t[21]),v=!0)},p:function(E,N){var F=r;(r=M(E))===F?S[r].p(E,N):($t(),ce(S[F],1,1,function(){S[F]=null}),Bt(),(o=S[r])?o.p(E,N):(o=S[r]=C[r](E)).c(),Q(o,1),o.m(i,null)),G&&G.p&&(!g||16&N[1])&&Ns(G,$,E,E[35],g?Is($,E[35],N,xYe):Fs(E[35]),lle),E[17]?R&&(R.d(1),R=null):R||((R=_le()).c(),R.m(e,l)),U===(U=z(E))&&q?q.p(E,N):(q.d(1),(q=U(E))&&(q.c(),q.m(u,null))),65922&N[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Nr(E[7]))&&!E[7].edit&&or(E[7].focusPath,E[1])),_?re?(re.p(E,N),65922&N[0]&&Q(re,1)):((re=xle(E)).c(),Q(re,1),re.m(e,null)):re&&($t(),ce(re,1,1,function(){re=null}),Bt()),!E[15]||E[12]&&E[15].isChildError?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,N),36864&N[0]&&Q(L,1)):((L=wle(E)).c(),Q(L,1),L.m(n,f)),Z===(Z=X(E))&&H?H.p(E,N):(H.d(1),(H=Z(E))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&P(n,"style",E[18]),E[12]?he?(he.p(E,N),4096&N[0]&&Q(he,1)):((he=Cle(E)).c(),Q(he,1),he.m(m.parentNode,m)):he&&($t(),ce(he,1,1,function(){he=null}),Bt())},i:function(E){g||(Q(o),Q(G,E),Q(re),Q(L),Q(he),g=!0)},o:function(E){ce(o),ce(G,E),ce(re),ce(L),ce(he),g=!1},d:function(E){E&&je(n),S[r].d(),G&&G.d(E),R&&R.d(),q.d(),re&&re.d(),L&&L.d(),H.d(),E&&je(p),he&&he.d(E),E&&je(m),v=!1,y()}}}function cle(t){var n;return{c:function(){(n=be("div")).textContent=":",P(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function ule(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),ft(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){ce(e.$$.fragment,r),i=!1},d:function(r){r&&je(n),pt(e)}}}function dle(t){var n,e;return n=new _0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function hle(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),P(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=Ft(n,"click",t[30]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function SYe(t){var n,e;return n=new sr({props:{data:rp}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function DYe(t){var n,e;return n=new sr({props:{data:ru}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function fle(t){var n;return{c:function(){(n=be("div")).textContent=":",P(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function TYe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=be("div")).textContent="{",e=it(),i=be("button"),r=tn(d),o=it(),s=tn(h),a=it(),(l=be("div")).textContent="}",P(n,"class","jse-bracket svelte-1wlxti1"),P(i,"type","button"),P(i,"class","jse-tag svelte-1wlxti1"),P(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){Pe(f,n,p),Pe(f,e,p),Pe(f,i,p),de(i,r),de(i,o),de(i,s),Pe(f,a,p),Pe(f,l,p),c||(u=Ft(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&qn(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&qn(s,h)},d:function(f){f&&je(n),f&&je(e),f&&je(i),f&&je(a),f&&je(l),c=!1,u()}}}function EYe(t){var n;return{c:function(){(n=be("div")).textContent="{",P(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},p:Lt,d:function(e){e&&je(n)}}}function ple(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),ft(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){ce(e.$$.fragment,r),i=!1},d:function(r){r&&je(n),pt(e)}}}function mle(t){var n,e;return n=new _0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function AYe(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),P(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=Ft(n,"click",t[30]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function MYe(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),P(n,"data-type","insert-selection-area-inside")},m:function(r,o){Pe(r,n,o),e||(i=Ft(n,"click",t[29]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function gle(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Xs(t[7])),c=l&&vle(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=it(),p&&p.c(),P(n,"class","jse-props svelte-1wlxti1"),P(o,"data-type","selectable-value"),P(o,"class","jse-footer svelte-1wlxti1"),P(r,"class","jse-footer-outer svelte-1wlxti1"),P(r,"style",t[18])},m:function(m,g){Pe(m,n,g),c&&c.m(n,null),de(n,e);for(var v=0;v]',s=it(),v&&v.c(),P(n,"class","jse-items svelte-1wlxti1"),P(o,"data-type","selectable-value"),P(o,"class","jse-footer svelte-1wlxti1"),P(r,"class","jse-footer-outer svelte-1wlxti1"),P(r,"style",t[18])},m:function(y,_){Pe(y,n,_),d&&d.m(n,null),de(n,e);for(var C=0;C=Le.start&&ne<=Le.end});if(!ie)return null;toe(ie.start,Math.min(p.length,ie.end),function(Le){return tt(String(Le))})}else Object.keys(p).forEach(tt);return xe}(S,l||wm);if(G("dragSelectionStart",{selection:S,items:F}),F){var Y=o0(S),V=F.findIndex(function(fe){return or(fe.path,Y)}),oe=f4({json:M.getJson(),documentState:M.getDocumentState(),deltaY:0,items:F}).offset;e(11,U={initialTarget:E.target,initialClientY:E.clientY,initialContentTop:X(),selectionStartIndex:V,selectionItemsCount:Qoe(S).length,items:F,offset:oe,didMoveItems:!1}),aa.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",he)}else G("Cannot drag the current selection (probably spread over multiple sections)")}else $(E)}},function(E){aa.selecting||aa.dragging||(E.stopPropagation(),Pm(E.target,"data-type","selectable-value")?e(10,R="hover-collection"):Pm(E.target,"data-type","insert-selection-area-inside")?e(10,R="hover-insert-inside"):Pm(E.target,"data-type","insert-selection-area-after")&&e(10,R="hover-insert-after"),clearTimeout(z))},function(E){E.stopPropagation(),z=setTimeout(function(){return e(10,R=void 0)})},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),M.onSelect(cf(m)))},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),M.onSelect(uf(m)))},function(E){M.onSelect(cf(m)),M.onContextMenu(E)},function(E){M.onSelect(uf(m)),M.onContextMenu(E)},$,h,f]}var p4=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,BYe,$Ye,Ei,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},yYe,[-1,-1]),r}return Se(e)}(),VYe=p4,HYe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},zYe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},m4={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},UYe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function GYe(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function WYe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,_=n.onRedo,C=n.onSort,S=n.onTransform,M=n.onContextMenu,$=n.onCopy,G=n.onRenderMenu;function R(){e(1,p=!p)}return t.$$set=function(z){"json"in z&&e(2,u=z.json),"selection"in z&&e(3,d=z.selection),"readOnly"in z&&e(4,h=z.readOnly),"showSearch"in z&&e(1,p=z.showSearch),"historyState"in z&&e(5,m=z.historyState),"onExpandAll"in z&&e(6,g=z.onExpandAll),"onCollapseAll"in z&&e(7,v=z.onCollapseAll),"onUndo"in z&&e(8,y=z.onUndo),"onRedo"in z&&e(9,_=z.onRedo),"onSort"in z&&e(10,C=z.onSort),"onTransform"in z&&e(11,S=z.onTransform),"onContextMenu"in z&&e(12,M=z.onContextMenu),"onCopy"in z&&e(13,$=z.onCopy),"onRenderMenu"in z&&e(14,G=z.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Nr(d)||xs(d)||Yi(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:HYe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!Ho(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:zYe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!Ho(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:KO,title:"Search (Ctrl+F)",className:"jse-search",onClick:R,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:sp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:$,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:C,disabled:h||void 0===u},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:S,disabled:h||void 0===u},l,{type:"button",icon:bse,title:xN,className:"jse-contextmenu",onClick:M},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:_,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=G(c)||c)},[o,p,u,d,h,m,g,v,y,_,C,S,M,$,G,s,a,l,c,r,i]}var qYe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,WYe,GYe,Ei,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Se(e)}();function XYe(t){pi(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function Mle(t){var n;return{c:function(){(n=be("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',P(n,"class","svelte-1q2qkk2")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function YYe(t){var n,e,i,r,o,s,a,l=!t[0]&&Mle();return{c:function(){n=be("div"),e=be("div"),i=it(),r=be("div"),o=tn("Empty document\n "),l&&l.c(),s=it(),a=be("div"),P(e,"class","jse-space jse-before svelte-1q2qkk2"),P(r,"class","jse-contents svelte-1q2qkk2"),P(a,"class","jse-space jse-after svelte-1q2qkk2"),P(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){Pe(c,n,u),de(n,e),de(n,i),de(n,r),de(r,o),l&&l.m(r,null),de(n,s),de(n,a)},p:function(c,u){Un(u,1),c[0]?l&&(l.d(1),l=null):l||((l=Mle()).c(),l.m(r,null))},i:Lt,o:Lt,d:function(c){c&&je(n),l&&l.d()}}}function JYe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var KYe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,JYe,YYe,Ei,{readOnly:0},XYe),r}return Se(e)}(),g4={},QYe={get exports(){return g4},set exports(t){g4=t}},Ile=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(oo(Sn(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function eJe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function tJe(t,n){return function(e,i){var r=Sn(e,t),o=Sn(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Sn(t,n);return[{op:"replace",path:ln(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Io(t))return function ZYe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Sn(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*v4(u,d)});for(var s=[],a=0;aQb&&jle();return{c:function(){n=be("div");for(var d=0;dQb?u?u.p(d,f):((u=jle()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:Lt,o:Lt,d:function(d){d&&je(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=Sn(l,g);if(Array.isArray(v))return fO(0,v.length).map(String);if(Io(v)){var y=Object.keys(v).slice(0);return y.sort(v4),y}return[]},function(g){return Xc(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Vi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Vi[g?"unshift":"push"](function(){e(4,o=g)})}]}var yJe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,vJe,gJe,Ei,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},fJe),r}return Se(e)}();function bJe(t){pi(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function Ule(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",L=!t[4]&&Gle(t),X=[xJe,_Je],Z=[];function H(E,N){return E[2]?0:1}a=H(t),l=Z[a]=X[a](t),y=new sr({props:{data:DWe}}),S=new sr({props:{data:bWe}}),G=new sr({props:{data:p0}});var he=t[0]&&!t[4]&&Wle(t);return{c:function(){n=be("div"),e=be("form"),L&&L.c(),i=it(),r=be("div"),o=be("div"),s=be("div"),l.c(),c=it(),u=be("label"),d=be("input"),h=it(),f=be("div"),p=tn(re),m=tn(t[10]),g=it(),v=be("button"),mt(y.$$.fragment),_=it(),C=be("button"),mt(S.$$.fragment),M=it(),$=be("button"),mt(G.$$.fragment),R=it(),he&&he.c(),P(s,"class","jse-search-icon svelte-3lbrbf"),P(d,"class","jse-search-input svelte-3lbrbf"),P(d,"title","Enter text to search"),P(d,"type","text"),P(d,"placeholder","Find"),P(u,"class","jse-search-input-label svelte-3lbrbf"),P(u,"about","jse-search input"),P(f,"class","jse-search-count svelte-3lbrbf"),Mt(f,"jse-visible",""!==t[8]),P(v,"type","button"),P(v,"class","jse-search-next svelte-3lbrbf"),P(v,"title","Go to next search result (Enter)"),P(C,"type","button"),P(C,"class","jse-search-previous svelte-3lbrbf"),P(C,"title","Go to previous search result (Shift+Enter)"),P($,"type","button"),P($,"class","jse-search-clear svelte-3lbrbf"),P($,"title","Close search box (Esc)"),P(o,"class","jse-search-section svelte-3lbrbf"),P(r,"class","jse-search-contents svelte-3lbrbf"),P(e,"class","jse-search-form svelte-3lbrbf"),P(n,"class","jse-search-box svelte-3lbrbf")},m:function(E,N){Pe(E,n,N),de(n,e),L&&L.m(e,null),de(e,i),de(e,r),de(r,o),de(o,s),Z[a].m(s,null),de(o,c),de(o,u),de(u,d),Hf(d,t[8]),de(o,h),de(o,f),de(f,p),de(f,m),de(o,g),de(o,v),ft(y,v,null),de(o,_),de(o,C),ft(S,C,null),de(o,M),de(o,$),ft(G,$,null),de(r,R),he&&he.m(r,null),z=!0,U||(q=[Ft(d,"input",t[21]),_a(CJe.call(null,d)),Ft(v,"click",t[22]),Ft(C,"click",t[23]),Ft($,"click",t[24]),Ft(e,"submit",t[12]),Ft(e,"keydown",t[13])],U=!0)},p:function(E,N){E[4]?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,N),16&N&&Q(L,1)):((L=Gle(E)).c(),Q(L,1),L.m(e,i));var F=a;(a=H(E))===F?Z[a].p(E,N):($t(),ce(Z[F],1,1,function(){Z[F]=null}),Bt(),(l=Z[a])?l.p(E,N):(l=Z[a]=X[a](E)).c(),Q(l,1),l.m(s,null)),256&N&&d.value!==E[8]&&Hf(d,E[8]),(!z||8&N)&&re!==(re=(-1!==E[3]?"".concat(E[3]+1,"/"):"")+"")&&qn(p,re),(!z||1024&N)&&qn(m,E[10]),(!z||256&N)&&Mt(f,"jse-visible",""!==E[8]),E[0]&&!E[4]?he?he.p(E,N):((he=Wle(E)).c(),he.m(r,null)):he&&(he.d(1),he=null)},i:function(E){z||(Q(L),Q(l),Q(y.$$.fragment,E),Q(S.$$.fragment,E),Q(G.$$.fragment,E),z=!0)},o:function(E){ce(L),ce(l),ce(y.$$.fragment,E),ce(S.$$.fragment,E),ce(G.$$.fragment,E),z=!1},d:function(E){E&&je(n),L&&L.d(),Z[a].d(),pt(y),pt(S),pt(G),he&&he.d(),U=!1,ho(q)}}}function Gle(t){var n,e,i,r,o;return e=new sr({props:{data:t[0]?ru:rp}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-replace-toggle svelte-3lbrbf"),P(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=Ft(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?ru:rp),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function _Je(t){var n,e;return n=new sr({props:{data:KO}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function xJe(t){var n,e;return n=new sr({props:{data:gWe,spin:!0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Wle(t){var n,e,i,r,o,s,a,l;return{c:function(){n=be("div"),e=be("input"),i=it(),(r=be("button")).textContent="Replace",o=it(),(s=be("button")).textContent="All",P(e,"class","jse-replace-input svelte-3lbrbf"),P(e,"title","Enter replacement text"),P(e,"type","text"),P(e,"placeholder","Replace"),P(r,"type","button"),P(r,"title","Replace current occurrence (Ctrl+Enter)"),P(r,"class","svelte-3lbrbf"),P(s,"type","button"),P(s,"title","Replace all occurrences"),P(s,"class","svelte-3lbrbf"),P(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){Pe(c,n,u),de(n,e),Hf(e,t[9]),de(n,i),de(n,r),de(n,o),de(n,s),a||(l=[Ft(e,"input",t[25]),Ft(r,"click",t[14]),Ft(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&Hf(e,c[9])},d:function(c){c&&je(n),a=!1,ho(l)}}}function wJe(t){var n,e,i=t[1]&&Ule(t);return{c:function(){i&&i.c(),n=_r()},m:function(r,o){i&&i.m(r,o),Pe(r,n,o),e=!0},p:function(r,o){var s=Un(o,1)[0];r[1]?i?(i.p(r,s),2&s&&Q(i,1)):((i=Ule(r)).c(),Q(i,1),i.m(n.parentNode,n)):i&&($t(),ce(i,1,1,function(){i=null}),Bt())},i:function(r){e||(Q(i),e=!0)},o:function(r){ce(i),e=!1},d:function(r){i&&i.d(r),r&&je(n)}}}function CJe(t){t.select()}function kJe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?go:g,y=n.onPrevious,_=void 0===y?go:y,C=n.onNext,S=void 0===C?go:C,M=n.onReplace,$=void 0===M?go:M,G=n.onReplaceAll,R=void 0===G?go:G,z=n.onClose,U=void 0===z?go:z,q="",re="",L="";function X(){e(0,f=!f&&!m)}function Z(){m||$(q,L)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,_=H.onPrevious),"onNext"in H&&e(6,S=H.onNext),"onReplace"in H&&e(18,$=H.onReplace),"onReplaceAll"in H&&e(19,R=H.onReplaceAll),"onClose"in H&&e(7,U=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=Gv(v,300)),1048832&t.$$.dirty&&r(q),2&t.$$.dirty&&s&&""!==q&&v(q)},[f,s,a,d,m,_,S,U,q,L,i,X,function(H){H.preventDefault(),q!==re?(re=q,r.cancel(),v(q)):S()},function(H){H.stopPropagation();var he=tp(H);"Enter"===he&&(H.preventDefault(),S()),"Shift+Enter"===he&&(H.preventDefault(),_()),"Ctrl+Enter"===he&&(H.preventDefault(),f?Z():S()),"Ctrl+H"===he&&(H.preventDefault(),X()),"Escape"===he&&(H.preventDefault(),U())},Z,function(){m||R(q,L)},c,v,$,R,r,function(){e(8,q=this.value)},function(){return S()},function(){return _()},function(){return U()},function(){e(9,L=this.value)}]}var SJe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,kJe,wJe,Ei,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},bJe),r}return Se(e)}(),qle=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function DJe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',P(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function HJe(t){var n,e,i,r,o,s,a,l,c,u=[UJe,zJe],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=be("label"),e=be("input"),i=it(),o.c(),s=_r(),P(e,"type","text"),e.readOnly="readonly",P(e,"tabindex","-1"),P(e,"class","jse-hidden-input svelte-qojdc1"),P(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){Pe(f,n,p),de(n,e),t[76](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=Ft(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):($t(),ce(d[m],1,1,function(){d[m]=null}),Bt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){ce(o),a=!1},d:function(f){f&&je(n),t[76](null),f&&je(i),d[r].d(f),f&&je(s),l=!1,c()}}}function zJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new SJe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new VYe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:go}});var m=t[18]&&rce(t),g=t[23]&&oce(t);return f=new l4({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=be("div"),mt(s.$$.fragment),a=it(),l=be("div"),mt(c.$$.fragment),u=it(),m&&m.c(),d=it(),g&&g.c(),h=it(),mt(f.$$.fragment),P(o,"class","jse-search-box-container svelte-qojdc1"),P(l,"class","jse-contents svelte-qojdc1"),P(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){Pe(v,o,y),ft(s,o,null),Pe(v,a,y),Pe(v,l,y),ft(c,l,null),t[77](l),Pe(v,u,y),m&&m.m(v,y),Pe(v,d,y),g&&g.m(v,y),Pe(v,h,y),ft(f,v,y),p=!0},p:function(v,y){var _,C,S,M,$={};524288&y[0]&&($.show=v[19]),131072&y[0]&&($.resultCount=(null===(_=v[17])||void 0===_||null===(C=_.items)||void 0===C?void 0:C.length)||0),131072&y[0]&&($.activeIndex=(null===(S=v[17])||void 0===S?void 0:S.activeIndex)||0),1048576&y[0]&&($.showReplace=v[20]),2097152&y[0]&&($.searching=v[21]),1&y[0]&&($.readOnly=v[0]),s.$set($);var G={};1024&y[0]&&(G.value=v[10]),65536&y[0]&&(G.expandedMap=v[16].expandedMap),65536&y[0]&&(G.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(G.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(G.validationErrorsMap=v[24]),131072&y[0]&&(G.searchResultItemsMap=null===(M=v[17])||void 0===M?void 0:M.itemsMap),65536&y[0]&&(G.selection=v[16].selection),8192&y[0]&&(G.context=v[13]),c.$set(G),v[18]?m?(m.p(v,y),262144&y[0]&&Q(m,1)):((m=rce(v)).c(),Q(m,1),m.m(d.parentNode,d)):m&&($t(),ce(m,1,1,function(){m=null}),Bt()),v[23]?g?(g.p(v,y),8388608&y[0]&&Q(g,1)):((g=oce(v)).c(),Q(g,1),g.m(h.parentNode,h)):g&&($t(),ce(g,1,1,function(){g=null}),Bt());var R={};4096&y[0]&&(R.validationErrors=v[12]),f.$set(R)},i:function(v){p||(Q(s.$$.fragment,v),Q(c.$$.fragment,v),Q(m),Q(g),Q(f.$$.fragment,v),p=!0)},o:function(v){ce(s.$$.fragment,v),ce(c.$$.fragment,v),ce(m),ce(g),ce(f.$$.fragment,v),p=!1},d:function(v){v&&je(o),pt(s),v&&je(a),v&&je(l),pt(c),t[77](null),v&&je(u),m&&m.d(v),v&&je(d),g&&g.d(v),v&&je(h),pt(f,v)}}}function UJe(t){var n,e,i,r,o=[WJe,GJe],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=_r()},m:function(l,c){s[n].m(l,c),Pe(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):($t(),ce(s[u],1,1,function(){s[u]=null}),Bt(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),Q(e,1),e.m(i.parentNode,i))},i:function(l){r||(Q(e),r=!0)},o:function(l){ce(e),r=!1},d:function(l){s[n].d(l),l&&je(i)}}}function rce(t){var n,e;return n=new nd({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:zk,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function oce(t){var n,e;return n=new nd({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:Wb,text:"Ok",onClick:t[8]},{icon:op,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:Wb,text:"Ok",onClick:i[8]},{icon:op,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function GJe(t){var n,e,i,r;return n=new nd({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[47]}]}}),i=new tce({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){mt(n.$$.fragment),e=it(),mt(i.$$.fragment)},m:function(o,s){ft(n,o,s),Pe(o,e,s),ft(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){ce(n.$$.fragment,o),ce(i.$$.fragment,o),r=!1},d:function(o){pt(n,o),o&&je(e),pt(i,o)}}}function WJe(t){var n,e;return n=new KYe({props:{readOnly:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function qJe(t){var n,e,i,r,o,s,a,l,c=t[1]&&nce(t),u=t[2]&&ice(t),h=[];return o=h[r=t[25]?1:0]=[HJe,VJe][r](t),{c:function(){n=be("div"),c&&c.c(),e=it(),u&&u.c(),i=it(),o.c(),P(n,"class","jse-tree-mode svelte-qojdc1"),Mt(n,"no-main-menu",!t[1])},m:function(f,p){Pe(f,n,p),c&&c.m(n,null),de(n,e),u&&u.m(n,null),de(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[Ft($Je,"mousedown",t[49]),Ft(n,"keydown",t[41]),Ft(n,"mousedown",t[42]),Ft(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&Q(c,1)):((c=nce(f)).c(),Q(c,1),c.m(n,e)):c&&($t(),ce(c,1,1,function(){c=null}),Bt()),f[2]?u?(u.p(f,p),4&p[0]&&Q(u,1)):((u=ice(f)).c(),Q(u,1),u.m(n,i)):u&&($t(),ce(u,1,1,function(){u=null}),Bt()),o.p(f,p),(!s||2&p[0])&&Mt(n,"no-main-menu",!f[1])},i:function(f){s||(Q(c),Q(u),Q(o),s=!0)},o:function(f){ce(c),ce(u),ce(o),s=!1},d:function(f){f&&je(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,ho(l)}}}function XJe(t,n,e){var i,r=wa("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=xa("simple-modal").open,h=ep(),f=ep(),p=xa("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=hae(),_=n.readOnly,C=n.externalContent,S=n.mainMenuBar,M=n.navigationBar,$=n.escapeControlCharacters,G=n.escapeUnicodeCharacters,R=n.parser,z=n.parseMemoizeOne,U=n.validator,q=n.validationParser,re=n.pathParser,L=n.indentation,X=n.onError,Z=n.onChange,H=n.onChangeMode,he=n.onRenderValue,E=n.onRenderMenu,N=n.onClassName,F=n.onFocus,Y=n.onBlur,V=n.onSortModal,oe=n.onTransformModal,fe=n.onJSONEditorModal,Ne=!1;a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(l)},hasFocus:function(){return Ne&&document.hasFocus()||jk(l)},onFocus:function(){v=!0,F&&F()},onBlur:function(){v=!1,Y&&Y()}});var xe=void 0;function tt(Ce){r("updateSelection",Ce);var lt="function"==typeof Ce?Ce(ie.selection):Ce;or(lt,ie.selection)||e(16,ie=Ze(Ze({},ie),{},{selection:lt}))}var ze,ot,B,ne=!1,ie=Lk(),Ie=!1,Ye=!1,Le=!1,_t="";function At(Ce){return _n.apply(this,arguments)}function _n(){return(_n=Zi(vn().mark(function Ce(lt){return vn().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return r("search text updated",lt),e(74,_t=lt),It.next=4,Xl();case 4:return It.next=6,Fr();case 6:case"end":return It.stop()}},Ce)}))).apply(this,arguments)}function ci(){return(ci=Zi(vn().mark(function Ce(){return vn().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return e(17,ze=ze?GGe(ze):void 0),lt.next=3,Fr();case 3:case"end":return lt.stop()}},Ce)}))).apply(this,arguments)}function on(){return(on=Zi(vn().mark(function Ce(){return vn().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return e(17,ze=ze?WGe(ze):void 0),lt.next=3,Fr();case 3:case"end":return lt.stop()}},Ce)}))).apply(this,arguments)}function Ni(){return(Ni=Zi(vn().mark(function Ce(lt,It){var Jt,nn,an,li;return vn().wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(nn=null===(Jt=ze)||void 0===Jt?void 0:Jt.activeItem,r("handleReplace",{replacementText:It,activeItem:nn}),nn){fi.next=4;break}return fi.abrupt("return");case 4:return an=qGe(c,ie,It,nn,R),li=an.newSelection,Yn(an.operations,function(Lo,Ls){return{state:Ze(Ze({},Ls),{},{selection:li})}}),fi.next=8,Xl();case 8:return fi.next=10,Fr();case 10:case"end":return fi.stop()}},Ce)}))).apply(this,arguments)}function pn(){return(pn=Zi(vn().mark(function Ce(lt,It){var Jt,an;return vn().wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return r("handleReplaceAll",{text:lt,replacementText:It}),Jt=XGe(c,ie,lt,It,R),an=Jt.newSelection,Yn(Jt.operations,function(li,fi){return{state:Ze(Ze({},fi),{},{selection:an})}}),Vn.next=5,Xl();case 5:return Vn.next=7,Fr();case 7:case"end":return Vn.stop()}},Ce)}))).apply(this,arguments)}function Fr(){return $r.apply(this,arguments)}function $r(){return($r=Zi(vn().mark(function Ce(){var lt,It,Jt;return vn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(It=null===(lt=ze)||void 0===lt?void 0:lt.activeItem,r("focusActiveSearchResult",ze),!It){nn.next=9;break}return e(16,ie=Ze(Ze({},PO(c,ie,Jt=It.path)),{},{selection:void 0})),nn.next=7,Xl();case 7:return nn.next=9,hn(Jt);case 9:case"end":return nn.stop()}},Ce)}))).apply(this,arguments)}var Ai,Wr,wr=fae({onChange:function(Ce){e(22,Or=Ce)}}),Or=wr.getState(),jo=gO(function(Ce,lt){if(""===Ce)return r("clearing search result"),void(void 0!==ze&&e(17,ze=void 0));e(21,Le=!0),setTimeout(function(){r("searching...",Ce);var nn,an,Vn,li,fi,Lo,Ls,It=ase(Ce,lt,1e3);e(17,(nn=It,Vn=null!=(an=ze)&&an.activeItem?use(an.activeItem):void 0,li=nn.findIndex(function(Zo){return or(Vn,use(Zo))}),fi=-1!==li?li:void 0!==an?.activeIndex&&an?.activeIndex0?0:-1,Ls=(Lo=nn.map(function(Zo,wo){return Ze(Ze({},Zo),{},{active:wo===fi})}))[fi],ze={items:Lo,itemsMap:qv(Lo,function(Zo){return ln(Zo.path)}),activeItem:Ls,activeIndex:fi})),e(21,Le=!1)})},300),Fn=!1,xt=[],ui=Zb(pae);function Fi(Ce,lt,It,Jt){g0(function(){var nn;try{nn=ui(Ce,lt,It,Jt)}catch(an){nn=[{path:[],message:"Failed to validate: "+an.message,severity:Xd.warning}]}or(nn,xt)||(r("validationErrors changed:",nn),e(12,xt=nn))},function(nn){return r("validationErrors updated in ".concat(nn," ms"))})}function Cr(){return r("validate"),xe?{parseError:xe,isRepairable:!1}:(Fi(c,U,R,q),Hi(xt)?null:{validationErrors:xt})}function xo(){return c}function Qo(){return ie}function On(Ce){ne||(ne=!0,e(16,ie=nu(Ce,ie,[],coe({json:Ce},10240)?sh:Hb)))}function ai(Ce){void 0!==ie.selection&&(ie.selection&&Xc(Ce,ie.selection.anchorPath)&&Xc(Ce,ie.selection.focusPath)||(r("clearing selection: path does not exist anymore",ie.selection),e(16,ie=Ze(Ze({},ie),{},{selection:s0(Ce,ie)}))))}function bi(Ce){var lt=Ce.previousJson,It=Ce.previousState,Jt=Ce.previousText,nn=Ce.previousTextIsRepaired;void 0===lt&&void 0===Jt||(void 0!==c?wr.add(void 0!==lt?{undo:{patch:[{op:"replace",path:"",value:lt}],state:ul(It),json:void 0,text:Jt,textIsRepaired:nn},redo:{patch:[{op:"replace",path:"",value:c}],state:ul(ie),json:void 0,text:u,textIsRepaired:Fn}}:{undo:{patch:void 0,json:void 0,text:Jt,state:ul(It),textIsRepaired:nn},redo:{patch:void 0,json:c,state:ul(ie),text:u,textIsRepaired:Fn}}):void 0!==lt&&wr.add({undo:{patch:void 0,json:lt,state:ul(It),text:Jt,textIsRepaired:nn},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Fn,state:ul(ie)}}))}function Er(Ce,lt){if(r("patch",Ce,lt),void 0===c)throw new Error("Cannot apply patch: no JSON");var It={json:c,text:u},Jt=c,nn=ie,an=u,Vn=Fn,li=ose(c,Ce),fi=$oe(c,ie,Ce),Lo=a0(c,Ce),Ls=function(wh,bd){return void 0!==bd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?Ze(Ze({},wh),{},{selection:bd}):wh}(fi.documentState,Lo,!1);r("patch updatedSelection",Lo);var Zo="function"==typeof lt?lt(fi.json,Ls):void 0;e(10,c=Zo&&void 0!==Zo.json?Zo.json:fi.json);var wo=Zo&&void 0!==Zo.state?Zo.state:Ls;e(16,ie=wo),e(11,u=void 0),e(23,Fn=!1),e(18,B=void 0),ai(c),wr.add({undo:{patch:li,json:void 0,text:an,state:ul(nn),textIsRepaired:Vn},redo:{patch:Ce,json:void 0,state:ul(wo),text:u,textIsRepaired:Fn}});var $l={json:c,previousJson:Jt,undo:li,redo:Ce};return ei(It,$l),$l}function qr(){!_&&ie.selection&&tt(iu(ie.selection.focusPath,!0))}function ao(){if(!_&&ie.selection){var Ce=ie.selection.focusPath,lt=Sn(c,Ce);Ho(lt)?(r("openJSONEditorModal",{path:It=Ce,value:Jt=lt}),Ne=!0,fe({content:{json:Jt},path:It,onPatch:Wr.onPatch,onClose:function(){Ne=!1,Ps()}})):tt(mr(Ce,!0))}var It,Jt}function Js(){if(!_&&Yi(ie.selection)){var Ce=ie.selection.focusPath,lt=ln(Ce),It=Sn(c,Ce),Jt=!lf(It,ie.enforceStringMap,lt,R),nn=Jt?String(It):Nv(String(It),R);r("handleToggleEnforceString",{enforceString:Jt,value:It,updatedValue:nn}),Yn([{op:"replace",path:lt,value:nn}],function(an,Vn){return{state:Roe(Vn,lt,Jt)}})}}function vr(){return Ks.apply(this,arguments)}function Ks(){return Ks=Zi(vn().mark(function Ce(){var lt,It=arguments;return vn().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return lt=!(It.length>0&&void 0!==It[0])||It[0],Jt.next=3,Jle({json:c,documentState:ie,indentation:lt?L:void 0,readOnly:_,parser:R,onPatch:Yn});case 3:case"end":return Jt.stop()}},Ce)})),Ks.apply(this,arguments)}function qa(){return Xa.apply(this,arguments)}function Xa(){return Xa=Zi(vn().mark(function Ce(){var lt,It=arguments;return vn().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(lt=!(It.length>0&&void 0!==It[0])||It[0],void 0!==c){Jt.next=3;break}return Jt.abrupt("return");case 3:return Jt.next=5,Kle({json:c,documentState:ie,indentation:lt?L:void 0,parser:R});case 5:case"end":return Jt.stop()}},Ce)})),Xa.apply(this,arguments)}function Ic(){d(kae,{},Ze(Ze({},Cm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Ps()}})}function we(Ce,lt){d(jae,{text:Ce,onParse:Ik,onRepair:soe,onApply:lt},Ze(Ze({},Cm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ps()}})}function He(){Zle({json:c,text:u,documentState:ie,keepSelection:!1,readOnly:_,onChange:Z,onPatch:Yn})}function qe(){!_&&void 0!==c&&ie.selection&&c0(ie.selection)&&!Hi(ie.selection.focusPath)&&(r("duplicate",{selection:ie.selection}),Yn(nse(c,Qoe(ie.selection))))}function ut(){_||!ie.selection||!Nr(ie.selection)&&!Yi(ie.selection)||Hi(ie.selection.focusPath)||(r("extract",{selection:ie.selection}),Yn(function(lt,It){if(Yi(It))return[{op:"move",from:ln(It.focusPath),path:""}];if(!Nr(It))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Jt=Sn(lt,Xi(It.focusPath));if(oo(Jt))return[{op:"replace",path:"",value:It.paths.map(function(an){var Vn=Ws(Ln(an));return Jt[Vn]})}];if(Mo(Jt)){var nn={};return It.paths.forEach(function(an){var Vn=String(Ln(an));nn[Vn]=Jt[Vn]}),[{op:"replace",path:"",value:nn}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(It))}(c,ie.selection),function(lt,It){if(Ho(lt))return{state:np(lt,It,[])}}))}function Ue(Ce){void 0!==c&&rS({insertType:Ce,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:br})}function Dn(Ce){xs(ie.selection)&&tt(mr(ie.selection.focusPath,!1)),Ue(Ce)}function ii(Ce){if(!_&&ie.selection)if(Lm(ie.selection))try{var lt=ie.selection.anchorPath,It=Sn(c,lt),Jt=function(an,Vn,li){if("array"===Vn){if(Array.isArray(an))return an;if(Io(an))return ioe(an);if("string"==typeof an)try{var fi=li.parse(an);if(Array.isArray(fi))return fi;if(Io(fi))return ioe(fi)}catch{return[an]}return[an]}if("object"===Vn){if(Array.isArray(an))return noe(an);if(Io(an))return an;if("string"==typeof an)try{var Lo=li.parse(an);if(Io(Lo))return Lo;if(Array.isArray(Lo))return noe(Lo)}catch{return{value:an}}return{value:an}}if("value"===Vn)return Ho(an)?li.stringify(an):an;throw new Error("Cannot convert ".concat(VN(an,li)," to ").concat(Vn))}(It,Ce,R);if(Jt===It)return;var nn=[{op:"replace",path:ln(lt),value:Jt}];r("handleConvert",{selection:ie.selection,path:lt,type:Ce,operations:nn}),Yn(nn,function(an,Vn){return{state:np(an,Vn,ie.selection.focusPath)}})}catch(an){X(an)}else X(new Error("Cannot convert current selection to ".concat(Ce)))}function hi(){var Ce=qoe(c,ie,!1),lt=Xi(ie.selection.focusPath);!Hi(Ce.focusPath)&&or(lt,Xi(Ce.focusPath))?tt(uf(Ce.focusPath)):tt(cf(lt)),r("insert before",{selection:ie.selection,selectionBefore:Ce,parentPath:lt}),Xl().then(Rl)}function di(){var Ce=Nr(ie.selection)?Ln(ie.selection.paths):ie.selection.focusPath;r("insert after",Ce),tt(uf(Ce)),Xl().then(Rl)}function kr(Ce){return Qr.apply(this,arguments)}function Qr(){return(Qr=Zi(vn().mark(function Ce(lt){return vn().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,ece({char:lt,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:br,onSelect:tt});case 2:case"end":return It.stop()}},Ce)}))).apply(this,arguments)}function gi(){if(!_&&wr.getState().canUndo){var Ce=wr.undo();if(Ce){var lt={json:c,text:u};e(10,c=Ce.undo.patch?Yu(c,Ce.undo.patch):Ce.undo.json),e(16,ie=Ce.undo.state),e(11,u=Ce.undo.text),e(23,Fn=Ce.undo.textIsRepaired),r("undo",{item:Ce,json:c,documentState:ie}),ei(lt,{json:c,previousJson:lt.json,redo:Ce.undo.patch,undo:Ce.redo.patch}),Ps(),ie.selection&&hn(ie.selection.focusPath,!1)}}}function yr(){if(!_&&wr.getState().canRedo){var Ce=wr.redo();if(Ce){var lt={json:c,text:u};e(10,c=Ce.redo.patch?Yu(c,Ce.redo.patch):Ce.redo.json),e(16,ie=Ce.redo.state),e(11,u=Ce.redo.text),e(23,Fn=Ce.redo.textIsRepaired),r("redo",{item:Ce,json:c,documentState:ie}),ei(lt,{json:c,previousJson:lt.json,redo:Ce.redo.patch,undo:Ce.undo.patch}),Ps(),ie.selection&&hn(ie.selection.focusPath,!1)}}}function Ee(Ce){var lt;_||void 0===c||(Ne=!0,V({id:h,json:c,rootPath:Ce,onSort:(lt=Zi(vn().mark(function It(Jt){var nn;return vn().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:r("onSort",Ce,nn=Jt.operations),Yn(nn,function(Vn,li){return{state:Ze(Ze({},np(Vn,li,Ce)),{},{selection:mr(Ce,!1)})}});case 3:case"end":return an.stop()}},It)})),function(It){return lt.apply(this,arguments)}),onClose:function(){Ne=!1,Ps()}}))}function St(){ie.selection&&Ee(Joe(c,ie.selection))}function Ht(Ce){var It=Ce.rootPath,Jt=Ce.onTransform,nn=Ce.onClose;void 0!==c&&It&&(Ne=!0,oe({id:Ce.id||f,json:c,rootPath:It,onTransform:Jt?function(an){Jt({operations:an,json:c,transformedJson:Yu(c,an)})}:function(an){r("onTransform",It,an),Yn(an,function(Vn,li){return{state:Ze(Ze({},np(Vn,li,It)),{},{selection:mr(It,!1)})}})},onClose:function(){Ne=!1,Ps(),nn&&nn()}}))}function sn(){ie.selection&&Ht({rootPath:Joe(c,ie.selection)})}function hn(Ce){return ri.apply(this,arguments)}function ri(){return ri=Zi(vn().mark(function Ce(lt){var It,Jt,nn,an,li=arguments;return vn().wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return It=!(li.length>1&&void 0!==li[1])||li[1],e(16,ie=PO(c,ie,Xi(lt))),fi.next=4,Xl();case 4:if(!(Jt=Oi(lt))){fi.next=14;break}if(r("scrollTo",{path:lt,elem:Jt,refContents:s}),nn=s.getBoundingClientRect(),an=Jt.getBoundingClientRect(),It){fi.next=12;break}if(!(an.bottom>nn.top&&an.topIt.bottom-20&&y(lt,{container:s,offset:-(It.height-nn-20),duration:0})}}function ei(Ce,lt){(void 0!==Ce.json||void 0!==Ce?.text)&&(void 0!==u?Z({text:u,json:void 0},Ce,{contentErrors:Cr(),patchResult:lt}):void 0!==c&&Z({text:void 0,json:c},Ce,{contentErrors:Cr(),patchResult:lt}))}function Yn(Ce,lt){if(!_)return r("handlePatch",Ce,lt),Er(Ce,lt)}function br(Ce,lt){var It=ie,Jt=c,nn=u,an={json:c,text:u},Vn=Fn,li=nu(c,ie,[],sh),fi="function"==typeof lt?lt(Ce,li):void 0;e(10,c=fi&&void 0!==fi.json?fi.json:Ce),e(16,ie=fi&&void 0!==fi.state?fi.state:li),e(11,u=void 0),e(23,Fn=!1),ai(c),bi({previousJson:Jt,previousState:It,previousText:nn,previousTextIsRepaired:Vn}),ei(an,null)}function Ar(Ce,lt){r("handleChangeText");var It=ie,Jt=c,nn=u,an={json:c,text:u},Vn=Fn;try{e(10,c=z(Ce)),e(16,ie=nu(c,ie,[],sh)),e(11,u=void 0),e(23,Fn=!1)}catch{try{e(10,c=z(Yd(Ce))),e(16,ie=nu(c,ie,[],sh)),e(11,u=Ce),e(23,Fn=!0)}catch{e(10,c=void 0),e(16,ie=Lk({json:c,expand:sh})),e(11,u=Ce),e(23,Fn=!1)}}if("function"==typeof lt){var li=lt(c,ie);e(10,c=li&&li.json?li.json:c),e(16,ie=li&&li.state?li.state:ie)}ai(c),bi({previousJson:Jt,previousState:It,previousText:nn,previousTextIsRepaired:Vn}),ei(an,null)}function Po(Ce,lt){var It=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Ce,expanded:lt,recursive:It}),e(16,ie=lt?It?nu(c,ie,Ce,Hb):function PGe(t,n){return Ze(Ze({},t),{},{expandedMap:Ze(Ze({},t.expandedMap),{},ql({},ln(n),!0))})}(ie,Ce):Loe(ie,Ce)),ie.selection&&!lt&&function RGe(t,n){return l0(t.focusPath,n)&&(t.focusPath.length>n.length||Xs(t))}(ie.selection,Ce)&&tt(void 0),setTimeout(function(){jk(l)||Ps()})}function ca(Ce){r("openFind",{findAndReplace:Ce}),e(19,Ie=!1),e(20,Ye=!1),Xl().then(function(){e(19,Ie=!0),e(20,Ye=Ce)})}function md(Ce,lt){r("handleExpandSection",Ce,lt);var nn,an,Vn,It=ln(Ce);e(16,(an=It,Vn=lt,ie=Ze(Ze({},nn=ie),{},{visibleSectionsMap:Ze(Ze({},nn.visibleSectionsMap),{},ql({},an,Poe(Rk(nn,an).concat(Vn))))})))}function hu(Ce){r("pasted json as text",Ce),e(18,B=Ce)}function ua(Ce){Ne=!0;var Lo=m(XXe,{json:c,documentState:ie,parser:R,showTip:Ce.showTip,onEditKey:qr,onEditValue:ao,onToggleEnforceString:Js,onCut:vr,onCopy:qa,onPaste:Ic,onRemove:He,onDuplicate:qe,onExtract:ut,onInsertBefore:hi,onInsert:Dn,onConvert:ii,onInsertAfter:di,onSort:St,onTransform:sn,onCloseContextMenu:function(){g(Lo),Ps()}},{left:Ce.left,top:Ce.top,offsetTop:Ce.offsetTop,offsetLeft:Ce.offsetLeft,width:Ce.width,height:Ce.height,anchor:Ce.anchor,closeOnOuterClick:!0,onClose:function(){Ne=!1,Ps()}})}function Rl(Ce){if(!_&&!ip(ie.selection)){if(Ce&&(Ce.stopPropagation(),Ce.preventDefault()),Ce&&"contextmenu"===Ce.type&&Ce.target!==a)ua({left:Ce.clientX,top:Ce.clientY,width:260,height:336,showTip:!1});else{var lt,It=null===(lt=s)||void 0===lt?void 0:lt.querySelector(".jse-context-menu-pointer.jse-selected");if(It)ua({anchor:It,offsetTop:2,width:260,height:336,showTip:!1});else{var Jt,nn=null===(Jt=s)||void 0===Jt?void 0:Jt.getBoundingClientRect();nn&&ua({top:nn.top+2,left:nn.left+2,width:260,height:336,showTip:!1})}}return!1}}function gd(){return(gd=Zi(vn().mark(function Ce(){var lt,It,Jt;return vn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return r("apply pasted json",B),It=(lt=B).path,Jt=lt.contents,tt(mr(It,!1)),nn.next=5,Xl();case 5:Yn([{op:"replace",path:ln(It),value:Jt}],function(an,Vn){return{state:np(an,Vn,It)}});case 7:case"end":return nn.stop()}},Ce)}))).apply(this,arguments)}function Ps(){r("focus"),a&&(a.focus(),a.select())}function vd(Ce){return lt=c,It=ie,nn=Xi(Jt=Ce),an=[Ln(Jt)],(li=(Vn=Sn(lt,nn))?HO(Vn,It,an):void 0)?mr(nn.concat(li),!1):uf(Jt);var lt,It,Jt,nn,an,Vn,li}function yd(Ce){i&&i.onDrag(Ce)}function eT(){i&&i.onDragEnd()}return t.$$set=function(Ce){"readOnly"in Ce&&e(0,_=Ce.readOnly),"externalContent"in Ce&&e(50,C=Ce.externalContent),"mainMenuBar"in Ce&&e(1,S=Ce.mainMenuBar),"navigationBar"in Ce&&e(2,M=Ce.navigationBar),"escapeControlCharacters"in Ce&&e(51,$=Ce.escapeControlCharacters),"escapeUnicodeCharacters"in Ce&&e(52,G=Ce.escapeUnicodeCharacters),"parser"in Ce&&e(3,R=Ce.parser),"parseMemoizeOne"in Ce&&e(53,z=Ce.parseMemoizeOne),"validator"in Ce&&e(54,U=Ce.validator),"validationParser"in Ce&&e(55,q=Ce.validationParser),"pathParser"in Ce&&e(4,re=Ce.pathParser),"indentation"in Ce&&e(5,L=Ce.indentation),"onError"in Ce&&e(6,X=Ce.onError),"onChange"in Ce&&e(56,Z=Ce.onChange),"onChangeMode"in Ce&&e(57,H=Ce.onChangeMode),"onRenderValue"in Ce&&e(58,he=Ce.onRenderValue),"onRenderMenu"in Ce&&e(7,E=Ce.onRenderMenu),"onClassName"in Ce&&e(59,N=Ce.onClassName),"onFocus"in Ce&&e(60,F=Ce.onFocus),"onBlur"in Ce&&e(61,Y=Ce.onBlur),"onSortModal"in Ce&&e(62,V=Ce.onSortModal),"onTransformModal"in Ce&&e(63,oe=Ce.onTransformModal),"onJSONEditorModal"in Ce&&e(64,fe=Ce.onJSONEditorModal)},t.$$.update=function(){var Ce,lt;3145728&t.$$.dirty[1]&&e(73,ot=TO({escapeControlCharacters:$,escapeUnicodeCharacters:G})),524288&t.$$.dirty[1]&&function gt(Ce){void 0!==Ce.json&&function(lt){if(void 0!==lt){var It=!or(c,lt);if(r("update external json",{isChanged:It,currentlyText:void 0===c}),It){var Jt={json:c,text:u},nn=ie,an=c,Vn=u,li=Fn;e(10,c=lt),On(c),e(11,u=void 0),e(23,Fn=!1),ai(c),bi({previousJson:an,previousState:nn,previousText:Vn,previousTextIsRepaired:li}),ei(Jt,null)}}}(Ce.json),void 0!==Ce.text&&function(lt){if(void 0!==lt&&void 0===C.json){var It=lt!==u;if(r("update external text",{isChanged:It}),It){var Jt={json:c,text:u},nn=c,an=ie,Vn=u,li=Fn;try{e(10,c=z(lt)),On(c),e(11,u=lt),e(23,Fn=!1),xe=void 0}catch(fi){try{e(10,c=z(Yd(lt))),On(c),e(11,u=lt),e(23,Fn=!0),xe=void 0,ai(c)}catch{e(10,c=void 0),e(11,u=C.text),e(23,Fn=!1),xe=Nk(u,fi.message||fi.toString())}}ai(c),bi({previousJson:nn,previousState:an,previousText:Vn,previousTextIsRepaired:li}),ei(Jt,null)}}}(Ce.text)}(C),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&jo(_t,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Fi(c,U,R,q),4096&t.$$.dirty[0]&&e(24,(lt={},(Ce=xt).forEach(function(It){lt[ln(It.path)]=It}),Ce.forEach(function(It){for(var Jt=It.path;Jt.length>0;){var nn=ln(Jt=Xi(Jt));nn in lt||(lt[nn]={isChildError:!0,path:Jt,message:"Contains invalid data",severity:Xd.warning})}}),Ai=lt)),512&t.$$.dirty[0]&&(i=s?function(Ce){var lt,It;function Jt(li){return li<20?200:li<50?400:1200}function nn(){Ce&&(Ce.scrollTop+=.05*(lt||0))}function an(li){It&&li===lt||(Vn(),s4("startAutoScroll",li),lt=li,It=setInterval(nn,50))}function Vn(){It&&(s4("stopAutoScroll"),clearInterval(It),It=void 0,lt=void 0)}return s4("createAutoScrollHandler",Ce),{onDrag:function(li){if(Ce){var fi=li.clientY,Lo=Ce.getBoundingClientRect(),Ls=Lo.top,Zo=Lo.bottom;fiZo?an(Jt(fi-Zo)):Vn()}},onDragEnd:function(){Vn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Wr={readOnly:_,parser:R,normalization:ot,getJson:xo,getDocumentState:Qo,findElement:Oi,findNextInside:vd,focus:Ps,onPatch:Yn,onInsert:Ue,onExpand:Po,onSelect:tt,onFind:ca,onExpandSection:md,onPasteJson:hu,onRenderValue:he,onContextMenu:ua,onClassName:N||function(){},onDrag:yd,onDragEnd:eT}),8192&t.$$.dirty[0]&&r("context changed",Wr)},[_,S,M,R,re,L,X,E,function(){return Fn&&void 0!==c&&br(c),{json:c,text:u}},s,c,u,xt,Wr,a,l,ie,ze,B,Ie,Ye,Le,Or,Fn,Ai,o,At,function(){return ci.apply(this,arguments)},function(){return on.apply(this,arguments)},function(Ce,lt){return Ni.apply(this,arguments)},function(Ce,lt){return pn.apply(this,arguments)},function(){e(19,Ie=!1),e(20,Ye=!1),At(""),Ps()},function(Ce){r("select validation error",Ce),tt(mr(Ce.path,!1)),hn(Ce.path)},qa,function(Ce){Ce.preventDefault(),Qle({clipboardText:Ce.clipboardData.getData("text/plain"),json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onChangeText:Ar,openRepairModal:we})},gi,yr,function(){Ee([])},function(){Ht({rootPath:[]})},function(){Po([],!0,!0)},function(){Po([],!1,!0)},function(Ce){var lt=tp(Ce),It=Ce.shiftKey;if(r("keydown",{combo:lt,key:Ce.key}),"Ctrl+X"===lt&&(Ce.preventDefault(),vr(!0)),"Ctrl+Shift+X"===lt&&(Ce.preventDefault(),vr(!1)),"Ctrl+C"===lt&&(Ce.preventDefault(),qa(!0)),"Ctrl+Shift+C"===lt&&(Ce.preventDefault(),qa(!1)),"Ctrl+D"===lt&&(Ce.preventDefault(),qe()),"Delete"!==lt&&"Backspace"!==lt||(Ce.preventDefault(),He()),"Insert"===lt&&(Ce.preventDefault(),Ue("structure")),"Ctrl+A"===lt&&(Ce.preventDefault(),tt(mr([],!1))),"Ctrl+Q"===lt&&Rl(Ce),"ArrowUp"===lt||"Shift+ArrowUp"===lt){Ce.preventDefault();var Jt=ie.selection?qoe(c,ie,It,!0)||ie.selection:s0(c,ie);tt(Jt),Bn(Jt.focusPath)}if("ArrowDown"===lt||"Shift+ArrowDown"===lt){Ce.preventDefault();var nn=ie.selection?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Nr(Mr)?Mr.focusPath:Ln(Mr.paths),fu=HO(wo,$l,tc),_d=fu,Ch=fu;if(null===fu||null==_d||null==Ch)return null;if(wh){var xd=HO(wo,Ho(Sn(wo,tc))?Loe($l,tc):$l,tc);return null===xd?null:Zu(Mr)?Os(wo,xd,xd):Xs(Mr)?Os(wo,_d,Ch):Os(wo,Mr.anchorPath,xd)}if(xs(Mr)){var z_=Sn(wo,Xi(fu));return Array.isArray(z_)?mr(Ch,!1):iu(Ch,!1)}return Yi(Mr)?mr(Ch,!1):Xs(Mr)?Os(wo,_d,Ch):Os(wo,fu,fu)}(c,ie,It,!0)||ie.selection:s0(c,ie);tt(nn),Bn(nn.focusPath)}if("ArrowLeft"===lt||"Shift+ArrowLeft"===lt){Ce.preventDefault();var an=ie.selection?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=Xoe(wo,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),fu=tc.caret,_d=tc.previous;if(wh)return Nr(Mr)?null:Os(wo,Mr.anchorPath,Mr.focusPath);if(fu&&_d)return zO(_d);var xd=Sn(wo,Xi(Mr.focusPath));return Yi(Mr)&&Array.isArray(xd)?Os(wo,Mr.focusPath,Mr.focusPath):Nr(Mr)&&!Array.isArray(xd)?iu(Mr.focusPath,!1):null}(c,ie,It,!_)||ie.selection:s0(c,ie);tt(an),Bn(an.focusPath)}if("ArrowRight"===lt||"Shift+ArrowRight"===lt){Ce.preventDefault();var Vn=ie.selection&&void 0!==c?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=Xoe(wo,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),fu=tc.caret,_d=tc.next;return wh?Nr(Mr)?null:Os(wo,Mr.anchorPath,Mr.focusPath):fu&&_d?zO(_d):Nr(Mr)?mr(Mr.focusPath,!1):null}(c,ie,It,!_)||ie.selection:s0(c,ie);tt(Vn),Bn(Vn.focusPath)}if("Enter"===lt&&ie.selection){if(!_&&Nr(ie.selection)&&1===ie.selection.paths.length){var li=ie.selection.focusPath,fi=Sn(c,Xi(li));Array.isArray(fi)&&tt(mr(li,!1))}!_&&xs(ie.selection)&&(Ce.preventDefault(),tt(Ze(Ze({},ie.selection),{},{edit:!0}))),Yi(ie.selection)&&(Ce.preventDefault(),Ho(Sn(c,ie.selection.focusPath))?Po(ie.selection.focusPath,!0):_||tt(Ze(Ze({},ie.selection),{},{edit:!0})))}if(1===lt.replace(/^Shift\+/,"").length&&ie.selection)return Ce.preventDefault(),void kr(Ce.key);if("Enter"===lt&&(Zu(ie.selection)||Xs(ie.selection)))return Ce.preventDefault(),void kr("");if("Ctrl+Enter"===lt&&Yi(ie.selection)){var Lo=Sn(c,ie.selection.focusPath);V2(Lo)&&window.open(String(Lo),"_blank")}if("Escape"===lt&&ie.selection&&(Ce.preventDefault(),tt(void 0)),"Ctrl+F"===lt&&(Ce.preventDefault(),ca(!1)),"Ctrl+H"===lt&&(Ce.preventDefault(),ca(!0)),"Ctrl+Z"===lt){Ce.preventDefault();var Ls=document.activeElement;Ls&&Ls.blur&&Ls.focus?(Ls.blur(),setTimeout(function(){gi(),setTimeout(function(){return Ls.select()})})):gi()}if("Ctrl+Shift+Z"===lt){Ce.preventDefault();var Zo=document.activeElement;Zo&&Zo.blur&&Zo.focus?(Zo.blur(),setTimeout(function(){yr(),setTimeout(function(){return Zo.select()})})):yr()}},function(Ce){r("handleMouseDown",Ce),setTimeout(function(){setTimeout(function(){v||yoe(Ce.target,"BUTTON")||(Ps(),ie.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,ie=Ze(Ze({},ie),{},{selection:Os(c||{},[],[])}))))})})},Rl,function(Ce){_||ua({anchor:_oe(Ce.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return gd.apply(this,arguments)},function(){r("clear pasted json"),e(18,B=void 0)},function(){H(Jo.text)},function(Ce){tt(Ce),Ps(),hn(Ce.focusPath)},function(Ce){!Pb(Ce.target,function(It){return It===l})&&ip(ie.selection)&&(r("click outside the editor, stop edit mode"),tt(function(It){return xs(It)||Yi(It)?Ze(Ze({},It),{},{edit:!1}):It}),v&&a&&(a.focus(),a.blur()),Xl().then(function(){setTimeout(function(){a&&a.blur()})}))},C,$,G,z,U,q,Z,H,he,N,F,Y,V,oe,fe,function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hb;r("expand");var lt=Ze(Ze({},ie),{},{expandedMap:{},visibleSectionsMap:{}});e(16,ie=nu(c,lt,[],Ce))},Cr,xo,Er,Ht,hn,Oi,Ps,ot,_t,function(Ce){e(19,Ie=Ce)},function(Ce){Vi[Ce?"unshift":"push"](function(){e(14,a=Ce)})},function(Ce){Vi[Ce?"unshift":"push"](function(){e(9,s=Ce)})},function(Ce){Vi[Ce?"unshift":"push"](function(){e(15,l=Ce)})}]}var k4=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,XJe,qJe,Ei,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},BJe,[-1,-1,-1,-1,-1]),r}return Se(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function YJe(t){pi(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function sce(t){var n,e,i,r,o,s=[KJe,JJe],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=_r()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):($t(),ce(a[d],1,1,function(){a[d]=null}),Bt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){ce(i),o=!1},d:function(c){a[e].d(c),c&&je(r)}}}function JJe(t){var n;return{c:function(){n=tn("(Only available for arrays, not for objects)")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function KJe(t){var n,e;return n=new wqe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ace(t){var n,e;return n=new k4({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:go,onError:console.error,onChange:go,onChangeMode:go,onFocus:go,onBlur:go,onSortModal:go,onTransformModal:go,onJSONEditorModal:go,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function QJe(t){var n,e;return{c:function(){n=be("div"),e=tn(t[17]),P(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){Pe(i,n,r),de(n,e)},p:function(i,r){131072&r[0]&&qn(e,i[17])},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function ZJe(t){var n,e;return n=new k4({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:go,onError:console.error,onChange:go,onChangeMode:go,onFocus:go,onBlur:go,onSortModal:go,onTransformModal:go,onJSONEditorModal:go,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function eKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,Z,H,he,E,N,F,Y,V,oe,fe,Ne,xe,tt,ze,ot,B,ne=t[21](t[0]).description+"";n=new Nqe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new sr({props:{data:t[15]?ru:rp}});var ie=t[15]&&sce(t);X=new sr({props:{data:t[16]?ru:rp}});var Ie=t[16]&&ace(t),Ye=[ZJe,QJe],Le=[];function _t(At,_n){return At[17]?1:0}return Y=_t(t),V=Le[Y]=Ye[Y](t),{c:function(){mt(n.$$.fragment),e=it(),i=be("div"),r=be("div"),o=be("div"),(s=be("div")).innerHTML='
    Language
    ',a=it(),l=be("div"),c=it(),(u=be("div")).innerHTML='
    Path
    ',d=it(),h=be("input"),p=it(),m=be("div"),g=be("div"),v=be("button"),mt(y.$$.fragment),_=tn("\n Wizard"),C=it(),ie&&ie.c(),S=it(),(M=be("div")).innerHTML='
    Query
    ',$=it(),G=be("textarea"),R=it(),z=be("div"),U=be("div"),q=be("div"),re=be("div"),L=be("button"),mt(X.$$.fragment),Z=tn("\n Original"),H=it(),Ie&&Ie.c(),he=it(),E=be("div"),(N=be("div")).innerHTML='
    Preview
    ',F=it(),V.c(),oe=it(),fe=be("div"),Ne=be("button"),xe=tn("Transform"),P(s,"class","jse-label svelte-107mggt"),P(l,"class","jse-description svelte-107mggt"),P(u,"class","jse-label svelte-107mggt"),P(h,"class","jse-path svelte-107mggt"),P(h,"type","text"),h.readOnly=!0,P(h,"title","Selected path"),h.value=f=Hi(t[1])?"(whole document)":tu(Kl(t[1])),P(v,"type","button"),P(v,"class","svelte-107mggt"),P(g,"class","jse-label-inner svelte-107mggt"),P(m,"class","jse-label svelte-107mggt"),P(M,"class","jse-label svelte-107mggt"),P(G,"class","jse-query svelte-107mggt"),P(G,"spellcheck","false"),G.value=t[13],P(o,"class","jse-query-contents svelte-107mggt"),P(L,"type","button"),P(L,"class","svelte-107mggt"),P(re,"class","jse-label-inner svelte-107mggt"),P(q,"class","jse-label svelte-107mggt"),P(U,"class","jse-original-data svelte-107mggt"),Mt(U,"jse-hide",!t[16]),P(N,"class","jse-label svelte-107mggt"),P(E,"class","jse-preview-data svelte-107mggt"),P(z,"class","jse-data-contents svelte-107mggt"),Mt(z,"jse-hide-original-data",!t[16]),P(r,"class","jse-main-contents svelte-107mggt"),P(Ne,"type","button"),P(Ne,"class","jse-primary svelte-107mggt"),Ne.disabled=tt=!!t[17],P(fe,"class","jse-actions svelte-107mggt"),P(i,"class","jse-modal-contents svelte-107mggt")},m:function(At,_n){ft(n,At,_n),Pe(At,e,_n),Pe(At,i,_n),de(i,r),de(r,o),de(o,s),de(o,a),de(o,l),l.innerHTML=ne,de(o,c),de(o,u),de(o,d),de(o,h),de(o,p),de(o,m),de(m,g),de(g,v),ft(y,v,null),de(v,_),de(o,C),ie&&ie.m(o,null),de(o,S),de(o,M),de(o,$),de(o,G),de(r,R),de(r,z),de(z,U),de(U,q),de(q,re),de(re,L),ft(X,L,null),de(L,Z),de(U,H),Ie&&Ie.m(U,null),de(z,he),de(z,E),de(E,N),de(E,F),Le[Y].m(E,null),de(i,oe),de(i,fe),de(fe,Ne),de(Ne,xe),ze=!0,ot||(B=[Ft(v,"click",t[25]),Ft(G,"input",t[23]),Ft(L,"click",t[26]),Ft(Ne,"click",t[24]),_a(nKe.call(null,Ne))],ot=!0)},p:function(At,_n){var ci={};512&_n[0]&&(ci.queryLanguages=At[9]),1&_n[0]&&(ci.queryLanguageId=At[0]),n.$set(ci),(!ze||1&_n[0])&&ne!==(ne=At[21](At[0]).description+"")&&(l.innerHTML=ne),(!ze||2&_n[0]&&f!==(f=Hi(At[1])?"(whole document)":tu(Kl(At[1])))&&h.value!==f)&&(h.value=f);var on={};32768&_n[0]&&(on.data=At[15]?ru:rp),y.$set(on),At[15]?ie?(ie.p(At,_n),32768&_n[0]&&Q(ie,1)):((ie=sce(At)).c(),Q(ie,1),ie.m(o,S)):ie&&($t(),ce(ie,1,1,function(){ie=null}),Bt()),(!ze||8192&_n[0])&&(G.value=At[13]);var Ni={};65536&_n[0]&&(Ni.data=At[16]?ru:rp),X.$set(Ni),At[16]?Ie?(Ie.p(At,_n),65536&_n[0]&&Q(Ie,1)):((Ie=ace(At)).c(),Q(Ie,1),Ie.m(U,null)):Ie&&($t(),ce(Ie,1,1,function(){Ie=null}),Bt()),(!ze||65536&_n[0])&&Mt(U,"jse-hide",!At[16]);var pn=Y;(Y=_t(At))===pn?Le[Y].p(At,_n):($t(),ce(Le[pn],1,1,function(){Le[pn]=null}),Bt(),(V=Le[Y])?V.p(At,_n):(V=Le[Y]=Ye[Y](At)).c(),Q(V,1),V.m(E,null)),(!ze||65536&_n[0])&&Mt(z,"jse-hide-original-data",!At[16]),(!ze||131072&_n[0]&&tt!==(tt=!!At[17]))&&(Ne.disabled=tt)},i:function(At){ze||(Q(n.$$.fragment,At),Q(y.$$.fragment,At),Q(ie),Q(X.$$.fragment,At),Q(Ie),Q(V),ze=!0)},o:function(At){ce(n.$$.fragment,At),ce(y.$$.fragment,At),ce(ie),ce(X.$$.fragment,At),ce(Ie),ce(V),ze=!1},d:function(At){pt(n,At),At&&je(e),At&&je(i),pt(y),ie&&ie.d(),pt(X),Ie&&Ie.d(),Le[Y].d(),ot=!1,ho(B)}}}function tKe(t){var n,e,i,r,o;return e=new Doe({props:{$$slots:{default:[eKe]},$$scope:{ctx:t}}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=_a(iS.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function nKe(t){t.focus()}function iKe(t,n,e){var i,r,o=wa("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+fb():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,_=n.queryLanguageId,C=n.onChangeQueryLanguage,S=n.onRenderValue,M=n.onClassName,$=n.onTransform,G=xa("simple-modal").close,R="".concat(a,":").concat(ln(u)),z=ed[R]||{},U=!1!==ed.showWizard,q=!1!==ed.showOriginal,re=z.queryOptions||{},L=_===z.queryLanguageId&&z.query?z.query:he(_).createQuery(l,z.queryOptions||{}),X=z.isManual||!1,Z=void 0,H={text:""};function he(N){return y.find(function(F){return F.id===N})||y[0]}var E=Gv(function(N,F){try{o("previewTransform",{query:F});var Y=he(_).executeQuery(N,F,p);e(18,H={json:Y}),e(17,Z=void 0)}catch(V){e(18,H={text:""}),e(17,Z=V.toString())}},300);return t.$$set=function(N){"id"in N&&e(28,a=N.id),"json"in N&&e(29,l=N.json),"rootPath"in N&&e(1,u=N.rootPath),"indentation"in N&&e(2,d=N.indentation),"escapeControlCharacters"in N&&e(3,h=N.escapeControlCharacters),"escapeUnicodeCharacters"in N&&e(4,f=N.escapeUnicodeCharacters),"parser"in N&&e(5,p=N.parser),"parseMemoizeOne"in N&&e(6,m=N.parseMemoizeOne),"validationParser"in N&&e(7,g=N.validationParser),"pathParser"in N&&e(8,v=N.pathParser),"queryLanguages"in N&&e(9,y=N.queryLanguages),"queryLanguageId"in N&&e(0,_=N.queryLanguageId),"onChangeQueryLanguage"in N&&e(30,C=N.onChangeQueryLanguage),"onRenderValue"in N&&e(10,S=N.onRenderValue),"onClassName"in N&&e(11,M=N.onClassName),"onTransform"in N&&e(31,$=N.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Sn(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&E(i,L),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,ed[R]={queryOptions:re,query:L,queryLanguageId:_,isManual:X},ed),o("store state in memory",R,ed[R]))},[_,u,d,h,f,p,m,g,v,y,S,M,re,L,i,U,q,Z,H,r,G,he,function(N){e(12,re=N),e(13,L=he(_).createQuery(l,N)),e(33,X=!1),o("updateQueryByWizard",{queryOptions:re,query:L,isManual:X})},function(N){e(13,L=N.target.value),e(33,X=!0),o("handleChangeQuery",{query:L,isManual:X})},function(){try{o("handleTransform",{query:L});var N=he(_).executeQuery(i,L,p);$([{op:"replace",path:ln(u),value:N}]),G()}catch(F){console.error(F),e(18,H={text:""}),e(17,Z=F.toString())}},function(){e(15,U=!U),e(32,ed.showWizard=U,ed)},function(){e(16,q=!q),e(32,ed.showOriginal=q,ed)},function(N){o("handleChangeQueryLanguage",N),e(0,_=N),C(N);var F=he(_);e(13,L=F.createQuery(l,re)),e(33,X=!1)},a,l,C,$,ed,X]}var rKe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,iKe,tKe,Ei,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},YJe,[-1,-1]),r}return Se(e)}(),up={};function oKe(t){pi(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function lce(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new Hm({props:c}),Vi.push(function(){return Uu(o,"value",l)}),{c:function(){n=be("tr"),(e=be("th")).textContent="Property",i=it(),r=be("td"),mt(o.$$.fragment),P(e,"class","svelte-1y818v2"),P(r,"class","svelte-1y818v2")},m:function(u,d){Pe(u,n,d),de(n,e),de(n,i),de(n,r),ft(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],zu(function(){return s=!1})),o.$set(h)},i:function(u){a||(Q(o.$$.fragment,u),a=!0)},o:function(u){ce(o.$$.fragment,u),a=!1},d:function(u){u&&je(n),pt(o)}}}function cce(t){var n,e;return{c:function(){n=be("div"),e=tn(t[5]),P(n,"class","jse-error svelte-1y818v2")},m:function(i,r){Pe(i,n,r),de(n,e)},p:function(i,r){32&r&&qn(e,i[5])},d:function(i){i&&je(n)}}}function sKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,Z;e=new c4({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&lce(t);function he(F){t[15](F)}var E={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(E.value=t[2]),S=new Hm({props:E}),Vi.push(function(){return Uu(S,"value",he)});var N=t[5]&&cce(t);return{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),o=be("table"),(s=be("colgroup")).innerHTML=' \n ',a=it(),l=be("tbody"),c=be("tr"),(u=be("th")).textContent="Path",d=it(),h=be("td"),f=be("input"),m=it(),H&&H.c(),g=it(),v=be("tr"),(y=be("th")).textContent="Direction",_=it(),C=be("td"),mt(S.$$.fragment),$=it(),G=be("div"),N&&N.c(),R=it(),z=be("div"),U=be("button"),q=tn("Sort"),P(u,"class","svelte-1y818v2"),P(f,"class","jse-path svelte-1y818v2"),P(f,"type","text"),f.readOnly=!0,P(f,"title","Selected path"),f.value=p=Hi(t[0])?"(whole document)":tu(Kl(t[0])),P(h,"class","svelte-1y818v2"),P(y,"class","svelte-1y818v2"),P(C,"class","svelte-1y818v2"),P(o,"class","svelte-1y818v2"),P(G,"class","jse-space svelte-1y818v2"),P(U,"type","button"),P(U,"class","jse-primary svelte-1y818v2"),U.disabled=re=!!t[4]&&!t[1],P(z,"class","jse-actions svelte-1y818v2"),P(r,"class","jse-modal-contents svelte-1y818v2"),P(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(F,Y){Pe(F,n,Y),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(o,s),de(o,a),de(o,l),de(l,c),de(c,u),de(c,d),de(c,h),de(h,f),de(l,m),H&&H.m(l,null),de(l,g),de(l,v),de(v,y),de(v,_),de(v,C),ft(S,C,null),de(r,$),de(r,G),N&&N.m(G,null),de(r,R),de(r,z),de(z,U),de(U,q),L=!0,X||(Z=[Ft(U,"click",t[8]),_a(aKe.call(null,U)),_a(iS.call(null,n,t[6]))],X=!0)},p:function(F,Y){var V=Un(Y,1)[0],oe={};16&V&&(oe.title=F[4]?"Sort array items":"Sort object keys"),e.$set(oe),(!L||1&V&&p!==(p=Hi(F[0])?"(whole document)":tu(Kl(F[0])))&&f.value!==p)&&(f.value=p),F[4]&&(F[3].length>1||void 0===F[1])?H?(H.p(F,V),26&V&&Q(H,1)):((H=lce(F)).c(),Q(H,1),H.m(l,g)):H&&($t(),ce(H,1,1,function(){H=null}),Bt());var fe={};!M&&4&V&&(M=!0,fe.value=F[2],zu(function(){return M=!1})),S.$set(fe),F[5]?N?N.p(F,V):((N=cce(F)).c(),N.m(G,null)):N&&(N.d(1),N=null),(!L||18&V&&re!==(re=!!F[4]&&!F[1]))&&(U.disabled=re)},i:function(F){L||(Q(e.$$.fragment,F),Q(H),Q(S.$$.fragment,F),L=!0)},o:function(F){ce(e.$$.fragment,F),ce(H),ce(S.$$.fragment,F),L=!1},d:function(F){F&&je(n),pt(e),H&&H.d(),pt(S),N&&N.d(),X=!1,ho(Z)}}}function aKe(t){t.focus()}function lKe(t,n,e){var i,r,o,s=wa("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=xa("simple-modal").close,h="".concat(a,":").concat(ln(c)),f=Sn(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=up[h]&&up[h].selectedProperty||void 0,v=up[h]&&up[h].selectedDirection||p,y=void 0;return t.$$set=function(_){"id"in _&&e(9,a=_.id),"json"in _&&e(10,l=_.json),"rootPath"in _&&e(0,c=_.rootPath),"onSort"in _&&e(11,u=_.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?CO(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(Lb):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,up[h]={selectedProperty:g,selectedDirection:v},up),s("store state in memory",h,up[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var _,C;e(5,y=void 0);var S=null===(_=g)||void 0===_?void 0:_.value,M=null===(C=v)||void 0===C?void 0:C.value,$=Nle(l,c,S,M);u({operations:$,rootPath:c,itemPath:S,direction:M}),d()}catch(G){e(5,y=G.toString())}},a,l,u,up,r,function(_){e(1,g=_),e(3,o),e(13,r),e(4,i)},function(_){e(2,v=_)}]}var cKe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,lKe,sKe,Ei,{id:9,json:10,rootPath:0,onSort:11},oKe),r}return Se(e)}();function dh(){}function sS(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function uKe(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function dKe(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,_=n.canTransform,C=n.onRenderMenu;return t.$$set=function(S){"readOnly"in S&&e(1,s=S.readOnly),"onFormat"in S&&e(2,a=S.onFormat),"onCompact"in S&&e(3,l=S.onCompact),"onSort"in S&&e(4,c=S.onSort),"onTransform"in S&&e(5,u=S.onTransform),"onToggleSearch"in S&&e(6,d=S.onToggleSearch),"onUndo"in S&&e(7,h=S.onUndo),"onRedo"in S&&e(8,f=S.onRedo),"canUndo"in S&&e(9,p=S.canUndo),"canRedo"in S&&e(10,m=S.canRedo),"canFormat"in S&&e(11,g=S.canFormat),"canCompact"in S&&e(12,v=S.canCompact),"canSort"in S&&e(13,y=S.canSort),"canTransform"in S&&e(14,_=S.canTransform),"onRenderMenu"in S&&e(15,C=S.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:m4,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:UYe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!_},{type:"button",icon:KO,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=C(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,r]}var hKe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,dKe,uKe,Ei,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Se(e)}(),fo=function(){function t(){ke(this,t)}return Se(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),aS.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),aS.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new t_(this),o=new t_(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new t_(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new dce(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new hce(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new id(n):aS.from(id.split(n,[])):t.empty}}]),t}(),id=function(t){wt(e,fo);var n=Ct(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function fKe(t){var n,e=-1,i=Re(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return ke(this,e),(r=n.call(this)).text=i,r.length=o,r}return Se(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new pKe(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(uce(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=lS(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return pr(qi(e.prototype),"replace",this).call(this,i,r,o);var s=lS(this.text,lS(o.text,uce(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):aS.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=Re(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),aS=function(t){wt(e,fo);var n=Ct(e);function e(i,r){var o;ke(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=Re(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Se(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return pr(qi(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return pr(qi(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Un(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(R,z){return R+z.length+1},-1),s=0,a=Re(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(R){a.e(R)}finally{a.f()}if(s<32){var c,u=[],d=Re(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(R){d.e(R)}finally{d.f()}return new id(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,_=[];function C(R){var z;if(R.lines>p&&R instanceof e){var U,q=Re(R.children);try{for(q.s();!(U=q.n()).done;)C(U.value)}catch(re){q.e(re)}finally{q.f()}}else R.lines>m&&(v>m||!v)?(S(),g.push(R)):R instanceof id&&v&&(z=_[_.length-1])instanceof id&&R.lines+z.lines<=32?(v+=R.lines,y+=R.length+1,_[_.length-1]=new id(z.text.concat(R.text),z.length+1+R.length)):(v+R.lines>f&&S(),v+=R.lines,y+=R.length+1,_.push(R))}function S(){0!=v&&(g.push(1==_.length?_[0]:e.from(_,y)),y=-1,v=_.length=0)}var M,$=Re(i);try{for($.s();!(M=$.n()).done;)C(M.value)}catch(R){$.e(R)}finally{$.f()}return S(),1==g.length?g[0]:new e(g,o)}}]),e}();function lS(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;ke(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof id?n.text.length:n.children.length)<<1]}return Se(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof id?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof id){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof id?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),dce=function(){function t(n,e,i){ke(this,t),this.value="",this.done=!1,this.cursor=new t_(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Se(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),hce=function(){function t(n){ke(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Se(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(fo.prototype[Symbol.iterator]=function(){return this.iter()},t_.prototype[Symbol.iterator]=dce.prototype[Symbol.iterator]=hce.prototype[Symbol.iterator]=function(){return this});for(var pKe=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Se(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),w0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),cS=1;cSt)return w0[n-1]<=t;return!1}function fce(t){return t>=127462&&t<=127487}function Pl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?gKe:pce)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function pce(t,n,e){if(n==t.length)return n;n&&mce(t.charCodeAt(n))&&gce(t.charCodeAt(n-1))&&n--;var i=Ba(t,n);for(n+=Sc(i);n=0&&fce(Ba(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function gKe(t,n,e){for(;n>0;){var i=pce(t,n-2,e);if(i=56320&&t<57344}function gce(t){return t>=55296&&t<56320}function Ba(t,n){var e=t.charCodeAt(n);if(!gce(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return mce(i)?i-56320+(e-55296<<10)+65536:e}function S4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Sc(t){return t<65536?1:2}var D4=/\r\n?|\n/,Ll=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Ll||(Ll={})),C0=function(){function t(n){ke(this,t),this.sections=n}return Se(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ll.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Ll.Simple&&c>=n&&(i==Ll.TrackDel&&rn||i==Ll.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),rd=function(t){wt(e,C0);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this,i)).inserted=r,o}return Se(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return T4(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return E4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){T4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return C0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new n_(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&dp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var _=y?"string"==typeof y?fo.of(y.split(o||D4)):y:fo.empty,C=_.length;if(m==v&&0==C)return;ml&&dl(s,m-l,-1),dl(s,v-m,C),dp(a,s,_),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function dp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function E4(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new n_(t),a=new n_(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);dl(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?rd.createSet(r,o):C0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new n_(t),s=new n_(n),a=!1;;){if(o.done&&s.done)return r?rd.createSet(i,r):C0.create(i);if(0==o.ins)dl(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;dl(i,l,u,a),r&&u&&dp(r,i,s.text)}else-1==s.ins?(dl(i,o.off?0:o.len,l,a),r&&dp(r,i,o.textBit(l))):(dl(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&dp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else dl(i,0,s.ins,a),r&&dp(r,i,s.text),s.next()}}var n_=function(){function t(n){ke(this,t),this.set=n,this.i=0,this.next()}return Se(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?fo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?fo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),uS=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.flags=i}return Se(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return en.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return en.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return en.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),en=function(){function t(n,e){ke(this,t),this.ranges=n,this.mainIndex=e}return Se(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return uS.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return uS.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function yce(t,n){var e,i=Re(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var A4=0,Qn=function(){function t(n,e,i,r,o){ke(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=A4++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Se(t,[{key:"of",value:function(n){return new dS([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new dS(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new dS(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:M4),!!n.static,n.enables)}}]),t}();function M4(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var dS=function(){function t(n,e,i,r){ke(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=A4++}return Se(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=Re(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||I4(m,h)){var v=o(m);if(c?!bce(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var _=hS(g,y);if(r.dependencies.every(function(C){return C instanceof Qn?g.facet(C)===m.facet(C):!(C instanceof Va)||g.field(C,!1)==m.field(C,!1)})||(c?bce(v=o(m),_,s):s(v=o(m),_)))return m.values[l]=_,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function bce(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,_ce.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(A4++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function i_(t){return function(n){return new xce(n,t)}}var k0={highest:i_(0),high:i_(1),default:i_(2),low:i_(3),lowest:i_(4)},xce=Se(function t(n,e){ke(this,t),this.inner=n,this.prec=e}),hp=function(){function t(){ke(this,t)}return Se(t,[{key:"of",value:function(n){return new F4(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),F4=Se(function t(n,e){ke(this,t),this.compartment=n,this.inner=e}),wce=function(){function t(n,e,i,r,o,s){for(ke(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,C,S,M,$,G,o=[],s=Object.create(null),a=new Map,l=Re((C=n,S=e,M=a,$=[[],[],[],[],[]],G=new Map,function R(z,U){var q=G.get(z);if(null!=q){if(q<=U)return;var re=$[q].indexOf(z);re>-1&&$[q].splice(re,1),z instanceof F4&&M.delete(z.compartment)}if(G.set(z,U),Array.isArray(z)){var L,X=Re(z);try{for(X.s();!(L=X.n()).done;)R(L.value,U)}catch(he){X.e(he)}finally{X.f()}}else if(z instanceof F4){if(M.has(z.compartment))throw new RangeError("Duplicate use of compartment in extensions");var Z=S.get(z.compartment)||z.inner;M.set(z.compartment,Z),R(Z,U)}else if(z instanceof xce)R(z.inner,z.prec);else if(z instanceof Va)$[U].push(z),z.provides&&R(z.provides,U);else if(z instanceof dS)$[U].push(z),z.facet.extensions&&R(z.facet.extensions,2);else{var H=z.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(z,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));R(H,U)}}(C,2),$.reduce(function(z,U){return z.concat(U)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof Va?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(C){l.e(C)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var C=m[p];u[C.id]=h.length<<1,h.push(function(S){return C.slot(S)})},p=0,m=o;p>1;function N(F){for(var Y=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function hS(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var Cce=Qn.define(),kce=Qn.define({combine:function(t){return t.some(function(n){return n})},static:!0}),Sce=Qn.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),Dce=Qn.define(),Tce=Qn.define(),Ece=Qn.define(),Ace=Qn.define({combine:function(t){return!!t.length&&t[0]}}),fp=function(){function t(n,e){ke(this,t),this.type=n,this.value=e}return Se(t,null,[{key:"define",value:function(){return new _Ke}}]),t}(),_Ke=function(){function t(){ke(this,t)}return Se(t,[{key:"of",value:function(n){return new fp(this,n)}}]),t}(),xKe=function(){function t(n){ke(this,t),this.map=n}return Se(t,[{key:"of",value:function(n){return new hr(this,n)}}]),t}(),hr=function(){function t(n,e){ke(this,t),this.type=n,this.value=e}return Se(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new xKe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=Re(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();hr.reconfigure=hr.define(),hr.appendConfig=hr.define();var Ql=function(){function t(n,e,i,r,o,s){ke(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&yce(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Se(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=Re(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function wKe(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=Mce(u,O4(l,h,a.changes.newLength),!0))}return u==a?a:Ql.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=Re(c.facet(Dce));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:wKe(u,h))}}catch(_){d.e(_)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=rd.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=Ql.create(c,f,a.selection&&a.selection.map(p),hr.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Tce),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof Ql?y:Array.isArray(y)&&1==y.length&&y[0]instanceof Ql?y[0]:Ice(c,S0(y),!1)}return a}(s):s)}Ql.time=fp.define(),Ql.userEvent=fp.define(),Ql.addToHistory=fp.define(),Ql.remote=fp.define();var CKe=[];function S0(t){return null==t?CKe:Array.isArray(t)?t:[t]}var j4,cs=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(cs||(cs={})),kKe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{j4=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Fo=function(){function t(n,e,i,r,o,s){ke(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return r_(this,i),hS(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof rd?n:rd.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return fo.of(n.split(this.facet(t.lineSeparator)||D4))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(r_(this,e),hS(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof Va&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Ace)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=Re(this.facet(Cce));try{for(s.s();!(i=s.n()).done;){var a,c=Re((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function SKe(t){return function(n){if(!/\S/.test(n))return cs.Space;if(function(i){if(j4)return j4.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||kKe.test(o)))return!0}return!1}(n))return cs.Word;for(var e=0;e-1)return cs.Word;return cs.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=Pl(i,a,!1);if(s(i.slice(c,a))!=cs.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:en.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=wce.resolve(n.extensions||[],new Map),i=n.doc instanceof fo?n.doc:fo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||D4)),r=n.selection?n.selection instanceof en?n.selection:en.single(n.selection.anchor,n.selection.head):en.single(0);return yce(r,i.length),e.staticFacet(kce)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function su(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=Re(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();Um.prototype.startSide=Um.prototype.endSide=0,Um.prototype.point=!1,Um.prototype.mapMode=Ll.TrackDel;var P4=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.value=i}return Se(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function L4(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var DKe=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),Go=function(){function t(n,e,i,r){ke(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=Re(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(L4)),this.isEmpty)return i.length?t.of(i):this;for(var d=new Fce(this,null,-1).goto(0),h=0,f=[],p=new Gm;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return R4.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return R4.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Nce(s,a,i),c=new o_(s,l,o),u=new o_(a,l,o);i.iterGaps(function(d,h,f){return Oce(c,d,u,h,f,r)}),i.empty&&0==i.length&&Oce(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Nce(o,s),l=new o_(o,a,0).goto(i),c=new o_(s,a,0).goto(i);;){if(l.to!=c.to||!B4(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new o_(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Gm,o=Re(n instanceof P4?[n]:i?function TKe(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(L4);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();Go.empty=new Go([],[],null,-1),Go.empty.nextLayer=Go.empty;var Gm=function(){function t(){ke(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Se(t,[{key:"finishChunk",value:function(n){this.chunks.push(new DKe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(Go.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=Go.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Nce(t,n,e){var i,r=new Map,o=Re(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;ke(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Se(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=Re(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)$4(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=Re(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)$4(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),$4(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new Fce(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function $4(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var o_=function(){function t(n,e,i){ke(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=R4.from(n,e,i)}return Se(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){fS(this.active,n),fS(this.activeTo,n),fS(this.activeRank,n),this.minActive=jce(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&fS(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Oce(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&B4(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!B4(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function B4(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function jce(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=Pl(t,r)}return!0===i?-1:t.length}for(var Pce=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),H4=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Lce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},pp=function(){function t(n,e){ke(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==bn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Se(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Lce[Pce]||1;return Lce[Pce]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[H4]||new EKe(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),mS=null,EKe=function(){function t(n){if(ke(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(mS)return n.adoptedStyleSheets=[mS.sheet].concat(n.adoptedStyleSheets),n[H4]=mS;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),mS=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[H4]=this}return Se(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Rce=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),AKe=typeof navigator<"u"&&/Mac/.test(navigator.platform),MKe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),IKe=AKe||Rce&&+Rce[1]<57,Ha=0;Ha<10;Ha++)mp[48+Ha]=mp[96+Ha]=String(Ha);for(Ha=1;Ha<=24;Ha++)mp[Ha+111]="F"+Ha;for(Ha=65;Ha<=90;Ha++)mp[Ha]=String.fromCharCode(Ha+32),a_[Ha]=String.fromCharCode(Ha);for(var z4 in mp)a_.hasOwnProperty(z4)||(a_[z4]=mp[z4]);function gS(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function D0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function vS(t,n){if(!n.anchorNode)return!1;try{return D0(t,n.anchorNode)}catch{return!1}}function l_(t){return 3==t.nodeType?E0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function yS(t,n,e,i){return!!e&&($ce(t,n,e,i,-1)||$ce(t,n,e,i,1))}function bS(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function $ce(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:c_(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=bS(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?c_(t):0}}}function c_(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var Bce={left:0,right:0,top:0,bottom:0};function U4(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function NKe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var Vce,FKe=function(){function t(){ke(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Se(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),T0=null;function Hce(t){if(t.setActive)return t.setActive();if(T0)return t.focus(T0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==T0?{get preventScroll(){return T0={preventScroll:!0},!0}}:void 0),!T0){T0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=Vce||(Vce=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function A0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function zce(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Dc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];ke(this,t),this.node=n,this.offset=e,this.precise=i}return Se(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,bS(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,bS(n)+1,e)}}]),t}(),G4=[],ws=function(){function t(){ke(this,t),this.parent=null,this.dom=null,this.dirty=2}return Se(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=Re(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=Re(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=Uce(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=Uce(i)}else if(1&this.dirty){var u,d=Re(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==c_(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G4;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function Uce(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}ws.prototype.breakAfter=0;var Gce=function(){function t(n,e,i){ke(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Se(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function Wce(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),Zn={mac:Qce||/Mac/.test(Tc.platform),windows:/Win/.test(Tc.platform),linux:/Linux|X11/.test(Tc.platform),ie:_S,ie_version:Xce?W4.documentMode||6:X4?+X4[1]:q4?+q4[1]:0,gecko:Yce,gecko_version:Yce?+(/Firefox\/(\d+)/.exec(Tc.userAgent)||[0,0])[1]:0,chrome:!!Y4,chrome_version:Y4?+Y4[1]:0,ios:Qce,android:/Android\b/.test(Tc.userAgent),webkit:Jce,safari:Kce,webkit_version:Jce?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=W4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},u_=function(t){wt(e,ws);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).text=i,r}return Se(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Dc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return J4(this.dom,i,r)}}]),e}(),Wm=function(t){wt(e,ws);var n=Ct(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;ke(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=Re(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(An(r))}catch(u){l.e(u)}finally{l.f()}return r}return Se(e,[{key:"setAttrs",value:function(i){if(zce(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),pr(qi(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}}]),e}();function J4(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?Zn.chrome||Zn.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return Zn.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?U4(l,s<0):l||null}var K4=function(t){wt(e,ws);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Se(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:U4(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){pr(qi(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),Zce=function(t){wt(e,K4);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?Q4(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Dc(s,Math.min(a,s.nodeValue.length))}):new Dc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?eue(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?Q4(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return J4(a,l,c)}):J4(a,i,r)}},{key:"destroy",value:function(){var i;pr(qi(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function Q4(t,n,e,i,r,o){if(e instanceof Wm){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=ws.get(s);if(!a)return o(t,n);var l=D0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return fo.empty}}]),e}();function tue(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof Wm&&r.length&&(i=r[r.length-1])instanceof Wm&&i.mark.eq(n.mark)?nue(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function iue(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new rue(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new d_(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=oue(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new d_(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new ij(i)}},{key:"set",value:function(i){return Go.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();yi.none=Go.empty;var rue=function(t){wt(e,yi);var n=Ct(e);function e(i){var r;ke(this,e);var o=oue(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Se(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&tj(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();rue.prototype.point=!1;var ij=function(t){wt(e,yi);var n=Ct(e);function e(i){return ke(this,e),n.call(this,-2e8,-2e8,null,i)}return Se(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&tj(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();ij.prototype.mapMode=Ll.TrackBefore,ij.prototype.point=!0;var d_=function(t){wt(e,yi);var n=Ct(e);function e(i,r,o,s,a,l){var c;return ke(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Ll.TrackBefore:Ll.TrackAfter:Ll.TrackDel,c}return Se(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();function oue(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function rj(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}d_.prototype.point=!0;var od=function(t){wt(e,ws);var n=Ct(e);function e(){var i;return ke(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),qce(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){tj(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){nue(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=ej(r,this.attrs||{})),o&&(this.attrs=ej({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(zce(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(nj(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),pr(qi(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&ws.get(s)instanceof Wm;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=ws.get(s))||void 0===o?void 0:o.isEditable)||Zn.ios&&this.children.some(function(l){return l instanceof u_})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof u_)||/[^ -~]/.test(s.text))return null;var a=l_(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return _o.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),oj=function(t){wt(e,ws);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(xS(new Z4(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(xS(new u_(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof d_){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof d_)if(i.block){var l=i.type;l!=_o.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new oj(i.widget||new sue("div"),a,l))}else{var c=K4.create(i.widget||new sue("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(xS(new Z4(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(xS(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=Go.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function xS(t,n){var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)t=new Wm(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var sue=function(t){wt(e,gp);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).tag=i,r}return Se(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),aue=Qn.define(),lue=Qn.define(),cue=Qn.define(),uue=Qn.define(),sj=Qn.define(),due=Qn.define(),hue=Qn.define(),fue=Qn.define({combine:function(t){return t.some(function(n){return n})}}),pue=Qn.define({combine:function(t){return t.some(function(n){return n})}}),mue=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;ke(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Se(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),gue=hr.define({map:function(t,n){return t.map(n)}});function Ec(t,n,e){var i=t.facet(uue);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var wS=Qn.define({combine:function(t){return!t.length||t[0]}}),PKe=0,h_=Qn.define(),ka=function(){function t(n,e,i,r){ke(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Se(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(PKe++,n,i.eventHandlers,function(a){var l=[h_.of(a)];return s&&l.push(f_.of(function(c){var u=c.plugin(a);return u?s(u):yi.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),aj=function(){function t(n){ke(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Se(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Ec(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){Ec(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){Ec(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),vue=Qn.define(),lj=Qn.define(),f_=Qn.define(),yue=Qn.define(),bue=Qn.define(),p_=Qn.define(),M0=function(){function t(n,e,i,r){ke(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Se(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),_ue=function(){function t(n,e,i){ke(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=rd.empty(this.startState.doc.length);var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new M0(l,c,u,d))}),this.changedRanges=a}return Se(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),us=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(us||(us={})),cj=us.LTR,LKe=us.RTL;function xue(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),ds=[];function Due(t){return[new I0(0,t,0)]}var Tue="";function HKe(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=I0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=Pl(t.text,s,u);if(Tue=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return en.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=Re(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=ws.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Aue(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Mue=Se(function t(n,e){ke(this,t),this.node=n,this.offset=e,this.pos=-1}),Iue=function(t){wt(e,ws);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).view=i,r.compositionDeco=yi.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new od],r.children[0].setParent(An(r)),r.updateDeco(),r.updateInner([new M0(0,0,0,i.state.doc.length)],0),r}return Se(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=yi.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=Fue(a);if(!c)return yi.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new Eue([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=jKe.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,_=v.off,C=o.findPos(l,-1);Wce(this,C.i,C.off,y,_,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(Zn.gecko&&a.empty&&function zKe(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Dc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&yS(l.node,l.offset,d.anchorNode,d.anchorOffset)&&yS(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){Zn.android&&Zn.chrome&&i.dom.contains(d.focusNode)&&function qKe(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=gS(i.view.root);if(h)if(a.empty){if(Zn.gecko){var f=function GKe(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Dc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Dc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=gS(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=od.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||vS(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=ws.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=_o.WidgetBefore&&a.type!=_o.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==_o.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==us.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?l_(g):[];if(v.length){var y=v[v.length-1],_=u?y.right-m.left:m.right-y.left;_>c&&(c=_,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?us.RTL:us.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof od){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=l_(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new Gce(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(yi.replace({widget:new Nue(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return yi.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(f_).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=Re(this.view.state.facet(bue).map(function(C){return C(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(C){f.e(C)}finally{f.f()}!function(C,S,M,$,G,R,z,U){for(var q=C.ownerDocument,re=q.defaultView||window,L=C;L;)if(1==L.nodeType){var X=void 0,Z=L==q.body;if(Z)X=NKe(re);else{if(L.scrollHeight<=L.clientHeight&&L.scrollWidth<=L.clientWidth){L=L.assignedSlot||L.parentNode;continue}var H=L.getBoundingClientRect();X={left:H.left,right:H.left+L.clientWidth,top:H.top,bottom:H.top+L.clientHeight}}var he=0,E=0;if("nearest"==G)S.top0&&S.bottom>X.bottom+E&&(E=S.bottom-X.bottom+E+z)):S.bottom>X.bottom&&(E=S.bottom-X.bottom+z,M<0&&S.top-E0&&S.right>X.right+he&&(he=S.right-X.right+he+R)):S.right>X.right&&(he=S.right-X.right+R,M<0&&S.left0&&e<=0)n=c_(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var WKe=function(){function t(){ke(this,t),this.changes=[]}return Se(t,[{key:"compareRange",value:function(n,e){rj(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){rj(n,e,this.changes)}}]),t}();function XKe(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function YKe(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function hj(t,n){return t.topn.top+1}function jue(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function fj(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=l_(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&hj(c,m)?c=Pue(c,m.bottom):u&&hj(u,m)&&(u=jue(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var _=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Lue(i,_,e):d&&"false"!=i.contentEditable?fj(i,_,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Lue(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((Zn.chrome||Zn.gecko)&&E0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Rue(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=_o.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:$ue(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,_=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var C=m.caretPositionFromPoint(c,u);C&&(y=C.offsetNode,_=C.offset)}else if(m.caretRangeFromPoint){var S=m.caretRangeFromPoint(c,u);S&&(_=S.startOffset,(!t.contentDOM.contains(y=S.startContainer)||Zn.safari&&function JKe(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return E0(t,i-1,i).getBoundingClientRect().left>e}(y,_,c)||Zn.chrome&&function KKe(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():E0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,_,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var M=od.find(t.docView,p);if(!M)return d>r.top+r.height/2?r.to:r.from;var $=fj(M.dom,c,u);y=$.node,_=$.offset}var G=t.docView.nearest(y);if(!G)return null;if(G.isWidget){var R=G.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+V4(s,o,t.state.tabSize)}function Bue(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=HKe(r,o,s,a,e),u=Tue;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=en.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function pj(t,n,e){for(var i=t.state.facet(yue).map(function(a){return a(t)});;){var r,o=!1,s=Re(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?en.cursor(a,1):en.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var ZKe=function(){function t(n){var e=this;ke(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=la[s];n.contentDOM.addEventListener(s,function(l){zue(n,l)&&i(a,l)},mj[s]),e.registeredEvents.push(s)};for(var o in la)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(la.mousedown,s)}),Zn.chrome&&102==Zn.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,Zn.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Se(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=Re(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){zue(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=Re(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){Ec(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=Re(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){Ec(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,A0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(Zn.safari&&!Zn.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),Vue=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],eQe="dthko",Hue=[16,17,18,20,91,92,224,225];function CS(t){return.7*t+8}var tQe=function(){function t(n,e,i,r){ke(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Fo.allowMultipleSelections)&&(a=e,(l=n.state.facet(aue)).length?l[0](a):Zn.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(lue);return l.length?l[0](a):Zn.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=gS(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=Zue(e))&&null}return Se(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-CS(o.left-n.clientX):n.clientX>=o.right&&(i=CS(n.clientX-o.right)),n.clientY<=o.top?r=-CS(o.top-n.clientY):n.clientY>=o.bottom&&(r=CS(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function zue(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=ws.get(i))&&e.ignoreEvent(n))return!1;return!0}var la=Object.create(null),mj=Object.create(null),Uue=Zn.ie&&Zn.ie_version<15||Zn.ios&&Zn.webkit_version<604;function Gue(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=gj&&i.selection.ranges.every(function(c){return c.empty})&&gj==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:en.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:en.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function Wue(t,n,e,i){if(1==i)return en.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return en.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=Pl(h.text,f,!1):m=Pl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=Pl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=Re(t.state.facet(cue));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=Yue(s=t,a=n),c=Zue(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=Yue(s,d),m=Wue(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=Wue(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(_){return _.eq(m)})?function(_,C){for(var S=0;;S++)if(_.ranges[S].eq(C))return en.create(_.ranges.slice(0,S).concat(_.ranges.slice(S+1)),_.mainIndex==S?0:_.mainIndex-(_.mainIndex>S?1:0))}(u,m):f?u.addRange(m):en.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new tQe(t,n,i,o)),o&&t.observer.ignore(function(){return Hce(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var que=function(t,n){return t>=n.top&&t<=n.bottom},Xue=function(t,n,e){return que(n,e)&&t>=e.left&&t<=e.right};function nQe(t,n,e,i){var r=od.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&Xue(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&Xue(e,i,a)?1:s&&que(i,s)?-1:1}function Yue(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:nQe(t,e,n.clientX,n.clientY)}}var iQe=Zn.ie&&Zn.ie_version<=11,Jue=null,Kue=0,Que=0;function Zue(t){if(!iQe)return t.detail;var n=Jue,e=Que;return Jue=t,Que=Date.now(),Kue=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(Kue+1)%3:1}function ede(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}la.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},la.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&ede(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(_){g.e(_)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){gj=o?i:null;var s=Uue?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var tde=fp.define();function nde(t,n){var e,i=[],r=Re(t.facet(hue));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:tde.of(!0)}):null}function ide(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=nde(t.state,n);e?t.dispatch(e):t.update([])}},10)}la.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),ide(t)},la.blur=function(t){t.observer.clearSelectionRange(),ide(t)},la.compositionstart=la.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},la.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,Zn.chrome&&Zn.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},la.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},la.beforeinput=function(t,n){var e,i;if(Zn.chrome&&Zn.android&&(i=Vue.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var rde=["pre-wrap","normal","pre-line","break-spaces"],rQe=function(){function t(n){ke(this,t),this.lineWrapping=n,this.doc=fo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Se(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return rde.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;ke(this,t),this.length=n,this.height=e,this.flags=i}return Se(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Wo.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Wo.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),fh=function(t){wt(e,ode);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this,i,r,_o.Text)).collapsed=0,o.widgetHeight=0,o}return Se(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof N0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof N0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):sd.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),N0=function(t){wt(e,sd);var n=Ct(e);function e(i){return ke(this,e),n.call(this,i,0)}return Se(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new qm(f.from,f.length,m,p,_o.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new qm(v.from,v.length,o+u*g,u,_o.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Wo.ByHeight)return this.blockAt(i,o,s,a);if(r==Wo.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new qm(c,l.to-c,0,0,_o.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new qm(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,_o.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new qm(m.from,m.length,p,v,_o.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return sd.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new fh(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=sd.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),sQe=function(t){wt(e,sd);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Se(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Wo.ByPosNoHeight?Wo.ByPosNoHeight:Wo.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Wo.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=Re(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&sde(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?sd.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function sde(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof N0&&(i=t[n+1])instanceof N0&&t.splice(n-1,3,new N0(e.length+1+i.length))}var aQe=function(){function t(n,e){ke(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Se(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof fh?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new fh(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new fh(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new N0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof fh)return n;var e=new fh(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=_o.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=_o.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof fh||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function dQe(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var vj=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.size=i}return Se(t,[{key:"draw",value:function(n){return yi.replace({widget:new hQe(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new kS(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?lde:new pQe(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:m_(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(f_).filter(function(c){return"function"!=typeof c});var o=M0.extendWithRanges(n.changedRanges,function lQe(t,n,e){var i=new cQe;return Go.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:rd.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(pue)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?us.RTL:us.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?dQe:uQe)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var _=n.docView.measureTextSize(),C=_.lineHeight,S=_.charWidth;(s=C>0&&r.refresh(o,C,S,v/S,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var M,$=Re(this.viewports);try{for($.s();!(M=$.n()).done;){var G=M.value,R=G.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(G);this.heightMap=(s?sd.empty().applyChanges(this.stateDeco,fo.empty,this.heightOracle,[new M0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new oQe(G.from,R))}}catch(U){$.e(U)}finally{$.f()}r.heightChanged&&(c|=2)}var z=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return z&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||z)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new kS(r.lineAt(this.visibleTop-1e3*i,Wo.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Wo.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Wo.ByPos,o,0,0);l=new kS(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Wo.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Wo.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=us.LTR&&!r)return[];var l,c=[],u=function q(re,L,X,Z){if(!(L-rere&&F=X.from&&oe.to<=X.to&&Math.abs(oe.from-re)fe})});if(!Y){if(L=L})){var V=e.moveToLineBoundary(en.cursor(L),!1,!0).head;V>re&&(L=V)}Y=new vj(re,L,i.gapSize(X,re,L,Z))}c.push(Y)}},d=Re(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||m_(this.heightMap.lineAt(n,Wo.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return m_(this.heightMap.lineAt(this.scaler.fromDOM(n),Wo.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return m_(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),kS=Se(function t(n,e){ke(this,t),this.from=n,this.to=e});function fQe(t,n,e){var i=[],r=t,o=0;return Go.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function DS(t,n){var e,i=0,r=Re(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var lde={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},pQe=function(){function t(n,e,i){ke(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Wo.ByPos,n,0,0).top,p=e.lineAt(h,Wo.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=Re(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Se(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),bj=pp.newName(),cde=pp.newName(),ude=pp.newName(),dde={"&light":"."+cde,"&dark":"."+ude};function _j(t,n,e){return new pp(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var mQe=_j("."+bj,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},dde),gQe=Se(function t(n,e,i,r){ke(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,_=m.focusOffset;return g&&(p.push(new Mue(g,v)),y==g&&_==v||p.push(new Mue(y,_))),p}(n),c=new Eue(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?en.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!D0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!D0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=en.single(h,d)}});function hde(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||Zn.android&&n.text.length0&&Z>0&&R.charCodeAt(X-1)==z.charCodeAt(Z-1);)X--,Z--;return"end"==q&&(U-=X+Math.max(0,L-Math.min(X,Z))-L),X=X?L-U:0)+(Z-X),X=L):Z=Z?L-U:0)+(X-Z),Z=L),{from:L,toA:X,toB:Z}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(Zn.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:fo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(wS)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(Zn.mac||Zn.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=en.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:fo.of([" "])}):Zn.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=en.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:fo.of([" "])}),e){var d=t.state;if(Zn.ios&&t.inputState.flushIOSKey(t)||Zn.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&A0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&A0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&A0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(due).some(function(R){return R(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),_=Fue(t)||t.state.doc.lineAt(r.head),C=r.to-e.to,S=r.to-r.from;h=d.changeByRange(function(R){if(R.from==r.from&&R.to==r.to)return{changes:g,range:v||R.map(g)};var z=R.to-C,U=z-y.length;if(R.to-R.from!=S||t.state.sliceDoc(U,z)!=y||_&&R.to>=_.from&&R.from<=_.to)return{range:R};var q=d.changes({from:U,to:z,insert:e.insert}),re=R.to-r.to;return{changes:q,range:v?en.range(Math.max(0,v.anchor+re),Math.max(0,v.head+re)):R.map(q)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var M="input.type";return t.composing&&(M+=".compose",t.inputState.compositionFirstChange&&(M+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:M}),!0}if(i&&!i.main.eq(r)){var $=!1,G="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&($=!0),G=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:$,userEvent:G}),!0}return!1}var vQe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},xj=Zn.ie&&Zn.ie_version<=11,yQe=function(){function t(n){var e=this;ke(this,t),this.view=n,this.active=!1,this.selectionRange=new FKe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(Zn.ie&&Zn.ie_version<=11||Zn.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),xj&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Se(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(wS)?i.root.activeElement==this.dom:vS(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(Zn.ie&&Zn.ie_version<=11||Zn.android&&Zn.chrome)&&!i.state.selection.main.empty&&r.focusNode&&yS(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=Zn.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(yS(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||gS(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=vS(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=Re(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=Re(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&vS(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new gQe(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=hde(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=fde(e,n.previousSibling||n.target.previousSibling,-1),r=fde(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=Re(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function fde(t,n,e){for(;n;){var i=ws.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Wn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function OKe(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new ade(e.state||Fo.create(e)),this.plugins=this.state.facet(h_).map(function(s){return new aj(s)});var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new yQe(this),this.inputState=new ZKe(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Iue(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Se(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof Ql?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=Re(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(R){l.e(R)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(R){return R.annotation(tde)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=nde(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Fo.phrases)!=this.state.facet(Fo.phrases))return this.setState(a);(i=_ue.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=Re(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var _=y.state.selection.main;m=new mue(_.empty?_:en.cursor(_.head,_.head>_.anchor?-1:1))}var C,S=Re(y.effects);try{for(S.s();!(C=S.n()).done;){var M=C.value;M.is(gue)&&(m=M.value)}}catch(R){S.e(R)}finally{S.f()}}}catch(R){v.e(R)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=mde.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(p_)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(R){return R.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(TS)!=i.state.facet(TS)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var $,G=Re(this.state.facet(sj));try{for(G.s();!($=G.n()).done;)(0,$.value)(i)}catch(R){G.e(R)}finally{G.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!hde(e,p)&&f.force&&A0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new ade(n),this.plugins=n.facet(h_).map(function(a){return new aj(a)}),this.pluginMap.clear();var o,s=Re(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Iue(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(h_),i=n.state.facet(h_);if(e!=i){var r,o=[],s=Re(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new aj(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=Re(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=Re(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(R){try{return R.read(n)}catch(z){return Ec(n.state,z),pde}}),g=_ue.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var _=0;_1||S<-1)&&(this.scrollDOM.scrollTop+=S,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var M,$=Re(this.state.facet(sj));try{for($.s();!(M=$.n()).done;)(0,M.value)(i)}catch(R){$.e(R)}finally{$.f()}}}}},{key:"themeClasses",get:function(){return bj+" "+(this.state.facet(yj)?ude:cde)+" "+this.state.facet(TS)}},{key:"updateAttrs",value:function(){var n=this,e=gde(this,vue,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(wS)?"true":"false",class:"cm-content",style:"".concat(Zn.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),gde(this,lj,i);var r=this.observer.ignore(function(){var o=nj(n.contentDOM,n.contentAttrs,i),s=nj(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=Re(n);try{for(r.s();!(e=r.n()).done;){var o,s=Re(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(p_),pp.mount(this.root,this.styleModules.concat(mQe).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==us.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return en.cursor(l,e?-1:1)}var c=od.find(t.docView,n.head);return en.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return pj(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return en.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var _=u+(v+y)*c,C=Rue(r,{x:g,y:_},!1,c);if(_h.bottom||(c<0?Cl))return en.cursor(C,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Rue(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return U4(i,o[I0.find(o,n-r.from,-1,e)].dir==us.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(fue)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>bQe)return Due(n.length);var e,i=this.textDirectionAt(n.from),r=Re(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==cj?1:2,d=l==cj?2:1;if(!a||1==u&&!VKe.test(a))return Due(c);for(var h=0,f=u,p=u;h=0;re-=3)if(hh[re+1]==-G){var L=hh[re+2],X=2&L?u:4&L?1&L?d:u:0;X&&(ds[z]=ds[hh[re]]=X),U=re;break}}else{if(189==hh.length)break;hh[U++]=z,hh[U++]=$,hh[U++]=q}else if(2==(R=ds[z])||1==R){var Z=R==u;q=Z?0:1;for(var H=U-3;H>=0;H-=3){var he=hh[H+2];if(2&he)break;if(Z)hh[H+2]|=2;else{if(4&he)break;hh[H+2]|=4}}}for(var E=0;ENe;){for(var ze=tt,ot=2!=ds[--tt];tt>Ne&&ot==(2!=ds[tt-1]);)tt--;oe.push(new I0(tt,ze,ot?2:1))}else oe.push(new I0(Ne,fe,0))}else for(var B=0;BDate.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){Hce(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=Re(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return gue.of(new mue("number"==typeof n?en.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return ka.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=pp.newName(),r=[TS.of(i),p_.of(_j(".".concat(i),n))];return e&&e.dark&&r.push(yj.of(!0)),r}},{key:"baseTheme",value:function(n){return k0.lowest(p_.of(_j("."+bj,n,dde)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&ws.get(i)||ws.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Wn.styleModule=p_,Wn.inputHandler=due,Wn.focusChangeEffect=hue,Wn.perLineTextDirection=fue,Wn.exceptionSink=uue,Wn.updateListener=sj,Wn.editable=wS,Wn.mouseSelectionStyle=cue,Wn.dragMovesSelection=lue,Wn.clickAddsSelectionRange=aue,Wn.decorations=f_,Wn.atomicRanges=yue,Wn.scrollMargins=bue,Wn.darkTheme=yj,Wn.contentAttributes=lj,Wn.editorAttributes=vue,Wn.lineWrapping=Wn.contentAttributes.of({class:"cm-lineWrapping"}),Wn.announce=hr.define();var bQe=4096,pde={},mde=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Se(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:us.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&ej(s,e)}return e}var _Qe=Zn.mac?"mac":Zn.windows?"win":Zn.linux?"linux":"key";function ES(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var wQe=k0.default(Wn.domEventHandlers({keydown:function(t,n){return bde(yde(n.state),t,n,"editor")}})),AS=Qn.define({enables:wQe}),vde=new WeakMap;function yde(t){var n=t.facet(AS),e=vde.get(n);return e||vde.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_Qe,s=Object.create(null),a=Object.create(null),l=function(M,$){var G=a[M];if(null==G)a[M]=$;else if(G!=$)throw new Error("Key binding "+M+" is used both as a regular binding and as a multi-stroke prefix")},c=function(M,$,G,R){for(var z,U,q=s[M]||(s[M]=Object.create(null)),re=$.split(/ (?!$)/).map(function(he){return function xQe(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==us.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=_de(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=wde(t,i),f=wde(t,r),p=h.type==_o.Text?h:null,m=f.type==_o.Text?f:null;if(t.lineWrapping&&(p&&(p=xde(t,i,p)),m&&(m=xde(t,r,m))),p&&m&&p.from==m.from)return C(S(e.from,e.to,p));var g=p?S(e.from,null,p):M(h,!1),v=m?S(null,e.to,m):M(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(_(u,g.bottom,d,v.top)):g.bottomX&&he.from=N)break;Ne>E&&re(Math.max(fe,E),null==$&&fe<=X,Math.min(Ne,N),null==G&&Ne>=Z,oe.dir)}}catch(xe){V.e(xe)}finally{V.f()}if((E=Y.to+1)>=N)break}}}catch(xe){H.e(xe)}finally{H.f()}return 0==q.length&&re(X,null==$,Z,null==G,t.textDirection),{top:z,bottom:U,horizontal:q}}function M($,G){var R=a.top+(G?$.top:$.bottom);return{top:R,bottom:R,horizontal:[]}}}(n,e,i)}}]),t}();function _de(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==us.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function xde(t,n,e){var i=en.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:_o.Text}}function wde(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=Re(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==_o.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var kQe=function(){function t(n,e){ke(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Se(t,[{key:"update",value:function(n){n.startState.facet(MS)!=n.state.facet(MS)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(MS);e0&&void 0!==arguments[0]?arguments[0]:{}),DQe,TQe,EQe,pue.of(!0)]}function Sde(t){return t.startState.facet(g_)!=t.state.facet(g_)}var DQe=Cde({above:!0,markers:function(t){var n,e=t.state,i=e.facet(g_),r=[],o=Re(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||kde:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:en.cursor(s.head,s.head>s.anchor?-1:1),d=Re(wj.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=Sde(t);return e&&Dde(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){Dde(n.state,t)},class:"cm-cursorLayer"});function Dde(t,n){n.style.animationDuration=t.facet(g_).cursorBlinkRate+"ms"}var TQe=Cde({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:wj.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||Sde(t)},class:"cm-selectionLayer"}),Tde={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};kde&&(Tde[".cm-line"].caretColor="transparent !important");var EQe=k0.highest(Wn.theme(Tde)),Ede=hr.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),v_=Va.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Ede)?i.value:e},t)}}),AQe=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Se(t,[{key:"update",value:function(n){var e,i=n.state.field(v_);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(v_)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field(v_),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field(v_)!=n&&this.view.dispatch({effects:Ede.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Ade(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var MQe=function(){function t(n){ke(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Se(t,[{key:"createDeco",value:function(n){var e,i=this,r=new Gm,o=r.add.bind(r),s=Re(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=Re(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(_){m.e(_)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Ade(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=Re(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),Cj=null!=/x/.unicode?"gu":"g",IQe=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",Cj),NQe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},kj=null,IS=Qn.define({combine:function(t){var n=su(t,{render:null,specialChars:IQe,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==kj&&typeof document<"u"&&document.body){var i=document.body.style;kj=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return kj||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,Cj)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,Cj)),n}});function FQe(){return[IS.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Mde||(Mde=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.decorations=yi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(IS)),this.decorations=this.decorator.createDeco(n)}return Se(t,[{key:"makeDecorator",value:function(n){var e=this;return new MQe({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Ba(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=s_(l.text,c,o-l.from);return yi.replace({widget:new PQe((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=yi.replace({widget:new jQe(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(IS);n.startState.facet(IS)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var Mde=null,jQe=function(t){wt(e,gp);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this)).options=i,o.code=r,o}return Se(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(NQe[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),PQe=function(t){wt(e,gp);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).width=i,r}return Se(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),LQe=yi.line({class:"cm-activeLine"}),RQe=ka.fromClass(function(){function t(n){ke(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=Re(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(LQe.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return yi.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ide(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):s_(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function BQe(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Wn.mouseSelectionStyle.of(function(e,i){return n(i)?function $Qe(t,n){var e=Ide(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ide(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(en.range(y.from+m,y.to+g))}else for(var _=Math.min(u.col,d.col),C=Math.max(u.col,d.col),S=h;S<=f;S++){var M=c.doc.line(S),$=V4(M.text,_,c.tabSize,!0);if($<0)p.push(en.cursor(M.to));else{var G=V4(M.text,C,c.tabSize);p.push(en.range(M.from+$,M.from+G))}}return p}(t.state,e,a);return l.length?en.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var VQe={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},HQe={style:"cursor: crosshair"};function zQe(){var n=Un(VQe[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=ka.fromClass(function(){function o(s){ke(this,o),this.view=s,this.isDown=!1}return Se(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Wn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?HQe:null})]}var Nde=function(){function t(n,e,i){ke(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Se(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=Re(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Se(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(Sj);if(r.position!=this.position){this.position=r.position;var o,s=Re(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=Re(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=Re(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(Sj).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=Fde.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||WQe,v=this.view.textDirection==us.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),_=!!a.above;!a.strictSide&&(_?u.top-(d.bottom-d.top)-g.yr.bottom)&&_==r.bottom-u.bottom>u.top-r.top&&(_=!_);var C=(_?u.top-r.top:r.bottom-u.bottom)-f;if(Cy&&R.topS&&(S=_?R.top-m-2-f:R.bottom+f+2)}}catch(z){G.e(z)}finally{G.f()}}"absolute"==this.position?(c.style.top=S-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=S+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:S,right:M,bottom:S+m}),c.classList.toggle("cm-tooltip-above",_),c.classList.toggle("cm-tooltip-below",!_),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),GQe=Wn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),WQe={x:0,y:0},NS=Qn.define({enables:[Ode,GQe]}),FS=Qn.define(),qQe=function(){function t(n){var e=this;ke(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Nde(n,FS,function(i){return e.createHostedView(i)})}return Se(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),XQe=NS.compute([FS],function(t){var n=t.facet(FS).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,si(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,si(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:qQe.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),YQe=function(){function t(n,e,i,r,o){ke(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Se(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==us.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=hr.define(),i=Va.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Ll.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=Re(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(QQe)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return FS.from(r)}});return[i,ka.define(function(r){return new YQe(r,t,i,e,n.hoverTime||300)}),XQe]}var QQe=hr.define(),Pde=Qn.define({combine:function(t){var n,e,i,r=Re(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function y_(t,n){var e=t.plugin(Lde),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Lde=ka.fromClass(function(){function t(n){ke(this,t),this.input=n.state.facet(b_),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Pde);this.top=new OS(n,!0,e.topContainer),this.bottom=new OS(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=Re(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Se(t,[{key:"update",value:function(n){var e=n.state.facet(Pde);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new OS(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new OS(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(b_);if(i!=this.input){var r,o=i.filter(function(C){return C}),s=[],a=[],l=[],c=[],u=Re(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(C){u.e(C)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),zde=function(){function t(n,e){var i=this;ke(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=Vde(e.markers(n)),e.initialSpacer&&(this.spacer=new Ude(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Se(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=Vde(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!Go.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=Re(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),Ude=function(){function t(n,e,i,r){ke(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Se(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Bde(),iZe]}function Gde(t){for(var n=9;ni&&(i=s,e.push(oZe.range(s)))}}catch(a){r.e(a)}finally{r.f()}return Go.of(e)}),aZe=0,Aj=Se(function t(n,e){ke(this,t),this.from=n,this.to=e}),gr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,t),this.id=aZe++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Se(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=au.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();gr.closedBy=new gr({deserialize:function(t){return t.split(" ")}}),gr.openedBy=new gr({deserialize:function(t){return t.split(" ")}}),gr.group=new gr({deserialize:function(t){return t.split(" ")}}),gr.contextHash=new gr({perNode:!0}),gr.lookAhead=new gr({perNode:!0}),gr.mounted=new gr({perNode:!0});var lZe=Object.create(null),au=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;ke(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Se(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(gr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):lZe,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=Re(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=Re(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(gr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();au.none=new au("",Object.create(null),0,8);var za,cZe=function(){function t(n){ke(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=PS.get(this)||this.topNode,r=new $S(i);return r.moveTo(n,e),PS.set(this,r._tree),r}},{key:"topNode",get:function(){return new w_(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=O0(PS.get(this)||this.topNode,n,e,!1);return PS.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=O0(Wde.get(this)||this.topNode,n,e,!0);return Wde.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|za.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:Nj(au.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(au.none,i,r,o)})}}],[{key:"build",value:function(n){return function hZe(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new uZe(e,e.length):e,d=i.types,h=0,f=0;function p(S,M,$,G,R){for(var z=u.id,U=u.start,q=u.end,re=u.size,L=f;re<0;){if(u.next(),-1==re)return $.push(a[z]),void G.push(U-S);if(-3==re)return void(h=z);if(-4==re)return void(f=z);throw new RangeError("Unrecognized record size: ".concat(re))}var Z,H,ot,he=d[z],E=U-S;if(q-U<=o&&(H=function(ot,B){var ne=u.fork(),ie=0,Ie=0,Ye=0,Le=ne.end-o,_t={size:0,start:0,skip:0};e:for(var At=ne.pos-ot;ne.pos>At;){var _n=ne.size;if(ne.id==B&&_n>=0)_t.size=ie,_t.start=Ie,_t.skip=Ye,Ye+=4,ie+=4,ne.next();else{var ci=ne.pos-_n;if(_n<0||ci=c?4:0,Ni=ne.start;for(ne.next();ne.pos>ci;){if(ne.size<0){if(-3!=ne.size)break e;on+=4}else ne.id>=c&&(on+=4);ne.next()}Ie=Ni,ie+=_n,Ye+=on}}return(B<0||ie==ot)&&(_t.size=ie,_t.start=Ie,_t.skip=Ye),_t.size>4?_t:void 0}(u.pos-M,R))){for(var N=new Uint16Array(H.size-H.skip),F=u.pos-H.size,Y=N.length;u.pos>F;)Y=v(H.start,N,Y);Z=new x_(N,q-H.start,i),E=H.start-S}else{var V=u.pos-re;u.next();for(var oe=[],fe=[],Ne=z>=c?z:-1,xe=0,tt=q;u.pos>V;)Ne>=0&&u.id==Ne&&u.size>=0?(u.end<=tt-o&&(m(oe,fe,U,xe,u.end,tt,Ne,L),xe=oe.length,tt=u.end),u.next()):p(U,V,oe,fe,Ne);if(Ne>=0&&xe>0&&xe-1&&xe>0){var ze=(ot=he,function(B,ne,ie){var Ie,Ye,Le=0,_t=B.length-1;if(_t>=0&&(Ie=B[_t])instanceof Ua){if(!_t&&Ie.type==ot&&Ie.length==ie)return Ie;(Ye=Ie.prop(gr.lookAhead))&&(Le=ne[_t]+Ie.length+Ye)}return g(ot,B,ne,ie,Le)});Z=Nj(he,oe,fe,0,oe.length,0,q-U,ze,ze)}else Z=g(he,oe,fe,q-U,L-q)}$.push(Z),G.push(E)}function m(S,M,$,G,R,z,U,q){for(var re=[],L=[];S.length>G;)re.push(S.pop()),L.push(M.pop()+$-R);S.push(g(i.types[U],re,L,z-R,q-z)),M.push(R-$)}function g(S,M,$,G){var R=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,z=arguments.length>5?arguments[5]:void 0;if(h){var U=[gr.contextHash,h];z=z?[U].concat(z):[U]}if(R>25){var q=[gr.lookAhead,R];z=z?[q].concat(z):[q]}return new Ua(S,M,$,G,z)}function v(S,M,$){var G=u.id,R=u.start,z=u.end,U=u.size;if(u.next(),U>=0&&G4)for(var re=u.pos-(U-4);u.pos>re;)$=v(S,M,$);M[--$]=q,M[--$]=z-S,M[--$]=R-S,M[--$]=G}else-3==U?h=G:-4==U&&(f=G);return $}for(var y=[],_=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,_,-1);var C=null!==(n=t.length)&&void 0!==n?n:y.length?_[0]+y[0].length:0;return new Ua(d[t.topID],y.reverse(),_.reverse(),C)}(n)}}]),t}();Ua.empty=new Ua(au.none,[],[],0);var uZe=function(){function t(n,e){ke(this,t),this.buffer=n,this.index=e}return Se(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),x_=function(){function t(n,e,i){ke(this,t),this.buffer=n,this.length=e,this.set=i}return Se(t,[{key:"type",get:function(){return au.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function Xde(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function O0(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(qde(r,i,h,h+d.length))if(d instanceof x_){if(o&za.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new Mj(new dZe(s,d,n,h),null,f)}else if(o&za.IncludeAnonymous||!d.type.isAnonymous||Ij(d)){var p=void 0;if(!(o&za.IgnoreMounts)&&d.props&&(p=d.prop(gr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&za.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&za.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&za.IgnoreOverlays)&&(i=this._tree.prop(gr.mounted))&&i.overlay){var o,s=n-this.from,a=Re(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new $S(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xde(this,n)}},{key:"getChild",value:function(n){var r=LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return RS(this,n)}}]),t}();function LS(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function RS(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var dZe=Se(function t(n,e,i,r){ke(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),Mj=function(){function t(n,e,i){ke(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&za.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new $S(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new Ua(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xde(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return RS(this,n)}}]),t}(),$S=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(ke(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof w_)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof w_?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&za.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&za.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&za.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&za.IncludeAnonymous||u instanceof x_||!u.type.isAnonymous||Ij(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return RS(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function Ij(t){return t.children.some(function(n){return n instanceof x_||!n.type.isAnonymous||Ij(n)})}var Yde=new WeakMap;function BS(t,n){if(!t.isAnonymous||n instanceof x_||n.type!=t)return 1;var e=Yde.get(n);if(null==e){e=1;var i,r=Re(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof Ua)){e=1;break}e+=BS(t,o)}}catch(s){r.e(s)}finally{r.f()}Yde.set(n,e)}return e}function Nj(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;$+=G}if(C==S+1){if($>d){var R=m[S];p(R.children,R.positions,0,R.children.length,g[S]+_);continue}h.push(m[S])}else h.push(Nj(t,m,g,S,C,M,g[C-1]+m[C-1].length-M,null,l));f.push(M+_-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var VS=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];ke(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Se(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=Re(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:Kde.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),mZe=0,Kde=function(){function t(){ke(this,t),this.instances=[],this.id=mZe++}return Se(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,_){return y==v[_]});var g,v});if(i)return i;var r,o=[],s=new yp(o,n,e),a=Re(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=Qde(e),u=Re(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=Re(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function Qde(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new gZe(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return ehe.add(n)}var ehe=new gr,gZe=function(){function t(n,e,i,r){ke(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Se(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new bZe(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var Fj,bZe=function(){function t(n,e,i){ke(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Se(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function($){return!$.scope||$.scope(s)}));for(var c=r,u=s.prop(ehe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=vZe(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(gr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function($){return!$.scope||$.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var _=v=C)&&n.nextSibling()););if(!_||C>i)break;(y=_.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,_.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),kn=yp.define,HS=kn(),bp=kn(),nhe=kn(bp),ihe=kn(bp),_p=kn(),zS=kn(_p),Oj=kn(_p),mh=kn(),Xm=kn(mh),gh=kn(),vh=kn(),jj=kn(),C_=kn(jj),US=kn(),fn={comment:HS,lineComment:kn(HS),blockComment:kn(HS),docComment:kn(HS),name:bp,variableName:kn(bp),typeName:nhe,tagName:kn(nhe),propertyName:ihe,attributeName:kn(ihe),className:kn(bp),labelName:kn(bp),namespace:kn(bp),macroName:kn(bp),literal:_p,string:zS,docString:kn(zS),character:kn(zS),attributeValue:kn(zS),number:Oj,integer:kn(Oj),float:kn(Oj),bool:kn(_p),regexp:kn(_p),escape:kn(_p),color:kn(_p),url:kn(_p),keyword:gh,self:kn(gh),null:kn(gh),atom:kn(gh),unit:kn(gh),modifier:kn(gh),operatorKeyword:kn(gh),controlKeyword:kn(gh),definitionKeyword:kn(gh),moduleKeyword:kn(gh),operator:vh,derefOperator:kn(vh),arithmeticOperator:kn(vh),logicOperator:kn(vh),bitwiseOperator:kn(vh),compareOperator:kn(vh),updateOperator:kn(vh),definitionOperator:kn(vh),typeOperator:kn(vh),controlOperator:kn(vh),punctuation:jj,separator:kn(jj),bracket:C_,angleBracket:kn(C_),squareBracket:kn(C_),paren:kn(C_),brace:kn(C_),content:mh,heading:Xm,heading1:kn(Xm),heading2:kn(Xm),heading3:kn(Xm),heading4:kn(Xm),heading5:kn(Xm),heading6:kn(Xm),contentSeparator:kn(mh),list:kn(mh),quote:kn(mh),emphasis:kn(mh),strong:kn(mh),link:kn(mh),monospace:kn(mh),strikethrough:kn(mh),inserted:kn(),deleted:kn(),changed:kn(),invalid:kn(),meta:US,documentMeta:kn(US),annotation:kn(US),processingInstruction:kn(US),definition:yp.defineModifier(),constant:yp.defineModifier(),function:yp.defineModifier(),standard:yp.defineModifier(),local:yp.defineModifier(),special:yp.defineModifier()};the([{tag:fn.link,class:"tok-link"},{tag:fn.heading,class:"tok-heading"},{tag:fn.emphasis,class:"tok-emphasis"},{tag:fn.strong,class:"tok-strong"},{tag:fn.keyword,class:"tok-keyword"},{tag:fn.atom,class:"tok-atom"},{tag:fn.bool,class:"tok-bool"},{tag:fn.url,class:"tok-url"},{tag:fn.labelName,class:"tok-labelName"},{tag:fn.inserted,class:"tok-inserted"},{tag:fn.deleted,class:"tok-deleted"},{tag:fn.literal,class:"tok-literal"},{tag:fn.string,class:"tok-string"},{tag:fn.number,class:"tok-number"},{tag:[fn.regexp,fn.escape,fn.special(fn.string)],class:"tok-string2"},{tag:fn.variableName,class:"tok-variableName"},{tag:fn.local(fn.variableName),class:"tok-variableName tok-local"},{tag:fn.definition(fn.variableName),class:"tok-variableName tok-definition"},{tag:fn.special(fn.variableName),class:"tok-variableName2"},{tag:fn.definition(fn.propertyName),class:"tok-propertyName tok-definition"},{tag:fn.typeName,class:"tok-typeName"},{tag:fn.namespace,class:"tok-namespace"},{tag:fn.className,class:"tok-className"},{tag:fn.macroName,class:"tok-macroName"},{tag:fn.propertyName,class:"tok-propertyName"},{tag:fn.operator,class:"tok-operator"},{tag:fn.comment,class:"tok-comment"},{tag:fn.meta,class:"tok-meta"},{tag:fn.invalid,class:"tok-invalid"},{tag:fn.punctuation,class:"tok-punctuation"}]);var j0=new gr,_Ze=new gr,ad=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";ke(this,t),this.data=n,this.name=r,Fo.prototype.hasOwnProperty("tree")||Object.defineProperty(Fo.prototype,"tree",{get:function(){return hl(this)}}),this.parser=e,this.extension=[xp.of(this),Fo.languageData.of(function(o,s,a){var l=rhe(o,s,a),c=l.type.prop(j0);if(!c)return[];var u=o.facet(c),d=l.type.prop(_Ze);if(d){var h,f=l.resolve(s-l.from,a),p=Re(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Se(t,[{key:"isActiveAt",value:function(n,e){return rhe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(j0)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(xp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(j0)!=e.data){var l=s.prop(gr.mounted);if(l){if(l.tree.prop(j0)==e.data){if(l.overlay){var c,u=Re(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),k_=null,CZe=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;ke(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Se(t,[{key:"startParse",value:function(){return this.parser.startParse(new wZe(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Ua.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(VS.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=k_;k_=this;try{return n()}finally{k_=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=ohe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=VS.applyChanges(i,l),r=Ua.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=Re(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=ohe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],Ua.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){wt(r,Jde);var i=Ct(r);function r(){return ke(this,r),i.apply(this,arguments)}return Se(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=k_;if(u){var d,h=Re(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new Ua(au.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return k_}}]),t}();function ohe(t,n,e){return VS.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var Pj=function(){function t(n){ke(this,t),this.context=n,this.tree=n.tree}return Se(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=CZe.create(n.facet(xp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();ad.state=Va.define({create:Pj.init,update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(ad.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(xp)!=n.state.facet(xp)?Pj.init(n.state):t.apply(n)}});var she=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(she=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var Lj=typeof navigator<"u"&&null!==(Fj=navigator.scheduling)&&void 0!==Fj&&Fj.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,kZe=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Se(t,[{key:"update",value:function(n){var e=this.view.state.field(ad.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(ad.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=she(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return Lj&&Lj()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:ad.setState.of(new Pj(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return Ec(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),xp=Qn.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[ad.state,kZe,Wn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),SZe=Se(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ke(this,t),this.language=n,this.support=e,this.extension=[n,e]}),DZe=Qn.define(),GS=Qn.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function P0(t){var n=t.facet(GS);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function S_(t,n){var e="",i=t.tabSize,r=t.facet(GS)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};ke(this,t),this.state=n,this.options=e,this.unit=P0(n)}return Se(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return s_(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),ahe=new gr;function TZe(t){var n=t.type.prop(ahe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(gr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),_=v.lastChild;if(!y)return null;for(var C=g.options.simulateBreak,S=g.state.doc.lineAt(y.from),M=null==C||C<=S.from?S.to:Math.min(S.to,C),$=y.to;;){var G=v.childAfter($);if(!G||G==_)return null;if(!G.type.isSkipped)return G.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var IZe=Qn.define(),uhe=new gr;function qS(t,n,e){var i,r=Re(t.facet(IZe));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=hl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function dhe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var XS=hr.define({map:dhe}),D_=hr.define({map:dhe});function hhe(t){var n,e=[],i=Re(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var Ym=Va.define({create:function(){return yi.none},update:function(t,n){t=t.map(n.changes);var e,i=Re(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(XS)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[vhe.range(a.value.from,a.value.to)]}):a.is(D_)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Wn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function fhe(t,n){return t.field(Ym,!1)?n:n.concat(hr.appendConfig.of(ghe()))}function phe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Wn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var NZe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=Re(hhe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=qS(t.state,i.from,i.to);if(r)return t.dispatch({effects:fhe(t.state,[XS.of(r),phe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(Ym,!1))return!1;var n,e=[],i=Re(hhe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=YS(t.state,r.from,r.to);o&&e.push(D_.of(o),phe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},OZe),t),e=new $j(n,!0),i=new $j(n,!1),r=ka.fromClass(function(){function s(a){ke(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Se(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(xp)!=a.state.facet(xp)||a.startState.field(Ym,!1)!=a.state.field(Ym,!1)||hl(a.startState)!=hl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new Gm,u=Re(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=YS(a.state,d.from,d.to)?i:qS(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,$de({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||Go.empty},initialSpacer:function(){return new $j(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=YS(s.state,a.from,a.to);if(c)return s.dispatch({effects:D_.of(c)}),!0;var u=qS(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:XS.of(u)}),!0)}})}),ghe()]}var PZe=Wn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),Bj=function(){function t(n,e){var i;function r(a){var l=pp.newName();return(i||(i=Object.create(null)))["."+l]=a,l}ke(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof ad?function(a){return a.prop(j0)==s.data}:s?function(a){return a==s}:void 0,this.style=the(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new pp(i):null,this.themeType=e.themeType}return Se(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),Vj=Qn.define(),yhe=Qn.define({combine:function(t){return t.length?[t[0]]:null}});function Hj(t){var n=t.facet(Vj);return n.length?n:t.facet(yhe)}function bhe(t,n){var e,i=[RZe];return t instanceof Bj&&(t.module&&i.push(Wn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?yhe.of(t):e?Vj.computeN([Wn.darkTheme],function(r){return r.facet(Wn.darkTheme)==("dark"==e)?[t]:[]}):Vj.of(t)),i}var LZe=function(){function t(n){ke(this,t),this.markCache=Object.create(null),this.tree=hl(n.state),this.decorations=this.buildDeco(n,Hj(n.state))}return Se(t,[{key:"update",value:function(n){var e=hl(n.state),i=Hj(n.state),r=i!=Hj(n.startState);e.length0&&yh(n.state,s.head-1,1,r)||r.afterCursor&&(yh(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),GZe]}var qZe=new gr;function zj(t,n,e){var i=t.prop(n<0?gr.openedBy:gr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function Uj(t){var n=t.type.prop(qZe);return n?n(t.node):t}function yh(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=hl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=zj(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return XZe(0,0,e,l,u,c,o)}}return function YZe(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function XZe(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(whe.push(t),console.warn(n))}function eet(t,n){var e,i=null,r=Re(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||fn[o];s?"function"==typeof s?i?i=s(i):Wj(o,"Modifier ".concat(o," used at start of tag")):i?Wj(o,"Tag ".concat(o," used as modifier")):i=s:Wj(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=au.define({id:xhe.length,name:a,props:[Zde(ql({},a,i))]});return xhe.push(l),l.id}function qj(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var tet=qj(function oet(t,n){var e,r=[],o=-1,s=Re(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=Xj(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var re,L=[],X=Re(r);try{for(X.s();!(re=X.n()).done;){var Z=re.value,H=Z.line,he=Z.comment;if(he>=0){var N=H.from+he,F=N+Z.token.length;" "==H.text[F-H.from]&&F++,L.push({from:N,to:F})}}}catch(Y){X.e(Y)}finally{X.f()}return{changes:L}}return null},0),net=qj(She,0),iet=qj(function(t,n){return She(t,n,function(e){var i,r=[],o=Re(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function Xj(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function She(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return Xj(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function ret(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Wn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?Kj:"historyRedo"==n.inputType?KS:null;return!!i&&(n.preventDefault(),i(e))}})]}function JS(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(Jj,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var Kj=JS(0,!1),KS=JS(1,!1),uet=JS(0,!0),det=JS(1,!0);function The(t){return function(n){var e=n.field(Jj,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var het=The(0),fet=The(1),df=function(){function t(n,e,i,r,o){ke(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Se(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&rd.fromJSON(n.changes),[],n.mapped&&C0.fromJSON(n.mapped),n.startSelection&&en.fromJSON(n.startSelection),n.selectionsAfter.map(en.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=lu,o=Re(n.startState.facet(aet));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,lu)}},{key:"selection",value:function(n){return new t(void 0,lu,void 0,void 0,n)}}]),t}();function QS(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Ehe(t,n){return t.length?n.length?t.concat(n):t:n}var lu=[];function Ahe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),QS(t,t.length-1,1e9,e.setSelAfter(i)))}return[df.selection([n])]}function pet(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function Qj(t,n){if(!t.length)return t;for(var e=t.length,i=lu;e;){var r=met(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[df.selection(i)]:lu}function met(t,n,e){var i=Ehe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):lu,e);if(!t.changes)return df.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new df(r,hr.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var get=/^(input\.type|delete)($|\.)/,T_=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;ke(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Se(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||get.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?QS(s,s.length-1,r.minDepth,new df(n.changes.compose(a.changes),Ehe(n.effects,a.effects),a.mapped,a.startSelection,lu)):QS(s,s.length,r.minDepth,n),lu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:lu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function eD(t,n,e){for(var i=hl(t).resolveInner(n.head),r=e?gr.closedBy:gr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;yet(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?yh(t,i.from,1):yh(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,en.cursor(l,e?-1:1)}function Ohe(t,n){return ld(t,function(e){if(!e.empty)return ZS(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var jhe=function(t){return Ohe(t,!1)},Phe=function(t){return Ohe(t,!0)};function Lhe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=nD(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=nD(t,s,!1),a=nD(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:en.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Wn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function nD(t,n,e){if(t instanceof Wn){var i,r=Re(t.state.facet(Wn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var efe=function(t,n){return tD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function ofe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=Re(iD(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=Re(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(en.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=Re(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(en.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:en.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function sfe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=Re(iD(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var bet=afe(!1),_et=afe(!0);function afe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=hl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(gr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new WS(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=Rj(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:en.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var lfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(tP(n,function(i,r){r.push({from:i.from,insert:n.facet(GS)})}),{userEvent:"input.indent"})),!0)},cfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(tP(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=s_(o,n.tabSize),a=0,l=S_(n,Math.max(0,s-P0(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:rfe}].concat(xet.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),Cet=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return ld(t,function(n){return eD(t.state,n,!fl(t))})},shift:function(t){return cu(t,function(n){return eD(t.state,n,!fl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return ld(t,function(n){return eD(t.state,n,fl(t))})},shift:function(t){return cu(t,function(n){return eD(t.state,n,fl(t))})}},{key:"Alt-ArrowUp",run:function(t){return ofe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return sfe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return ofe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return sfe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=en.create([i.main]):i.main.empty||(r=en.create([en.cursor(i.main.head)])),!!r&&(e(bh(n,r)),!0)}},{key:"Mod-Enter",run:_et},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=iD(n).map(function(r){return en.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:en.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=L0(n.selection,function(r){for(var o,s=hl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return en.range(s.to,s.from)});return e(bh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:cfe},{key:"Mod-]",run:lfe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new WS(n,{overrideIndentation:function(s){return i[s]??-1}}),o=tP(n,function(s,a,l){var c=Rj(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=S_(n,c);(u!=d||l.from0?o--:s0&&yh(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;ke(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(dfe(a))}:dfe,this.query=this.normalize(e)}return Se(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ba(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=S4(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Sc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(ke(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=hfe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new mfe(n,e,i,r,o);this.re=new RegExp(e,nP+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=rD(n,r),this.getLine(this.curLineStart)}return Se(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=rD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return iP.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=rD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pfe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function rD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function rP(t){var n=Oo("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Un(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:oD.of(!1),selection:en.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Oo("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:oD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Oo("label",t.state.phrase("Go to line"),": ",n)," ",Oo("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(ffe.prototype[Symbol.iterator]=mfe.prototype[Symbol.iterator]=function(){return this});var oD=hr.define(),gfe=Va.define({create:function(){return!0},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(oD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return b_.from(t,function(n){return n?rP:null})}}),Det=Wn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Tet={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},vfe=Qn.define({combine:function(t){return su(t,Tet,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Eet=yi.mark({class:"cm-selectionMatch"}),Aet=yi.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function yfe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==cs.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==cs.Word)}var Met=ka.fromClass(function(){function t(n){ke(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(vfe),i=n.state,r=i.selection;if(r.ranges.length>1)return yi.none;var o,y,_,C,S,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return yi.none;var l=i.wordAt(s.head);if(!l)return yi.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return yi.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!yfe(a=i.charCategorizer(s.head),i,s.from,s.to)||(S=s.to,(y=a)((_=i).sliceDoc(C=s.from,C+1))!=cs.Word||y(_.sliceDoc(S-1,S))!=cs.Word))return yi.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return yi.none}var u,d=[],h=Re(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new R0(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||yfe(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Aet.range(g,v)):(g>=s.to||v<=s.from)&&d.push(Eet.range(g,v)),d.length>e.maxMatches))return yi.none}}catch(y){h.e(y)}finally{h.f()}return yi.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),Iet=Wn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),sD=Qn.define({combine:function(t){return su(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new Vet(n)}})}});function Net(t){return t?[sD.of(t),hP]:hP}var bfe=function(){function t(n){ke(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,nP),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Se(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new Oet(this):new Fet(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Fo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?B0(this,r,e,i):$0(this,r,e,i)}}]),t}(),_fe=Se(function t(n){ke(this,t),this.spec=n});function $0(t,n,e,i){return new R0(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=$0(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function B0(t,n,e,i){return new ffe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(aD(a.input,a.index))!=cs.Word||r(lD(a.input,a.index))!=cs.Word)&&(r(lD(a.input,a.index+a[0].length))!=cs.Word||r(aD(a.input,a.index+a[0].length))!=cs.Word)}):void 0},e,i);var r}function aD(t,n){return t.slice(Pl(t,n,!1),n)}function lD(t,n){return t.slice(n,Pl(t,n))}var Oet=function(t){wt(e,_fe);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e,[{key:"nextMatch",value:function(i,r,o){var s=B0(this.spec,i,o,i.doc.length).next();return s.done&&(s=B0(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=B0(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=B0(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),E_=hr.define(),oP=hr.define(),Cp=Va.define({create:function(t){return new sP(lP(t).create(),null)},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(E_)?t=new sP(r.value.create(),t.panel):r.is(oP)&&(t=new sP(t.query,r.value?aP:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return b_.from(t,function(n){return n.panel})}}),sP=Se(function t(n,e){ke(this,t),this.query=n,this.panel=e}),jet=yi.mark({class:"cm-searchMatch"}),Pet=yi.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Let=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Cp))}return Se(t,[{key:"update",value:function(n){var e=n.state.field(Cp);(e!=n.startState.field(Cp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return yi.none;for(var i=this.view,r=new Gm,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Pet:jet)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function A_(t){return function(n){var e=n.state.field(Cp,!1);return e&&e.query.spec.valid?t(n,e):cP(n)}}var cD=A_(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:dP(t,r),userEvent:"select.search"}),!0)}),uD=A_(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:dP(t,o),userEvent:"select.search"}),!0)}),Ret=A_(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:en.create(e.map(function(i){return en.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),xfe=A_(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Wn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(dP(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),$et=A_(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Wn.announce.of(r),userEvent:"input.replace.all"}),!0});function aP(t){return t.state.facet(sD).createPanel(t)}function lP(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(sD);return new bfe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var cP=function(t){var n=t.state.field(Cp,!1);if(n&&n.panel){var e=y_(t,aP);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=lP(t.state,n.query.spec);r.valid&&t.dispatch({effects:E_.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[oP.of(!0),n?E_.of(lP(t.state,n.query.spec)):hr.appendConfig.of(hP)]});return!0},uP=function(t){var n=t.state.field(Cp,!1);if(!n||!n.panel)return!1;var e=y_(t,aP);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:oP.of(!1)}),!0},Bet=[{key:"Mod-f",run:cP,scope:"editor search-panel"},{key:"F3",run:cD,shift:uD,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:cD,shift:uD,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:uP,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new R0(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(en.range(c.value.from,c.value.to))}return e(n.update({selection:en.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=y_(t,rP);if(!n){var e=[oD.of(!0)];null==t.state.field(gfe,!1)&&e.push(hr.appendConfig.of([gfe,Det])),t.dispatch({effects:e}),n=y_(t,rP)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=en.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||en.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(C){return C.from==y.value.from}))return m=y,p=v,"continue";if(h){var _=s.wordAt(y.value.from);if(!_||_.from!=y.value.from||_.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new R0(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new R0(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===bn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(en.range(o.from,o.to),!1),effects:Wn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],Vet=function(){function t(n){var e=this;ke(this,t),this.view=n;var i=this.query=n.state.field(Cp).query.spec;function r(o,s,a){return Oo("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Oo("input",{value:i.search,placeholder:Ac(n,"Find"),"aria-label":Ac(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Oo("input",{value:i.replace,placeholder:Ac(n,"Replace"),"aria-label":Ac(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Oo("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Oo("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Oo("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Oo("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return cD(n)},[Ac(n,"next")]),r("prev",function(){return uD(n)},[Ac(n,"previous")]),r("select",function(){return Ret(n)},[Ac(n,"all")]),Oo("label",null,[this.caseField,Ac(n,"match case")]),Oo("label",null,[this.reField,Ac(n,"regexp")]),Oo("label",null,[this.wordField,Ac(n,"by word")])].concat(si(n.state.readOnly?[]:[Oo("br"),this.replaceField,r("replace",function(){return xfe(n)},[Ac(n,"replace")]),r("replaceAll",function(){return $et(n)},[Ac(n,"replace all")])]),[Oo("button",{name:"close",onclick:function(){return uP(n)},"aria-label":Ac(n,"close"),type:"button"},["\xd7"])]))}return Se(t,[{key:"commit",value:function(){var n=new bfe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:E_.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return bde(yde(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?uD:cD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),xfe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=Re(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=Re(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(E_)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(sD).top}}]),t}();function Ac(t,n){return t.state.phrase(n)}var dD=/[\s\.,:;?!]/;function dP(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!dD.test(l[c+1])&&dD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!dD.test(l[u-1])&&dD.test(l[u])){l=l.slice(0,u);break}return Wn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var Het=Wn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),hP=[Cp,k0.lowest(Let),Het],wfe=function(){function t(n,e,i){ke(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Se(t,[{key:"tokenBefore",value:function(n){for(var e=hl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(Sfe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function Cfe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var kfe=Se(function t(n,e,i){ke(this,t),this.completion=n,this.source=e,this.match=i});function kp(t){return t.selection.main.head}function Sfe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function Dfe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:en.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:en.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Tfe=new WeakMap;function Uet(t){if(!Array.isArray(t))return t;var n=Tfe.get(t);return n||Tfe.set(t,n=function zet(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Un(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=Re(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&R<=57||R>=97&&R<=122?2:R>=65&&R<=90?1:0:(z=S4(R))!=z.toLowerCase()?1:z!=z.toUpperCase()?2:0;(!M||1==U&&C||0==G&&0!=U)&&(e[m]==R||i[m]==R&&(g=!0)?s[m++]=M:s.length&&(S=!1)),G=U,M+=Sc(R)}return m==c&&0==s[0]&&S?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,_]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,_]:m==c?this.result((g?-200:0)-100-700+(S?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=Re(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Sc(Ba(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),_h=Qn.define({combine:function(t){return su(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Efe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var Wet=function(){function t(n,e){var i=this;ke(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(_h);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,si(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var C=p.appendChild(document.createElement("span"));C.appendChild(document.createTextNode(m.slice(y,_))),C.className="cm-completionMatchedText",g=_}return g=this.range.to)&&(this.range=Efe(i.options.length,i.selected,this.view.state.facet(_h).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return Ec(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,Mfe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=Re(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,_=v.result.getMatch,C=Re(v.result.options);try{for(C.s();!(y=C.n()).done;){var S=y.value,M=[1e9-m++];if(_){var $,G=Re(_(S));try{for(G.s();!($=G.n()).done;)M.push($.value)}catch(F){G.e(F)}finally{G.f()}}p.push(new kfe(S,v,M))}}catch(F){C.e(F)}finally{C.f()}}else{var z,U=new Get(h.sliceDoc(v.from,v.to)),q=void 0,re=Re(v.result.options);try{for(re.s();!(z=re.n()).done;){var L=z.value;(q=U.match(L.label))&&(null!=L.boost&&(q[0]+=L.boost),p.push(new kfe(L,v,q)))}}catch(F){re.e(F)}finally{re.f()}}}}catch(F){g.e(F)}finally{g.f()}var X,Z=[],H=null,he=h.facet(_h).compareCompletions,E=Re(p.sort(function(F,Y){return Y.match[0]-F.match[0]||he(F.completion,Y.completion)}));try{for(E.s();!(X=E.n()).done;){var N=X.value;!H||H.label!=N.completion.label||H.detail!=N.completion.detail||null!=H.type&&null!=N.completion.type&&H.type!=N.completion.type||H.apply!=N.completion.apply?Z.push(N):Afe(N.completion)>Afe(H)&&(Z[Z.length-1]=N),H=N.completion}}catch(F){E.e(F)}finally{E.f()}return Z}(n,e);if(!s.length)return null;var a,l=e.facet(_h).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var Jet=[];function fP(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var Jm=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;ke(this,t),this.source=n,this.state=e,this.explicitPos=i}return Se(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=fP(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(pP))r=new t(r.source,1,a.value?kp(n.state):-1);else if(a.is(hD))r=new t(r.source,0);else if(a.is(Ife)){var l,c=Re(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(kp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),Ket=function(t){wt(e,Jm);var n=Ct(e);function e(i,r,o,s,a){var l;return ke(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Se(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=kp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&kp(i.startState)==this.from)return new Jm(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):Sfe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new wfe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:kp(i.state)):new Jm(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new Jm(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),pP=hr.define(),hD=hr.define(),Ife=hr.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Nfe=hr.define(),uu=Va.define({create:function(){return Xet.start()},update:function(t,n){return t.update(n)},provide:function(t){return[NS.from(t,function(n){return n.tooltip}),Wn.contentAttributes.from(t,function(n){return n.attrs})]}});function fD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(uu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function KQe(t,n){var e=t.plugin(Ode);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Nfe.of(a)}),!0}}var Qet=Se(function t(n,e){ke(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),Zet=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=Re(n.state.field(uu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Se(t,[{key:"update",value:function(n){var e=this,i=n.state.field(uu);if(n.selectionSet||n.docChanged||n.startState.field(uu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!fP(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=Re(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){Ec(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,si(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=Re(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==fP(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=Re(this.view.state.field(uu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=kp(i),o=new wfe(i,r,n.explicitPos==r),s=new Qet(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:hD.of(null)}),Ec(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(_h),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new Ket(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:kp(l.updates.length?l.updates[0].startState:e.view.state)),d=Re(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(uu).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new Jm(l.active.source,0),g=Re(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),pD={brackets:["(","[","{","'",'"'],before:")]}:;>"},Km=hr.define({map:function(t,n){return n.mapPos(t,-1,Ll.TrackAfter)??void 0}}),mP=hr.define({map:function(t,n){return n.mapPos(t)}}),gP=new(function(t){wt(e,Um);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e)}());gP.startSide=1,gP.endSide=-1;var Ffe=Va.define({create:function(){return Go.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=Go.empty)}t=t.map(n.changes);var r,o=Re(n.effects);try{var s=function(){var a=r.value;a.is(Km)?t=t.update({add:[gP.range(a.value,a.value+1)]}):a.is(mP)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ofe(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return S4(t<128?t:t+1)}function jfe(t,n){return t.languageDataAt("closeBrackets",n)[0]||pD}var ttt="object"==(typeof navigator>"u"?"undefined":bn(navigator))&&/Android\b/.test(navigator.userAgent),ntt=Wn.inputHandler.of(function(t,n,e,i){if((ttt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Sc(Ba(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=jfe(s,s.selection.main.head),u=c.brackets||pD.brackets,d=Re(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Ofe(Ba(h,0));if(a==h)return f==h?stt(s,h,u.indexOf(h+h+h)>-1):rtt(s,h,f,c.before||pD.before);if(a==f&&Pfe(s,s.selection.main.from))return ott(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),itt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=jfe(n,n.selection.main.head).brackets||pD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Sc(Ba(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=Re(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&mD(n.doc,s.head)==Ofe(Ba(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:en.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Pfe(t,n){var e=!1;return t.field(Ffe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function mD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Sc(Ba(e,0)))}function rtt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:Km.of(s.to+n.length),range:en.range(s.anchor+n.length,s.head+n.length)};var a=mD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:Km.of(s.head+n.length),range:en.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function ott(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&mD(t.doc,o.head)==e?en.cursor(o.head+e.length):i=o});return i?null:t.update({selection:en.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return mP.of(o.from)})})}function stt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:Km.of(o.to+n.length),range:en.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=mD(t.doc,s);if(a==n){if(Lfe(t,s))return{changes:{insert:n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)};if(Pfe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:en.cursor(s+n.length*(l?3:1)),effects:mP.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Lfe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=cs.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=cs.Word&&!function(u,d,h){for(var f=hl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Lfe(t,n){var e=hl(t).resolveInner(n+1);return e.parent&&e.from==n}function att(){return[uu,_h.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Zet,ltt,ett]}var Rfe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(uu,!1)&&(t.dispatch({effects:pP.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(uu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:hD.of(null)}),0))}},{key:"ArrowDown",run:fD(!0)},{key:"ArrowUp",run:fD(!1)},{key:"PageDown",run:fD(!0,"page")},{key:"PageUp",run:fD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(uu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||(Dfe(t,n.open.options[n.open.selected]),0))}}],ltt=k0.highest(AS.computeN([_h],function(t){return t.facet(_h).defaultKeymap?[Rfe]:[]})),ctt=Se(function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.diagnostic=i}),M_=function(){function t(n,e,i){ke(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Se(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(Qm).markerFilter;o&&(r=o(r));var s=yi.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?yi.widget({widget:new ptt(a),diagnostic:a}).range(a.from):yi.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,V0(s))}}]),t}();function V0(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new ctt(r,o,a.diagnostic),!1}),i}function $fe(t,n){return!(!t.effects.some(function(e){return e.is(gD)})&&!t.changes.touchesRange(n.pos))}function Bfe(t,n){return t.field(Mc,!1)?n:n.concat(hr.appendConfig.of([Mc,Wn.decorations.compute([Mc],function(e){var i=e.field(Mc),r=i.selected;return r&&i.panel&&r.from!=r.to?yi.set([utt.range(r.from,r.to)]):yi.none}),JQe(dtt,{hideOn:$fe}),mtt]))}var gD=hr.define(),vP=hr.define(),Vfe=hr.define(),Mc=Va.define({create:function(){return new M_(yi.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=V0(e,t.selected.diagnostic,r)||V0(e,null,r)}t=new M_(e,t.panel,i)}var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(gD)?t=M_.init(a.value,t.panel,n.state):a.is(vP)?t=new M_(t.diagnostics,a.value?qfe.open:null,t.selected):a.is(Vfe)&&(t=new M_(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[b_.from(t,function(n){return n.panel}),Wn.decorations.from(t,function(n){return n.diagnostics})]}}),utt=yi.mark({class:"cm-lintRange cm-lintRange-active"});function dtt(t,n,e){var i=t.state.field(Mc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=Ufe(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=Re(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=V0(this.view.state.field(Mc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Vfe.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function vD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function yP(t){return vD(''),'width="6" height="3"')}var mtt=Wn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:yP("#d11")},".cm-lintRange-warning":{backgroundImage:yP("orange")},".cm-lintRange-info":{backgroundImage:yP("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),gtt=function(t){wt(e,ph);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Se(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(yD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:bP.of({pos:f.from,above:!1,create:function(){return{dom:Hfe(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var _=m.getBoundingClientRect();if(!(y.clientX>_.left-10&&y.clientX<_.right+10&&y.clientY>_.top-10&&y.clientY<_.bottom+10)){for(var C=y.target;C;C=C.parentNode)if(1==C.nodeType&&C.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",v),p.state.field(Yfe)&&p.dispatch({effects:bP.of(null)})}})}var d=a.state.facet(yD).hoverTime,h=setTimeout(u,d);l.onmouseout=function(){clearTimeout(h),l.onmouseout=l.onmousemove=null},l.onmousemove=function(){clearTimeout(h),h=setTimeout(u,d)}}(i,r,o)}),r}}]),e}();function vtt(t,n){var e,i=Object.create(null),r=Re(n);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t.lineAt(o.from);(i[s.from]||(i[s.from]=[])).push(o)}}catch(c){r.e(c)}finally{r.f()}var a=[];for(var l in i)a.push(new gtt(i[l]).range(+l));return Go.of(a,!0)}var ytt=$de({class:"cm-gutter-lint",markers:function(t){return t.state.field(Xfe)}}),Xfe=Va.define({create:function(){return Go.empty},update:function(t,n){t=t.map(n.changes);var e,i=n.state.facet(yD).markerFilter,r=Re(n.effects);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.is(gD)){var s=o.value;i&&(s=i(s||[])),t=vtt(n.state.doc,s.slice(0))}}}catch(a){r.e(a)}finally{r.f()}return t}}),bP=hr.define(),Yfe=Va.define({create:function(){return null},update:function(t,n){return t&&n.docChanged&&(t=$fe(n,t)?null:Object.assign(Object.assign({},t),{pos:n.changes.mapPos(t.pos)})),n.effects.reduce(function(e,i){return i.is(bP)?i.value:e},t)},provide:function(t){return NS.from(t)}}),btt=Wn.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:vD('')},".cm-lint-marker-warning":{content:vD('')},".cm-lint-marker-error":{content:vD('')}}),yD=Qn.define({combine:function(t){return su(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function _tt(){return[yD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Xfe,ytt,btt,Yfe]}var Jfe,xtt=function(){return[rZe(),sZe,FQe(),cet(),jZe(),SQe(),[v_,AQe],Fo.allowMultipleSelections.of(!0),Fo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=Re(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=Rj(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=S_(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),bhe($Ze,{fallback:!0}),WZe(),[ntt,Ffe],att(),BQe(),zQe(),RQe,(n=[Iet,Met],n),AS.of([].concat(itt,si(Cet),Bet,vet,NZe,Rfe,htt))];var n}(),wtt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;ke(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Se(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Ctt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new Kfe(r,r.start):null,0,null)}}]),t}(),Kfe=Se(function t(n,e){ke(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(Jfe||(Jfe={}));var Ctt=function(){function t(n){ke(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Se(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),ktt=function(){function t(n,e,i){ke(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Se(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),bD=Se(function t(){ke(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),Qfe=new bD,Stt=function(){function t(n,e){ke(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Qfe,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Se(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=Qfe,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=Re(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),_D=function(){function t(n,e){ke(this,t),this.data=n,this.id=e}return Se(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function xD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}_D.prototype.contextual=_D.prototype.fallback=_D.prototype.extend=!1;var Zfe,cd=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),_P=null;function epe(t,n,e){var i=t.cursor(za.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(Zfe||(Zfe={}));var tpe,Dtt=function(){function t(n,e){ke(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Se(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?epe(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?epe(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof Ua){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),Ttt=function(){function t(n,e){ke(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new bD})}return Se(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new bD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new bD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Dtt(i,n.nodeSet):null}return Se(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,_=null,C=Re(v);try{for(C.s();!(y=C.n()).done;){var S=y.value,M=S.p.stoppedAt;(S.pos==S.p.stream.end||null!=M&&S.pos>M)&&S.p.parser.stateFlag(S.state,2)&&(!_||_.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(gr.contextHash)||0)==l))return n.useNode(c,u),cd&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof Ua)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof Ua&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),cd&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(_):i.push(_)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return npe(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),cd&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(cd&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)cd&&(h=this.stackID(d)+" -> ");var p,m=Re(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;cd&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),cd&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),npe(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],_=-v;_>0;_--)d(p[g++],m,y);g++}}}}catch(M){f.e(M)}finally{f.f()}}o.nodeSet=new cZe(s.map(function(M,$){return au.define({name:$>=o.minRepeatTerm?void 0:M,id:$,props:c[$],top:l.indexOf($)>-1,error:0==$,skipped:i.skippedNodes&&i.skippedNodes.indexOf($)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,si(i.propSources))),o.strict=!1,o.bufferLength=1024;var C=xD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var S=0;S2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=hf(this.data,o+2)}if(r==hf(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=hf(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=ipe(this.data,this.tokenPrecTable,r);return o<0||ipe(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=Re(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&ape(t);return{c:function(){n=be("div"),r&&r.c(),e=it(),o&&o.c(),i=it(),s&&s.c(),P(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){Pe(a,n,l),r&&r.m(n,null),de(n,e),o&&o.m(n,null),de(n,i),s&&s.m(n,null)},p:function(a,l){var c=Un(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=ope(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=spe(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=ape(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:Lt,o:Lt,d:function(a){a&&je(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Ptt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Ltt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Ptt,jtt,ys,{editorState:3},Ott),r}return Se(e)}(),xP=Bj.define([{tag:fn.propertyName,color:"var(--jse-key-color)"},{tag:fn.number,color:"var(--jse-value-color-number)"},{tag:fn.bool,color:"var(--jse-value-color-boolean)"},{tag:fn.string,color:"var(--jse-value-color-string)"},{tag:fn.keyword,color:"var(--jse-value-color-null)"}]),Rtt=bhe(xP),$tt=xP.style;function wP(t){return t.doc.lineAt(t.selection.main.head)}function lpe(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=lpe(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=lpe(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=wP(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=Re(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,_=g.from;_<=y;){var C=f.doc.lineAt(_);p.has(C)||p.add(C),_=C.to+1}}catch(S){m.e(S)}finally{m.f()}return p}(this.view,n),o=new Btt(r,n,this.unitWidth),s=n.facet(wD).hideFirstIndent,a=Re(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=Htt(c,this.unitWidth,s);i.add(l.from,l.from,yi.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function Utt(){return[wD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,ka.fromClass(ztt,{decorations:function(n){return n.decorations}})]}function Gtt(t){pi(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function CP(t){var n=t.slice();return n[93]=0===n[10].length,n}function cpe(t){var n,e;return n=new hKe({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Wtt(t){var n;return{c:function(){(n=be("div")).innerHTML='
    \n
    loading...
    ',P(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function qtt(t){var n,e,i,r,o,s=t[92]&&upe(t),a=!t[92]&&dpe(t);return{c:function(){n=be("div"),e=it(),s&&s.c(),i=it(),a&&a.c(),r=_r(),P(n,"class","jse-contents svelte-1yqirn0"),Mt(n,"jse-hidden",t[92])},m:function(l,c){Pe(l,n,c),t[50](n),Pe(l,e,c),s&&s.m(l,c),Pe(l,i,c),a&&a.m(l,c),Pe(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&Mt(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&Q(s,1)):((s=upe(l)).c(),Q(s,1),s.m(i.parentNode,i)):s&&($t(),ce(s,1,1,function(){s=null}),Bt()),l[92]?a&&($t(),ce(a,1,1,function(){a=null}),Bt()):a?(a.p(l,c),1152&c[0]&&Q(a,1)):((a=dpe(l)).c(),Q(a,1),a.m(r.parentNode,r))},i:function(l){o||(Q(s),Q(a),o=!0)},o:function(l){ce(s),ce(a),o=!1},d:function(l){l&&je(n),t[50](null),l&&je(e),s&&s.d(l),l&&je(i),a&&a.d(l),l&&je(r)}}}function upe(t){var n,e,i,r,o,s=oh(t[10]||"",2e4)+"";return n=new nd({props:{icon:$m,type:"error",message:"The JSON document is larger than ".concat(sS(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(sS(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){mt(n.$$.fragment),e=it(),i=be("div"),r=tn(s),P(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){ft(n,a,l),Pe(a,e,l),Pe(a,i,l),de(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(sS(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(sS(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=oh(a[10]||"",2e4)+"")&&qn(r,s)},i:function(a){o||(Q(n.$$.fragment,a),o=!0)},o:function(a){ce(n.$$.fragment,a),o=!1},d:function(a){pt(n,a),a&&je(e),a&&je(i)}}}function dpe(t){var n,e,i,r,o,s=!t[13]&&t[8]&&hoe(t[10]),a=t[2]&&hpe(t),l=t[13]&&fpe(t),c=s&&ppe(t);return r=new l4({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=it(),l&&l.c(),e=it(),c&&c.c(),i=it(),mt(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),Pe(u,n,d),l&&l.m(u,d),Pe(u,e,d),c&&c.m(u,d),Pe(u,i,d),ft(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&Q(a,1)):((a=hpe(u)).c(),Q(a,1),a.m(n.parentNode,n)):a&&($t(),ce(a,1,1,function(){a=null}),Bt()),u[13]?l?(l.p(u,d),8192&d[0]&&Q(l,1)):((l=fpe(u)).c(),Q(l,1),l.m(e.parentNode,e)):l&&($t(),ce(l,1,1,function(){l=null}),Bt()),9472&d[0]&&(s=!u[13]&&u[8]&&hoe(u[10])),s?c?(c.p(u,d),9472&d[0]&&Q(c,1)):((c=ppe(u)).c(),Q(c,1),c.m(i.parentNode,i)):c&&($t(),ce(c,1,1,function(){c=null}),Bt());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(Q(a),Q(l),Q(c),Q(r.$$.fragment,u),o=!0)},o:function(u){ce(a),ce(l),ce(c),ce(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&je(n),l&&l.d(u),u&&je(e),c&&c.d(u),u&&je(i),pt(r,u)}}}function hpe(t){var n,e;return n=new Ltt({props:{editorState:t[6]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function fpe(t){var n,e;return n=new nd({props:{type:"error",icon:$m,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ppe(t){var n,e;return n=new nd({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:m4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:p0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:m4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:p0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Xtt(t){var n,e,i,r,o,s=t[1]&&cpe(CP(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[qtt,Wtt][i](c(t,i)),{c:function(){n=be("div"),s&&s.c(),e=it(),r.c(),P(n,"class","jse-text-mode svelte-1yqirn0"),Mt(n,"no-main-menu",!t[1])},m:function(u,d){Pe(u,n,d),s&&s.m(n,null),de(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(CP(u),d),2&d[0]&&Q(s,1)):((s=cpe(CP(u))).c(),Q(s,1),s.m(n,e)):s&&($t(),ce(s,1,1,function(){s=null}),Bt()),r.p(c(u,i),d),(!o||2&d[0])&&Mt(n,"no-main-menu",!u[1])},i:function(u){o||(Q(s),Q(r),o=!0)},o:function(u){ce(s),ce(r),o=!1},d:function(u){u&&je(n),s&&s.d(),l[i].d(),t[52](null)}}}function mpe(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function Ytt(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,_=n.onChange,C=n.onChangeMode,S=n.onError,M=n.onFocus,$=n.onBlur,G=n.onRenderMenu,R=n.onSortModal,z=n.onTransformModal,U=wa("jsoneditor:TextMode"),q={key:"Mod-i",run:ie,shift:Ie,preventDefault:!0},re=typeof window>"u";U("isSSR:",re);var L=!1,X=!0,Z=[],H=new hp,he=new hp,E=new hp,N=new hp,F=new hp,Y=new hp,V=h,oe=Fk(V,f,g),fe=m;Wc(Zi(vn().mark(function gt(){return vn().wrap(function(On){for(;;)switch(On.prev=On.next){case 0:if(!re){On.next=2;break}return On.abrupt("return");case 2:try{s=ci({target:o,initialText:jo(oe,L)?"":i.escapeValue(oe),readOnly:c,indentation:f})}catch(ai){console.error(ai)}case 3:case"end":return On.stop()}},gt)}))),Hu(function(){s&&(U("Destroy CodeMirror editor"),s.destroy())});var Ne=!1,xe=!1,tt=ep(),ze=ep();function ot(){s&&(U("focus"),s.focus())}var B=!1;function ne(gt){U("patch",gt);var On=g.parse(oe),ai=Yu(On,gt),bi=NQ(On,gt);return Fr({text:g.stringify(ai,null,f)}),{json:ai,previousJson:On,undo:bi,redo:gt}}function ie(){if(U("format"),c)return!1;try{var gt=g.parse(oe);return Fr({text:g.stringify(gt,null,f)}),e(8,X=!0),!0}catch(On){S(On)}return!1}function Ie(){if(U("compact"),c)return!1;try{var gt=g.parse(oe);return Fr({text:g.stringify(gt)}),e(8,X=!1),!0}catch(On){S(On)}return!1}function Ye(){if(U("repair"),!c)try{Fr({text:Yd(oe)}),e(49,Fn="valid"),e(13,xt=null)}catch(gt){S(gt)}}function Le(gt){var On=gt.id,ai=gt.rootPath,bi=gt.onTransform,Er=gt.onClose;try{var qr=g.parse(oe);B=!0,z({id:On||ze,json:qr,rootPath:ai||[],onTransform:function(ao){bi?bi({operations:ao,json:qr,transformedJson:Yu(qr,ao)}):(U("onTransform",ao),ne(ao))},onClose:function(){B=!1,ot(),Er&&Er()}})}catch(ao){S(ao)}}function _t(gt,On){U("setSelection",{anchor:gt,head:On}),s&&s.dispatch(s.state.update({selection:{anchor:gt,head:On},scrollIntoView:!0}))}function At(gt,On){if(1===On.state.selection.ranges.length){var ai=On.state.selection.ranges[0],bi=oe.slice(ai.from,ai.to);if("{"===bi||"["===bi){var Er=O2.parse(oe),qr=Object.keys(Er.pointers).find(function(Js){var vr;return(null===(vr=Er.pointers[Js].value)||void 0===vr?void 0:vr.pos)===ai.from}),ao=Er.pointers[qr];qr&&ao&&ao.value&&ao.valueEnd&&(U("pointer found, selecting inner contents of path:",qr,ao),_t(ao.value.pos+1,ao.valueEnd.pos-1))}}}function _n(){return function(gt){return Qm.of({source:gt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(ui,{delay:300})}function ci(gt){var On=gt.target,ai=gt.initialText,bi=gt.readOnly,Er=gt.indentation;U("Create CodeMirror editor",{readOnly:bi,indentation:Er});var qr=Fo.create({doc:ai,extensions:[AS.of([ket,q]),H.of(_n()),_tt(),xtt,Rtt,Utt({hideFirstIndent:!0}),Wn.domEventHandlers({dblclick:At}),Wn.updateListener.of(function(ao){e(6,l=ao.state),ao.docChanged&&Ai()}),new SZe(Ftt),Net({top:!0}),E.of(Fo.readOnly.of(bi)),he.of(Wn.editable.of(!bi)),F.of(Fo.tabSize.of(p)),N.of(wr(Er)),Y.of(Wn.theme({},{dark:on()})),Wn.lineWrapping]});return s=new Wn({state:qr,parent:On})}function on(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Ni(gt){var On=gt.path,ai=gt.message,bi=function(Er,qr){try{var ao=O2.parse(Er),Js=ln(qr),vr=ao.pointers[Js];if(vr)return{path:qr,line:vr.key?vr.key.line:vr.value?vr.value.line:0,column:vr.key?vr.key.column:vr.value?vr.value.column:0,from:vr.key?vr.key.pos:vr.value?vr.value.pos:0,to:vr.keyEnd?vr.keyEnd.pos:vr.valueEnd?vr.valueEnd.pos:0}}catch(Ks){console.error(Ks)}return null}(i.escapeValue(oe),On);return{path:On,line:bi.line,column:bi.column,from:bi.from,to:bi.to,message:ai,severity:Xd.warning,actions:[]}}function pn(gt,On){var Er=gt.position;return{path:[],line:gt.line,column:gt.column,from:Er,to:Er,severity:Xd.error,message:gt.message,actions:On&&!c?[{name:"Auto repair",apply:function(){return Ye()}}]:null}}function Fr(gt){var On=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ai=Fk(gt,f,g),bi=!or(gt,V),Er=V;V=gt,e(10,oe=ai),U("setCodeMirrorContent",{isChanged:bi,forceUpdate:On}),s&&(bi||On)&&(jo(oe,L)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(oe)}}),Or(),bi&&Wr(V,Er))}function $r(){if(s){var gt=s?i.unescapeValue(s.state.doc.toString()):"",On=gt!==oe;if(U("onChangeCodeMirrorValue",{isChanged:On}),On){var ai=V;e(10,oe=gt),V={text:oe},Or(),Wr(V,ai)}}}function wr(gt){return GS.of("number"==typeof gt?" ".repeat(gt):gt)}function Or(){e(11,Ne=het(s.state)>0),e(12,xe=fet(s.state)>0),U({canUndo:Ne,canRedo:xe})}a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(a)},hasFocus:function(){return B&&document.hasFocus()||jk(a)},onFocus:M,onBlur:$});var Ai=Gv($r,300);function Wr(gt,On){_&&_(gt,On,{contentErrors:Fi(),patchResult:null})}function jo(gt,On){return!!gt&>.length>10485760&&!On}var Fn="valid",xt=null;function ui(){if(jo(oe,L))return[];var gt=Fi();return Dae(gt)?[mpe(pn(gt.parseError,gt.isRepairable))]:function Jqe(t){return Io(t)&&Array.isArray(t.validationErrors)}(gt)?gt.validationErrors.map(Ni).map(mpe):[]}function Fi(){U("validate:start"),Ai.flush();var gt=Cr(i.escapeValue(oe),v,g,y);return Dae(gt)?(e(49,Fn=gt.isRepairable?"repairable":"invalid"),e(13,xt=gt.parseError),e(9,Z=[])):(e(49,Fn="valid"),e(13,xt=null),e(9,Z=gt?.validationErrors||[])),U("validate:end"),gt}var Cr=Zb(Oqe);function xo(){xt&&function(gt){U("select parse error",gt);var On=pn(gt,!1);_t(On.from,On.to),ot()}(xt)}var Qo={icon:xWe,text:"Show me",title:"Move to the parse error location",onClick:xo};return t.$$set=function(gt){"readOnly"in gt&&e(0,c=gt.readOnly),"mainMenuBar"in gt&&e(1,u=gt.mainMenuBar),"statusBar"in gt&&e(2,d=gt.statusBar),"externalContent"in gt&&e(29,h=gt.externalContent),"indentation"in gt&&e(30,f=gt.indentation),"tabSize"in gt&&e(31,p=gt.tabSize),"escapeUnicodeCharacters"in gt&&e(32,m=gt.escapeUnicodeCharacters),"parser"in gt&&e(33,g=gt.parser),"validator"in gt&&e(34,v=gt.validator),"validationParser"in gt&&e(35,y=gt.validationParser),"onChange"in gt&&e(36,_=gt.onChange),"onChangeMode"in gt&&e(37,C=gt.onChangeMode),"onError"in gt&&e(38,S=gt.onError),"onFocus"in gt&&e(39,M=gt.onFocus),"onBlur"in gt&&e(40,$=gt.onBlur),"onRenderMenu"in gt&&e(3,G=gt.onRenderMenu),"onSortModal"in gt&&e(41,R=gt.onSortModal),"onTransformModal"in gt&&e(42,z=gt.onTransformModal)},t.$$.update=function(){var gt;2&t.$$.dirty[1]&&(i=TO({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&Fr(h),8&t.$$.dirty[1]&&(U("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(_n())})),1073741824&t.$$.dirty[0]&&(gt=f,s&&(U("updateIndentation",gt),s.dispatch({effects:N.reconfigure(wr(gt))}))),1&t.$$.dirty[1]&&function(gt){s&&(U("updateTabSize",gt),s.dispatch({effects:F.reconfigure(Fo.tabSize.of(gt))}))}(p),1&t.$$.dirty[0]&&function(gt){s&&(U("updateReadOnly",gt),s.dispatch({effects:[E.reconfigure(Fo.readOnly.of(gt)),he.reconfigure(Wn.editable.of(!gt))]}))}(c),131074&t.$$.dirty[1]&&fe!==m&&(e(48,fe=m),U("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(oe)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Fn||c?[Qo]:[{icon:zk,text:"Auto repair",title:"Automatically repair JSON",onClick:Ye},Qo])},[c,u,d,G,o,a,l,L,X,Z,oe,Ne,xe,xt,r,re,ie,Ie,function(){var gt;if(!c)try{var On=g.parse(oe);B=!0,R({id:tt,json:On,rootPath:[],onSort:(gt=Zi(vn().mark(function ai(bi){var Er;return vn().wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:U("onSort",Er=bi.operations),ne(Er);case 3:case"end":return qr.stop()}},ai)})),function(ai){return gt.apply(this,arguments)}),onClose:function(){B=!1,ot()}})}catch(ai){S(ai)}},function(){c||Le({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?uP(s):cP(s))},function(){c||s&&(Kj(s),ot())},function(){c||s&&(KS(s),ot())},function(){e(7,L=!0),Fr(h,!0)},function(){C(Jo.tree)},function(){$r()},function(gt){U("select validation error",gt);var On=Ni(gt);_t(On.from,On.to),ot()},jo,xo,h,f,p,m,g,v,y,_,C,S,M,$,R,z,ot,ne,Le,function(){U("refresh"),Xl().then(function(){if(s){var gt=on();U("updateTheme",{dark:gt}),s.dispatch({effects:[Y.reconfigure(Wn.theme({},{dark:gt}))]})}})},Fi,fe,Fn,function(gt){Vi[gt?"unshift":"push"](function(){e(4,o=gt)})},function(){return e(8,X=!1)},function(gt){Vi[gt?"unshift":"push"](function(){e(5,a=gt)})}]}var Jtt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Ytt,Xtt,Ei,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},Gtt,[-1,-1,-1,-1]),r}return Se(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function Ktt(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Qtt(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:bse,title:xN,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var Ztt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Qtt,Ktt,Ei,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Se(e)}();function gpe(t,n,e){var i=t.slice();return i[9]=n[e],i}function vpe(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],_=Xi(v);_.length>0&&!Xc(m,_);)y.unshift({op:"add",path:ln(_),value:{}}),_=Xi(_);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&Yi(c)&&ip(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var nnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,tnt,ent,Ei,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Se(e)}();function int(t){pi(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function rnt(t){var n,e,i,r,o=oh(t[2].stringify(t[1]),50)+"";return{c:function(){n=be("button"),e=tn(o),P(n,"type","button"),P(n,"class","jse-inline-value svelte-l28mqd"),Mt(n,"jse-selected",t[3])},m:function(s,a){Pe(s,n,a),de(n,e),i||(r=Ft(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Un(a,1)[0];6&l&&o!==(o=oh(s[2].stringify(s[1]),50)+"")&&qn(e,o),8&l&&Mt(n,"jse-selected",s[3])},i:Lt,o:Lt,d:function(s){s&&je(n),i=!1,r()}}}function ont(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=oo(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var snt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,ont,rnt,Ei,{path:0,value:1,parser:2,isSelected:3,onEdit:4},int),r}return Se(e)}();function ant(t){pi(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function ype(t){var n,e,i,r;return e=new sr({props:{data:t[1]===qc.asc?ru:yse}}),{c:function(){n=be("span"),mt(e.$$.fragment),P(n,"class","jse-column-sort-icon svelte-h4fort"),P(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){Pe(o,n,s),ft(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===qc.asc?ru:yse),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&P(n,"title",i)},i:function(o){r||(Q(e.$$.fragment,o),r=!0)},o:function(o){ce(e.$$.fragment,o),r=!1},d:function(o){o&&je(n),pt(e)}}}function lnt(t){var n,e,i,r,o,s,a,l,c=oh(t[3],50)+"",u=void 0!==t[1]&&ype(t);return{c:function(){n=be("button"),e=be("span"),i=tn(c),r=it(),u&&u.c(),P(e,"class","jse-column-name"),P(n,"type","button"),P(n,"class","jse-column-header svelte-h4fort"),P(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),Mt(n,"jse-readonly",t[0])},m:function(d,h){Pe(d,n,h),de(n,e),de(e,i),de(n,r),u&&u.m(n,null),s=!0,a||(l=Ft(n,"click",t[4]),a=!0)},p:function(d,h){var f=Un(h,1)[0];(!s||8&f)&&c!==(c=oh(d[3],50)+"")&&qn(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&Q(u,1)):((u=ype(d)).c(),Q(u,1),u.m(n,null)):u&&($t(),ce(u,1,1,function(){u=null}),Bt()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&P(n,"title",o),(!s||1&f)&&Mt(n,"jse-readonly",d[0])},i:function(d){s||(Q(u),s=!0)},o:function(d){ce(u),s=!1},d:function(d){d&&je(n),u&&u.d(),a=!1,l()}}}function cnt(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Hi(s)?"values":tu(Kl(s))),96&t.$$.dirty&&e(1,r=or(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=H7e[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===qc.asc?qc.desc:qc.asc})},s,a,c]}var CD,kD,unt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,cnt,lnt,Ei,{path:5,sortedColumn:6,readOnly:0,onSort:7},ant),r}return Se(e)}();function bpe(t,n){return CD||(kD=new WeakMap,CD=new ResizeObserver(function(e){var i,r=Re(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=kD.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),kD.set(t,n),CD.observe(t),{destroy:function(){kD.delete(t),CD.unobserve(t)}}}function dnt(t){var n,e;return n=new Jae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function hnt(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,_=n.onEditValue,C=n.onEditRow,S=n.onToggleEnforceString,M=n.onCut,$=n.onCopy,G=n.onPaste,R=n.onRemove,z=n.onDuplicateRow,U=n.onInsertBeforeRow,q=n.onInsertAfterRow,re=n.onRemoveRow;function L(){y(),_()}function X(){y(),C()}function Z(){y(),S()}function H(){y(),M(!0)}function he(){y(),M(!1)}function E(){y(),$(!0)}function N(){y(),$(!1)}function F(){y(),G()}function Y(){y(),R()}function V(){y(),z()}function oe(){y(),U()}function fe(){y(),q()}function Ne(){y(),re()}return t.$$set=function(xe){"json"in xe&&e(2,p=xe.json),"documentState"in xe&&e(3,m=xe.documentState),"parser"in xe&&e(4,g=xe.parser),"showTip"in xe&&e(0,v=xe.showTip),"onCloseContextMenu"in xe&&e(5,y=xe.onCloseContextMenu),"onEditValue"in xe&&e(6,_=xe.onEditValue),"onEditRow"in xe&&e(7,C=xe.onEditRow),"onToggleEnforceString"in xe&&e(8,S=xe.onToggleEnforceString),"onCut"in xe&&e(9,M=xe.onCut),"onCopy"in xe&&e(10,$=xe.onCopy),"onPaste"in xe&&e(11,G=xe.onPaste),"onRemove"in xe&&e(12,R=xe.onRemove),"onDuplicateRow"in xe&&e(13,z=xe.onDuplicateRow),"onInsertBeforeRow"in xe&&e(14,U=xe.onInsertBeforeRow),"onInsertAfterRow"in xe&&e(15,q=xe.onInsertAfterRow),"onRemoveRow"in xe&&e(16,re=xe.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Hi(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Sn(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Nr(i)||xs(i)||Yi(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Nr(i)||Yi(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&zb(i)&&!s&&Array.isArray(Sn(p,Xi(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&zb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!Ho(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Io(a),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Ho(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&lf(a,m.enforceStringMap,ln(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:L,icon:h0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:h0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:L,disabled:!c},{type:"button",icon:h?$b:Bb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:Z,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:d0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:d0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:d0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:he,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:E,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:E,disabled:!l},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:N,disabled:!l}]},{type:"button",onClick:F,icon:mse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:Y,icon:XO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:X,icon:h0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:wse,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:oe,icon:f0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:fe,icon:f0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:Ne,icon:XO,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,_,C,S,M,$,G,R,z,U,q,re,o,l,u,h,c,i,a,d,r,s]}var fnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,hnt,dnt,Ei,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Se(e)}();function pnt(t){pi(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function _pe(t,n,e){var i=t.slice();i[12]=n[e];var r=Sn(i[0],i[12]).length;return i[13]=r,i}function mnt(t){var n,e;return{c:function(){n=tn(t[5]),e=tn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){Pe(i,n,r),Pe(i,e,r)},p:function(i,r){32&r&&qn(n,i[5])},d:function(i){i&&je(n),i&&je(e)}}}function gnt(t){var n;return{c:function(){n=tn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){Pe(e,n,i)},p:Lt,d:function(e){e&&je(n)}}}function xpe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=tu(Kl(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=be("button"),e=tn(t[6]),i=tn(' "'),r=tn(p),o=tn('"\n '),s=be("span"),a=tn("("),l=tn(m),c=it(),u=tn(g),d=tn(")"),P(s,"class","jse-nested-array-count svelte-1te5h1h"),P(n,"type","button"),P(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,_){Pe(y,n,_),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),de(s,a),de(s,l),de(s,c),de(s,u),de(s,d),h||(f=Ft(n,"click",v),h=!0)},p:function(y,_){t=y,64&_&&qn(e,t[6]),8&_&&p!==(p=tu(Kl(t[12]))+"")&&qn(r,p),9&_&&m!==(m=t[13]+"")&&qn(l,m),9&_&&g!==(g=1!==t[13]?"items":"item")&&qn(u,g)},d:function(y){y&&je(n),h=!1,f()}}}function vnt(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(G,R){return G[4]?gnt:mnt}for(var _=y(t),C=_(t),S=t[3],M=[],$=0;$1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){Mo(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Hi(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Mo(l)?"An object":oo(l)?"An empty array":"A ".concat(VN(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Jo.tree)}]}var bnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,ynt,vnt,Ei,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},pnt),r}return Se(e)}();function _nt(t){pi(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function xnt(t){var n,e,i,r,o,s;return e=new sr({props:{data:TWe}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-column-header svelte-h4fort"),P(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){Pe(a,n,l),ft(e,n,null),r=!0,o||(s=Ft(n,"click",t[3]),o=!0)},p:function(a,l){var c=Un(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&P(n,"title",i)},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){ce(e.$$.fragment,a),r=!1},d:function(a){a&&je(n),pt(e),o=!1,s()}}}function wnt(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Cnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,wnt,xnt,Ei,{count:0,maxSampleCount:1,onRefresh:2},_nt),r}return Se(e)}();function knt(t){pi(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function wpe(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function Cpe(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Sn(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function kpe(t,n,e){var i=t.slice();return i[125]=n[e],i}function Spe(t){var n,e;return n=new Ztt({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Snt(t){var n;return{c:function(){(n=be("div")).innerHTML='
    \n
    loading...
    ',P(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function Dnt(t){var n,e,i,r,o,s,a,l,c,u=[Ant,Ent,Tnt],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=be("label"),e=be("input"),i=it(),o.c(),s=_r(),P(e,"type","text"),e.readOnly="readonly",P(e,"tabindex","-1"),P(e,"class","jse-hidden-input svelte-hs49xj"),P(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){Pe(f,n,p),de(n,e),t[71](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=Ft(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):($t(),ce(d[m],1,1,function(){d[m]=null}),Bt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){ce(o),a=!1},d:function(f){f&&je(n),t[71](null),f&&je(i),d[r].d(f),f&&je(s),l=!1,c()}}}function Tnt(t){var n,e;return n=new bnt({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Ent(t){var n,e,i,r;return n=new nd({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[35]}]}}),i=new tce({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){mt(n.$$.fragment),e=it(),mt(i.$$.fragment)},m:function(o,s){ft(n,o,s),Pe(o,e,s),ft(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){ce(n.$$.fragment,o),ce(i.$$.fragment,o),r=!1},d:function(o){pt(n,o),o&&je(e),pt(i,o)}}}function Ant(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R=!Hi(null===(n=t[21])||void 0===n?void 0:n.root),z=R&&Dpe(t),U=t[9],q=[],re=0;re"u";a("isSSR:",m);var g,v,y,_,C,S,M=n.readOnly,$=n.externalContent,G=n.mainMenuBar,R=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,U=n.flattenColumns,q=n.parser,re=n.parseMemoizeOne,L=n.validator,X=n.validationParser,Z=n.indentation,H=n.onChange,he=n.onChangeMode,E=n.onRenderValue,N=n.onRenderMenu,F=n.onFocus,Y=n.onBlur,V=n.onSortModal,oe=n.onTransformModal,fe=n.onJSONEditorModal;a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(v)},hasFocus:function(){return ot&&document.hasFocus()||jk(v)},onFocus:function(){F&&F()},onBlur:function(){Y&&Y()}});var Ne,xe=void 0,tt=1e4,ze=[],ot=!1,B={},ne=600,ie=0;function Ie(Ee){a("updateSelection",Ee);var St="function"==typeof Ee?Ee(Le.selection):Ee;or(St,Le.selection)||e(10,Le=Ze(Ze({},Le),{},{selection:St}))}function Ye(Ee){void 0!==Le.selection&&void 0!==Ee&&(Le.selection&&Xc(Ee,Le.selection.anchorPath)&&Xc(Ee,Le.selection.focusPath)||(a("clearing selection: path does not exist anymore",Le.selection),e(10,Le=Ze(Ze({},Le),{},{selection:s0(Ee,Le)}))))}var At,Le=Lk(),_t=!1,_n=fae({onChange:function(Ee){e(19,ci=Ee)}}),ci=_n.getState();function Ni(Ee){var St=Ee.previousJson,Ht=Ee.previousState,sn=Ee.previousText,hn=Ee.previousTextIsRepaired;void 0===St&&void 0===sn||(void 0!==C?_n.add(void 0!==St?{undo:{patch:[{op:"replace",path:"",value:St}],state:ul(Ht),json:void 0,text:sn,textIsRepaired:hn},redo:{patch:[{op:"replace",path:"",value:C}],state:ul(Le),json:void 0,text:S,textIsRepaired:_t}}:{undo:{patch:void 0,json:void 0,text:sn,state:ul(Ht),textIsRepaired:hn},redo:{patch:void 0,json:C,state:ul(Le),text:S,textIsRepaired:_t}}):void 0!==St&&_n.add({undo:{patch:void 0,json:St,state:ul(Ht),text:sn,textIsRepaired:hn},redo:{patch:void 0,json:void 0,text:S,textIsRepaired:_t,state:ul(Le)}}))}var pn=[],Fr=Zb(pae);function $r(Ee,St,Ht,sn){g0(function(){var hn;try{hn=Fr(Ee,St,Ht,sn)}catch(ri){hn=[{path:[],message:"Failed to validate: "+ri.message,severity:Xd.warning}]}or(hn,pn)||(a("validationErrors changed:",hn),e(11,pn=hn))},function(hn){return a("validationErrors updated in ".concat(hn," ms"))})}function wr(){return a("validate"),xe?{parseError:xe,isRepairable:!1}:($r(C,L,q,X),Hi(pn)?null:{validationErrors:pn})}function Or(Ee,St){if(a("patch",Ee,St),void 0===C)throw new Error("Cannot apply patch: no JSON");var Ht={json:C},sn=C,hn=Le,ri=_t,Oi=ose(C,Ee),Bn=$oe(C,Le,Ee).json,ei=function MJe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=ou(Xu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return or(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?Ze(Ze({},t),{},{sortedColumn:void 0}):t}(Le,Ee,ze),Yn="function"==typeof St?St(Bn,ei):void 0;e(7,C=Yn&&void 0!==Yn.json?Yn.json:Bn);var br=Yn&&void 0!==Yn.state?Yn.state:ei;e(10,Le=br),e(15,S=void 0),e(18,_t=!1),e(17,Ne=void 0),_n.add({undo:{patch:Oi,json:void 0,text:void 0,state:ul(hn),textIsRepaired:ri},redo:{patch:Ee,json:void 0,state:ul(br),text:void 0,textIsRepaired:_t}});var Ar={json:C,previousJson:sn,undo:Oi,redo:Ee};return Wr(Ht,Ar),Ar}function Ai(Ee,St){if(!M)return Or(Ee,St)}function Wr(Ee,St){(void 0!==Ee.json||void 0!==Ee?.text)&&(void 0!==S?H({text:S,json:void 0},Ee,{contentErrors:wr(),patchResult:St}):void 0!==C&&H({text:void 0,json:C},Ee,{contentErrors:wr(),patchResult:St}))}function jo(Ee){a("handleFind",Ee)}function Fn(Ee){a("pasted json as text",Ee),e(17,Ne=Ee)}function xt(Ee){var St=parseInt(Ee[0]),Ht=[String(St+1)].concat(si(Ee.slice(1)));return Xc(C,Ht)?mr(Ht,!1):mr(Ee,!1)}function ui(){_&&(_.focus(),_.select())}function Fi(){Le.selection||Ie(function(){if(oo(C)&&!Hi(C)&&!Hi(ze))return mr(["0"].concat(si(ze[0])),!1)}())}function Cr(Ee){var St=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ht=b4(Ee,ze,B,18),sn=Ht-ie,hn=gt(Ee);a("scrollTo",{path:Ee,top:Ht,scrollTop:ie,elem:hn});var ri=y.getBoundingClientRect();if(hn&&!St){var Oi=hn.getBoundingClientRect();if(Oi.bottom>ri.top&&Oi.topHt.right&&e(13,y.scrollLeft+=sn.right-Ht.right,y),sn.left(Bn=ie+ri.height-18)&&e(13,y.scrollTop+=hn-Bn,y),sn0&&void 0!==Ht[0])||Ht[0],void 0!==C){sn.next=3;break}return sn.abrupt("return");case 3:return sn.next=5,Kle({json:C,documentState:Le,indentation:St?Z:void 0,parser:q});case 5:case"end":return sn.stop()}},Ee)})),Xa.apply(this,arguments)}function Ic(){Zle({json:C,text:S,documentState:Le,keepSelection:!0,readOnly:M,onChange:H,onPatch:Ai})}function we(){!function IJe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&c0(e.selection)){var s=ou(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;jl("duplicate row",{rowIndex:a});var c=[String(a)];o(nse(n,[c]),function(u,d){var h=mr(zm({rowIndex:a0?a-1:void 0,h=void 0!==d?mr(zm({rowIndex:d,columnIndex:l},i),!1):void 0;return jl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:Ze(Ze({},u),{},{selection:h})}})}}({json:C,documentState:Le,columns:ze,readOnly:M,onPatch:Ai})}function Ue(){return(Ue=Zi(vn().mark(function Ee(St){return vn().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,ece({char:St,selectInside:!1,refJsonEditor:v,json:C,documentState:Le,readOnly:M,parser:q,onPatch:Ai,onReplaceJson:Dn,onSelect:Ie});case 2:case"end":return Ht.stop()}},Ee)}))).apply(this,arguments)}function Dn(Ee,St){var Ht=Le,sn=C,hn=S,ri={json:C,text:S},Oi=_t,Bn=nu(C,Le,[],sh),ei="function"==typeof St?St(Ee,Bn):void 0;e(7,C=ei&&void 0!==ei.json?ei.json:Ee),e(10,Le=ei&&void 0!==ei.state?ei.state:Bn),e(15,S=void 0),e(18,_t=!1),Ye(C),Ni({previousJson:sn,previousState:Ht,previousText:hn,previousTextIsRepaired:Oi}),Wr(ri,null)}function ii(Ee,St){a("handleChangeText");var Ht=Le,sn=C,hn=S,ri={json:C,text:S},Oi=_t;try{e(7,C=re(Ee)),e(10,Le=nu(C,Le,[],sh)),e(15,S=void 0),e(18,_t=!1)}catch{try{e(7,C=re(Yd(Ee))),e(10,Le=nu(C,Le,[],sh)),e(15,S=Ee),e(18,_t=!0)}catch{e(7,C=void 0),e(10,Le=Lk({json:C,expand:sh})),e(15,S=Ee),e(18,_t=!1)}}if("function"==typeof St){var Bn=St(C,Le);e(7,C=Bn&&Bn.json?Bn.json:C),e(10,Le=Bn&&Bn.state?Bn.state:Le)}Ye(C),Ni({previousJson:sn,previousState:Ht,previousText:hn,previousTextIsRepaired:Oi}),Wr(ri,null)}function hi(Ee){var Ht=Ee.rootPath,sn=Ee.onTransform,hn=Ee.onClose;M||void 0===C||(ot=!0,oe({id:Ee.id||p,json:C,rootPath:Ht||[],onTransform:sn?function(ri){sn({operations:ri,json:C,transformedJson:Yu(C,ri)})}:function(ri){a("onTransform",Ht,ri),Ai(ri)},onClose:function(){ot=!1,ui(),hn&&hn()}}))}function di(Ee){a("openJSONEditorModal",{path:Ee}),ot=!0,fe({content:{json:Sn(C,Ee)},path:Ee,onPatch:At.onPatch,onClose:function(){ot=!1,ui()}})}function kr(Ee,St){l(jae,{text:Ee,onParse:Ik,onRepair:soe,onApply:St},Ze(Ze({},Cm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return ui()}})}function Qr(){if(!M&&_n.getState().canUndo){var Ee=_n.undo();if(Ee){var St={json:C,text:S};e(7,C=Ee.undo.patch?Yu(C,Ee.undo.patch):Ee.undo.json),e(10,Le=Ee.undo.state),e(15,S=Ee.undo.text),e(18,_t=Ee.undo.textIsRepaired),a("undo",{item:Ee,json:C}),Wr(St,{json:C,previousJson:St.json,redo:Ee.undo.patch,undo:Ee.redo.patch}),ui(),Le.selection&&Cr(Le.selection.focusPath,!1)}}}function gi(){if(!M&&_n.getState().canRedo){var Ee=_n.redo();if(Ee){var St={json:C,text:S};e(7,C=Ee.redo.patch?Yu(C,Ee.redo.patch):Ee.redo.json),e(10,Le=Ee.redo.state),e(15,S=Ee.redo.text),e(18,_t=Ee.redo.textIsRepaired),a("redo",{item:Ee,json:C}),Wr(St,{json:C,previousJson:St.json,redo:Ee.redo.patch,undo:Ee.undo.patch}),ui(),Le.selection&&Cr(Le.selection.focusPath,!1)}}}function yr(Ee,St){e(68,B[St]=Ee.getBoundingClientRect().height,B)}return t.$$set=function(Ee){"readOnly"in Ee&&e(0,M=Ee.readOnly),"externalContent"in Ee&&e(47,$=Ee.externalContent),"mainMenuBar"in Ee&&e(1,G=Ee.mainMenuBar),"escapeControlCharacters"in Ee&&e(48,R=Ee.escapeControlCharacters),"escapeUnicodeCharacters"in Ee&&e(49,z=Ee.escapeUnicodeCharacters),"flattenColumns"in Ee&&e(50,U=Ee.flattenColumns),"parser"in Ee&&e(2,q=Ee.parser),"parseMemoizeOne"in Ee&&e(51,re=Ee.parseMemoizeOne),"validator"in Ee&&e(52,L=Ee.validator),"validationParser"in Ee&&e(53,X=Ee.validationParser),"indentation"in Ee&&e(3,Z=Ee.indentation),"onChange"in Ee&&e(54,H=Ee.onChange),"onChangeMode"in Ee&&e(4,he=Ee.onChangeMode),"onRenderValue"in Ee&&e(55,E=Ee.onRenderValue),"onRenderMenu"in Ee&&e(5,N=Ee.onRenderMenu),"onFocus"in Ee&&e(56,F=Ee.onFocus),"onBlur"in Ee&&e(57,Y=Ee.onBlur),"onSortModal"in Ee&&e(58,V=Ee.onSortModal),"onTransformModal"in Ee&&e(59,oe=Ee.onTransformModal),"onJSONEditorModal"in Ee&&e(60,fe=Ee.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=TO({escapeControlCharacters:R,escapeUnicodeCharacters:z})),65536&t.$$.dirty[1]&&function on(Ee){var St=C,Ht=Qv(Ee)?Ee.text!==S:!or(St,Ee.json);if(a("update external content",{isChanged:Ht}),Ht){var sn={json:C,text:S},hn=C,ri=Le,Oi=S,Bn=_t;if(Qv(Ee))try{e(7,C=re(Ee.text)),e(15,S=Ee.text),e(18,_t=!1),e(16,xe=void 0)}catch(ei){try{e(7,C=re(Yd(Ee.text))),e(15,S=Ee.text),e(18,_t=!0),e(16,xe=void 0)}catch{e(7,C=void 0),e(15,S=$.text),e(18,_t=!1),e(16,xe=Nk(S,ei.message||ei.toString()))}}else e(7,C=Ee.json),e(15,S=void 0),e(18,_t=!1),e(16,xe=void 0);Ye(C),Le.sortedColumn&&e(10,Le=Ze(Ze({},Le),{},{sortedColumn:void 0})),Ni({previousJson:hn,previousState:ri,previousText:Oi,previousTextIsRepaired:Bn}),Wr(sn,null)}}($),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,ze=oo(C)?function(Ee,St){var Ht,sn=new Set(St.map(ln)),hn=new Set(Ee.map(ln)),ri=Re(sn);try{for(ri.s();!(Ht=ri.n()).done;){var Oi=Ht.value;hn.has(Oi)||sn.delete(Oi)}}catch(br){ri.e(br)}finally{ri.f()}var Bn,ei=Re(hn);try{for(ei.s();!(Bn=ei.n()).done;){var Yn=Bn.value;sn.has(Yn)||sn.add(Yn)}}catch(br){ei.e(br)}finally{ei.f()}return si(sn).map(Xu)}(function(Ee,St){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,sn={};Array.isArray(Ee)&&function LUe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;rtt),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Ee,St,Ht,sn,hn){for(var ri=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,Oi=oo(Ht)?Ht.length:0,Bn=function TJe(t,n){var e=Object.values(t);return Hi(e)?n:e.reduce(function(r,o){return r+o})/e.length}(sn,hn),ei=Ee-ri,Yn=St+2*ri,br=function(gd){return sn[gd]||hn},Ar=0,Po=0;Po0&&(Po-=br(--Ar));for(var ca=Ar,md=0;md0?mr(zm({rowIndex:br.rowIndex,columnIndex:Po-1},ei),!1):Yn;Ie(Ht),Qo(Ht.focusPath)}if("ArrowRight"===St&&(Ee.preventDefault(),Fi(),Le.selection)){var sn=function(ei,Yn){var br=ou(Yn.focusPath,ei),Po=br.columnIndex;return Po0?mr(zm({rowIndex:Ar-1,columnIndex:br.columnIndex},ei),!1):Yn}(ze,Le.selection);Ie(hn),Qo(hn.focusPath)}if("ArrowDown"===St&&(Ee.preventDefault(),Fi(),Le.selection)){var ri=function(ei,Yn,br){var Ar=ou(br.focusPath,Yn),Po=Ar.rowIndex;return Po1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Rpe({props:{mode:Ln(t[18]).mode,content:Ln(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:dh,onBlur:dh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var C=t[19]&&$pe(t),S=t[18].length>1&&Bpe(t);function M(R,z){return R[0]?Vnt:Hnt}var $=M(t),G=$(t);return{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),(o=be("div")).innerHTML='
    Path
    ',s=it(),a=be("input"),l=it(),(c=be("div")).innerHTML='
    Contents
    ',u=it(),d=be("div"),mt(h.$$.fragment),f=it(),p=be("div"),C&&C.c(),m=it(),S&&S.c(),g=it(),G.c(),P(o,"class","jse-label svelte-1hibiw3"),P(a,"class","jse-path svelte-1hibiw3"),P(a,"type","text"),a.readOnly=!0,P(a,"title","Selected path"),a.value=t[21],P(c,"class","jse-label svelte-1hibiw3"),P(d,"class","jse-modal-inline-editor svelte-1hibiw3"),P(p,"class","jse-actions svelte-1hibiw3"),P(r,"class","jse-modal-contents svelte-1hibiw3"),P(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(R,z){Pe(R,n,z),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(r,s),de(r,a),de(r,l),de(r,c),de(r,u),de(r,d),ft(h,d,null),de(r,f),de(r,p),C&&C.m(p,null),de(p,m),S&&S.m(p,null),de(p,g),G.m(p,null),v=!0,y||(_=_a(iS.call(null,n,t[23])),y=!0)},p:function(R,z){var U={};262144&z[0]&&(U.title="Edit nested content "+(R[18].length>1?" (".concat(R[18].length,")"):"")),e.$set(U),(!v||2097152&z[0]&&a.value!==R[21])&&(a.value=R[21]);var q={};262144&z[0]&&(q.mode=Ln(R[18]).mode),262144&z[0]&&(q.content=Ln(R[18]).content),1&z[0]&&(q.readOnly=R[0]),2&z[0]&&(q.indentation=R[1]),4&z[0]&&(q.tabSize=R[2]),32&z[0]&&(q.statusBar=R[5]),8&z[0]&&(q.mainMenuBar=R[3]),16&z[0]&&(q.navigationBar=R[4]),64&z[0]&&(q.escapeControlCharacters=R[6]),128&z[0]&&(q.escapeUnicodeCharacters=R[7]),256&z[0]&&(q.flattenColumns=R[8]),512&z[0]&&(q.parser=R[9]),1048576&z[0]&&(q.parseMemoizeOne=R[20]),1024&z[0]&&(q.validator=R[10]),2048&z[0]&&(q.validationParser=R[11]),4096&z[0]&&(q.pathParser=R[12]),8192&z[0]&&(q.onRenderValue=R[13]),16384&z[0]&&(q.onClassName=R[14]),32768&z[0]&&(q.onRenderMenu=R[15]),65536&z[0]&&(q.onSortModal=R[16]),131072&z[0]&&(q.onTransformModal=R[17]),h.$set(q),R[19]?C?C.p(R,z):((C=$pe(R)).c(),C.m(p,m)):C&&(C.d(1),C=null),R[18].length>1?S?(S.p(R,z),262144&z[0]&&Q(S,1)):((S=Bpe(R)).c(),Q(S,1),S.m(p,g)):S&&($t(),ce(S,1,1,function(){S=null}),Bt()),$===($=M(R))&&G?G.p(R,z):(G.d(1),(G=$(R))&&(G.c(),G.m(p,null)))},i:function(R){v||(Q(e.$$.fragment,R),Q(h.$$.fragment,R),Q(S),v=!0)},o:function(R){ce(e.$$.fragment,R),ce(h.$$.fragment,R),ce(S),v=!1},d:function(R){R&&je(n),pt(e),pt(h),C&&C.d(),S&&S.d(),G.d(),y=!1,_()}}}function Vpe(t){t.focus()}function Unt(t,n,e){var i,r,o,s=wa("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,_=n.parser,C=n.validator,S=n.validationParser,M=n.pathParser,$=n.onRenderValue,G=n.onClassName,R=n.onRenderMenu,z=n.onSortModal,U=n.onTransformModal,q=xa("simple-modal").close,re=[{mode:X(a),content:a,relativePath:l}],L=void 0;function X(H){return DO(H)&&oo(H.json)?Jo.table:Jo.tree}function Z(H){s("handleChange",H);var he=Ze(Ze({},Ln(re)),{},{content:H});e(18,re=[].concat(si(Xi(re)),[he]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,_=H.parser),"validator"in H&&e(10,C=H.validator),"validationParser"in H&&e(11,S=H.validationParser),"pathParser"in H&&e(12,M=H.pathParser),"onRenderValue"in H&&e(13,$=H.onRenderValue),"onClassName"in H&&e(14,G=H.onClassName),"onRenderMenu"in H&&e(15,R=H.onRenderMenu),"onSortModal"in H&&e(16,z=H.onSortModal),"onTransformModal"in H&&e(17,U=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=re.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Hi(i)?"(whole document)":tu(Kl(i))),512&t.$$.dirty[0]&&e(20,o=Zb(_.parse))},[u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,re,L,o,r,function(){if(s("handleApply"),!u)try{e(19,L=void 0);var H=[{op:"replace",path:ln(Ln(re).relativePath),value:loe(Ln(re).content,_).json}];if(re.length>1){var he={json:Yu(loe(re[re.length-2].content,_).json,H)};e(18,re=Xi(re)),Z(he)}else c(H),q()}catch(E){e(19,L=E.toString())}},function(){s("handleClose"),re.length>1?(e(18,re=Xi(re)),e(19,L=void 0)):q()},Z,function(H){s("handleChangeMode",H);var he=Ze(Ze({},Ln(re)),{},{mode:H});e(18,re=[].concat(si(Xi(re)),[he]))},function(H){e(19,L=H.toString()),console.error(H)},function(H){var he=H.content,E=H.path;s("handleJSONEditorModal",{content:he,path:E});var N={mode:X(he),content:he,relativePath:E};e(18,re=[].concat(si(re),[N]))},a,l,c,i]}var Gnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Unt,znt,Ei,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Bnt,[-1,-1]),r}return Se(e)}();function Wnt(t,n,e){var i=xa("simple-modal");return[i.open,i.close]}var qnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Wnt,null,Ei,{open:0,close:1}),r}return Se(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function Xnt(t){pi(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function Hpe(t){var n,e;return n=new Rpe({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){mt(n.$$.fragment)},m:function(r,o){ft(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(Q(n.$$.fragment,r),e=!0)},o:function(r){ce(n.$$.fragment,r),e=!1},d:function(r){t[56](null),pt(n,r)}}}function Ynt(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new qnt({props:l}),Vi.push(function(){return Uu(n,"open",a)});var c=Hpe(t);return{c:function(){mt(n.$$.fragment),i=it(),r=be("div"),c.c(),P(r,"class","jse-main svelte-sxaskb"),Mt(r,"jse-focus",t[20])},m:function(u,d){ft(n,u,d),Pe(u,i,d),Pe(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],zu(function(){return e=!1})),n.$set(h),524288&d[0]&&Ei(s,s=u[19])?($t(),ce(c,1,1,Lt),Bt(),(c=Hpe(u)).c(),Q(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&Mt(r,"jse-focus",u[20])},i:function(u){o||(Q(n.$$.fragment,u),Q(c),o=!0)},o:function(u){ce(n.$$.fragment,u),ce(c),o=!1},d:function(u){pt(n,u),u&&je(i),u&&je(r),c.d(u)}}}function Jnt(t){var n,e;return n=new CQ({props:{closeOnEsc:!1,$$slots:{default:[Ynt]},$$scope:{ctx:t}}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Knt(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},kQ,{closeOnEsc:!1}],o={$$slots:{default:[Jnt]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;ke(this,l),this._names={},this._prefixes=u,this._parent=d}return Se(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){wt(u,l);var c=Ct(u);function u(d,h){var f;return ke(this,u),(f=c.call(this,h)).prefix=d,f}return Se(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(RW||(RW=Ae([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)($W||($W=Ae(["\n"],["\\n"]))),a=function(l){wt(u,l);var c=Ct(u);function u(d){var h;return ke(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=Ze(Ze({},d),{},{_n:d.lines?s:e.nil}),h}return Se(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var _=this._scope[m]||(this._scope[m]=[]),C=_.length;return _[C]=h.ref,p.setValue(h,{property:m,itemIndex:C}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(BW||(BW=Ae(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(_){var C=d[_];if(!C)return"continue";var S=p[_]=p[_]||new Map;C.forEach(function(M){if(!S.has(M)){S.set(M,n.Started);var $=h(M);if($){var G=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(VW||(VW=Ae(["",""," "," = ",";",""])),g,G,M,$,f.opts._n)}else{if(!($=m?.(M)))throw new i(M);g=(0,e._)(HW||(HW=Ae(["","","",""])),g,$,f.opts._n)}S.set(M,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(eme)),eme}function xr(){return Zpe||(Zpe=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=DD(),e=tme(),i=DD();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=tme();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function F(){ke(this,F)}return Se(F,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(Y,V){return this}}]),F}(),s=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne){var xe;return ke(this,V),(xe=Y.call(this)).varKind=oe,xe.name=fe,xe.rhs=Ne,xe}return Se(V,[{key:"render",value:function(oe){var Ne=oe._n,xe=oe.es5?e.varKinds.var:this.varKind,tt=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(xe," ").concat(this.name).concat(tt,";")+Ne}},{key:"optimizeNames",value:function(oe,fe){if(oe[this.name.str])return this.rhs&&(this.rhs=L(this.rhs,oe,fe)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne){var xe;return ke(this,V),(xe=Y.call(this)).lhs=oe,xe.rhs=fe,xe.sideEffects=Ne,xe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+fe}},{key:"optimizeNames",value:function(oe,fe){if(!(this.lhs instanceof n.Name)||oe[this.lhs.str]||this.sideEffects)return this.rhs=L(this.rhs,oe,fe),this}},{key:"names",get:function(){return re(this.lhs instanceof n.Name?{}:Ze({},this.lhs.names),this.rhs)}}]),V}(o),l=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne,xe){var tt;return ke(this,V),(tt=Y.call(this,oe,Ne,xe)).op=fe,tt}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+fe}}]),V}(a),c=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).label=oe,fe.names={},fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.label,":")+fe}}]),V}(o),u=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).label=oe,fe.names={},fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n,Ne=this.label?" ".concat(this.label):"";return"break".concat(Ne,";")+fe}}]),V}(o),d=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).error=oe,fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"throw ".concat(this.error,";")+fe}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).code=oe,fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.code,";")+fe}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(oe,fe){return this.code=L(this.code,oe,fe),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(F){wt(V,F);var Y=Ct(V);function V(){var oe,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return ke(this,V),(oe=Y.call(this)).nodes=fe,oe}return Se(V,[{key:"render",value:function(oe){return this.nodes.reduce(function(fe,Ne){return fe+Ne.render(oe)},"")}},{key:"optimizeNodes",value:function(){for(var oe=this.nodes,fe=oe.length;fe--;){var Ne=oe[fe].optimizeNodes();Array.isArray(Ne)?oe.splice.apply(oe,[fe,1].concat(si(Ne))):Ne?oe[fe]=Ne:oe.splice(fe,1)}return oe.length>0?this:void 0}},{key:"optimizeNames",value:function(oe,fe){for(var Ne=this.nodes,xe=Ne.length;xe--;){var tt=Ne[xe];tt.optimizeNames(oe,fe)||(X(oe,tt.names),Ne.splice(xe,1))}return Ne.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(oe,fe){return q(oe,fe.names)},{})}}]),V}(o),p=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"{"+oe._n+pr(qi(V.prototype),"render",this).call(this,oe)+"}"+oe._n}}]),V}(f),m=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(f),g=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(p);g.kind="else";var v=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe){var Ne;return ke(this,V),(Ne=Y.call(this,fe)).condition=oe,Ne}return Se(V,[{key:"render",value:function(oe){var fe="if(".concat(this.condition,")")+pr(qi(V.prototype),"render",this).call(this,oe);return this.else&&(fe+="else "+this.else.render(oe)),fe}},{key:"optimizeNodes",value:function(){pr(qi(V.prototype),"optimizeNodes",this).call(this);var oe=this.condition;if(!0===oe)return this.nodes;var fe=this.else;if(fe){var Ne=fe.optimizeNodes();fe=this.else=Array.isArray(Ne)?new g(Ne):Ne}return fe?!1===oe?fe instanceof V?fe:fe.nodes:this.nodes.length?this:new V(Z(oe),fe instanceof V?[fe]:fe.nodes):!1!==oe&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(oe,fe){var Ne;if(this.else=null===(Ne=this.else)||void 0===Ne?void 0:Ne.optimizeNames(oe,fe),pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe)||this.else)return this.condition=L(this.condition,oe,fe),this}},{key:"names",get:function(){var oe=pr(qi(V.prototype),"names",this);return re(oe,this.condition),this.else&&q(oe,this.else.names),oe}}]),V}(p);v.kind="if";var y=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(p);y.kind="for";var _=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).iteration=oe,fe}return Se(V,[{key:"render",value:function(oe){return"for(".concat(this.iteration,")")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"optimizeNames",value:function(oe,fe){if(pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe))return this.iteration=L(this.iteration,oe,fe),this}},{key:"names",get:function(){return q(pr(qi(V.prototype),"names",this),this.iteration.names)}}]),V}(y),C=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne,xe){var tt;return ke(this,V),(tt=Y.call(this)).varKind=oe,tt.name=fe,tt.from=Ne,tt.to=xe,tt}return Se(V,[{key:"render",value:function(oe){var Ne=this.name,xe=this.from,tt=this.to;return"for(".concat(oe.es5?e.varKinds.var:this.varKind," ").concat(Ne,"=").concat(xe,"; ").concat(Ne,"<").concat(tt,"; ").concat(Ne,"++)")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"names",get:function(){var oe=re(pr(qi(V.prototype),"names",this),this.from);return re(oe,this.to)}}]),V}(y),S=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne,xe){var tt;return ke(this,V),(tt=Y.call(this)).loop=oe,tt.varKind=fe,tt.name=Ne,tt.iterable=xe,tt}return Se(V,[{key:"render",value:function(oe){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"optimizeNames",value:function(oe,fe){if(pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe))return this.iterable=L(this.iterable,oe,fe),this}},{key:"names",get:function(){return q(pr(qi(V.prototype),"names",this),this.iterable.names)}}]),V}(y),M=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne){var xe;return ke(this,V),(xe=Y.call(this)).name=oe,xe.args=fe,xe.async=Ne,xe}return Se(V,[{key:"render",value:function(oe){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);M.kind="func";var $=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"return "+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(f);$.kind="return";var G=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){var fe="try"+pr(qi(V.prototype),"render",this).call(this,oe);return this.catch&&(fe+=this.catch.render(oe)),this.finally&&(fe+=this.finally.render(oe)),fe}},{key:"optimizeNodes",value:function(){var oe,fe;return pr(qi(V.prototype),"optimizeNodes",this).call(this),null===(oe=this.catch)||void 0===oe||oe.optimizeNodes(),null===(fe=this.finally)||void 0===fe||fe.optimizeNodes(),this}},{key:"optimizeNames",value:function(oe,fe){var Ne,xe;return pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe),null===(Ne=this.catch)||void 0===Ne||Ne.optimizeNames(oe,fe),null===(xe=this.finally)||void 0===xe||xe.optimizeNames(oe,fe),this}},{key:"names",get:function(){var oe=pr(qi(V.prototype),"names",this);return this.catch&&q(oe,this.catch.names),this.finally&&q(oe,this.finally.names),oe}}]),V}(p),R=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).error=oe,fe}return Se(V,[{key:"render",value:function(oe){return"catch(".concat(this.error,")")+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);R.kind="catch";var z=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"finally"+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);z.kind="finally";var U=function(){function F(Y){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ke(this,F),this._values={},this._blockStarts=[],this._constants={},this.opts=Ze(Ze({},V),{},{_n:V.lines?"\n":""}),this._extScope=Y,this._scope=new e.Scope({parent:Y}),this._nodes=[new m]}return Se(F,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(Y){return this._scope.name(Y)}},{key:"scopeName",value:function(Y){return this._extScope.name(Y)}},{key:"scopeValue",value:function(Y,V){var oe=this._extScope.value(Y,V);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}},{key:"getScopeValue",value:function(Y,V){return this._extScope.getValue(Y,V)}},{key:"scopeRefs",value:function(Y){return this._extScope.scopeRefs(Y,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(Y,V,oe,fe){var Ne=this._scope.toName(V);return void 0!==oe&&fe&&(this._constants[Ne.str]=oe),this._leafNode(new s(Y,Ne,oe)),Ne}},{key:"const",value:function(Y,V,oe){return this._def(e.varKinds.const,Y,V,oe)}},{key:"let",value:function(Y,V,oe){return this._def(e.varKinds.let,Y,V,oe)}},{key:"var",value:function(Y,V,oe){return this._def(e.varKinds.var,Y,V,oe)}},{key:"assign",value:function(Y,V,oe){return this._leafNode(new a(Y,V,oe))}},{key:"add",value:function(Y,V){return this._leafNode(new l(Y,t.operators.ADD,V))}},{key:"code",value:function(Y){return"function"==typeof Y?Y():Y!==n.nil&&this._leafNode(new h(Y)),this}},{key:"object",value:function(){for(var Y=["{"],V=arguments.length,oe=new Array(V),fe=0;fe1&&Y.push(","),Y.push(ze),(ze!==ot||this.opts.es5)&&(Y.push(":"),(0,n.addCodeArg)(Y,ot))}return Y.push("}"),new n._Code(Y)}},{key:"if",value:function(Y,V,oe){if(this._blockNode(new v(Y)),V&&oe)this.code(V).else().code(oe).endIf();else if(V)this.code(V).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(Y){return this._elseNode(new v(Y))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(Y,V){return this._blockNode(Y),V&&this.code(V).endFor(),this}},{key:"for",value:function(Y,V){return this._for(new _(Y),V)}},{key:"forRange",value:function(Y,V,oe,fe){var Ne=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,xe=this._scope.toName(Y);return this._for(new C(Ne,xe,V,oe),function(){return fe(xe)})}},{key:"forOf",value:function(Y,V,oe){var fe=this,Ne=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,xe=this._scope.toName(Y);if(this.opts.es5){var tt=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(zW||(zW=Ae(["",".length"])),tt),function(ze){fe.var(xe,(0,n._)(UW||(UW=Ae(["","[","]"])),tt,ze)),oe(xe)})}return this._for(new S("of",Ne,xe,V),function(){return oe(xe)})}},{key:"forIn",value:function(Y,V,oe){var fe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(Y,(0,n._)(GW||(GW=Ae(["Object.keys(",")"])),V),oe);var Ne=this._scope.toName(Y);return this._for(new S("in",fe,Ne,V),function(){return oe(Ne)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(Y){return this._leafNode(new c(Y))}},{key:"break",value:function(Y){return this._leafNode(new u(Y))}},{key:"return",value:function(Y){var V=new $;if(this._blockNode(V),this.code(Y),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}},{key:"try",value:function(Y,V,oe){if(!V&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');var fe=new G;if(this._blockNode(fe),this.code(Y),V){var Ne=this.name("e");this._currNode=fe.catch=new R(Ne),V(Ne)}return oe&&(this._currNode=fe.finally=new z,this.code(oe)),this._endBlockNode(R,z)}},{key:"throw",value:function(Y){return this._leafNode(new d(Y))}},{key:"block",value:function(Y,V){return this._blockStarts.push(this._nodes.length),Y&&this.code(Y).endBlock(V),this}},{key:"endBlock",value:function(Y){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var oe=this._nodes.length-V;if(oe<0||void 0!==Y&&oe!==Y)throw new Error("CodeGen: wrong number of nodes: ".concat(oe," vs ").concat(Y," expected"));return this._nodes.length=V,this}},{key:"func",value:function(Y){var fe=arguments.length>3?arguments[3]:void 0;return this._blockNode(new M(Y,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),fe&&this.code(fe).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(M)}},{key:"optimize",value:function(){for(var Y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(Y){return this._currNode.nodes.push(Y),this}},{key:"_blockNode",value:function(Y){this._currNode.nodes.push(Y),this._nodes.push(Y)}},{key:"_endBlockNode",value:function(Y,V){var oe=this._currNode;if(oe instanceof Y||V&&oe instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(Y.kind,"/").concat(V.kind):Y.kind,'"'))}},{key:"_elseNode",value:function(Y){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=Y,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var Y=this._nodes;return Y[Y.length-1]},set:function(Y){var V=this._nodes;V[V.length-1]=Y}}]),F}();function q(F,Y){for(var V in Y)F[V]=(F[V]||0)+(Y[V]||0);return F}function re(F,Y){return Y instanceof n._CodeOrName?q(F,Y.names):F}function L(F,Y,V){return F instanceof n.Name?oe(F):(fe=F)instanceof n._Code&&fe._items.some(function(Ne){return Ne instanceof n.Name&&1===Y[Ne.str]&&void 0!==V[Ne.str]})?new n._Code(F._items.reduce(function(fe,Ne){return Ne instanceof n.Name&&(Ne=oe(Ne)),Ne instanceof n._Code?fe.push.apply(fe,si(Ne._items)):fe.push(Ne),fe},[])):F;var fe;function oe(fe){var Ne=V[fe.str];return void 0===Ne||1!==Y[fe.str]?fe:(delete Y[fe.str],Ne)}}function X(F,Y){for(var V in Y)F[V]=(F[V]||0)-(Y[V]||0)}function Z(F){return"boolean"==typeof F||"number"==typeof F||null===F?!F:(0,n._)(WW||(WW=Ae(["!",""])),N(F))}t.CodeGen=U,t.not=Z;var H=E(t.operators.AND);t.and=function(){for(var F=arguments.length,Y=new Array(F),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,_,C,S){var M=void 0===C?_:C instanceof n.Name?(_ instanceof n.Name?p(y,_,C):m(y,_,C),C):_ instanceof n.Name?(m(y,C,_),_):g(_,C);return S!==n.Name||M instanceof n.Name?M:v(y,M)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(aq||(aq=Ae(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(lq||(lq=Ae(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=Re(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(YW||(YW=Ae(["",""])),p)}return(0,n._)(JW||(JW=Ae(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=Re(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(KW||(KW=Ae([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(QW||(QW=Ae([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(ZW||(ZW=Ae([""," || {}"])),m)).code((0,n._)(eq||(eq=Ae(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(tq||(tq=Ae([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(nq||(nq=Ae([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||Ze(Ze({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(iq||(iq=Ae([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(rq||(rq=Ae([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(oq||(oq=Ae([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(sq||(sq=Ae([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?cq||(cq=Ae(['"[" + ',' + "]"'])):uq||(uq=Ae(['"[\'" + ',' + "\']"'])):g?dq||(dq=Ae(['"/" + ',""])):hq||(hq=Ae(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(Hr);var nme,ime,rme,TD={};function Sp(){if(nme)return TD;nme=1,Object.defineProperty(TD,"__esModule",{value:!0});var t=xr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return TD.default=n,TD}function ED(){return ime||(ime=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=xr(),e=Hr,i=Sp();function r(d,h){var f=d.const("err",h);d.if((0,n._)(Dq||(Dq=Ae([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(Tq||(Tq=Ae(["[","]"])),f))},(0,n._)(Eq||(Eq=Ae(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(Aq||(Aq=Ae(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(Mq||(Mq=Ae(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(Iq||(Iq=Ae(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(fq||(fq=Ae(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(pq||(pq=Ae(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(mq||(mq=Ae(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,_=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,_):o(m,(0,n._)(gq||(gq=Ae(["[","]"])),_))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(vq||(vq=Ae([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(yq||(yq=Ae(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(_){h.const(y,(0,n._)(bq||(bq=Ae(["","[","]"])),i.default.vErrors,_)),h.if((0,n._)(_q||(_q=Ae(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(xq||(xq=Ae(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(wq||(wq=Ae(["",".schemaPath"])),y),(0,n.str)(Cq||(Cq=Ae(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(kq||(kq=Ae(["",".schema"])),y),p),h.assign((0,n._)(Sq||(Sq=Ae(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(Nq||(Nq=Ae(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,_=d.it,C=_.opts,S=_.propertyName,M=_.topSchemaRef,$=_.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(Pq||(Pq=Ae(["{}"])))]),C.messages&&f.push([s.message,"function"==typeof m?m(d):m]),C.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(Lq||(Lq=Ae(["","",""])),M,$)],[i.default.data,v]),S&&f.push([s.propertyName,S])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(Fq||(Fq=Ae(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(Oq||(Oq=Ae(["","/",""])),p,f);return m&&(g=(0,n.str)(jq||(jq=Ae(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(Ype)),Ype}var I_={},tg={};Object.defineProperty(tg,"__esModule",{value:!0}),tg.getRules=tg.isJSONType=void 0;var ait=new Set(["string","number","integer","boolean","null","object","array"]);tg.isJSONType=function(t){return"string"==typeof t&&ait.has(t)},tg.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ze(Ze({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var ome,pf={};function sme(){if(ome)return pf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return ome=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.shouldUseRule=pf.shouldUseGroup=pf.schemaHasRulesForType=void 0,pf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},pf.shouldUseGroup=t,pf.shouldUseRule=n,pf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=tg,i=sme(),r=ED(),o=xr(),s=Hr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var M,m=f.gen,g=f.data,v=f.opts,y=(M=v.coerceTypes)?p.filter(function($){return l.has($)||"array"===M&&"array"===$}):[],_=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(_){var C=u(p,g,v.strictNumbers,n.Wrong);m.if(C,function(){y.length?function(S,M,$){var G=S.gen,R=S.data,z=S.opts,U=G.let("dataType",(0,o._)($q||($q=Ae(["typeof ",""])),R)),q=G.let("coerced",(0,o._)(Bq||(Bq=Ae(["undefined"]))));"array"===z.coerceTypes&&G.if((0,o._)(Vq||(Vq=Ae([""," == 'object' && Array.isArray(",") && ",".length == 1"])),U,R,R),function(){return G.assign(R,(0,o._)(Hq||(Hq=Ae(["","[0]"])),R)).assign(U,(0,o._)(zq||(zq=Ae(["typeof ",""])),R)).if(u(M,R,z.strictNumbers),function(){return G.assign(q,R)})}),G.if((0,o._)(Uq||(Uq=Ae([""," !== undefined"])),q));var re,L=Re($);try{for(L.s();!(re=L.n()).done;){var X=re.value;(l.has(X)||"array"===X&&"array"===z.coerceTypes)&&Z(X)}}catch(H){L.e(H)}finally{L.f()}function Z(H){switch(H){case"string":return void G.elseIf((0,o._)(Wq||(Wq=Ae(["",' == "number" || ',' == "boolean"'])),U,U)).assign(q,(0,o._)(qq||(qq=Ae(['"" + ',""])),R)).elseIf((0,o._)(Xq||(Xq=Ae([""," === null"])),R)).assign(q,(0,o._)(Yq||(Yq=Ae(['""']))));case"number":return void G.elseIf((0,o._)(Jq||(Jq=Ae(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),U,R,U,R,R,R)).assign(q,(0,o._)(Kq||(Kq=Ae(["+",""])),R));case"integer":return void G.elseIf((0,o._)(Qq||(Qq=Ae(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),U,R,U,R,R,R,R)).assign(q,(0,o._)(Zq||(Zq=Ae(["+",""])),R));case"boolean":return void G.elseIf((0,o._)(eX||(eX=Ae(["",' === "false" || '," === 0 || "," === null"])),R,R,R)).assign(q,!1).elseIf((0,o._)(tX||(tX=Ae(["",' === "true" || '," === 1"])),R,R)).assign(q,!0);case"null":return G.elseIf((0,o._)(nX||(nX=Ae(["",' === "" || '," === 0 || "," === false"])),R,R,R)),void G.assign(q,null);case"array":G.elseIf((0,o._)(iX||(iX=Ae(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),U,U,U,R)).assign(q,(0,o._)(rX||(rX=Ae(["[","]"])),R))}}G.else(),h(S),G.endIf(),G.if((0,o._)(Gq||(Gq=Ae([""," !== undefined"])),q),function(){var H,he,E,N,F;G.assign(R,q),he=q,N=(H=S).parentData,F=H.parentDataProperty,(E=H.gen).if((0,o._)(oX||(oX=Ae([""," !== undefined"])),N),function(){return E.assign((0,o._)(sX||(sX=Ae(["","[","]"])),N,F),he)})})}(f,p,y):h(f)})}return _};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(aX||(aX=Ae([""," "," null"])),p,y);case"array":g=(0,o._)(lX||(lX=Ae(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(cX||(cX=Ae([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=_((0,o._)(uX||(uX=Ae(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=_();break;default:return(0,o._)(dX||(dX=Ae(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function _(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(hX||(hX=Ae(["typeof ",' == "number"'])),p),C,m?(0,o._)(fX||(fX=Ae(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var _=(0,o._)(pX||(pX=Ae(["typeof ",' != "object"'])),p);v=y.null?_:(0,o._)(mX||(mX=Ae(["!"," || ",""])),p,_),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var C in y.number&&delete y.integer,y)v=(0,o.and)(v,c(C,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(gX||(gX=Ae(["{type: ","}"])),p):(0,o._)(vX||(vX=Ae(["{type: ","}"])),m)}};function h(f){var m,g,v,y,_,p=(g=(m=f).gen,v=m.data,_=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:_,schemaValue:_,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(I_);var ame,lme,cme,N_={},ud={},po={};function dd(){if(lme)return po;lme=1,Object.defineProperty(po,"__esModule",{value:!0}),po.validateUnion=po.validateArray=po.usePattern=po.callValidateCode=po.schemaProperties=po.allSchemaProperties=po.noPropertyInData=po.propertyInData=po.isOwnProperty=po.hasPropFunc=po.reportMissingProp=po.checkMissingProp=po.checkReportMissingProp=void 0;var t=xr(),n=Hr,e=Sp(),i=Hr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(kX||(kX=Ae(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(SX||(SX=Ae(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)(EX||(EX=Ae(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}po.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(wX||(wX=Ae(["",""])),u)},!0),c.error()})},po.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,si(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(CX||(CX=Ae([""," = ",""])),d,m))})))},po.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},po.hasPropFunc=r,po.isOwnProperty=o,po.propertyInData=function(c,u,d,h){var f=(0,t._)(DX||(DX=Ae(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(TX||(TX=Ae([""," && ",""])),f,o(c,u,d)):f},po.noPropertyInData=s,po.allSchemaProperties=a,po.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},po.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,_=m.errorPath,C=c.it,S=h?(0,t._)(AX||(AX=Ae(["",", ",", ","",""])),f,p,v,y):p,M=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,_)],[e.default.parentData,C.parentData],[e.default.parentDataProperty,C.parentDataProperty],[e.default.rootData,e.default.rootData]];C.opts.dynamicRef&&M.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var $=(0,t._)(MX||(MX=Ae(["",", ",""])),S,g.object.apply(g,M));return d!==t.nil?(0,t._)(IX||(IX=Ae(["",".call(",", ",")"])),u,d,$):(0,t._)(NX||(NX=Ae(["","(",")"])),u,$)};var l=(0,t._)(FX||(FX=Ae(["new RegExp"])));return po.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(OX||(OX=Ae(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},po.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(jX||(jX=Ae(["",".length"])),d));u.forRange("i",0,y,function(_){c.subschema({keyword:h,dataProp:_,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},po.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(PX||(PX=Ae([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},po}var ume,mf={},Ga={},dme=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==bn(n)&&"object"==bn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},kP={},cit={get exports(){return kP},set exports(t){kP=t}},Dp=cit.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),AD(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function AD(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==bn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Dp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!SP(t):!!n&&hme(t)<=n)};var pit=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function SP(t){for(var n in t){if(pit.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(SP)||"object"==bn(e)&&SP(e))return!0}return!1}function hme(t){var n=0;for(var e in t)if("$ref"===e||(n++,!fit.has(e)&&("object"==bn(t[e])&&(0,uit.eachItem)(t[e],function(i){return n+=hme(i)}),n===1/0)))return 1/0;return n}function fme(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=z0(n));var i=t.parse(n);return pme(t,i)}function pme(t,n){return t.serialize(n).split("#")[0]+"#"}Ga.getFullPath=fme,Ga._getFullPath=pme;var mit=/#\/?$/;function z0(t){return t?t.replace(mit,""):""}Ga.normalizeId=z0,Ga.resolveUrl=function(t,n,e){return e=z0(e),t.resolve(n,e)};var mme,git=/^[a-z_][-a-z0-9._]*$/i;function MD(){if(mme)return ff;mme=1,Object.defineProperty(ff,"__esModule",{value:!0}),ff.getData=ff.KeywordCxt=ff.validateFunctionCode=void 0;var t=function(){if(rme)return eg;rme=1,Object.defineProperty(eg,"__esModule",{value:!0}),eg.boolOrEmptySchema=eg.topBoolOrEmptySchema=void 0;var L=ED(),X=xr(),Z=Sp(),H={message:"boolean schema is false"};function he(E,N){(0,L.reportError)({gen:E.gen,keyword:"false schema",data:E.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:E},H,void 0,N)}return eg.topBoolOrEmptySchema=function(E){var N=E.gen,F=E.schema,Y=E.validateName;!1===F?he(E,!1):"object"==bn(F)&&!0===F.$async?N.return(Z.default.data):(N.assign((0,X._)(Rq||(Rq=Ae(["",".errors"])),Y),null),N.return(!0))},eg.boolOrEmptySchema=function(E,N){var F=E.gen;!1===E.schema?(F.var(N,!1),he(E)):F.var(N,!0)},eg}(),n=I_,e=sme(),i=I_,r=function(){if(ame)return N_;ame=1,Object.defineProperty(N_,"__esModule",{value:!0}),N_.assignDefaults=void 0;var L=xr(),X=Hr;function Z(H,he,E){var N=H.gen,F=H.compositeRule,Y=H.data,V=H.opts;if(void 0!==E){var oe=(0,L._)(yX||(yX=Ae(["","",""])),Y,(0,L.getProperty)(he));if(F)(0,X.checkStrictMode)(H,"default is ignored for: ".concat(oe));else{var fe=(0,L._)(bX||(bX=Ae([""," === undefined"])),oe);"empty"===V.useDefaults&&(fe=(0,L._)(_X||(_X=Ae([""," || "," === null || ",' === ""'])),fe,oe,oe)),N.if(fe,(0,L._)(xX||(xX=Ae([""," = ",""])),oe,(0,L.stringify)(E)))}}}return N_.assignDefaults=function(H,he){var E=H.schema,N=E.properties,F=E.items;if("object"===he&&N)for(var Y in N)Z(H,Y,N[Y].default);else"array"===he&&Array.isArray(F)&&F.forEach(function(V,oe){return Z(H,oe,V.default)})},N_}(),o=function lit(){if(cme)return ud;cme=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.validateKeywordUsage=ud.validSchemaType=ud.funcKeywordCode=ud.macroKeywordCode=void 0;var t=xr(),n=Sp(),e=dd(),i=ED();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(zX||(zX=Ae(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return ud.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},ud.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(C,S){if(S.async&&!C.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(VX||(VX=Ae(["await "]))):t.nil,S=p.opts.passContext?n.default.this:n.default.self,M=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(HX||(HX=Ae(["","",""])),C,(0,e.callValidateCode)(s,g,S,M)),a.modifying)}function _(C){var S;c.if((0,t.not)(null!==(S=a.valid)&&void 0!==S?S:v),C)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),_(function(){return s.error()});else{var C=a.async?(M=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(LX||(LX=Ae(["await "]))))},function($){return c.assign(v,!1).if((0,t._)(RX||(RX=Ae([""," instanceof ",""])),$,p.ValidationError),function(){return c.assign(M,(0,t._)($X||($X=Ae(["",".errors"])),$))},function(){return c.throw($)})}),M):(S=(0,t._)(BX||(BX=Ae(["",".errors"])),g),c.assign(S,null),y(t.nil),S);a.modifying&&r(s),_(function(){return function(M,$){var G=M.gen;G.if((0,t._)(UX||(UX=Ae(["Array.isArray(",")"])),$),function(){G.assign(n.default.vErrors,(0,t._)(GX||(GX=Ae([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,$,n.default.vErrors,$)).assign(n.default.errors,(0,t._)(WX||(WX=Ae(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(M)},function(){return M.error()})}(s,C)})}var M,S}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},ud.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==bn(s)&&!Array.isArray(s):bn(s)==c||l&&void 0===s})},ud.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},ud}(),s=function(){if(ume)return mf;ume=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.extendSubschemaMode=mf.extendSubschemaData=mf.getSubschema=void 0;var L=xr(),X=Hr;return mf.getSubschema=function(Z,H){var he=H.keyword,E=H.schemaProp,N=H.schema,F=H.schemaPath,Y=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==he&&void 0!==N)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==he){var oe=Z.schema[he];return void 0===E?{schema:oe,schemaPath:(0,L._)(qX||(qX=Ae(["","",""])),Z.schemaPath,(0,L.getProperty)(he)),errSchemaPath:"".concat(Z.errSchemaPath,"/").concat(he)}:{schema:oe[E],schemaPath:(0,L._)(XX||(XX=Ae(["","","",""])),Z.schemaPath,(0,L.getProperty)(he),(0,L.getProperty)(E)),errSchemaPath:"".concat(Z.errSchemaPath,"/").concat(he,"/").concat((0,X.escapeFragment)(E))}}if(void 0!==N){if(void 0===F||void 0===Y||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:N,schemaPath:F,topSchemaRef:V,errSchemaPath:Y}}throw new Error('either "keyword" or "schema" must be passed')},mf.extendSubschemaData=function(Z,H,he){var E=he.dataProp,N=he.dataPropType,F=he.data,Y=he.dataTypes,V=he.propertyName;if(void 0!==F&&void 0!==E)throw new Error('both "data" and "dataProp" passed, only one allowed');var oe=H.gen;if(void 0!==E){var fe=H.errorPath,Ne=H.dataPathArr,xe=H.opts;tt(oe.let("data",(0,L._)(YX||(YX=Ae(["","",""])),H.data,(0,L.getProperty)(E)),!0)),Z.errorPath=(0,L.str)(JX||(JX=Ae(["","",""])),fe,(0,X.getErrorPath)(E,N,xe.jsPropertySyntax)),Z.parentDataProperty=(0,L._)(KX||(KX=Ae(["",""])),E),Z.dataPathArr=[].concat(si(Ne),[Z.parentDataProperty])}function tt(ze){Z.data=ze,Z.dataLevel=H.dataLevel+1,Z.dataTypes=[],H.definedProperties=new Set,Z.parentData=H.data,Z.dataNames=[].concat(si(H.dataNames),[ze])}void 0!==F&&(tt(F instanceof L.Name?F:oe.let("data",F,!0)),void 0!==V&&(Z.propertyName=V)),Y&&(Z.dataTypes=Y)},mf.extendSubschemaMode=function(Z,H){var he=H.jtdDiscriminator,E=H.jtdMetadata,N=H.compositeRule,F=H.createErrors,Y=H.allErrors;void 0!==N&&(Z.compositeRule=N),void 0!==F&&(Z.createErrors=F),void 0!==Y&&(Z.allErrors=Y),Z.jtdDiscriminator=he,Z.jtdMetadata=E},mf}(),a=xr(),l=Sp(),c=Ga,u=Hr,d=ED();function h(L,X){var F,Z=L.gen,H=L.validateName,he=L.schema,E=L.schemaEnv,N=L.opts;N.code.es5?Z.func(H,(0,a._)(QX||(QX=Ae(["",", ",""])),l.default.data,l.default.valCxt),E.$async,function(){var F,Y;Z.code((0,a._)(ZX||(ZX=Ae(['"use strict"; ',""])),f(he,N))),Y=N,(F=Z).if(l.default.valCxt,function(){F.var(l.default.instancePath,(0,a._)(iY||(iY=Ae(["",".",""])),l.default.valCxt,l.default.instancePath)),F.var(l.default.parentData,(0,a._)(rY||(rY=Ae(["",".",""])),l.default.valCxt,l.default.parentData)),F.var(l.default.parentDataProperty,(0,a._)(oY||(oY=Ae(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),F.var(l.default.rootData,(0,a._)(sY||(sY=Ae(["",".",""])),l.default.valCxt,l.default.rootData)),Y.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(aY||(aY=Ae(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){F.var(l.default.instancePath,(0,a._)(lY||(lY=Ae(['""'])))),F.var(l.default.parentData,(0,a._)(cY||(cY=Ae(["undefined"])))),F.var(l.default.parentDataProperty,(0,a._)(uY||(uY=Ae(["undefined"])))),F.var(l.default.rootData,l.default.data),Y.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(dY||(dY=Ae(["{}"]))))}),Z.code(X)}):Z.func(H,(0,a._)(eY||(eY=Ae(["",", ",""])),l.default.data,(F=N,(0,a._)(tY||(tY=Ae(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,F.dynamicRef?(0,a._)(nY||(nY=Ae([", ","={}"])),l.default.dynamicAnchors):a.nil))),E.$async,function(){return Z.code(f(he,N)).code(X)})}function f(L,X){var Z="object"==bn(L)&&L[X.schemaId];return Z&&(X.code.source||X.code.process)?(0,a._)(bY||(bY=Ae(["/*# sourceURL="," */"])),Z):a.nil}function m(L){var X=L.schema,Z=L.self;if("boolean"==typeof X)return!X;for(var H in X)if(Z.RULES.all[H])return!0;return!1}function g(L){return"boolean"!=typeof L.schema}function v(L){var X,Z,H,E;(0,u.checkUnknownRules)(L),H=(X=L).errSchemaPath,E=X.self,(Z=X.schema).$ref&&X.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(Z,E.RULES)&&E.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(L,X){if(L.opts.jtd)return C(L,[],!1,X);var Z=(0,n.getSchemaTypes)(L.schema);C(L,Z,!(0,n.coerceAndCheckDataType)(L,Z),X)}function _(L){var X=L.gen,Z=L.schemaEnv,he=L.errSchemaPath,E=L.opts,N=L.schema.$comment;if(!0===E.$comment)X.code((0,a._)(xY||(xY=Ae(["",".logger.log(",")"])),l.default.self,N));else if("function"==typeof E.$comment){var F=(0,a.str)(wY||(wY=Ae(["","/$comment"])),he),Y=X.scopeValue("root",{ref:Z.root});X.code((0,a._)(CY||(CY=Ae(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,N,F,Y))}}function C(L,X,Z,H){var fe,Ne,xe,tt,he=L.gen,E=L.schema,N=L.data,F=L.allErrors,Y=L.opts,V=L.self.RULES;function oe(fe){(0,e.shouldUseGroup)(E,fe)&&(fe.type?(he.if((0,i.checkDataType)(fe.type,N,Y.strictNumbers)),S(L,fe),1===X.length&&X[0]===fe.type&&Z&&(he.else(),(0,i.reportTypeError)(L)),he.endIf()):S(L,fe),F||he.if((0,a._)(MY||(MY=Ae([""," === ",""])),l.default.errors,H||0)))}!E.$ref||!Y.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(E,V)?(Y.jtd||(Ne=X,(fe=L).schemaEnv.meta||!fe.opts.strictTypes||(function(xe,tt){if(tt.length){if(!xe.dataTypes.length)return void(xe.dataTypes=tt);tt.forEach(function(ze){$(xe.dataTypes,ze)||G(xe,'type "'.concat(ze,'" not allowed by context "').concat(xe.dataTypes.join(","),'"'))}),function(ze,ot){var B,ne=[],ie=Re(ze.dataTypes);try{for(ie.s();!(B=ie.n()).done;){var Ie=B.value;$(ot,Ie)?ne.push(Ie):ot.includes("integer")&&"number"===Ie&&ne.push("integer")}}catch(Ye){ie.e(Ye)}finally{ie.f()}ze.dataTypes=ne}(xe,tt)}}(fe,Ne),fe.opts.allowUnionTypes||(xe=fe,(tt=Ne).length>1&&(2!==tt.length||!tt.includes("null"))&&G(xe,"use allowUnionTypes to allow union type keyword")),function(xe,tt){var ze=xe.self.RULES.all;for(var ot in ze){var B=ze[ot];if("object"==bn(B)&&(0,e.shouldUseRule)(xe.schema,B)){var ne=B.definition.type;ne.length&&!ne.some(function(ie){return M(tt,ie)})&&G(xe,'missing type "'.concat(ne.join(","),'" for keyword "').concat(ot,'"'))}}}(fe,fe.dataTypes))),he.block(function(){var fe,Ne=Re(V.rules);try{for(Ne.s();!(fe=Ne.n()).done;)oe(fe.value)}catch(xe){Ne.e(xe)}finally{Ne.f()}oe(V.post)})):he.block(function(){return z(L,"$ref",V.all.$ref.definition)})}function S(L,X){var Z=L.gen,H=L.schema;L.opts.useDefaults&&(0,r.assignDefaults)(L,X.type),Z.block(function(){var he,E=Re(X.rules);try{for(E.s();!(he=E.n()).done;){var N=he.value;(0,e.shouldUseRule)(H,N)&&z(L,N.keyword,N.definition,X.type)}}catch(F){E.e(F)}finally{E.f()}})}function M(L,X){return L.includes(X)||"number"===X&&L.includes("integer")}function $(L,X){return L.includes(X)||"integer"===X&&L.includes("number")}function G(L,X){X+=' at "'.concat(L.schemaEnv.baseId+L.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(L,X,L.opts.strictTypes)}ff.validateFunctionCode=function(L){var X,Z,H,he;g(L)&&(v(L),m(L))?(Z=(X=L).schema,H=X.opts,he=X.gen,h(X,function(){var E,F;H.$comment&&Z.$comment&&_(X),F=(E=X).opts,void 0!==E.schema.default&&F.useDefaults&&F.strictSchema&&(0,u.checkStrictMode)(E,"default is ignored in the schema root"),he.let(l.default.vErrors,null),he.let(l.default.errors,0),H.unevaluated&&function(E){var N=E.gen,F=E.validateName;E.evaluated=N.const("evaluated",(0,a._)(hY||(hY=Ae(["",".evaluated"])),F)),N.if((0,a._)(fY||(fY=Ae(["",".dynamicProps"])),E.evaluated),function(){return N.assign((0,a._)(pY||(pY=Ae(["",".props"])),E.evaluated),(0,a._)(mY||(mY=Ae(["undefined"]))))}),N.if((0,a._)(gY||(gY=Ae(["",".dynamicItems"])),E.evaluated),function(){return N.assign((0,a._)(vY||(vY=Ae(["",".items"])),E.evaluated),(0,a._)(yY||(yY=Ae(["undefined"]))))})}(X),y(X),function(E){var fe,Ne,xe,tt,ze,N=E.gen,Y=E.validateName,V=E.ValidationError,oe=E.opts;E.schemaEnv.$async?N.if((0,a._)(kY||(kY=Ae([""," === 0"])),l.default.errors),function(){return N.return(l.default.data)},function(){return N.throw((0,a._)(SY||(SY=Ae(["new ","(",")"])),V,l.default.vErrors))}):(N.assign((0,a._)(DY||(DY=Ae(["",".errors"])),Y),l.default.vErrors),oe.unevaluated&&(Ne=(fe=E).gen,xe=fe.evaluated,ze=fe.items,(tt=fe.props)instanceof a.Name&&Ne.assign((0,a._)(EY||(EY=Ae(["",".props"])),xe),tt),ze instanceof a.Name&&Ne.assign((0,a._)(AY||(AY=Ae(["",".items"])),xe),ze)),N.return((0,a._)(TY||(TY=Ae([""," === 0"])),l.default.errors)))}(X)})):h(L,function(){return(0,t.topBoolOrEmptySchema)(L)})};var R=function(){function L(X,Z,H){if(ke(this,L),(0,o.validateKeywordUsage)(X,Z,H),this.gen=X.gen,this.allErrors=X.allErrors,this.keyword=H,this.data=X.data,this.schema=X.schema[H],this.$data=Z.$data&&X.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(X,this.schema,H,this.$data),this.schemaType=Z.schemaType,this.parentSchema=X.schema,this.params={},this.it=X,this.def=Z,this.$data)this.schemaCode=X.gen.const("vSchema",re(this.$data,X));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,Z.schemaType,Z.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(Z.schemaType)));("code"in Z?Z.trackErrors:!1!==Z.errors)&&(this.errsCount=X.gen.const("_errs",l.default.errors))}return Se(L,[{key:"result",value:function(X,Z,H){this.failResult((0,a.not)(X),Z,H)}},{key:"failResult",value:function(X,Z,H){this.gen.if(X),H?H():this.error(),Z?(this.gen.else(),Z(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(X,Z){this.failResult((0,a.not)(X),void 0,Z)}},{key:"fail",value:function(X){if(void 0===X)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(X),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(X){if(!this.$data)return this.fail(X);var Z=this.schemaCode;this.fail((0,a._)(IY||(IY=Ae([""," !== undefined && (",")"])),Z,(0,a.or)(this.invalid$data(),X)))}},{key:"error",value:function(X,Z,H){if(Z)return this.setParams(Z),this._error(X,H),void this.setParams({});this._error(X,H)}},{key:"_error",value:function(X,Z){(X?d.reportExtraError:d.reportError)(this,this.def.error,Z)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(X){this.allErrors||this.gen.if(X)}},{key:"setParams",value:function(X,Z){Z?Object.assign(this.params,X):this.params=X}},{key:"block$data",value:function(X,Z){var H=this,he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(X,he),Z()})}},{key:"check$data",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,he=this.schemaCode,E=this.schemaType,N=this.def;H.if((0,a.or)((0,a._)(NY||(NY=Ae([""," === undefined"])),he),Z)),X!==a.nil&&H.assign(X,!0),(E.length||N.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),X!==a.nil&&H.assign(X,!1)),H.else()}}},{key:"invalid$data",value:function(){var X=this.gen,Z=this.schemaCode,H=this.schemaType,he=this.def,E=this.it;return(0,a.or)(function(){if(H.length){if(!(Z instanceof a.Name))throw new Error("ajv implementation error");var N=Array.isArray(H)?H:[H];return(0,a._)(FY||(FY=Ae(["",""])),(0,i.checkDataTypes)(N,Z,E.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(he.validateSchema){var N=X.scopeValue("validate$data",{ref:he.validateSchema});return(0,a._)(OY||(OY=Ae(["!","(",")"])),N,Z)}return a.nil}())}},{key:"subschema",value:function(X,Z){var H=(0,s.getSubschema)(this.it,X);(0,s.extendSubschemaData)(H,this.it,X),(0,s.extendSubschemaMode)(H,X);var he=Ze(Ze(Ze({},this.it),H),{},{items:void 0,props:void 0});return function p(L,X){g(L)&&(v(L),m(L))?function(Z,H){var F,Y,E=Z.gen;Z.opts.$comment&&Z.schema.$comment&&_(Z),(Y=(F=Z).schema[F.opts.schemaId])&&(F.baseId=(0,c.resolveUrl)(F.opts.uriResolver,F.baseId,Y)),function(F){if(F.schema.$async&&!F.schemaEnv.$async)throw new Error("async schema in sync schema")}(Z);var N=E.const("_errs",l.default.errors);y(Z,N),E.var(H,(0,a._)(_Y||(_Y=Ae([""," === ",""])),N,l.default.errors))}(L,X):(0,t.boolOrEmptySchema)(L,X)}(he,Z),he}},{key:"mergeEvaluated",value:function(X,Z){var H=this.it,he=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==X.props&&(H.props=u.mergeEvaluated.props(he,X.props,H.props,Z)),!0!==H.items&&void 0!==X.items&&(H.items=u.mergeEvaluated.items(he,X.items,H.items,Z)))}},{key:"mergeValidEvaluated",value:function(X,Z){var H=this,he=this.it;if(he.opts.unevaluated&&(!0!==he.props||!0!==he.items))return this.gen.if(Z,function(){return H.mergeEvaluated(X,a.Name)}),!0}}]),L}();function z(L,X,Z,H){var he=new R(L,Z,X);"code"in Z?Z.code(he,H):he.$data&&Z.validate?(0,o.funcKeywordCode)(he,Z):"macro"in Z?(0,o.macroKeywordCode)(he,Z):(Z.compile||Z.validate)&&(0,o.funcKeywordCode)(he,Z)}ff.KeywordCxt=R;var U=/^\/(?:[^~]|~0|~1)*$/,q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(L,X){var Z,H,he=X.dataLevel,E=X.dataNames,N=X.dataPathArr;if(""===L)return l.default.rootData;if("/"===L[0]){if(!U.test(L))throw new Error("Invalid JSON-pointer: ".concat(L));Z=L,H=l.default.rootData}else{var F=q.exec(L);if(!F)throw new Error("Invalid JSON-pointer: ".concat(L));var Y=+F[1];if("#"===(Z=F[2])){if(Y>=he)throw new Error(xe("property/index",Y));return N[he-Y]}if(Y>he)throw new Error(xe("data",Y));if(H=E[he-Y],!Z)return H}var V,oe=H,fe=Re(Z.split("/"));try{for(fe.s();!(V=fe.n()).done;){var Ne=V.value;Ne&&(H=(0,a._)(jY||(jY=Ae(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(Ne))),oe=(0,a._)(PY||(PY=Ae([""," && ",""])),oe,H))}}catch(tt){fe.e(tt)}finally{fe.f()}return oe;function xe(tt,ze){return"Cannot access ".concat(tt," ").concat(ze," levels up, current level is ").concat(he)}}return ff.getData=re,ff}Ga.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=z0(t[r]||n),a={"":s},l=fme(o,s,!1),c={},u=new Set;return hit(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=_.call(e,f[r])),C.call(e,f.$anchor),C.call(e,f.$dynamicAnchor),a[p]=y}function _(S){if(S=z0(y?(0,this.opts.uriResolver.resolve)(y,S):S),u.has(S))throw h(S);u.add(S);var $=this.refs[S];return"string"==typeof $&&($=this.refs[$]),"object"==bn($)?d(f,$.schema,S):S!==z0(v)&&("#"===S[0]?(d(f,c[S],S),c[S]=f):this.refs[S]=v),S}function C(S){if("string"==typeof S){if(!git.test(S))throw new Error('invalid anchor "'.concat(S,'"'));_.call(this,"#".concat(S))}}}),c;function d(f,p,m){if(void 0!==p&&!dit(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var gme,ID={};function DP(){if(gme)return ID;gme=1,Object.defineProperty(ID,"__esModule",{value:!0});var t=function(n){wt(i,lb(Error));var e=Ct(i);function i(r){var o;return ke(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Se(i)}();return ID.default=t,ID}var vme,ND={};function TP(){if(vme)return ND;vme=1,Object.defineProperty(ND,"__esModule",{value:!0});var t=Ga,n=function(e){wt(r,lb(Error));var i=Ct(r);function r(o,s,a,l){var c;return ke(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Se(r)}();return ND.default=n,ND}var Zl={};Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.resolveSchema=Zl.getCompilingSchema=Zl.resolveRef=Zl.compileSchema=Zl.SchemaEnv=void 0;var hd=xr(),vit=DP(),ng=Sp(),fd=Ga,yme=Hr,yit=MD(),FD=Se(function t(n){var e,i;ke(this,t),this.refs={},this.dynamicAnchors={},"object"==bn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,fd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function EP(t){var n=bme.call(this,t);if(n)return n;var e,i=(0,fd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new hd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:vit.default,code:(0,hd._)(LY||(LY=Ae(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:ng.default.data,parentData:ng.default.parentData,parentDataProperty:ng.default.parentDataProperty,dataNames:[ng.default.data],dataPathArr:[hd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,hd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:hd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,hd._)(RY||(RY=Ae(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,yit.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(ng.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(ng.default.self),"".concat(ng.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof hd.Name?void 0:p,items:m instanceof hd.Name?void 0:m,dynamicProps:p instanceof hd.Name,dynamicItems:m instanceof hd.Name},f.source&&(f.source.evaluated=(0,hd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function bit(t){return(0,fd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:EP.call(this,t)}function bme(t){var n,e,i,r=Re(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function _it(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||OD.call(this,t,n)}function OD(t,n){var e=this.opts.uriResolver.parse(n),i=(0,fd._getFullPath)(this.opts.uriResolver,e),r=(0,fd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return AP.call(this,e,t);var o=(0,fd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=OD.call(this,t,s);return"object"!==bn(a?.schema)?void 0:AP.call(this,e,a)}if("object"===bn(s?.schema)){if(s.validate||EP.call(this,s),o===(0,fd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,fd.resolveUrl)(this.opts.uriResolver,r,u)),new FD({schema:l,schemaId:c,root:t,baseId:r})}return AP.call(this,e,s)}}Zl.SchemaEnv=FD,Zl.compileSchema=EP,Zl.resolveRef=function(t,n,e){var i;e=(0,fd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=_it.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new FD({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=bit.call(this,o):void 0},Zl.getCompilingSchema=bme,Zl.resolveSchema=OD;var xit=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function AP(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=Re(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,yme.unescapeFragment)(c)];if(void 0===u)return;var d="object"===bn(r=u)&&r[this.opts.schemaId];!xit.has(c)&&d&&(i=(0,fd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,yme.schemaHasRulesButRef)(r,this.RULES)){var h=(0,fd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=OD.call(this,o,h)}return(a=a||new FD({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var wit={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},MP={},_me={};(function(t){function n(){for(var we=arguments.length,He=Array(we),qe=0;qe1){He[0]=He[0].slice(0,-1);for(var ut=He.length-1,Ue=1;Ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},z=Math.floor,U=String.fromCharCode;function q(we){throw new RangeError(G[we])}function L(we,He){var qe=we.split("@"),ut="";return qe.length>1&&(ut=qe[0]+"@",we=qe[1]),ut+function re(we,He){for(var qe=[],ut=we.length;ut--;)qe[ut]=He(we[ut]);return qe}((we=we.replace($,".")).split("."),He).join(".")}function X(we){for(var He=[],qe=0,ut=we.length;qe=55296&&Ue<=56319&&qe>1,we+=z(we/He);we>455;ut+=f)we=z(we/35);return z(ut+36*we/(we+38))},N=function(we){var He=[],qe=we.length,ut=0,Ue=128,Dn=72,ii=we.lastIndexOf("-");ii<0&&(ii=0);for(var hi=0;hi=128&&q("not-basic"),He.push(we.charCodeAt(hi));for(var di=ii>0?ii+1:0;di=qe&&q("invalid-input");var yr=H(we.charCodeAt(di++));(yr>=f||yr>z((h-ut)/Qr))&&q("overflow"),ut+=yr*Qr;var Ee=gi<=Dn?1:gi>=Dn+26?26:gi-Dn;if(yrz(h/St)&&q("overflow"),Qr*=St}var Ht=He.length+1;Dn=E(ut-kr,Ht,0==kr),z(ut/Ht)>h-Ue&&q("overflow"),Ue+=z(ut/Ht),ut%=Ht,He.splice(ut++,0,Ue)}return String.fromCodePoint.apply(String,He)},F=function(we){var He=[],qe=(we=X(we)).length,ut=128,Ue=0,Dn=72,ii=!0,hi=!1,di=void 0;try{for(var kr,Qr=we[Symbol.iterator]();!(ii=(kr=Qr.next()).done);ii=!0){var gi=kr.value;gi<128&&He.push(U(gi))}}catch(vd){hi=!0,di=vd}finally{try{!ii&&Qr.return&&Qr.return()}finally{if(hi)throw di}}var yr=He.length,Ee=yr;for(yr&&He.push("-");Ee=ut&&Bnz((h-Ue)/ei)&&q("overflow"),Ue+=(St-ut)*ei,ut=St;var Yn=!0,br=!1,Ar=void 0;try{for(var Po,ca=we[Symbol.iterator]();!(Yn=(Po=ca.next()).done);Yn=!0){var md=Po.value;if(mdh&&q("overflow"),md==ut){for(var hu=Ue,ua=f;;ua+=f){var Rl=ua<=Dn?1:ua>=Dn+26?26:ua-Dn;if(hu>6|192).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase():"%"+(He>>12|224).toString(16).toUpperCase()+"%"+(He>>6&63|128).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase()}function xe(we){for(var He="",qe=0,ut=we.length;qe=194&&Ue<224){if(ut-qe>=6){var Dn=parseInt(we.substr(qe+4,2),16);He+=String.fromCharCode((31&Ue)<<6|63&Dn)}else He+=we.substr(qe,6);qe+=6}else if(Ue>=224){if(ut-qe>=9){var ii=parseInt(we.substr(qe+4,2),16),hi=parseInt(we.substr(qe+7,2),16);He+=String.fromCharCode((15&Ue)<<12|(63&ii)<<6|63&hi)}else He+=we.substr(qe,9);qe+=9}else He+=we.substr(qe,3),qe+=3}return He}function tt(we,He){function qe(ut){var Ue=xe(ut);return Ue.match(He.UNRESERVED)?Ue:ut}return we.scheme&&(we.scheme=String(we.scheme).replace(He.PCT_ENCODED,qe).toLowerCase().replace(He.NOT_SCHEME,"")),void 0!==we.userinfo&&(we.userinfo=String(we.userinfo).replace(He.PCT_ENCODED,qe).replace(He.NOT_USERINFO,Ne).replace(He.PCT_ENCODED,r)),void 0!==we.host&&(we.host=String(we.host).replace(He.PCT_ENCODED,qe).toLowerCase().replace(He.NOT_HOST,Ne).replace(He.PCT_ENCODED,r)),void 0!==we.path&&(we.path=String(we.path).replace(He.PCT_ENCODED,qe).replace(we.scheme?He.NOT_PATH:He.NOT_PATH_NOSCHEME,Ne).replace(He.PCT_ENCODED,r)),void 0!==we.query&&(we.query=String(we.query).replace(He.PCT_ENCODED,qe).replace(He.NOT_QUERY,Ne).replace(He.PCT_ENCODED,r)),void 0!==we.fragment&&(we.fragment=String(we.fragment).replace(He.PCT_ENCODED,qe).replace(He.NOT_FRAGMENT,Ne).replace(He.PCT_ENCODED,r)),we}function ze(we){return we.replace(/^0*(.*)/,"$1")||"0"}function ot(we,He){var qe=we.match(He.IPV4ADDRESS)||[],ut=u(qe,2)[1];return ut?ut.split(".").map(ze).join("."):we}function B(we,He){var qe=we.match(He.IPV6ADDRESS)||[],ut=u(qe,3),Ue=ut[1],Dn=ut[2];if(Ue){for(var ii=Ue.toLowerCase().split("::").reverse(),hi=u(ii,2),di=hi[0],kr=hi[1],Qr=kr?kr.split(":").map(ze):[],gi=di.split(":").map(ze),yr=He.IPV4ADDRESS.test(gi[gi.length-1]),Ee=yr?7:8,St=gi.length-Ee,Ht=Array(Ee),sn=0;sn1){var Oi=Ht.slice(0,hn.index),Bn=Ht.slice(hn.index+hn.length);ri=Oi.join(":")+"::"+Bn.join(":")}else ri=Ht.join(":");return Dn&&(ri+="%"+Dn),ri}return we}var ne=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ie=void 0==="".match(/(){0}/)[1];function Ie(we){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qe={},ut=!1!==He.iri?c:l;"suffix"===He.reference&&(we=(He.scheme?He.scheme+":":"")+"//"+we);var Ue=we.match(ne);if(Ue){ie?(qe.scheme=Ue[1],qe.userinfo=Ue[3],qe.host=Ue[4],qe.port=parseInt(Ue[5],10),qe.path=Ue[6]||"",qe.query=Ue[7],qe.fragment=Ue[8],isNaN(qe.port)&&(qe.port=Ue[5])):(qe.scheme=Ue[1]||void 0,qe.userinfo=-1!==we.indexOf("@")?Ue[3]:void 0,qe.host=-1!==we.indexOf("//")?Ue[4]:void 0,qe.port=parseInt(Ue[5],10),qe.path=Ue[6]||"",qe.query=-1!==we.indexOf("?")?Ue[7]:void 0,qe.fragment=-1!==we.indexOf("#")?Ue[8]:void 0,isNaN(qe.port)&&(qe.port=we.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ue[4]:void 0)),qe.host&&(qe.host=B(ot(qe.host,ut),ut)),qe.reference=void 0!==qe.scheme||void 0!==qe.userinfo||void 0!==qe.host||void 0!==qe.port||qe.path||void 0!==qe.query?void 0===qe.scheme?"relative":void 0===qe.fragment?"absolute":"uri":"same-document",He.reference&&"suffix"!==He.reference&&He.reference!==qe.reference&&(qe.error=qe.error||"URI is not a "+He.reference+" reference.");var Dn=fe[(He.scheme||qe.scheme||"").toLowerCase()];if(He.unicodeSupport||Dn&&Dn.unicodeSupport)tt(qe,ut);else{if(qe.host&&(He.domainHost||Dn&&Dn.domainHost))try{qe.host=oe.toASCII(qe.host.replace(ut.PCT_ENCODED,xe).toLowerCase())}catch(ii){qe.error=qe.error||"Host's domain name can not be converted to ASCII via punycode: "+ii}tt(qe,l)}Dn&&Dn.parse&&Dn.parse(qe,He)}else qe.error=qe.error||"URI can not be parsed.";return qe}var Le=/^\.\.?\//,_t=/^\/\.(\/|$)/,At=/^\/\.\.(\/|$)/,_n=/^\/?(?:.|\n)*?(?=\/|$)/;function ci(we){for(var He=[];we.length;)if(we.match(Le))we=we.replace(Le,"");else if(we.match(_t))we=we.replace(_t,"/");else if(we.match(At))we=we.replace(At,"/"),He.pop();else if("."===we||".."===we)we="";else{var qe=we.match(_n);if(!qe)throw new Error("Unexpected dot segment condition");var ut=qe[0];we=we.slice(ut.length),He.push(ut)}return He.join("")}function on(we){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qe=He.iri?c:l,ut=[],Ue=fe[(He.scheme||we.scheme||"").toLowerCase()];if(Ue&&Ue.serialize&&Ue.serialize(we,He),we.host&&!qe.IPV6ADDRESS.test(we.host)&&(He.domainHost||Ue&&Ue.domainHost))try{we.host=He.iri?oe.toUnicode(we.host):oe.toASCII(we.host.replace(qe.PCT_ENCODED,xe).toLowerCase())}catch(hi){we.error=we.error||"Host's domain name can not be converted to "+(He.iri?"Unicode":"ASCII")+" via punycode: "+hi}tt(we,qe),"suffix"!==He.reference&&we.scheme&&(ut.push(we.scheme),ut.push(":"));var Dn=function Ye(we,He){var qe=!1!==He.iri?c:l,ut=[];return void 0!==we.userinfo&&(ut.push(we.userinfo),ut.push("@")),void 0!==we.host&&ut.push(B(ot(String(we.host),qe),qe).replace(qe.IPV6ADDRESS,function(Ue,Dn,ii){return"["+Dn+(ii?"%25"+ii:"")+"]"})),"number"!=typeof we.port&&"string"!=typeof we.port||(ut.push(":"),ut.push(String(we.port))),ut.length?ut.join(""):void 0}(we,He);if(void 0!==Dn&&("suffix"!==He.reference&&ut.push("//"),ut.push(Dn),we.path&&"/"!==we.path.charAt(0)&&ut.push("/")),void 0!==we.path){var ii=we.path;He.absolutePath||Ue&&Ue.absolutePath||(ii=ci(ii)),void 0===Dn&&(ii=ii.replace(/^\/\//,"/%2F")),ut.push(ii)}return void 0!==we.query&&(ut.push("?"),ut.push(we.query)),void 0!==we.fragment&&(ut.push("#"),ut.push(we.fragment)),ut.join("")}function Ni(we,He){var qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ut={};return arguments[3]||(we=Ie(on(we,qe),qe),He=Ie(on(He,qe),qe)),!(qe=qe||{}).tolerant&&He.scheme?(ut.scheme=He.scheme,ut.userinfo=He.userinfo,ut.host=He.host,ut.port=He.port,ut.path=ci(He.path||""),ut.query=He.query):(void 0!==He.userinfo||void 0!==He.host||void 0!==He.port?(ut.userinfo=He.userinfo,ut.host=He.host,ut.port=He.port,ut.path=ci(He.path||""),ut.query=He.query):(He.path?("/"===He.path.charAt(0)?ut.path=ci(He.path):(ut.path=void 0===we.userinfo&&void 0===we.host&&void 0===we.port||we.path?we.path?we.path.slice(0,we.path.lastIndexOf("/")+1)+He.path:He.path:"/"+He.path,ut.path=ci(ut.path)),ut.query=He.query):(ut.path=we.path,ut.query=void 0!==He.query?He.query:we.query),ut.userinfo=we.userinfo,ut.host=we.host,ut.port=we.port),ut.scheme=we.scheme),ut.fragment=He.fragment,ut}function Or(we,He){return we&&we.toString().replace(He&&He.iri?c.PCT_ENCODED:l.PCT_ENCODED,xe)}var Ai={scheme:"http",domainHost:!0,parse:function(we,He){return we.host||(we.error=we.error||"HTTP URIs must have a host."),we},serialize:function(we,He){var qe="https"===String(we.scheme).toLowerCase();return we.port!==(qe?443:80)&&""!==we.port||(we.port=void 0),we.path||(we.path="/"),we}},Wr={scheme:"https",domainHost:Ai.domainHost,parse:Ai.parse,serialize:Ai.serialize};function jo(we){return"boolean"==typeof we.secure?we.secure:"wss"===String(we.scheme).toLowerCase()}var Fn={scheme:"ws",domainHost:!0,parse:function(we,He){var qe=we;return qe.secure=jo(qe),qe.resourceName=(qe.path||"/")+(qe.query?"?"+qe.query:""),qe.path=void 0,qe.query=void 0,qe},serialize:function(we,He){if(we.port!==(jo(we)?443:80)&&""!==we.port||(we.port=void 0),"boolean"==typeof we.secure&&(we.scheme=we.secure?"wss":"ws",we.secure=void 0),we.resourceName){var qe=we.resourceName.split("?"),ut=u(qe,2),Ue=ut[0],Dn=ut[1];we.path=Ue&&"/"!==Ue?Ue:void 0,we.query=Dn,we.resourceName=void 0}return we.fragment=void 0,we}},xt={scheme:"wss",domainHost:Fn.domainHost,parse:Fn.parse,serialize:Fn.serialize},ui={},Fi="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Cr="[0-9A-Fa-f]",xo=e(e("%[EFef]"+Cr+"%"+Cr+Cr+"%"+Cr+Cr)+"|"+e("%[89A-Fa-f]"+Cr+"%"+Cr+Cr)+"|"+e("%"+Cr+Cr)),gt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ai=new RegExp(Fi,"g"),bi=new RegExp(xo,"g"),Er=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',gt),"g"),qr=new RegExp(n("[^]",Fi,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ao=qr;function Js(we){var He=xe(we);return He.match(ai)?He:we}var vr={scheme:"mailto",parse:function(we,He){var qe=we,ut=qe.to=qe.path?qe.path.split(","):[];if(qe.path=void 0,qe.query){for(var Ue=!1,Dn={},ii=qe.query.split("&"),hi=0,di=ii.length;hi string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=function(){function E(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,E),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts=Ze(Ze({},N),function y(E){var N,F,Y,V,oe,fe,Ne,xe,tt,ze,ot,B,ne,ie,Ie,Ye,Le,_t,At,_n,ci,on,Ni,pn,Fr,$r=E.strict,wr=null===(N=E.code)||void 0===N?void 0:N.optimize,Or=!0===wr||void 0===wr?1:wr||0,Ai=null!==(Y=null===(F=E.code)||void 0===F?void 0:F.regExp)&&void 0!==Y?Y:f,Wr=null!==(V=E.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(fe=null!==(oe=E.strictSchema)&&void 0!==oe?oe:$r)||void 0===fe||fe,strictNumbers:null===(xe=null!==(Ne=E.strictNumbers)&&void 0!==Ne?Ne:$r)||void 0===xe||xe,strictTypes:null!==(ze=null!==(tt=E.strictTypes)&&void 0!==tt?tt:$r)&&void 0!==ze?ze:"log",strictTuples:null!==(B=null!==(ot=E.strictTuples)&&void 0!==ot?ot:$r)&&void 0!==B?B:"log",strictRequired:null!==(ie=null!==(ne=E.strictRequired)&&void 0!==ne?ne:$r)&&void 0!==ie&&ie,code:E.code?Ze(Ze({},E.code),{},{optimize:Or,regExp:Ai}):{optimize:Or,regExp:Ai},loopRequired:null!==(Ie=E.loopRequired)&&void 0!==Ie?Ie:200,loopEnum:null!==(Ye=E.loopEnum)&&void 0!==Ye?Ye:200,meta:null===(Le=E.meta)||void 0===Le||Le,messages:null===(_t=E.messages)||void 0===_t||_t,inlineRefs:null===(At=E.inlineRefs)||void 0===At||At,schemaId:null!==(_n=E.schemaId)&&void 0!==_n?_n:"$id",addUsedSchema:null===(ci=E.addUsedSchema)||void 0===ci||ci,validateSchema:null===(on=E.validateSchema)||void 0===on||on,validateFormats:null===(Ni=E.validateFormats)||void 0===Ni||Ni,unicodeRegExp:null===(pn=E.unicodeRegExp)||void 0===pn||pn,int32range:null===(Fr=E.int32range)||void 0===Fr||Fr,uriResolver:Wr}}(N));var F=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:F.es5,lines:F.lines}),this.logger=function U(E){if(!1===E)return z;if(void 0===E)return console;if(E.log&&E.warn&&E.error)return E;throw new Error("logger must implement log, warn and error methods")}(N.logger);var oe=N.validateFormats;N.validateFormats=!1,this.RULES=(0,o.getRules)(),C.call(this,g,N,"NOT SUPPORTED"),C.call(this,v,N,"DEPRECATED","warn"),this._metaOpts=R.call(this),N.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&G.call(this,N.keywords),"object"==bn(N.meta)&&this.addMetaSchema(N.meta),M.call(this),N.validateFormats=oe}return Se(E,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var N=this.opts,F=N.$data,Y=N.meta,V=N.schemaId,oe=d;"id"===V&&((oe=Ze({},d)).id=oe.$id,delete oe.$id),Y&&F&&this.addMetaSchema(oe,oe[V],!1)}},{key:"defaultMeta",value:function(){var N=this.opts,F=N.meta,Y=N.schemaId;return this.opts.defaultMeta="object"==bn(F)?F[Y]||F:void 0}},{key:"validate",value:function(N,F){var Y;if("string"==typeof N){if(!(Y=this.getSchema(N)))throw new Error('no schema with key or ref "'.concat(N,'"'))}else Y=this.compile(N);var V=Y(F);return"$async"in Y||(this.errors=Y.errors),V}},{key:"compile",value:function(N,F){var Y=this._addSchema(N,F);return Y.validate||this._compileSchemaEnv(Y)}},{key:"compileAsync",value:function(N,F){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var Y=this.opts.loadSchema;return V.call(this,N,F);function V(Ie,Ye){return oe.apply(this,arguments)}function oe(){return(oe=Zi(vn().mark(function Ie(Ye,Le){var _t;return vn().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,fe.call(this,Ye.$schema);case 2:return _t=this._addSchema(Ye,Le),At.abrupt("return",_t.validate||xe.call(this,_t));case 4:case"end":return At.stop()}},Ie,this)}))).apply(this,arguments)}function fe(Ie){return Ne.apply(this,arguments)}function Ne(){return(Ne=Zi(vn().mark(function Ie(Ye){return vn().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!Ye||this.getSchema(Ye)){Le.next=3;break}return Le.next=3,V.call(this,{$ref:Ye},!0);case 3:case"end":return Le.stop()}},Ie,this)}))).apply(this,arguments)}function xe(Ie){return tt.apply(this,arguments)}function tt(){return(tt=Zi(vn().mark(function Ie(Ye){return vn().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.prev=0,Le.abrupt("return",this._compileSchemaEnv(Ye));case 4:if(Le.prev=4,Le.t0=Le.catch(0),Le.t0 instanceof r.default){Le.next=8;break}throw Le.t0;case 8:return ze.call(this,Le.t0),Le.next=11,ot.call(this,Le.t0.missingSchema);case 11:return Le.abrupt("return",xe.call(this,Ye));case 12:case"end":return Le.stop()}},Ie,this,[[0,4]])}))).apply(this,arguments)}function ze(Ie){var Ye=Ie.missingSchema,Le=Ie.missingRef;if(this.refs[Ye])throw new Error("AnySchema ".concat(Ye," is loaded but ").concat(Le," cannot be resolved"))}function ot(Ie){return B.apply(this,arguments)}function B(){return(B=Zi(vn().mark(function Ie(Ye){var Le;return vn().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,ne.call(this,Ye);case 2:if(Le=_t.sent,this.refs[Ye]){_t.next=6;break}return _t.next=6,fe.call(this,Le.$schema);case 6:this.refs[Ye]||this.addSchema(Le,Ye,F);case 7:case"end":return _t.stop()}},Ie,this)}))).apply(this,arguments)}function ne(Ie){return ie.apply(this,arguments)}function ie(){return(ie=Zi(vn().mark(function Ie(Ye){var Le;return vn().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(!(Le=this._loading[Ye])){_t.next=3;break}return _t.abrupt("return",Le);case 3:return _t.prev=3,_t.next=6,this._loading[Ye]=Y(Ye);case 6:return _t.abrupt("return",_t.sent);case 7:return _t.prev=7,delete this._loading[Ye],_t.finish(7);case 10:case"end":return _t.stop()}},Ie,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(N,F,Y){var V,oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(N)){var fe,Ne=Re(N);try{for(Ne.s();!(fe=Ne.n()).done;)this.addSchema(fe.value,void 0,Y,oe)}catch(ze){Ne.e(ze)}finally{Ne.f()}return this}if("object"===bn(N)){var tt=this.opts.schemaId;if(void 0!==(V=N[tt])&&"string"!=typeof V)throw new Error("schema ".concat(tt," must be string"))}return F=(0,l.normalizeId)(F||V),this._checkUnique(F),this.schemas[F]=this._addSchema(N,Y,F,oe,!0),this}},{key:"addMetaSchema",value:function(N,F){return this.addSchema(N,F,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(N,F){if("boolean"==typeof N)return!0;var Y;if(void 0!==(Y=N.$schema)&&"string"!=typeof Y)throw new Error("$schema must be a string");if(!(Y=Y||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(Y,N);if(!V&&F){var oe="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(oe);this.logger.error(oe)}return V}},{key:"getSchema",value:function(N){for(var F;"string"==typeof(F=S.call(this,N));)N=F;if(void 0===F){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(F=s.resolveSchema.call(this,V,N)))return;this.refs[N]=F}return F.validate||this._compileSchemaEnv(F)}},{key:"removeSchema",value:function(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(bn(N)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var F=S.call(this,N);return"object"==bn(F)&&this._cache.delete(F.schema),delete this.schemas[N],delete this.refs[N],this;case"object":this._cache.delete(N);var V=N[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(N){var F,Y=Re(N);try{for(Y.s();!(F=Y.n()).done;)this.addKeyword(F.value)}catch(oe){Y.e(oe)}finally{Y.f()}return this}},{key:"addKeyword",value:function(N,F){var Y,V=this;if("string"==typeof N)Y=N,"object"==bn(F)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=Y);else{if("object"!=bn(N)||void 0!==F)throw new Error("invalid addKeywords parameters");if(Y=(F=N).keyword,Array.isArray(Y)&&!Y.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(re.call(this,Y,F),!F)return(0,u.eachItem)(Y,function(fe){return L.call(V,fe)}),this;Z.call(this,F);var oe=Ze(Ze({},F),{},{type:(0,c.getJSONTypes)(F.type),schemaType:(0,c.getJSONTypes)(F.schemaType)});return(0,u.eachItem)(Y,0===oe.type.length?function(fe){return L.call(V,fe,oe)}:function(fe){return oe.type.forEach(function(Ne){return L.call(V,fe,oe,Ne)})}),this}},{key:"getKeyword",value:function(N){var F=this.RULES.all[N];return"object"==bn(F)?F.definition:!!F}},{key:"removeKeyword",value:function(N){var F=this.RULES;delete F.keywords[N],delete F.all[N];var Y,V=Re(F.rules);try{for(V.s();!(Y=V.n()).done;){var oe=Y.value,fe=oe.rules.findIndex(function(Ne){return Ne.keyword===N});fe>=0&&oe.rules.splice(fe,1)}}catch(Ne){V.e(Ne)}finally{V.f()}return this}},{key:"addFormat",value:function(N,F){return"string"==typeof F&&(F=new RegExp(F)),this.formats[N]=F,this}},{key:"errorsText",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Y=F.separator,V=void 0===Y?", ":Y,oe=F.dataVar,fe=void 0===oe?"data":oe;return N&&0!==N.length?N.map(function(Ne){return"".concat(fe).concat(Ne.instancePath," ").concat(Ne.message)}).reduce(function(Ne,xe){return Ne+V+xe}):"No errors"}},{key:"$dataMetaSchema",value:function(N,F){var Y=this.RULES.all;N=JSON.parse(JSON.stringify(N));var V,oe=Re(F);try{for(oe.s();!(V=oe.n()).done;){var fe,Ne=V.value.split("/").slice(1),xe=N,tt=Re(Ne);try{for(tt.s();!(fe=tt.n()).done;)xe=xe[fe.value]}catch(ie){tt.e(ie)}finally{tt.f()}for(var ze in Y){var ot=Y[ze];if("object"==bn(ot)){var ne=xe[ze];ot.definition.$data&&ne&&(xe[ze]=he(ne))}}}}catch(ie){oe.e(ie)}finally{oe.f()}return N}},{key:"_removeAllSchemas",value:function(N,F){for(var Y in N){var V=N[Y];F&&!F.test(Y)||("string"==typeof V?delete N[Y]:V&&!V.meta&&(this._cache.delete(V.schema),delete N[Y]))}}},{key:"_addSchema",value:function(N,F,Y){var V,oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,fe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,Ne=this.opts.schemaId;if("object"==bn(N))V=N[Ne];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof N)throw new Error("schema must be object or boolean")}var xe=this._cache.get(N);if(void 0!==xe)return xe;Y=(0,l.normalizeId)(V||Y);var tt=l.getSchemaRefs.call(this,N,Y);return xe=new s.SchemaEnv({schema:N,schemaId:Ne,meta:F,baseId:Y,localRefs:tt}),this._cache.set(xe.schema,xe),fe&&!Y.startsWith("#")&&(Y&&this._checkUnique(Y),this.refs[Y]=xe),oe&&this.validateSchema(N,!0),xe}},{key:"_checkUnique",value:function(N){if(this.schemas[N]||this.refs[N])throw new Error('schema with key or id "'.concat(N,'" already exists'))}},{key:"_compileSchemaEnv",value:function(N){if(N.meta?this._compileMetaSchema(N):s.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}},{key:"_compileMetaSchema",value:function(N){var F=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,N)}finally{this.opts=F}}}]),E}();function C(E,N,F){var Y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in E){var oe=V;oe in N&&this.logger[Y]("".concat(F,": option ").concat(V,". ").concat(E[oe]))}}function S(E){return E=(0,l.normalizeId)(E),this.schemas[E]||this.refs[E]}function M(){var E=this.opts.schemas;if(E)if(Array.isArray(E))this.addSchema(E);else for(var N in E)this.addSchema(E[N],N)}function $(){for(var E in this.opts.formats){var N=this.opts.formats[E];N&&this.addFormat(E,N)}}function G(E){if(Array.isArray(E))this.addVocabulary(E);else for(var N in this.logger.warn("keywords option as map is deprecated, pass array"),E){var F=E[N];F.keyword||(F.keyword=N),this.addKeyword(F)}}function R(){var E,N=Ze({},this.opts),F=Re(p);try{for(F.s();!(E=F.n()).done;)delete N[E.value]}catch(Y){F.e(Y)}finally{F.f()}return N}t.default=_,_.ValidationError=i.default,_.MissingRefError=r.default;var z={log:function(){},warn:function(){},error:function(){}},q=/^[a-z_$][a-z0-9_$:-]*$/i;function re(E,N){var F=this.RULES;if((0,u.eachItem)(E,function(Y){if(F.keywords[Y])throw new Error("Keyword ".concat(Y," is already defined"));if(!q.test(Y))throw new Error("Keyword ".concat(Y," has invalid name"))}),N&&N.$data&&!("code"in N)&&!("validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function L(E,N,F){var Y,V=this,oe=N?.post;if(F&&oe)throw new Error('keyword with "post" flag cannot have "type"');var fe=this.RULES,Ne=oe?fe.post:fe.rules.find(function(tt){return tt.type===F});if(Ne||fe.rules.push(Ne={type:F,rules:[]}),fe.keywords[E]=!0,N){var xe={keyword:E,definition:Ze(Ze({},N),{},{type:(0,c.getJSONTypes)(N.type),schemaType:(0,c.getJSONTypes)(N.schemaType)})};N.before?X.call(this,Ne,xe,N.before):Ne.rules.push(xe),fe.all[E]=xe,null===(Y=N.implements)||void 0===Y||Y.forEach(function(tt){return V.addKeyword(tt)})}}function X(E,N,F){var Y=E.rules.findIndex(function(V){return V.keyword===F});Y>=0?E.rules.splice(Y,0,N):(E.rules.push(N),this.logger.warn("rule ".concat(F," is not defined")))}function Z(E){var N=E.metaSchema;void 0!==N&&(E.$data&&this.opts.$data&&(N=he(N)),E.validateSchema=this.compile(N,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function he(E){return{anyOf:[E,H]}}}(Xpe);var IP={},NP={},FP={};Object.defineProperty(FP,"__esModule",{value:!0}),FP.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.callRef=ig.getValidate=void 0;var kit=TP(),wme=dd(),ec=xr(),U0=Sp(),Cme=Zl,jD=Hr,Sit={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return PD(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return PD(t,(0,ec._)($Y||($Y=Ae(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=Cme.resolveRef.call(l,c,r,e);if(void 0===p)throw new kit.default(i.opts.uriResolver,r,e);return p instanceof Cme.SchemaEnv?(g=kme(t,m=p),void PD(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,ec.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:ec.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function kme(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,ec._)(BY||(BY=Ae(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function PD(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?U0.default.this:ec.nil;function c(d){var h=(0,ec._)(zY||(zY=Ae(["",".errors"])),d);r.assign(U0.default.vErrors,(0,ec._)(UY||(UY=Ae([""," === null ? "," : ",".concat(",")"])),U0.default.vErrors,h,U0.default.vErrors,h)),r.assign(U0.default.errors,(0,ec._)(GY||(GY=Ae(["",".length"])),U0.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=jD.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,ec._)(WY||(WY=Ae(["",".evaluated.props"])),d));o.props=jD.mergeEvaluated.props(r,p,o.props,ec.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=jD.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,ec._)(qY||(qY=Ae(["",".evaluated.items"])),d));o.items=jD.mergeEvaluated.items(r,m,o.items,ec.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,ec._)(VY||(VY=Ae(["await ",""])),(0,wme.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,ec._)(HY||(HY=Ae(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,wme.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}ig.getValidate=kme,ig.callRef=PD,ig.default=Sit,Object.defineProperty(NP,"__esModule",{value:!0}),NP.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",FP.default,ig.default];var OP={},jP={};Object.defineProperty(jP,"__esModule",{value:!0});var LD=xr(),Tp=LD.operators,RD={maximum:{okStr:"<=",ok:Tp.LTE,fail:Tp.GT},minimum:{okStr:">=",ok:Tp.GTE,fail:Tp.LT},exclusiveMaximum:{okStr:"<",ok:Tp.LT,fail:Tp.GTE},exclusiveMinimum:{okStr:">",ok:Tp.GT,fail:Tp.LTE}},Eit={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,LD.str)(XY||(XY=Ae(["must be "," ",""])),RD[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,LD._)(YY||(YY=Ae(["{comparison: ",", limit: ","}"])),RD[n].okStr,e)}},Ait={keyword:Object.keys(RD),type:"number",schemaType:"number",$data:!0,error:Eit,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,LD._)(JY||(JY=Ae([""," "," "," || isNaN(",")"])),e,RD[n].fail,i,e))}};jP.default=Ait;var PP={};Object.defineProperty(PP,"__esModule",{value:!0});var F_=xr(),Mit={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,F_.str)(KY||(KY=Ae(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,F_._)(QY||(QY=Ae(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,F_._)(ZY||(ZY=Ae(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,F_._)(eJ||(eJ=Ae([""," !== parseInt(",")"])),o,o);t.fail$data((0,F_._)(tJ||(tJ=Ae(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};PP.default=Mit;var LP={},RP={};function Sme(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(P_.nil,g);else{var v,y=Re(e);try{for(y.s();!(v=y.n()).done;)(0,j_.checkReportMissingProp)(t,v.value)}catch(C){y.e(C)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return C=y,t.setParams({missingProperty:_=v}),void n.forOf(_,i,function(){n.assign(C,(0,j_.propertyInData)(n,r,_,a.ownProperties)),n.if((0,P_.not)(C),function(){t.error(),n.break()})},P_.nil);var _,C}),t.ok(y)}else n.if((0,j_.checkMissingProp)(t,e,v)),(0,j_.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=Re(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,$it.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,j_.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};VP.default=Bit;var HP={};Object.defineProperty(HP,"__esModule",{value:!0});var L_=xr(),Vit={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,L_.str)(gJ||(gJ=Ae(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,L_._)(vJ||(vJ=Ae(["{limit: ","}"])),n)}},Hit={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Vit,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?L_.operators.GT:L_.operators.LT;t.fail$data((0,L_._)(yJ||(yJ=Ae(["",".length "," ",""])),e,r,i))}};HP.default=Hit;var zP={},R_={};Object.defineProperty(R_,"__esModule",{value:!0});var Dme=dme;Dme.code='require("ajv/dist/runtime/equal").default',R_.default=Dme,Object.defineProperty(zP,"__esModule",{value:!0});var UP=I_,Wa=xr(),zit=Hr,Uit=R_,Git={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Wa.str)(bJ||(bJ=Ae(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Wa._)(_J||(_J=Ae(["{i: ",", j: ","}"])),e,i)}},Wit={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Git,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,UP.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Wa._)(wJ||(wJ=Ae(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Wa._)(CJ||(CJ=Ae([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Wa._)(xJ||(xJ=Ae([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,UP.checkDataTypes)(c,p,a.opts.strictNumbers,UP.DataType.Wrong),g=n.const("indices",(0,Wa._)(kJ||(kJ=Ae(["{}"]))));n.for((0,Wa._)(SJ||(SJ=Ae([";","--;"])),h),function(){n.let(p,(0,Wa._)(DJ||(DJ=Ae(["","[","]"])),e,h)),n.if(m,(0,Wa._)(TJ||(TJ=Ae(["continue"])))),c.length>1&&n.if((0,Wa._)(EJ||(EJ=Ae(["typeof ",' == "string"'])),p),(0,Wa._)(AJ||(AJ=Ae(["",' += "_"'])),p)),n.if((0,Wa._)(MJ||(MJ=Ae(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Wa._)(IJ||(IJ=Ae(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Wa._)(NJ||(NJ=Ae(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,zit.useFunc)(n,Uit.default),m=n.name("outer");n.label(m).for((0,Wa._)(FJ||(FJ=Ae([";","--;"])),h),function(){return n.for((0,Wa._)(OJ||(OJ=Ae([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Wa._)(jJ||(jJ=Ae(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};zP.default=Wit;var GP={};Object.defineProperty(GP,"__esModule",{value:!0});var WP=xr(),qit=Hr,Xit=R_,Yit={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,WP._)(PJ||(PJ=Ae(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==bn(o)?t.fail$data((0,WP._)(LJ||(LJ=Ae(["!","(",", ",")"])),(0,qit.useFunc)(n,Xit.default),e,r)):t.fail((0,WP._)(RJ||(RJ=Ae([""," !== ",""])),o,e))}};GP.default=Yit;var qP={};Object.defineProperty(qP,"__esModule",{value:!0});var $_=xr(),Jit=Hr,Kit=R_,Qit={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,$_._)($J||($J=Ae(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,Jit.useFunc)(n,Kit.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,$_._)(BJ||(BJ=Ae(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=$_.or.apply(void 0,si(r.map(function(h,f){return p=d,"object"===bn(g=r[m=f])&&null!==g?(0,$_._)(VJ||(VJ=Ae(["","(",", ","[","])"])),u(),e,p,m):(0,$_._)(HJ||(HJ=Ae([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};qP.default=Qit,Object.defineProperty(OP,"__esModule",{value:!0}),OP.default=[jP.default,PP.default,LP.default,$P.default,BP.default,VP.default,HP.default,zP.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},GP.default,qP.default];var XP={},G0={};Object.defineProperty(G0,"__esModule",{value:!0}),G0.validateAdditionalItems=void 0;var og=xr(),YP=Hr,crt={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,og.str)(zJ||(zJ=Ae(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,og._)(UJ||(UJ=Ae(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Tme(t,i):(0,YP.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Tme(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,og._)(GJ||(GJ=Ae(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,og._)(WJ||(WJ=Ae([""," <= ",""])),a,n.length));else if("object"==bn(i)&&!(0,YP.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,og._)(qJ||(qJ=Ae([""," <= ",""])),a,n.length));e.if((0,og.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:YP.Type.Num},c),s.allErrors||e.if((0,og.not)(c),function(){return e.break()})});var c}),t.ok(l)}}G0.validateAdditionalItems=Tme,G0.default=crt;var JP={},W0={};Object.defineProperty(W0,"__esModule",{value:!0}),W0.validateTuple=void 0;var Eme=xr(),BD=Hr,urt=dd(),drt={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Ame(t,"additionalItems",n);e.items=!0,(0,BD.alwaysValidSchema)(e,n)||t.ok((0,urt.validateArray)(t))}};function Ame(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,BD.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=BD.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Eme._)(XJ||(XJ=Ae(["",".length"])),o));e.forEach(function(d,h){(0,BD.alwaysValidSchema)(a,d)||(i.if((0,Eme._)(YJ||(YJ=Ae([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}W0.validateTuple=Ame,W0.default=drt,Object.defineProperty(JP,"__esModule",{value:!0});var hrt=W0,frt={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,hrt.validateTuple)(t,"items")}};JP.default=frt;var KP={};Object.defineProperty(KP,"__esModule",{value:!0});var Mme=xr(),prt=Hr,mrt=dd(),grt=G0,vrt={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Mme.str)(JJ||(JJ=Ae(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Mme._)(KJ||(KJ=Ae(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,prt.alwaysValidSchema)(i,n)||(r?(0,grt.validateAdditionalItems)(t,r):t.ok((0,mrt.validateArray)(t)))}};KP.default=vrt;var QP={};Object.defineProperty(QP,"__esModule",{value:!0});var du=xr(),VD=Hr,yrt={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,du.str)(QJ||(QJ=Ae(["must contain at least "," valid item(s)"])),e):(0,du.str)(ZJ||(ZJ=Ae(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,du._)(eK||(eK=Ae(["{minContains: ","}"])),e):(0,du._)(tK||(tK=Ae(["{minContains: ",", maxContains: ","}"])),e,i)}},brt={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:yrt,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,du._)(nK||(nK=Ae(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,VD.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,VD.alwaysValidSchema)(a,r)){var d=(0,du._)(iK||(iK=Ae([""," >= ",""])),u,n);return void 0!==e&&(d=(0,du._)(rK||(rK=Ae([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,du._)(oK||(oK=Ae(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,VD.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,du._)(sK||(sK=Ae(["","++"])),v)),void(void 0===e?i.if((0,du._)(aK||(aK=Ae([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,du._)(lK||(lK=Ae([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,du._)(cK||(cK=Ae([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:VD.Type.Num,compositeRule:!0},m),g()})}}};QP.default=brt;var Ime={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=xr(),e=Hr,i=dd();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(uK||(uK=Ae(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(dK||(dK=Ae(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Un(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,_=Re(g);try{for(_.s();!(y=_.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(S){_.e(S)}finally{_.f()}}):(c.if((0,n._)(hK||(hK=Ae([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Ime);var ZP={};Object.defineProperty(ZP,"__esModule",{value:!0});var Nme=xr(),_rt=Hr,xrt={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Nme._)(fK||(fK=Ae(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,_rt.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Nme.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};ZP.default=xrt;var HD={};Object.defineProperty(HD,"__esModule",{value:!0});var zD=dd(),pd=xr(),wrt=Sp(),UD=Hr,Crt={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,pd._)(pK||(pK=Ae(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,UD.alwaysValidSchema)(s,e)){var c=(0,zD.allSchemaProperties)(i.properties),u=(0,zD.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,UD.schemaRefOrVal)(s,i.properties,"properties");g=(0,zD.isOwnProperty)(n,v,m)}else g=c.length?pd.or.apply(void 0,si(c.map(function(y){return(0,pd._)(gK||(gK=Ae([""," === ",""])),m,y)}))):pd.nil;return u.length&&(g=pd.or.apply(void 0,[g].concat(si(u.map(function(y){return(0,pd._)(vK||(vK=Ae(["",".test(",")"])),(0,zD.usePattern)(t,y),m)}))))),(0,pd.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,pd._)(mK||(mK=Ae([""," === ",""])),o,wrt.default.errors))}function d(p){n.code((0,pd._)(yK||(yK=Ae(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==bn(e)&&!(0,UD.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,pd.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,pd.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:UD.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};HD.default=Crt;var eL={};Object.defineProperty(eL,"__esModule",{value:!0});var krt=MD(),Fme=dd(),tL=Hr,Ome=HD,Srt={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Ome.default.code(new krt.KeywordCxt(o,Ome.default,"additionalProperties"));var s,a=(0,Fme.allSchemaProperties)(e),l=Re(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=tL.mergeEvaluated.props(n,(0,tL.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,tL.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=Re(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,Fme.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};eL.default=Srt;var nL={};Object.defineProperty(nL,"__esModule",{value:!0});var jme=dd(),GD=xr(),Pme=Hr,Lme=Hr,Drt={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,jme.allSchemaProperties)(e),l=a.filter(function(p){return(0,Pme.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof GD.Name||(o.props=(0,Lme.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=Re(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,Pme.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,GD._)(bK||(bK=Ae(["",".test(",")"])),(0,jme.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Lme.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,GD._)(_K||(_K=Ae(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,GD.not)(u),function(){return n.break()})})})}}};nL.default=Drt;var iL={};Object.defineProperty(iL,"__esModule",{value:!0});var Trt=Hr,Ert={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,Trt.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};iL.default=Ert;var rL={};Object.defineProperty(rL,"__esModule",{value:!0});var Art={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dd().validateUnion,error:{message:"must match a schema in anyOf"}};rL.default=Art;var oL={};Object.defineProperty(oL,"__esModule",{value:!0});var WD=xr(),Mrt=Hr,Irt={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,WD._)(xK||(xK=Ae(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Mrt.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,WD._)(wK||(wK=Ae([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,WD._)(CK||(CK=Ae(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,WD.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};oL.default=Irt;var sL={};Object.defineProperty(sL,"__esModule",{value:!0});var Nrt=Hr,Frt={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Nrt.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};sL.default=Frt;var aL={};Object.defineProperty(aL,"__esModule",{value:!0});var qD=xr(),Rme=Hr,Ort={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,qD.str)(kK||(kK=Ae(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,qD._)(SK||(SK=Ae(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Rme.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=$me(i,"then"),o=$me(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,qD.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,qD._)(DK||(DK=Ae(["",""])),d)):t.setParams({ifClause:d})}}}};function $me(t,n){var e=t.schema[n];return void 0!==e&&!(0,Rme.alwaysValidSchema)(t,e)}aL.default=Ort;var lL={};Object.defineProperty(lL,"__esModule",{value:!0});var jrt=Hr,Prt={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,jrt.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};lL.default=Prt,Object.defineProperty(XP,"__esModule",{value:!0});var Lrt=G0,Rrt=JP,$rt=W0,Brt=KP,Vrt=QP,Hrt=Ime,zrt=ZP,Urt=HD,Grt=eL,Wrt=nL,qrt=iL,Xrt=rL,Yrt=oL,Jrt=sL,Krt=aL,Qrt=lL;XP.default=function(){var n=[qrt.default,Xrt.default,Yrt.default,Jrt.default,Krt.default,Qrt.default,zrt.default,Urt.default,Hrt.default,Grt.default,Wrt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Rrt.default,Brt.default):n.push(Lrt.default,$rt.default),n.push(Vrt.default),n};var cL={},uL={};Object.defineProperty(uL,"__esModule",{value:!0});var js=xr(),Zrt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,js.str)(TK||(TK=Ae(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,js._)(EK||(EK=Ae(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,js._)(AK||(AK=Ae(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,js._)(MK||(MK=Ae(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,js._)(IK||(IK=Ae(["",'.type || "string"'])),f)).assign(m,(0,js._)(NK||(NK=Ae(["",".validate"])),f))},function(){return e.assign(p,(0,js._)(FK||(FK=Ae(['"string"'])))).assign(m,f)}),t.fail$data((0,js.or)(!1===l.strictSchema?js.nil:(0,js._)(OK||(OK=Ae([""," && !",""])),s,m),(g=u.$async?(0,js._)(jK||(jK=Ae(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,js._)(PK||(PK=Ae(["","(",")"])),m,i),v=(0,js._)(LK||(LK=Ae(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,js._)(RK||(RK=Ae([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Un(function(v){var y=v instanceof RegExp?(0,js.regexpCode)(v):l.code.formats?(0,js._)($K||($K=Ae(["","",""])),l.code.formats,(0,js.getProperty)(o)):void 0,_=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=bn(v)||v instanceof RegExp?["string",v,_]:[v.type||"string",v.validate,(0,js._)(BK||(BK=Ae(["",".validate"])),_)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==bn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,js._)(VK||(VK=Ae(["await ","(",")"])),g,i)}return(0,js._)("function"==typeof m?HK||(HK=Ae(["","(",")"])):zK||(zK=Ae(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};uL.default=Zrt,Object.defineProperty(cL,"__esModule",{value:!0}),cL.default=[uL.default];var q0={};Object.defineProperty(q0,"__esModule",{value:!0}),q0.contentVocabulary=q0.metadataVocabulary=void 0,q0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],q0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(IP,"__esModule",{value:!0});var iot=cL,Bme=q0,rot=[NP.default,OP.default,(0,XP.default)(),iot.default,Bme.metadataVocabulary,Bme.contentVocabulary];IP.default=rot;var dL={},Vme={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(Vme),Object.defineProperty(dL,"__esModule",{value:!0});var X0=xr(),hL=Vme,Hme=Zl,oot=Hr,sot={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===hL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,X0._)(UK||(UK=Ae(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,X0._)(GK||(GK=Ae(["","",""])),e,(0,X0.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,X0.Name),h}n.if((0,X0._)(WK||(WK=Ae(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=C(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",_="Expref",C="Pipe",$="EQ",G="GT",R="LT",z="GTE",U="LTE",q="NE",re="Flatten",L="Star",X="Filter",Z="Dot",he="Lbrace",E="Lbracket",N="Lparen",F="Literal",Y={".":Z,"*":L,",":p,":":m,"{":he,"}":g,"]":h,"(":N,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},oe={" ":!0,"\t":!0,"\n":!0};function fe(B){return B>="0"&&B<="9"||"-"===B}function Ne(){}Ne.prototype={tokenize:function(B){var ne,ie,Ie,Ye,Le=[];for(this._current=0;this._current="a"&&Ye<="z"||Ye>="A"&&Ye<="Z"||"_"===Ye)ne=this._current,ie=this._consumeUnquotedIdentifier(B),Le.push({type:u,value:ie,start:ne});else if(void 0!==Y[B[this._current]])Le.push({type:Y[B[this._current]],value:B[this._current],start:this._current}),this._current++;else if(fe(B[this._current]))Ie=this._consumeNumber(B),Le.push(Ie);else if("["===B[this._current])Ie=this._consumeLBracket(B),Le.push(Ie);else if('"'===B[this._current])ne=this._current,ie=this._consumeQuotedIdentifier(B),Le.push({type:d,value:ie,start:ne});else if("'"===B[this._current])ne=this._current,ie=this._consumeRawStringLiteral(B),Le.push({type:F,value:ie,start:ne});else if("`"===B[this._current]){ne=this._current;var _t=this._consumeLiteral(B);Le.push({type:F,value:_t,start:ne})}else if(void 0!==V[B[this._current]])Le.push(this._consumeOperator(B));else if(void 0!==oe[B[this._current]])this._current++;else if("&"===B[this._current])ne=this._current,this._current++,"&"===B[this._current]?(this._current++,Le.push({type:"And",value:"&&",start:ne})):Le.push({type:_,value:"&",start:ne});else{if("|"!==B[this._current]){var At=new Error("Unknown character:"+B[this._current]);throw At.name="LexerError",At}ne=this._current,this._current++,"|"===B[this._current]?(this._current++,Le.push({type:"Or",value:"||",start:ne})):Le.push({type:C,value:"|",start:ne})}return Le},_consumeUnquotedIdentifier:function(B){var ne,ie=this._current;for(this._current++;this._current="a"&&ne<="z"||ne>="A"&&ne<="Z"||ne>="0"&&ne<="9"||"_"===ne);)this._current++;return B.slice(ie,this._current)},_consumeQuotedIdentifier:function(B){var ne=this._current;this._current++;for(var ie=B.length;'"'!==B[this._current]&&this._current"===ie?"="===B[this._current]?(this._current++,{type:z,value:">=",start:ne}):{type:G,value:">",start:ne}:"="===ie&&"="===B[this._current]?(this._current++,{type:$,value:"==",start:ne}):void 0},_consumeLiteral:function(B){this._current++;for(var ne,ie=this._current,Ie=B.length;"`"!==B[this._current]&&this._current=0||["true","false","null"].indexOf(B)>=0)return!0;if(!("-0123456789".indexOf(B[0])>=0))return!1;try{return JSON.parse(B),!0}catch{return!1}}};var xe={};function tt(){}function ze(B){this.runtime=B}function ot(B){this._interpreter=B,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}xe.EOF=0,xe.UnquotedIdentifier=0,xe.QuotedIdentifier=0,xe.Rbracket=0,xe.Rparen=0,xe.Comma=0,xe.Rbrace=0,xe.Number=0,xe.Current=0,xe.Expref=0,xe.Pipe=1,xe.Or=2,xe.And=3,xe.EQ=5,xe.GT=5,xe.LT=5,xe.GTE=5,xe.LTE=5,xe.NE=5,xe.Flatten=9,xe.Star=20,xe.Filter=21,xe.Dot=40,xe.Not=45,xe.Lbrace=50,xe.Lbracket=55,xe.Lparen=60,tt.prototype={parse:function(B){this._loadTokens(B),this.index=0;var ne=this.expression(0);if("EOF"!==this._lookahead(0)){var ie=this._lookaheadToken(0),Ie=new Error("Unexpected token type: "+ie.type+", value: "+ie.value);throw Ie.name="ParserError",Ie}return ne},_loadTokens:function(B){var ne=(new Ne).tokenize(B);ne.push({type:"EOF",value:"",start:B.length}),this.tokens=ne},expression:function(B){var ne=this._lookaheadToken(0);this._advance();for(var ie=this.nud(ne),Ie=this._lookahead(0);B=0?this.expression(B):ne===E?(this._match(E),this._parseMultiselectList()):ne===he?(this._match(he),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(B){var ne;if(xe[this._lookahead(0)]<10)ne={type:"Identity"};else if(this._lookahead(0)===E)ne=this.expression(B);else if(this._lookahead(0)===X)ne=this.expression(B);else{if(this._lookahead(0)!==Z){var ie=this._lookaheadToken(0),Ie=new Error("Sytanx error, unexpected token: "+ie.value+"("+ie.type+")");throw Ie.name="ParserError",Ie}this._match(Z),ne=this._parseDotRHS(B)}return ne},_parseMultiselectList:function(){for(var B=[];this._lookahead(0)!==h;){var ne=this.expression(0);if(B.push(ne),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:B}},_parseMultiselectHash:function(){for(var B,ne,ie,Ie=[],Ye=[u,d];;){if(B=this._lookaheadToken(0),Ye.indexOf(B.type)<0)throw new Error("Expecting an identifier token, got: "+B.type);if(ne=B.value,this._advance(),this._match(m),ie={type:"KeyValuePair",name:ne,value:this.expression(0)},Ie.push(ie),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Ie}}},ze.prototype={search:function(B,ne){return this.visit(B,ne)},visit:function(B,ne){var ie,Ie,Ye,Le,_t,At,_n,ci,on;switch(B.type){case"Field":return null!==ne&&e(ne)?void 0===(At=ne[B.name])?null:At:null;case"Subexpression":for(Ye=this.visit(B.children[0],ne),on=1;on0)for(on=$r;onwr;on+=Or)Ye.push(ne[on]);return Ye;case"Projection":var Ai=this.visit(B.children[0],ne);if(!n(Ai))return null;for(ci=[],on=0;on_t;break;case z:Ye=Le>=_t;break;case R:Ye=Le<_t;break;case U:Ye=Le<=_t;break;default:throw new Error("Unknown comparator: "+B.name)}return Ye;case re:var ui=this.visit(B.children[0],ne);if(!n(ui))return null;var Fi=[];for(on=0;on=B&&(ne=ie<0?B-1:B),ne}},ot.prototype={callFunction:function(B,ne){var ie=this.functionTable[B];if(void 0===ie)throw new Error("Unknown function: "+B+"()");return this._validateArgs(B,ne,ie._signature),ie._func.call(this,ne)},_validateArgs:function(B,ne,ie){var Ie,Ye,Le,_t;if(ie[ie.length-1].variadic){if(ne.length=0;Ie--)ie+=ne[Ie];return ie}var Ye=B[0].slice(0);return Ye.reverse(),Ye},_functionAbs:function(B){return Math.abs(B[0])},_functionCeil:function(B){return Math.ceil(B[0])},_functionAvg:function(B){for(var ne=0,ie=B[0],Ie=0;Ie=0},_functionFloor:function(B){return Math.floor(B[0])},_functionLength:function(B){return e(B[0])?Object.keys(B[0]).length:B[0].length},_functionMap:function(B){for(var ne=[],ie=this._interpreter,Ie=B[0],Ye=B[1],Le=0;Le0){if(this._getTypeName(B[0][0])===s)return Math.max.apply(Math,B[0]);for(var ne=B[0],ie=ne[0],Ie=1;Ie0){if(this._getTypeName(B[0][0])===s)return Math.min.apply(Math,B[0]);for(var ne=B[0],ie=ne[0],Ie=1;Iepn?1:Ni_t&&(_t=ie,ne=Ye[At]);return ne},_functionMinBy:function(B){for(var ne,ie,Ye=B[0],Le=this.createKeyFunction(B[1],[s,a]),_t=1/0,At=0;At1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var dot=function(){function t(n,e,i,r){fL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=XD(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=XD(p,4),_=m[3];void 0===_&&(_=1),o.rgba=[m[0],m[1],m[2],_]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return pL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return Gme(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return Gme(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=uot[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=XD(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),hot=function(){function t(){fL(this,t),this._events=[]}return pL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function mL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function xh(t,n){return(n||document).querySelector(t)}function Wme(t){t.preventDefault(),t.stopPropagation()}function gL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&Wme(o),i(o))})}var qme=function(){function t(n){fL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new hot,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return pL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),gL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(Wme(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new dot(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=xh(".picker_hue",o),this._domSL=xh(".picker_sl",o),this._domA=xh(".picker_alpha",o),this._domEdit=xh(".picker_editor input",o),this._domSample=xh(".picker_sample",o),this._domOkay=xh(".picker_done button",o),this._domCancel=xh(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),mL(r,this._domH,function(l,c){return e._setHSLA(l)}),mL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&mL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),gL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),gL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=xh(".picker_selector",this._domH),d=xh(".picker_selector",l),h=xh(".picker_selector",c);_(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,_(0,d,i[1]),C(0,d,1-i[2]),l.style.color=o,C(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function _(S,M,$){M.style.left=100*$+"%"}function C(S,M,$){M.style.top=100*$+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),vL=document.createElement("style");vL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(vL),qme.StyleElement=vL;var fot=Object.freeze({__proto__:null,default:qme});const pot=["editor"];function mot(t,n){if(1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",39),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while modifying storage object: ",e.error,"")}}function got(t,n){1&t&&(b(0,"ngb-alert",40),ge(1,"img",41),b(2,"h6",39),I(3,"Storage object was modified successfully."),x()()),2&t&&k("dismissible",!1)}function vot(t,n){1&t&&(b(0,"span"),I(1,"Save as a copy"),x())}function yot(t,n){1&t&&I(0,"Save")}function bot(t,n){if(1&t&&(b(0,"button",42),J(1,vot,2,0,"span",43),J(2,yot,1,0,"ng-template",null,44,Ur),x()),2&t){const e=uo(3),i=j();k("disabled",i.updating),w(1),k("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const yL=function(){return["/storage"]},_ot=function(t){return{collection:t}},xot=function(t,n){return{collection:t,key:n}},wot=function(t,n,e){return{collection:t,key:n,user_id:e}},bL=function(t){return{"is-invalid":t}};let Cot=(()=>{class t{ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",Do.required],keyname:["",Do.required],user_id:["",Do.required],permission_read:[0,Do.required],permission_write:[0,Do.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"object",void 0),K(this,"objectForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(pot,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:88,vars:50,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["ngbRadioGroup","","id","permission_read","name","permission_read","formControlName","permission_read",1,"btn-group","btn-group-toggle"],["ngbButtonLabel","",1,"btn-outline-secondary"],["ngbButton","","type","radio",3,"disabled","value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["ngbRadioGroup","","id","permission_write","name","permission_write","formControlName","permission_write",1,"btn-group","btn-group-toggle"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Storage Object"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),I(6,"Storage"),x(),b(7,"li",4)(8,"a",5),I(9),x()(),b(10,"li",4)(11,"a",5),I(12),x()(),b(13,"li",4)(14,"a",5),I(15),x()()()()(),J(16,mot,4,2,"ngb-alert",6),J(17,got,4,1,"ngb-alert",7),b(18,"form",8),ye("ngSubmit",function(){return i.updateObject()}),b(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),I(23,"Collection"),x()(),ge(24,"input",13),b(25,"div",14),I(26,"Collection is required"),x()(),b(27,"div",10)(28,"div",11)(29,"label",15),I(30,"Key"),x()(),ge(31,"input",16),b(32,"div",14),I(33,"Key is required"),x()()(),b(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),I(38,"User ID"),x()(),ge(39,"input",18),b(40,"div",14),I(41,"User ID is required"),x()(),b(42,"div",19)(43,"div",11)(44,"label",20),I(45,"Read Permission"),x()(),b(46,"div",21)(47,"label",22),ge(48,"input",23),I(49," No Read "),x(),b(50,"label",22),ge(51,"input",23),I(52," Owner Read "),x(),b(53,"label",22),ge(54,"input",23),I(55," Public Read "),x()()()(),b(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),I(60,"Version"),x()(),ge(61,"input",25),x(),b(62,"div",19)(63,"div",11)(64,"label",26),I(65,"Write Permission"),x()(),b(66,"div",27)(67,"label",22),ge(68,"input",23),I(69," No Write "),x(),b(70,"label",22),ge(71,"input",23),I(72," Owner Write "),x()()()(),b(73,"div",28)(74,"div",10)(75,"div",11)(76,"label",29),I(77,"Create Time"),x()(),ge(78,"input",30),x(),b(79,"div",10)(80,"div",11)(81,"label",31),I(82,"Update Time"),x()(),ge(83,"input",32),x()(),b(84,"div",33),ge(85,"div",34,35),x(),J(87,bot,4,3,"button",36),x()),2&e&&(w(8),k("routerLink",wl(32,yL))("queryParams",lr(33,_ot,i.object.collection)),w(1),Dt(i.object.collection),w(2),k("routerLink",wl(35,yL))("queryParams",Sr(36,xot,i.object.collection,i.object.key)),w(1),Dt(i.object.key),w(2),k("routerLink",wl(39,yL))("queryParams",Ug(40,wot,i.object.collection,i.object.key,i.object.user_id)),w(1),Dt(i.object.user_id),w(1),k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.objectForm),w(6),k("ngClass",lr(44,bL,i.f.collection.dirty&&i.f.collection.errors)),w(1),k("hidden",i.f.collection.disabled||i.f.collection.valid||i.f.collection.pristine),w(6),k("ngClass",lr(46,bL,i.f.keyname.dirty&&i.f.keyname.errors)),w(1),k("hidden",i.f.keyname.disabled||i.f.keyname.valid||i.f.keyname.pristine),w(7),k("ngClass",lr(48,bL,i.f.user_id.dirty&&i.f.user_id.errors)),w(1),k("hidden",i.f.user_id.disabled||i.f.user_id.valid||i.f.user_id.pristine),w(8),k("disabled",!i.updateAllowed())("value",0),w(3),k("disabled",!i.updateAllowed())("value",1),w(3),k("disabled",!i.updateAllowed())("value",2),w(7),k("value",i.object.version),w(7),k("disabled",!i.updateAllowed())("value",0),w(3),k("disabled",!i.updateAllowed())("value",1),w(7),k("value",i.object.create_time),w(5),k("value",i.object.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Nu,Rh,gn,To,AC,N3,IH,sl,Fa,rl,ol,Nf,fa,ja],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),kot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Sot(t,n){if(1&t&&(b(0,"ngb-alert",18),ge(1,"img",19),b(2,"h6",20),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function Dot(t,n){1&t&&(b(0,"th",21),I(1,"Remove"),x())}function Tot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"Yes"),x()}}function Eot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"No"),x()}}function Aot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"Yes"),x()}}function Mot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"No"),x()}}function Iot(t,n){if(1&t){const e=vt();b(0,"td",26)(1,"button",27),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteLeaderboard(r,s,a))}),I(2,"Delete"),x()()}}function Not(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(2),x(),b(3,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(4),x(),b(5,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(6),x(),b(7,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(8),x(),J(9,Tot,2,0,"td",23),J(10,Eot,2,0,"td",23),J(11,Aot,2,0,"td",23),J(12,Mot,2,0,"td",23),J(13,Iot,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(i.orderString[e.sort_order]),w(2),Dt(i.operatorString[e.operator]),w(2),Dt(""===e.reset_schedule?"-":e.reset_schedule),w(1),k("ngIf",e.authoritative),w(1),k("ngIf",!e.authoritative),w(1),k("ngIf",e.tournament),w(1),k("ngIf",!e.tournament),w(1),k("ngIf",i.deleteAllowed())}}function Fot(t,n){1&t&&(b(0,"tr")(1,"td",28),I(2,"No leaderboards were found."),x()())}let Oot=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"authService",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"leaderboards",[]),K(this,"nextCursor",""),K(this,"leaderboardsCount",0),K(this,"orderString",{0:"Ascending",1:"Descending"}),K(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),this.route=e,this.router=i,this.authService=r,this.consoleService=o}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(Xo),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),I(4,"Leaderboards"),x(),b(5,"h6",4),I(6),x()(),b(7,"div",5)(8,"div",6)(9,"button",7),ye("click",function(){return i.search(0)}),ge(10,"img",8),x(),b(11,"button",7),ye("click",function(){return i.search(1)}),ge(12,"img",9),x()()()()(),J(13,Sot,4,2,"ngb-alert",10),b(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),I(18,"Leaderboard ID"),x(),b(19,"th",13),I(20,"Sort Order"),x(),b(21,"th",13),I(22,"Operator"),x(),b(23,"th",13),I(24,"Reset Schedule"),x(),b(25,"th",14),I(26,"Authoritative"),x(),b(27,"th",14),I(28,"Tournament"),x(),J(29,Dot,2,0,"th",15),x()(),b(30,"tbody"),J(31,Not,14,9,"tr",16),J(32,Fot,3,0,"tr",17),x()()),2&e&&(w(6),xn("",i.leaderboardsCount," leaderboards found."),w(3),k("disabled",0===i.leaderboards.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(16),k("ngIf",i.deleteAllowed()),w(2),k("ngForOf",i.leaderboards),w(1),k("ngIf",0===i.leaderboards.length))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),jot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Pot(t,n){if(1&t&&(b(0,"ngb-alert",31),ge(1,"img",32),b(2,"h6",33),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying accounts: ",e.error,"")}}function Lot(t,n){1&t&&(b(0,"th",34),I(1,"Remove"),x())}function Rot(t,n){1&t&&(b(0,"tr")(1,"td",35),I(2,"No users found - change the filter criteria or add new user accounts."),x()())}function $ot(t,n){1&t&&ge(0,"td")}function Bot(t,n){if(1&t){const e=vt();b(0,"td",38)(1,"button",39),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteAccount(r,s,a))}),I(2,"Delete"),x()()}}function Vot(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(6),x(),b(7,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(8),x(),J(9,$ot,1,0,"td",29),J(10,Bot,3,0,"td",37),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(e.username),w(2),Dt(e.display_name),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),k("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Hot=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"accountsCount",0),K(this,"accounts",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"})},o=>{this.error=o})}deleteAccount(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:45,vars:9,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Accounts"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"span",9),ye("click",function(){return i.f.filter.setValue(i.systemUserId)}),ge(12,"img",10),x()(),b(13,"div",8)(14,"div",11)(15,"button",12),ye("click",function(){return i.f.filter_type.setValue(0),i.search(0)}),I(16,"Search"),x(),b(17,"div",13),ge(18,"button",14),b(19,"div",15)(20,"button",16),ye("click",function(){return i.f.filter_type.setValue(1),i.search(0)}),I(21,"Tombstones"),x()()()()()()()(),b(22,"div",17)(23,"div",18)(24,"button",19),ye("click",function(){return i.search(0)}),ge(25,"img",20),x(),b(26,"button",19),ye("click",function(){return i.search(1)}),ge(27,"img",21),x()()()()(),J(28,Pot,4,2,"ngb-alert",22),b(29,"div",23)(30,"table",24)(31,"thead",25)(32,"tr")(33,"th",26),I(34,"User ID"),x(),b(35,"th"),I(36,"Username"),x(),b(37,"th"),I(38,"Display Name"),x(),b(39,"th",27),I(40,"Last Update"),x(),J(41,Lot,2,0,"th",28),x()(),b(42,"tbody"),J(43,Rot,3,0,"tr",29),J(44,Vot,11,6,"tr",30),x()()()),2&e&&(w(3),xn("",i.accountsCount," accounts found."),w(4),k("formGroup",i.searchForm),w(11),k("disabled",!i.f.filter.value||""===i.f.filter.value),w(6),k("disabled",0===i.accounts.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.accounts.length),w(1),k("ngForOf",i.accounts))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Fa,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),zot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Uot(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().exportAccount(r))}),ge(1,"img",16),I(2,"Export"),x()}}function Got(t,n){1&t&&(b(0,"span"),I(1,"Unban"),x())}function Wot(t,n){1&t&&(b(0,"span"),I(1,"Ban"),x())}function qot(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().banUnbanAccount(r))}),ge(1,"img",17),J(2,Got,2,0,"span",18),J(3,Wot,2,0,"span",18),x()}if(2&t){const e=j();w(2),k("ngIf",e.account.disable_time),w(1),k("ngIf",!e.account.disable_time)}}function Xot(t,n){if(1&t){const e=vt();b(0,"button",19),ye("click",function(r){return $e(e),Be(j().deleteAccount(r,!1))}),ge(1,"img",20),I(2,"Delete"),x()}}function Yot(t,n){if(1&t){const e=vt();b(0,"button",19),ye("click",function(r){return $e(e),Be(j().deleteAccount(r,!0))}),ge(1,"img",21),I(2,"Recorded delete"),x()}}function Jot(t,n){if(1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const Kot=function(t,n){return["/accounts",t,n]};function Qot(t,n){if(1&t&&(b(0,"div"),ta(1,25),b(2,"a",26),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,Kot,i.account.user.id,e.path)),w(1),Dt(e.label)}}const Zot=function(){return["/accounts"]},est=function(){return["/storage"]},tst=function(t){return{user_id:t}};let nst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"account",void 0),K(this,"error",""),K(this,"views",[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,rN.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Account"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Account"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,Uot,3,0,"button",7),J(12,qot,4,2,"button",7),J(13,Xot,3,0,"button",8),J(14,Yot,3,0,"button",8),x()(),J(15,Jot,4,2,"ngb-alert",9),b(16,"nav",10,11),J(18,Qot,4,6,"div",12),b(19,"div"),ta(20,13),b(21,"a",14),I(22," Storage "),x(),na(),x()(),ge(23,"router-outlet")),2&e&&(w(6),k("routerLink",wl(10,Zot)),w(3),Dt(i.account.user.id),w(2),k("ngIf",i.exportAllowed()),w(1),k("ngIf",i.banAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views),w(3),k("routerLink",wl(11,est))("queryParams",lr(12,tst,i.account.user.id)))},dependencies:[Jp,Nu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),ist=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const rst=["editor"];function ost(t,n){if(1&t&&(b(0,"ngb-alert",29),ge(1,"img",30),b(2,"h6",31),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function sst(t,n){1&t&&(b(0,"ngb-alert",32),ge(1,"img",33),b(2,"h6",31),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function ast(t,n){1&t&&(b(0,"button",34),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}const lst=function(t){return{"is-invalid":t}};let cst=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"accountForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",Do.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(rst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,ost,4,2,"ngb-alert",0),J(1,sst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"User ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),I(12,"Username"),x()(),ge(13,"input",9),b(14,"div",10),I(15,"Username is required"),x()()(),b(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),I(20,"Display Name"),x()(),ge(21,"input",12),x(),b(22,"div",13)(23,"div",5)(24,"label",14),I(25,"Avatar URL"),x()(),ge(26,"input",15),x()(),b(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),I(31,"Location"),x()(),ge(32,"input",17),x(),b(33,"div",13)(34,"div",5)(35,"label",18),I(36,"Timezone"),x()(),ge(37,"input",19),x()(),b(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),I(42,"Create Time"),x()(),ge(43,"input",22),x(),b(44,"div",4)(45,"div",5)(46,"label",23),I(47,"Update Time"),x()(),ge(48,"input",24),x()(),b(49,"div",25),ge(50,"div",26,27),x(),J(52,ast,2,1,"button",28),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.accountForm),w(6),k("value",i.account.user.id),w(5),k("ngClass",lr(9,lst,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(29),k("value",i.account.user.create_time),w(5),k("value",i.account.user.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Rh,gn,To,sl,Fa,rl,ol,Nf,fa,ja]})),t})();function ust(t,n){if(1&t&&(b(0,"ngb-alert",36),ge(1,"img",37),b(2,"h6",38),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function dst(t,n){1&t&&(b(0,"ngb-alert",39),ge(1,"img",40),b(2,"h6",38),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function hst(t,n){if(1&t&&(b(0,"option",41),I(1),x()),2&t){const e=n.$implicit,i=n.index;Fh("value",i),k("selected",0===i),w(1),Dt(e.id)}}function fst(t,n){1&t&&(b(0,"button",42),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}let pst=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"accountForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,ust,4,2,"ngb-alert",0),J(1,dst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"Device IDs"),x()(),b(8,"div",7)(9,"button",8),ye("click",function(){return i.copyDeviceIdToClipboard(i.f.selected_device_id_index.value)}),ge(10,"img",9),I(11," Copy "),x(),b(12,"select",10),J(13,hst,2,3,"option",11),x(),b(14,"div",12)(15,"button",13),ye("click",function(o){return i.unlinkDeviceId(o)}),I(16,"Unlink"),x()()()(),b(17,"div",4)(18,"div",5)(19,"label",14),I(20,"Custom ID"),x()(),b(21,"div",7),ge(22,"input",15),b(23,"div",12)(24,"button",13),ye("click",function(o){return i.unlinkCustomID(o)}),I(25,"Unlink"),x()()()()(),b(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),I(30,"Facebook ID"),x()(),b(31,"div",7),ge(32,"input",17),b(33,"div",12)(34,"button",13),ye("click",function(o){return i.unlinkFacebook(o)}),I(35,"Unlink"),x()()()(),b(36,"div",18)(37,"div",5)(38,"label",19),I(39,"FB Instant Game ID"),x()(),b(40,"div",7),ge(41,"input",20),b(42,"div",12)(43,"button",13),ye("click",function(o){return i.unlinkFacebookInstantGames(o)}),I(44,"Unlink"),x()()()()(),b(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),I(49,"Apple ID"),x()(),b(50,"div",7),ge(51,"input",22),b(52,"div",12)(53,"button",13),ye("click",function(o){return i.unlinkApple(o)}),I(54,"Unlink"),x()()()(),b(55,"div",18)(56,"div",5)(57,"label",23),I(58,"GameCenter ID"),x()(),b(59,"div",7),ge(60,"input",24),b(61,"div",12)(62,"button",13),ye("click",function(o){return i.unlinkGameCenter(o)}),I(63,"Unlink"),x()()()()(),b(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),I(68,"Google ID"),x()(),b(69,"div",7),ge(70,"input",26),b(71,"div",12)(72,"button",13),ye("click",function(o){return i.unlinkGoogle(o)}),I(73,"Unlink"),x()()()(),b(74,"div",4)(75,"div",5)(76,"label",27),I(77,"Steam ID"),x()(),b(78,"div",7),ge(79,"input",28),b(80,"div",12)(81,"button",13),ye("click",function(o){return i.unlinkSteam(o)}),I(82,"Unlink"),x()()()()(),b(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),I(87,"Email"),x(),ge(88,"br"),x(),ge(89,"input",30),x(),b(90,"div",4)(91,"div",5)(92,"label",31),I(93,"Password"),x()(),ge(94,"input",32),x()(),b(95,"div",33)(96,"div",4),ge(97,"div",5),b(98,"span",34),I(99),x()(),ge(100,"div",4),x(),J(101,fst,2,1,"button",35),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.accountForm),w(11),k("ngForOf",i.account.devices),w(2),k("disabled",!i.updateAllowed()||0===i.account.devices.length),w(7),k("value",i.account.custom_id),w(2),k("disabled",!i.updateAllowed()||!i.account.custom_id||""===i.account.custom_id),w(8),k("value",i.account.user.facebook_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.facebook_id||""===i.account.user.facebook_id),w(7),k("value",i.account.user.facebook_instant_game_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.facebook_instant_game_id||""===i.account.user.facebook_instant_game_id),w(8),k("value",i.account.user.apple_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.apple_id||""===i.account.user.apple_id),w(7),k("value",i.account.user.gamecenter_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.gamecenter_id||""===i.account.user.gamecenter_id),w(8),k("value",i.account.user.google_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.google_id||""===i.account.user.google_id),w(7),k("value",i.account.user.steam_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.steam_id||""===i.account.user.steam_id),w(18),xn("Verification Status: ",null===i.account.verify_time?"Not Verified":"Verified",""),w(2),k("ngIf",i.updateAllowed()))},dependencies:[jn,gn,To,sl,xy,wy,Fa,ov,rl,ol,fa,ja],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})),t})();const mst=["editor"];function gst(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function vst(t,n){1&t&&(b(0,"ngb-alert",27),ge(1,"img",28),b(2,"h6",26),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function yst(t,n){if(1&t){const e=vt();b(0,"button",29),ye("click",function(){return $e(e),Be(j().updateWallet())}),I(1,"Save"),x()}2&t&&k("disabled",j().updating)}function bst(t,n){1&t&&(b(0,"th",30),I(1,"Remove"),x())}function _st(t,n){1&t&&(b(0,"tr")(1,"td",31),I(2,"No wallet ledger items found."),x()())}function xst(t,n){1&t&&ge(0,"div",37)}function wst(t,n){1&t&&ge(0,"div",38)}function Cst(t,n){if(1&t){const e=vt();b(0,"td")(1,"button",39),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteLedgerItem(r,s,a))}),I(2,"Delete"),x()()}}function kst(t,n){if(1&t&&(b(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),I(4),x()()()()),2&t){const e=j().$implicit;w(4),Dt(e.metadata)}}function Sst(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",32),ye("click",function(){const o=$e(e).index,s=j();return Be(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),J(3,xst,1,0,"div",33),J(4,wst,1,0,"div",34),x(),I(5),x(),b(6,"td",35)(7,"pre",36),I(8),x()(),b(9,"td"),I(10),x(),J(11,Cst,3,0,"td",22),x(),J(12,kst,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.walletLedgerMetadataOpen[e]),w(1),k("ngIf",r.walletLedgerMetadataOpen[e]),w(1),xn(" ",i.id," "),w(3),Dt(i.changeset),w(2),Dt(i.update_time),w(1),k("ngIf",r.deleteAllowed()),w(1),k("ngIf",r.walletLedgerMetadataOpen[e])}}let Dst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"walletLedger",[]),K(this,"walletLedgerMetadataOpen",[]),K(this,"updating",!1),K(this,"updated",!1),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"limit",100),K(this,"userID",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(mst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(J(0,gst,4,2,"ngb-alert",0),J(1,vst,4,1,"ngb-alert",1),b(2,"div",2),ge(3,"div",3,4),x(),J(5,yst,2,1,"button",5),ge(6,"hr",6),b(7,"div",7)(8,"div",8),ge(9,"div",9),b(10,"div",10)(11,"div",11)(12,"button",12),ye("click",function(){return i.loadData("")}),ge(13,"img",13),x(),b(14,"button",12),ye("click",function(){return i.loadData(i.prevCursor)}),ge(15,"img",14),x(),b(16,"button",12),ye("click",function(){return i.loadData(i.nextCursor)}),ge(17,"img",15),x()()()()(),b(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),I(23,"ID"),x(),b(24,"th"),I(25,"Changeset"),x(),b(26,"th",20),I(27,"Update Time"),x(),J(28,bst,2,0,"th",21),x()(),b(29,"tbody"),J(30,_st,3,0,"tr",22),J(31,Sst,13,7,"ng-template",23),x()()()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(4),k("ngIf",i.updateAllowed()),w(7),k("disabled",0===i.walletLedger.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(12),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.walletLedger.length),w(1),k("ngForOf",i.walletLedger))},dependencies:[jn,gn,To],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})),t})(),Tst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Est(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Ast(t,n){1&t&&(b(0,"th",13),I(1,"Remove"),x())}function Mst(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No friends found."),x()())}function Ist(t,n){1&t&&(b(0,"span"),I(1,"Friend (0)"),x())}function Nst(t,n){1&t&&(b(0,"span"),I(1,"Invite Sent (1)"),x())}function Fst(t,n){1&t&&(b(0,"span"),I(1,"Invite Received (2)"),x())}function Ost(t,n){1&t&&(b(0,"span"),I(1,"Blocked (3)"),x())}function jst(t,n){if(1&t){const e=vt();b(0,"td",16)(1,"button",17),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteFriend(r,s,a))}),I(2,"Delete"),x()()}}function Pst(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td"),J(6,Ist,2,0,"span",8),J(7,Nst,2,0,"span",8),J(8,Fst,2,0,"span",8),J(9,Ost,2,0,"span",8),x(),b(10,"td"),I(11),x(),J(12,jst,3,0,"td",15),x()),2&t){const e=n.$implicit,i=j();w(2),Dt(e.user.id),w(2),Dt(e.user.username),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed())}}let Lst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"friends",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,Est,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),I(6,"User ID"),x(),b(7,"th"),I(8,"Username"),x(),b(9,"th",5),I(10,"State"),x(),b(11,"th",6),I(12,"Update Time"),x(),J(13,Ast,2,0,"th",7),x()(),b(14,"tbody"),J(15,Mst,3,0,"tr",8),J(16,Pst,13,8,"tr",9),x()()()),2&e&&(k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.friends.length),w(1),k("ngForOf",i.friends))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Rst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function $st(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Bst(t,n){1&t&&(b(0,"th",13),I(1,"Remove"),x())}function Vst(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No group membership found."),x()())}function Hst(t,n){1&t&&(b(0,"span"),I(1,"Superadmin (0)"),x())}function zst(t,n){1&t&&(b(0,"span"),I(1,"Admin (1)"),x())}function Ust(t,n){1&t&&(b(0,"span"),I(1,"Member (2)"),x())}function Gst(t,n){1&t&&(b(0,"span"),I(1,"Join Request (3)"),x())}function Wst(t,n){1&t&&(b(0,"span"),I(1,"Banned (4)"),x())}function qst(t,n){if(1&t){const e=vt();b(0,"td")(1,"button",16),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroupUser(r,s,a))}),I(2,"Delete"),x()()}}function Xst(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),J(6,Hst,2,0,"span",8),J(7,zst,2,0,"span",8),J(8,Ust,2,0,"span",8),J(9,Gst,2,0,"span",8),J(10,Wst,2,0,"span",8),x(),b(11,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(12),x(),J(13,qst,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.group.id),w(2),Dt(e.group.name),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(1),k("ngIf",4===e.state),w(2),Dt(e.group.update_time),w(1),k("ngIf",i.deleteAllowed())}}let Yst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"groups",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,$st,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),I(6,"Group ID"),x(),b(7,"th"),I(8,"Name"),x(),b(9,"th",5),I(10,"State"),x(),b(11,"th",6),I(12,"Update Time"),x(),J(13,Bst,2,0,"th",7),x()(),b(14,"tbody"),J(15,Vst,3,0,"tr",8),J(16,Xst,14,9,"tr",9),x()()()),2&e&&(k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.groups.length),w(1),k("ngForOf",i.groups))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Jst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Kst=["editor"];function Qst(t,n){if(1&t&&(b(0,"ngb-alert",34),ge(1,"img",35),b(2,"h6",36),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Zst(t,n){1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",36),I(3,"Group was modified successfully."),x()()),2&t&&k("dismissible",!1)}function eat(t,n){1&t&&(b(0,"button",39),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}const tat=function(t){return["/accounts",t]},nat=function(t){return{"is-invalid":t}};let iat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"group",void 0),K(this,"groupForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",Do.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(Kst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,Qst,4,2,"ngb-alert",0),J(1,Zst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateGroup()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"Group ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),I(12,"Creator ID"),x()(),b(13,"a",9),ge(14,"input",10),x()()(),b(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),I(19,"Name"),x()(),ge(20,"input",12),b(21,"div",13),I(22,"Name is required"),x()(),b(23,"div",4)(24,"div",5)(25,"label",14),I(26,"Description"),x()(),ge(27,"input",15),x()(),b(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),I(32,"Avatar URL"),x()(),ge(33,"input",18),x(),b(34,"div",4)(35,"div",5)(36,"label",19),I(37,"Language"),x()(),ge(38,"input",20),x()(),b(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),I(43,"Members"),x()(),ge(44,"input",21),x(),b(45,"div",16)(46,"div",5)(47,"label",22),I(48,"Max Count"),x()(),ge(49,"input",23),x()(),b(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),I(54,"Open"),x()(),ge(55,"input",24),x()(),b(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),I(60,"Create Time"),x()(),ge(61,"input",27),x(),b(62,"div",4)(63,"div",5)(64,"label",28),I(65,"Update Time"),x()(),ge(66,"input",29),x()(),b(67,"div",30),ge(68,"div",31,32),x(),J(70,eat,2,1,"button",33),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.groupForm),w(6),k("value",i.group.id),w(5),k("routerLink",lr(12,tat,i.group.creator_id)),w(1),k("value",i.group.creator_id),w(6),k("ngClass",lr(14,nat,i.f.name.dirty&&i.f.name.errors)),w(1),k("hidden",i.f.name.disabled||i.f.name.valid||i.f.name.pristine),w(23),k("value",i.group.edge_count),w(17),k("value",i.group.create_time),w(5),k("value",i.group.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Nu,Rh,gn,To,sl,Fa,aC,rl,ol,Nf,fa,ja]})),t})();function rat(t,n){if(1&t&&(b(0,"ngb-alert",13),ge(1,"img",14),b(2,"h6",15),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function oat(t,n){1&t&&(b(0,"span"),I(1,"Add by membership state"),x())}function sat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j(2);w(1),Dt(e.activeState)}}function aat(t,n){if(1&t){const e=vt();b(0,"button",20),ye("click",function(){const o=$e(e).$implicit;return Be(j(2).activeState=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function lat(t,n){if(1&t&&(b(0,"div",16)(1,"button",17),J(2,oat,2,0,"span",11),J(3,sat,2,1,"span",11),x(),b(4,"div",18),J(5,aat,2,1,"button",19),x()()),2&t){const e=j();w(2),k("ngIf",!e.activeState||""===e.activeState),w(1),k("ngIf",e.activeState&&""!==e.activeState),w(2),k("ngForOf",e.states)}}function cat(t,n){if(1&t){const e=vt();b(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),ge(5,"input",26),b(6,"div",27)(7,"div",28)(8,"button",29),ye("click",function(){return $e(e),Be(j().add())}),I(9,"Add"),x()()()()()()()()}if(2&t){const e=j();w(3),k("formGroup",e.addForm)}}function uat(t,n){1&t&&(b(0,"th",30),I(1,"Demote"),x())}function dat(t,n){1&t&&(b(0,"th",30),I(1,"Promote"),x())}function hat(t,n){1&t&&(b(0,"th",31),I(1,"Remove"),x())}function fat(t,n){1&t&&(b(0,"tr")(1,"td",32),I(2,"No group membership found."),x()())}function pat(t,n){1&t&&(b(0,"span"),I(1,"Superadmin (0)"),x())}function mat(t,n){1&t&&(b(0,"span"),I(1,"Admin (1)"),x())}function gat(t,n){1&t&&(b(0,"span"),I(1,"Member (2)"),x())}function vat(t,n){1&t&&(b(0,"span"),I(1,"Join Request (3)"),x())}function yat(t,n){1&t&&(b(0,"span"),I(1,"Banned (4)"),x())}function bat(t,n){if(1&t){const e=vt();b(0,"td",36)(1,"button",37),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().demoteGroupUser(r,s,a))}),at(),b(2,"svg",38),ge(3,"path",39),x()()()}}function _at(t,n){if(1&t){const e=vt();b(0,"td",36)(1,"button",37),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().promoteGroupUser(r,s,a))}),at(),b(2,"svg",40),ge(3,"path",41),x()()()}}function xat(t,n){if(1&t){const e=vt();b(0,"td",42)(1,"button",43),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroupUser(r,s,a))}),I(2,"Delete"),x()()}}function wat(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),J(6,pat,2,0,"span",11),J(7,mat,2,0,"span",11),J(8,gat,2,0,"span",11),J(9,vat,2,0,"span",11),J(10,yat,2,0,"span",11),x(),b(11,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(12),x(),J(13,bat,4,0,"td",34),J(14,_at,4,0,"td",34),J(15,xat,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.user.id),w(2),Dt(e.user.username),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(1),k("ngIf",4===e.state),w(2),Dt(e.user.update_time),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed())}}let Cat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"group",void 0),K(this,"members",[]),K(this,"activeState","Add Member"),K(this,"states",["Add Member","Join"]),K(this,"addForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Tl),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,rat,4,2,"ngb-alert",0),J(1,lat,6,3,"div",1),J(2,cat,10,1,"div",2),b(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),I(8,"User ID"),x(),b(9,"th"),I(10,"Name"),x(),b(11,"th",7),I(12,"State"),x(),b(13,"th",8),I(14,"Update Time"),x(),J(15,uat,2,0,"th",9),J(16,dat,2,0,"th",9),J(17,hat,2,0,"th",10),x()(),b(18,"tbody"),J(19,fat,3,0,"tr",11),J(20,wat,16,11,"tr",12),x()()()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",!i.group.open&&i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(13),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(2),k("ngIf",0===i.members.length),w(1),k("ngForOf",i.members))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Fa,rl,ol,fa,ja],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),kat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Sat(t,n){if(1&t&&(b(0,"ngb-alert",28),ge(1,"img",29),b(2,"h6",30),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Dat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeType)}}function Tat(t,n){if(1&t){const e=vt();b(0,"button",31),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeType=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function Eat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeNode)}}function Aat(t,n){if(1&t){const e=vt();b(0,"button",31),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeNode=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function Mat(t,n){1&t&&(b(0,"tr")(1,"td",32),I(2,"No realtime matches were found."),x()())}function Iat(t,n){1&t&&ge(0,"div",40)}function Nat(t,n){1&t&&ge(0,"div",41)}function Fat(t,n){if(1&t){const e=vt();b(0,"div",37),ye("click",function(){$e(e);const r=j(),o=r.index,s=r.$implicit,a=j();return a.getMatchState(o,s),Be(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),J(1,Iat,1,0,"div",38),J(2,Nat,1,0,"div",39),x()}if(2&t){const e=j().index,i=j();w(1),k("ngIf",!i.matchStatesOpen[e]),w(1),k("ngIf",i.matchStatesOpen[e])}}function Oat(t,n){1&t&&ge(0,"div",42)}function jat(t,n){1&t&&(b(0,"span"),I(1,"Yes"),x())}function Pat(t,n){1&t&&(b(0,"span"),I(1,"No"),x())}function Lat(t,n){1&t&&ge(0,"img",51)}function Rat(t,n){if(1&t&&(b(0,"div")(1,"small")(2,"b"),I(3,"Current Tick"),x()(),b(4,"pre",47)(5,"small"),I(6),x()(),b(7,"small")(8,"b"),I(9,"Match State"),x()(),b(10,"pre",47)(11,"small"),I(12),x()()()),2&t){const e=j(2).index,i=j();w(6),Dt(i.matchStates[e].tick),w(6),Dt(i.matchStates[e].state)}}function $at(t,n){1&t&&ge(0,"img",51)}function Bat(t,n){if(1&t&&(b(0,"pre",47)(1,"small"),I(2),x()()),2&t){const e=j(2).index,i=j();w(2),Dt(i.getMatchPresencesString(i.matchStates[e].presences))}}function Vat(t,n){if(1&t&&(b(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),I(6,"Match Label"),x()(),b(7,"pre",47)(8,"small"),I(9),x()()(),b(10,"div",48),J(11,Lat,1,0,"img",49),J(12,Rat,13,2,"div",7),x(),b(13,"div",48)(14,"small")(15,"b"),I(16,"Match Presences"),x()(),J(17,$at,1,0,"img",49),J(18,Bat,3,1,"pre",50),x()()()()),2&t){const e=j(),i=e.$implicit,r=e.index,o=j();w(9),Dt(i.api_match.label),w(2),k("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),k("ngIf",null!==o.matchStates[r]),w(5),k("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),k("ngIf",null!==o.matchStates[r])}}function Hat(t,n){if(1&t&&(b(0,"tr")(1,"td"),J(2,Fat,3,2,"div",33),J(3,Oat,1,0,"div",34),I(4),x(),b(5,"td"),I(6),x(),b(7,"td",35),J(8,jat,2,0,"span",7),J(9,Pat,2,0,"span",7),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x(),b(14,"td"),I(15),x()(),J(16,Vat,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=j();w(2),k("ngIf",i.api_match.authoritative),w(1),k("ngIf",!i.api_match.authoritative),w(1),xn(" ",i.api_match.match_id," "),w(2),Dt(i.api_match.size),w(2),k("ngIf",i.api_match.authoritative),w(1),k("ngIf",!i.api_match.authoritative),w(2),Dt(i.node),w(2),Dt(i.api_match.handler_name),w(2),Dt(i.api_match.authoritative?i.api_match.tick_rate:"-"),w(1),k("ngIf",r.matchStatesOpen[e])}}let zat=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"formBuilder",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"matches",[]),K(this,"matchStates",[]),K(this,"matchStatesOpen",[]),K(this,"updated",!1),K(this,"searchForm1",void 0),K(this,"searchForm2",void 0),K(this,"searchForm3",void 0),K(this,"type",void 0),K(this,"activeType","All"),K(this,"types",["All","Authoritative","Relayed"]),K(this,"activeNode","All Nodes"),K(this,"nodes",["All Nodes"]),this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));let i=e.get("type");this.type=Number(i);let r=e.get("node");if(this.route.data.subscribe(o=>{console.log(o),o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1==this.type||2==this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,Xme(this.consoleService,e,0==e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(Tl),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Active Matches"),x(),b(2,"h6",1),I(3),x(),J(4,Sat,4,2,"ngb-alert",2),b(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),J(9,Dat,2,1,"span",7),x(),b(10,"div",8),J(11,Tat,2,1,"button",9),x()()(),b(12,"div",10)(13,"button",11),ye("click",function(){return i.search()}),I(14,"Search"),x()()(),b(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),ye("ngSubmit",function(){return i.search()}),b(19,"div",16),ge(20,"input",17),x()(),b(21,"form",15),ye("ngSubmit",function(){return i.search()}),b(22,"div",16),ge(23,"input",17),x()(),b(24,"form",15),ye("ngSubmit",function(){return i.search()}),b(25,"div",16),ge(26,"input",18),b(27,"div",10)(28,"div",5)(29,"button",19),J(30,Eat,2,1,"span",7),x(),b(31,"div",8),J(32,Aat,2,1,"button",9),x()()()()()()()(),b(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),I(39,"Match ID"),x()(),b(40,"th",23),I(41,"Presence Count"),x(),b(42,"th",24),I(43,"Authoritative"),x(),b(44,"th",24),I(45,"Node"),x(),b(46,"th",25),I(47,"Handler Name"),x(),b(48,"th",26),I(49,"Tick Rate"),x()()(),b(50,"tbody"),J(51,Mat,3,0,"tr",7),J(52,Hat,17,10,"ng-template",27),x()()()),2&e&&(w(3),xn("",i.matches.length," running matches found."),w(1),k("ngIf",i.error),w(5),k("ngIf",i.activeType&&""!==i.activeType),w(2),k("ngForOf",i.types),w(7),k("hidden","All"!==i.activeType)("formGroup",i.searchForm1),w(3),k("hidden","Relayed"!==i.activeType)("formGroup",i.searchForm2),w(3),k("hidden","Authoritative"!==i.activeType)("formGroup",i.searchForm3),w(6),k("ngIf",i.activeNode&&""!==i.activeNode),w(2),k("ngForOf",i.nodes),w(6),Mn("pl-3",i.matches.length>0),w(13),k("ngIf",0===i.matches.length),w(1),k("ngForOf",i.matches))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Fa,rl,ol,fa,ja],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),Uat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));return Xme(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Xme(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return $n(null)}let Gat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(nt(r=>$n(r.nodes.map(o=>o.name)))).pipe(Ul(r=>(e.data={...e.data,error:r},$n([]))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Wat(t,n){if(1&t&&(b(0,"ngb-alert",25),ge(1,"img",26),b(2,"h6",27),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying groups: ",e.error,"")}}function qat(t,n){1&t&&(b(0,"th",28),I(1,"Remove"),x())}function Xat(t,n){1&t&&(b(0,"tr")(1,"td",29),I(2,"No groups found - change the filter criteria or add new user groups."),x()())}function Yat(t,n){1&t&&ge(0,"td")}function Jat(t,n){if(1&t){const e=vt();b(0,"td",32)(1,"button",33),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroup(r,s,a))}),I(2,"Delete"),x()()}}function Kat(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(2),x(),b(3,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(4),x(),b(5,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(6),x(),J(7,Yat,1,0,"td",23),J(8,Jat,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(e.name),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),k("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Qat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"groupsCount",0),K(this,"groups",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Groups"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"div",9)(12,"button",10),ye("click",function(){return i.search(0)}),I(13,"Search"),x()()()()()(),b(14,"div",11)(15,"div",12)(16,"button",13),ye("click",function(){return i.search(0)}),ge(17,"img",14),x(),b(18,"button",13),ye("click",function(){return i.search(1)}),ge(19,"img",15),x()()()()(),J(20,Wat,4,2,"ngb-alert",16),b(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),I(26,"Group ID"),x(),b(27,"th"),I(28,"Name"),x(),b(29,"th",21),I(30,"Last Update"),x(),J(31,qat,2,0,"th",22),x()(),b(32,"tbody"),J(33,Xat,3,0,"tr",23),J(34,Kat,9,5,"tr",24),x()()()),2&e&&(w(3),xn("",i.groupsCount," groups found."),w(4),k("formGroup",i.searchForm),w(9),k("disabled",0===i.groups.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(11),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.groups.length),w(1),k("ngForOf",i.groups))},dependencies:[jn,gn,To,sl,Fa,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Zat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function elt(t,n){if(1&t){const e=vt();b(0,"button",13),ye("click",function(r){return $e(e),Be(j().exportGroup(r))}),ge(1,"img",14),I(2,"Export"),x()}}function tlt(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().deleteGroup(r,!1))}),ge(1,"img",16),I(2,"Delete"),x()}}function nlt(t,n){if(1&t&&(b(0,"ngb-alert",17),ge(1,"img",18),b(2,"h6",19),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const ilt=function(t,n){return["/groups",t,n]};function rlt(t,n){if(1&t&&(b(0,"div"),ta(1,20),b(2,"a",21),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,ilt,i.group.id,e.path)),w(1),Dt(e.label)}}const olt=function(){return["/groups"]};let slt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"group",void 0),K(this,"error",""),K(this,"views",[{label:"Details",path:"details"},{label:"Members",path:"members"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,rN.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Group"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Group"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,elt,3,0,"button",7),J(12,tlt,3,0,"button",8),x()(),J(13,nlt,4,2,"ngb-alert",9),b(14,"nav",10,11),J(16,rlt,4,6,"div",12),x(),ge(17,"router-outlet")),2&e&&(w(6),k("routerLink",wl(6,olt)),w(3),Dt(i.group.id),w(2),k("ngIf",i.exportAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views))},dependencies:[Jp,Nu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),alt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function llt(t,n){if(1&t){const e=vt();b(0,"button",12),ye("click",function(r){return $e(e),Be(j().deleteLeaderboard(r))}),ge(1,"img",13),I(2,"Delete Leaderboard"),x()}}function clt(t,n){if(1&t&&(b(0,"ngb-alert",14),ge(1,"img",15),b(2,"h6",16),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const ult=function(t,n){return["/leaderboards",t,n]};function dlt(t,n){if(1&t&&(b(0,"div"),ta(1,17),b(2,"a",18),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,ult,i.leaderboard.id,e.path)),w(1),Dt(e.label)}}const hlt=function(){return["/leaderboards"]};let flt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"leaderboard",void 0),K(this,"error",""),K(this,"views",[{label:"Details",path:"details"},{label:"Records",path:"records"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Leaderboard"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Leaderboards"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,llt,3,0,"button",7),x()(),J(12,clt,4,2,"ngb-alert",8),b(13,"nav",9,10),J(15,dlt,4,6,"div",11),x(),ge(16,"router-outlet")),2&e&&(w(6),k("routerLink",wl(5,hlt)),w(3),Dt(i.leaderboard.id),w(2),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views))},dependencies:[Jp,Nu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),plt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const mlt=["editor"];function glt(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function vlt(t,n){if(1&t&&(b(0,"div",27)(1,"h6"),I(2,"Tournament"),x(),ge(3,"hr",28),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),I(8,"Title"),x()(),ge(9,"input",30),x(),b(10,"div",3)(11,"div",4)(12,"label",31),I(13,"Description"),x()(),ge(14,"input",32),x()(),b(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),I(19,"Category"),x()(),ge(20,"input",34),x(),b(21,"div",3)(22,"div",4)(23,"label",35),I(24,"Max Num Score"),x()(),ge(25,"input",36),x()(),b(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),I(30,"Size"),x()(),ge(31,"input",38),x(),b(32,"div",3)(33,"div",4)(34,"label",39),I(35,"Max Size"),x()(),ge(36,"input",40),x()(),b(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),I(41,"Duration"),x()(),ge(42,"input",42),x(),b(43,"div",3)(44,"div",4)(45,"label",43),I(46,"Join Required"),x()(),ge(47,"input",44),x()(),b(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),I(52,"Start Time"),x()(),ge(53,"input",46),x(),b(54,"div",3)(55,"div",4)(56,"label",47),I(57,"End Time"),x()(),ge(58,"input",48),x()(),b(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),I(63,"Start Active"),x()(),ge(64,"input",50),x(),b(65,"div",3)(66,"div",4)(67,"label",51),I(68,"End Active"),x()(),ge(69,"input",52),x()()()),2&t){const e=j();w(9),k("value",e.leaderboard.title),w(5),k("value",e.leaderboard.description),w(6),k("value",e.leaderboard.category),w(5),k("value",e.leaderboard.max_num_score),w(6),k("value",e.leaderboard.size),w(5),k("value",e.leaderboard.max_size),w(6),k("value",e.leaderboard.duration),w(5),k("value",e.leaderboard.join_required),w(6),k("value",e.leaderboard.start_time),w(5),k("value",e.leaderboard.end_time),w(6),k("value",e.leaderboard.start_active),w(5),k("value",e.leaderboard.end_active)}}let ylt=(()=>{class t{constructor(e){K(this,"route",void 0),K(this,"editor",void 0),K(this,"orderString",{0:"Ascending",1:"Descending"}),K(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),K(this,"jsonEditor",void 0),K(this,"leaderboard",void 0),K(this,"error",""),this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(mlt,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(e,i){1&e&&(J(0,glt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),I(6,"ID"),x()(),ge(7,"input",6),x(),b(8,"div",3)(9,"div",4)(10,"label",7),I(11,"Authoritative"),x()(),ge(12,"input",8),x()(),b(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),I(17,"Sort Order"),x()(),ge(18,"input",10),x(),b(19,"div",3)(20,"div",4)(21,"label",11),I(22,"Operator"),x()(),ge(23,"input",12),x()(),b(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),I(28,"Reset Schedule"),x()(),ge(29,"input",14),x(),b(30,"div",3)(31,"div",4)(32,"label",15),I(33,"Create Time"),x()(),ge(34,"input",16),x()(),b(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),I(39,"Prev Reset"),x()(),ge(40,"input",18),x(),b(41,"div",3)(42,"div",4)(43,"label",15),I(44,"Next Reset"),x()(),ge(45,"input",19),x()()(),J(46,vlt,70,12,"div",20),b(47,"div",21),ge(48,"div",22,23),x()),2&e&&(k("ngIf",i.error),w(7),k("value",i.leaderboard.id),w(5),k("value",i.leaderboard.authoritative),w(6),k("value",i.orderString[i.leaderboard.sort_order]),w(5),k("value",i.operatorString[i.leaderboard.operator]),w(6),k("value",i.leaderboard.reset_schedule),w(5),k("value",i.leaderboard.create_time),w(6),k("value",i.leaderboard.prev_reset),w(5),k("value",i.leaderboard.next_reset),w(1),k("ngIf",i.leaderboard.tournament))},dependencies:[gn,To],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})();function blt(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function _lt(t,n){1&t&&(b(0,"th",22),I(1,"Remove"),x())}function xlt(t,n){1&t&&(b(0,"tr")(1,"td",23),I(2,"No records found."),x()())}function wlt(t,n){1&t&&ge(0,"div",28)}function Clt(t,n){1&t&&ge(0,"div",29)}function klt(t,n){if(1&t){const e=vt();b(0,"td",30)(1,"button",31),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteRecord(r,s,a))}),I(2,"Delete"),x()()}}function Slt(t,n){if(1&t&&(b(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),I(4),x()()()()),2&t){const e=j().$implicit;w(4),Dt(e.metadata)}}function Dlt(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",24),ye("click",function(){const o=$e(e).index,s=j();return Be(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),J(3,wlt,1,0,"div",25),J(4,Clt,1,0,"div",26),x(),I(5),x(),b(6,"td"),I(7),x(),b(8,"td"),I(9),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x(),b(14,"td"),I(15),x(),b(16,"td"),I(17),x(),J(18,klt,3,0,"td",27),x(),J(19,Slt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.recordsMetadataOpen[e]),w(1),k("ngIf",r.recordsMetadataOpen[e]),w(1),xn(" ",i.owner_id," "),w(2),Dt(i.username),w(2),Dt(i.score),w(2),Dt(i.subscore),w(2),Dt(i.rank),w(2),Dt(i.num_score),w(2),Dt(i.expiry_time?i.expiry_time:"-"),w(1),k("ngIf",r.deleteAllowed()),w(1),k("ngIf",r.recordsMetadataOpen[e])}}let Tlt=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"leaderboard",void 0),K(this,"records",[]),K(this,"recordsMetadataOpen",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),this.route=e,this.consoleService=i,this.authService=r}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(J(0,blt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadRecords(0)}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadRecords(-1)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadRecords(1)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),I(17,"Owner ID"),x(),b(18,"th"),I(19,"Username"),x(),b(20,"th",14),I(21,"Score"),x(),b(22,"th",14),I(23,"Subscore"),x(),b(24,"th",14),I(25,"Rank"),x(),b(26,"th",14),I(27,"No. of scores"),x(),b(28,"th",15),I(29,"Expiry Time"),x(),J(30,_lt,2,0,"th",16),x()(),b(31,"tbody"),J(32,xlt,3,0,"tr",17),J(33,Dlt,20,11,"ng-template",18),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.records.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(20),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.records.length),w(1),k("ngForOf",i.records))},dependencies:[jn,gn,To]})),t})(),Elt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Alt=["editor"],Mlt=["editorResponse"];function Ilt(t,n){if(1&t&&(b(0,"ngb-alert",23),ge(1,"img",24),b(2,"h6",25),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error whilst making RPC call: ",e.error,"")}}function Nlt(t,n){if(1&t&&(b(0,"option",26),I(1),x()),2&t){const e=n.$implicit;Fh("value",e.method),w(1),Dt(e.method)}}function Flt(t,n){if(1&t&&(b(0,"option",26),I(1),x()),2&t){const e=n.$implicit;Fh("value",e.method),w(1),Dt(e.method)}}let Olt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"editorResponse",void 0),K(this,"jsonEditor",void 0),K(this,"jsonEditorResponse",void 0),K(this,"error",""),K(this,"rpcEndpoints",[]),K(this,"endpoints",[]),K(this,"endpointCallForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",Do.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!0}}),this.jsonEditorResponse=new Zm({target:this.editorResponse.nativeElement,props:{mode:Jo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=Zv(this.jsonEditor.get()).text}catch(o){return void(this.error=o)}const i={user_id:this.f.user_id.value,body:e};let r=null;r=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,i):this.consoleService.callApiEndpoint("",this.f.method.value,i),r.subscribe(o=>{if(o.error_message&&""!==o.error_message)this.jsonEditorResponse.set({json:o.error_message});else{e="";try{e=JSON.stringify(JSON.parse(o.body),null,2)}catch(s){return void(this.error=s)}this.jsonEditorResponse.set({text:e})}},o=>{this.jsonEditorResponse.set({text:""}),this.error=o})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditor){if(!e||""===e)return this.jsonEditor.set({text:""}),void this.jsonEditor.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditor.set({text:i}),this.jsonEditor.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}else console.log("problem?")}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}get f(){return this.endpointCallForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&(io(Alt,5),io(Mlt,5)),2&e){let r;cn(r=un())&&(i.editor=r.first),cn(r=un())&&(i.editorResponse=r.first)}},decls:35,vars:6,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"d-flex"],[1,"w-50","py-3"],[1,"mb-4"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","500px"],["editor",""],[1,"w-50","pl-3","py-3"],["editorResponse",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"API Explorer"),x(),J(2,Ilt,4,2,"ngb-alert",1),b(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),ye("ngSubmit",function(){return i.sendRequest()}),b(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),I(11,"Select Endpoint"),x(),J(12,Nlt,2,2,"option",10),b(13,"option",11),I(14,"----"),x(),J(15,Flt,2,2,"option",10),x()(),ge(16,"input",12),b(17,"div",13)(18,"button",14),I(19,"Send Request"),x()()()()()()(),b(20,"div",15)(21,"div",16)(22,"h5"),I(23,"Request Body"),x(),ge(24,"hr",17),b(25,"div",18),ge(26,"div",19,20),x()(),b(28,"div",21)(29,"h5"),I(30,"Response"),x(),ge(31,"hr",17),b(32,"div",18),ge(33,"div",19,22),x()()()),2&e&&(w(2),k("ngIf",i.error),w(4),k("formGroup",i.endpointCallForm),w(4),k("value",""),w(2),k("ngForOf",i.rpcEndpoints),w(3),k("ngForOf",i.endpoints),w(3),k("disabled",i.f.method.invalid))},dependencies:[jn,gn,To,sl,xy,wy,Fa,ov,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})),t})(),jlt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Plt(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function Llt(t,n){1&t&&ge(0,"div",23)}function Rlt(t,n){1&t&&ge(0,"div",24)}function $lt(t,n){if(1&t&&(b(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),I(6,"Provider Response"),x()()(),b(7,"div")(8,"pre",28)(9,"small"),I(10),x()()()()()()),2&t){const e=j().$implicit;w(10),Dt(e.provider_response)}}function Blt(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",19),ye("click",function(){const o=$e(e).index,s=j();return Be(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),J(3,Llt,1,0,"div",20),J(4,Rlt,1,0,"div",21),x(),I(5),x(),b(6,"td"),I(7),x(),b(8,"td"),I(9),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x()(),J(14,$lt,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.purchasesRowsOpen[e]),w(1),k("ngIf",r.purchasesRowsOpen[e]),w(1),xn(" ",i.product_id," "),w(2),Dt(i.transaction_id),w(2),Dt(r.getStoreText(i.store)),w(2),Dt(i.purchase_time),w(2),Dt(i.create_time),w(1),k("ngIf",r.purchasesRowsOpen[e])}}function Vlt(t,n){1&t&&(b(0,"tr")(1,"td",29),I(2,"No purchases were found."),x()())}let Hlt=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"purchases",[]),K(this,"purchasesRowsOpen",[]),K(this,"error",""),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"userID",void 0),K(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.purchases=e[0].validated_purchases,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listPurchases("",this.userID,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Sy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-purchases"]],decls:29,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","5",1,"text-muted"]],template:function(e,i){1&e&&(J(0,Plt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadData(i.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadData(i.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),I(17,"Product ID"),x(),b(18,"th"),I(19,"Transaction ID"),x(),b(20,"th"),I(21,"Store"),x(),b(22,"th",13),I(23,"Purchase Time"),x(),b(24,"th",13),I(25,"Create Time"),x()()(),b(26,"tbody"),J(27,Blt,15,8,"ng-template",14),J(28,Vlt,3,0,"tr",15),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.purchases.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(17),k("ngForOf",i.purchases),w(1),k("ngIf",0===i.purchases.length))},dependencies:[jn,gn,To]})),t})(),zlt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listPurchases("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Ult(t,n){1&t&&(b(0,"span"),I(1,"Filter by type"),x())}function Glt(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeFilter)}}function Wlt(t,n){if(1&t){const e=vt();b(0,"button",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeFilter=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function qlt(t,n){if(1&t&&(b(0,"h6"),I(1),x()),2&t){const e=j();w(1),xn("Showing results for chat room label: ",e.f1.label.value,"")}}const Xlt=function(t){return["/groups",t]};function Ylt(t,n){if(1&t&&(b(0,"h6"),I(1,"Showing results for group ID: "),b(2,"a",41),I(3),x()()),2&t){const e=j();w(2),k("routerLink",lr(2,Xlt,e.route.snapshot.queryParamMap.get("group_id"))),w(1),Dt(e.f2.group_id.value)}}const Yme=function(t){return["/accounts",t]};function Jlt(t,n){if(1&t&&(b(0,"h6"),I(1,"Showing results for user IDs: "),b(2,"a",41),I(3),x(),I(4,", "),b(5,"a",41),I(6),x()()),2&t){const e=j();w(2),k("routerLink",lr(4,Yme,e.route.snapshot.queryParamMap.get("user_id_one"))),w(1),Dt(e.f3.user_id_one.value),w(2),k("routerLink",lr(6,Yme,e.route.snapshot.queryParamMap.get("user_id_two"))),w(1),Dt(e.f3.user_id_two.value)}}function Klt(t,n){if(1&t&&(b(0,"ngb-alert",42),ge(1,"img",43),b(2,"h6",44),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying messages: ",e.error,"")}}function Qlt(t,n){1&t&&(b(0,"th",45),I(1,"Remove"),x())}function Zlt(t,n){if(1&t&&(b(0,"tr")(1,"td",46),I(2,"No messages found."),x()()),2&t){const e=j();w(1),ht("colspan",e.deleteAllowed()?6:5)}}function ect(t,n){1&t&&ge(0,"div",55)}function tct(t,n){1&t&&ge(0,"div",56)}function nct(t,n){1&t&&ge(0,"td")}function ict(t,n){if(1&t){const e=vt();b(0,"td",57)(1,"button",58),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteMessage(r,s,a))}),I(2,"Delete"),x()()}}function rct(t,n){if(1&t&&(b(0,"tr",59)(1,"td"),I(2),x()()),2&t){const e=j().$implicit,i=j();w(1),ht("colspan",i.deleteAllowed()?6:5),w(1),xn(" ",e.content," ")}}function oct(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td"),I(2),x(),b(3,"td",47),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",48),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(6),x(),b(7,"td",49)(8,"div",50),ye("click",function(){const o=$e(e).index,s=j();return Be(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),J(9,ect,1,0,"div",51),J(10,tct,1,0,"div",52),x(),I(11),x(),b(12,"td"),I(13),x(),J(14,nct,1,0,"td",3),J(15,ict,3,0,"td",53),x(),J(16,rct,3,2,"tr",54)}if(2&t){const e=n.$implicit,i=n.index,r=j();w(2),Dt(e.code),w(2),Dt(e.sender_id),w(2),Dt(e.username),w(3),k("ngIf",!r.messageStatesOpen[i]),w(1),k("ngIf",r.messageStatesOpen[i]),w(1),xn(" ",e.content," "),w(2),Dt(e.create_time),w(1),k("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),w(1),k("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),w(1),k("ngIf",r.messageStatesOpen[i])}}function sct(t,n){if(1&t&&(b(0,"ngb-alert",60),ge(1,"img",43),b(2,"h6",44),I(3,"Failed to delete data."),x(),b(4,"p",61),I(5),x()()),2&t){const e=j();k("dismissible",!1),w(5),Dt(e.deleteError)}}function act(t,n){if(1&t){const e=vt();b(0,"ngb-alert",62),ye("close",function(){return $e(e),Be(j().deleteSuccess=!1)}),ge(1,"img",63),b(2,"h6",44),I(3),x()()}if(2&t){const e=j();k("dismissible",!0),w(3),Ld("",e.total_deleted," messages ",e.total_deleted>0?"successfully":""," deleted.")}}const lct=function(t){return{"is-invalid":t}};function cct(t,n){if(1&t){const e=vt();b(0,"div",64)(1,"h5",65),I(2,"Delete messages"),x(),b(3,"button",66),ye("click",function(){return Be($e(e).$implicit.dismiss())}),b(4,"span",67),I(5,"\xd7"),x()()(),b(6,"div",68)(7,"div",69)(8,"form",70)(9,"div",71)(10,"p")(11,"b"),I(12,"Choose how many days to retain: "),x(),ge(13,"input",72),x()(),ge(14,"input",73),x()()(),b(15,"div",74)(16,"button",75),ye("click",function(){return Be($e(e).$implicit.dismiss())}),I(17,"Cancel"),x(),b(18,"button",76),ye("click",function(){return Be($e(e).$implicit.close())}),I(19,"DELETE"),x()()}if(2&t){const e=j();w(8),k("formGroup",e.confirmDeleteForm),w(6),k("ngClass",lr(3,lct,e.f.delete.touched&&e.f.delete.invalid)),w(4),k("disabled",e.f.delete.invalid)}}function uct(t,n){if(1&t){const e=vt();b(0,"button",76),ye("click",function(){$e(e);const r=j(),o=uo(68);return Be(r.openDeleteDataModal(o))}),I(1,"Delete messages"),x()}2&t&&k("disabled",j().deleting)}let dct=(()=>{class t{constructor(e,i,r,o,s,a){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"modalService",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"messages",[]),K(this,"nextCursor",""),K(this,"searchForm1",void 0),K(this,"searchForm2",void 0),K(this,"searchForm3",void 0),K(this,"type",void 0),K(this,"confirmDeleteForm",void 0),K(this,"deleteError",""),K(this,"deleteSuccess",!1),K(this,"deleting",!1),K(this,"total_deleted",0),K(this,"activeFilter",""),K(this,"filters",["Chat Room","Group Chat","Direct Chat"]),K(this,"messageStatesOpen",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Do.compose([Do.required,Do.pattern("DELETE")])],days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");let i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2==this.type||3==this.type||4==this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}deleteData(){this.deleteError="",this.deleting=!0;let e=new Date;e.setDate(e.getDate()-this.f.days.value),this.consoleService.deleteChannelMessages("",e.toISOString(),null).subscribe(i=>{this.total_deleted=Number(i.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const r=this.route.snapshot.queryParamMap;let o=r.get("type"),s=r.get("label");s||(s="0");let a=r.get("group_id"),l=r.get("user_id_one"),c=r.get("user_id_two"),u=r.get("cursor");u||(u=""),o&&this.updateMessages(Number(o),s,a,l,c,u)},i=>{this.deleting=!1,this.deleteError=i})}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl),le(H3))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:70,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["confirmDelete",""],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],[1,"mt-2"],["type","number","value","30","min","0","formControlName","days",2,"width","80px"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Chat Messages"),x(),b(2,"div",1)(3,"button",2),J(4,Ult,2,0,"span",3),J(5,Glt,2,1,"span",3),x(),b(6,"div",4),J(7,Wlt,2,1,"button",5),x()(),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),ge(13,"input",11),b(14,"div",12)(15,"div",13)(16,"button",14),ye("click",function(){return i.type=2,i.search(0)}),I(17,"Search"),x()()()()(),b(18,"form",9)(19,"div",10),ge(20,"input",15),b(21,"div",12)(22,"div",13)(23,"button",14),ye("click",function(){return i.type=3,i.search(0)}),I(24,"Search "),x()()()()(),b(25,"form",9)(26,"div",10),ge(27,"input",16),b(28,"div",12)(29,"span",17),ye("click",function(){return i.f3.user_id_one.setValue(i.systemUserId)}),ge(30,"img",18),x()(),ge(31,"input",19),b(32,"div",12)(33,"div",13)(34,"button",14),ye("click",function(){return i.type=4,i.search(0)}),I(35,"Search "),x()()()()()(),b(36,"div",20)(37,"div",21)(38,"button",22),ye("click",function(){return i.search(0)}),ge(39,"img",23),x(),b(40,"button",22),ye("click",function(){return i.search(1)}),ge(41,"img",24),x()()()()(),J(42,qlt,2,1,"h6",3),J(43,Ylt,4,4,"h6",3),J(44,Jlt,7,8,"h6",3),J(45,Klt,4,2,"ngb-alert",25),b(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),I(51,"Code"),x(),b(52,"th",30),I(53,"Sender ID"),x(),b(54,"th",31),I(55,"Username"),x(),b(56,"th"),I(57,"Content"),x(),b(58,"th",32),I(59,"Create Time"),x(),J(60,Qlt,2,0,"th",33),x()(),b(61,"tbody"),J(62,Zlt,3,1,"tr",3),J(63,oct,17,10,"ng-template",34),x()()(),J(64,sct,6,2,"ngb-alert",35),J(65,act,4,3,"ngb-alert",36),b(66,"div",37),J(67,cct,20,5,"ng-template",null,38,Ur),J(69,uct,2,1,"button",39),x()),2&e&&(w(4),k("ngIf",!i.activeFilter||""===i.activeFilter),w(1),k("ngIf",i.activeFilter&&""!==i.activeFilter),w(2),k("ngForOf",i.filters),w(4),k("hidden","Chat Room"!==i.activeFilter)("formGroup",i.searchForm1),w(7),k("hidden","Group Chat"!==i.activeFilter)("formGroup",i.searchForm2),w(7),k("hidden","Direct Chat"!==i.activeFilter)("formGroup",i.searchForm3),w(13),k("disabled",0===i.messages.length),w(2),k("disabled",""===i.nextCursor||null===i.nextCursor),w(2),k("ngIf",0!=i.messages.length&&""===i.error&&2==i.type),w(1),k("ngIf",0!=i.messages.length&&""===i.error&&3==i.type),w(1),k("ngIf",0!=i.messages.length&&""===i.error&&4==i.type),w(1),k("ngIf",i.error),w(15),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.messages.length),w(1),k("ngForOf",i.messages),w(1),k("ngIf",i.deleteError),w(1),k("ngIf",i.deleteSuccess),w(4),k("ngIf",i.deleteMessagesAllowed()))},dependencies:[Nu,Rh,jn,gn,To,Pu,rm,Pf,jf,sl,Fa,c3,rl,ol,p3,fa,ja],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})),t})(),hct=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));default:return $n(null)}}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function fct(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function pct(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td"),I(6),x(),b(7,"td"),I(8),x(),b(9,"td"),I(10),x(),b(11,"td"),I(12),x()()),2&t){const e=n.$implicit,i=j();w(2),Dt(e.product_id),w(2),Dt(e.original_transaction_id),w(2),Dt(i.getStoreText(e.store)),w(2),Dt(e.purchase_time),w(2),Dt(e.expiry_time),w(2),Dt(e.create_time)}}function mct(t,n){1&t&&(b(0,"tr")(1,"td",19),I(2,"No purchases were found."),x()())}const gct=[{path:"",component:yFe,canActivate:[tMe],canActivateChild:[bFe],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:rBe,resolve:[oBe]},{path:"config",component:OBe,resolve:[jBe]},{path:"users",component:BBe,resolve:[VBe]},{path:"modules",component:t7e,resolve:[n7e]},{path:"storage",component:d7e,resolve:[h7e,f7e],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Cot,resolve:[kot],pathMatch:"full"},{path:"leaderboards",component:Oot,resolve:[jot]},{path:"leaderboards/:id",component:flt,resolve:[plt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:ylt,resolve:[]},{path:"records",component:Tlt,resolve:[Elt]}]},{path:"matches",component:zat,resolve:[Uat,Gat]},{path:"groups",component:Qat,resolve:[Zat]},{path:"groups/:id",component:slt,resolve:[alt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:iat,resolve:[]},{path:"members",component:Cat,resolve:[kat],runGuardsAndResolvers:"always"}]},{path:"accounts",component:Hot,resolve:[zot]},{path:"accounts/:id",component:nst,resolve:[ist],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:cst,resolve:[]},{path:"authentication",component:pst,resolve:[]},{path:"wallet",component:Dst,resolve:[Tst]},{path:"friends",component:Lst,resolve:[Rst]},{path:"groups",component:Yst,resolve:[Jst]},{path:"purchases",component:Hlt,resolve:[zlt]},{path:"subscriptions",component:(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"subscriptions",[]),K(this,"error",""),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"userID",void 0),K(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.subscriptions=e[0].validated_subscriptions,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listSubscriptions("",this.userID,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Sy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-subscriptions"]],decls:31,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["colspan","6",1,"text-muted"]],template:function(e,i){1&e&&(J(0,fct,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadData(i.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadData(i.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),I(17,"Product ID"),x(),b(18,"th"),I(19,"Original Transaction ID"),x(),b(20,"th"),I(21,"Store"),x(),b(22,"th",13),I(23,"Purchase Time"),x(),b(24,"th",13),I(25,"Expiry Time"),x(),b(26,"th",13),I(27,"Create Time"),x()()(),b(28,"tbody"),J(29,pct,13,6,"ng-template",14),J(30,mct,3,0,"tr",15),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.subscriptions.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(19),k("ngForOf",i.subscriptions),w(1),k("ngIf",0===i.subscriptions.length))},dependencies:[jn,gn,To]})),t})(),resolve:[(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listSubscriptions("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})()]}]},{path:"apiexplorer",component:Olt,resolve:[jlt]},{path:"chat",component:dct,resolve:[hct]}]},{path:"login",component:ZAe,canActivate:[eMe]},{path:"**",redirectTo:""}];let vct=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275mod",Di({type:t})),K(t,"\u0275inj",Ci({imports:[J9.forRoot(gct,{useHash:!0}),J9]})),t})(),yct=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[Jp]})),t})();new class kct extends Hd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Dct=1;const Tct=Promise.resolve(),YD={};function Jme(t){return t in YD&&(delete YD[t],!0)}const Kme={setImmediate(t){const n=Dct++;return YD[n]=!0,Tct.then(()=>Jme(n)&&t()),n},clearImmediate(t){Jme(t)}};new class Act extends Hd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=Kme.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(Kme.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Cs={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};Cs[Cs.Tab]="Tab",Cs[Cs.Enter]="Enter",Cs[Cs.Esc]="Esc",Cs[Cs.Space]="Space",Cs[Cs.ArrowUp]="ArrowUp",Cs[Cs.ArrowDown]="ArrowDown",Cs[Cs.Backspace]="Backspace";const ige=new zn("ng-select-selection-model");class jut{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}const Put=function Out(){return new jut};let Lut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[{provide:ige,useValue:Put}],imports:[Vs]}),t})(),Rut=(()=>{class t{constructor(e){K(this,"authenticationService",void 0),this.authenticationService=e}intercept(e,i){const r=this.authenticationService.currentSessionValue;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac})),t})(),$ut=(()=>{class t{constructor(e,i){K(this,"authenticationService",void 0),K(this,"router",void 0),this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Ul(r=>(401===r.status?this.authenticationService.logout().subscribe({next:()=>{e.url.includes("/v3/auth")||this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}}):r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`),qp(r.error.message||r.statusText))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo),ct(cr))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac})),t})(),But=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275mod",Di({type:t,bootstrap:[yct]})),K(t,"\u0275inj",Ci({providers:[JAe,Iz,{provide:C3,useValue:{host:document.location.origin,timeout:15e3}},{provide:x3,useClass:Rut,multi:!0},{provide:x3,useClass:$ut,multi:!0}],imports:[pBe,vct,qA,SSe,qAe,cFe,L$e,SAe.forRoot({apiKey:"",debug:!1,loadOnInitialization:!1}),DSe,wAe,ZV,Lut]})),t})();g2e().bootstrapModule(But).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},343:(Yt,Tn)=>{"use strict";Tn.byteLength=function Ve(T){var O=et(T),Me=O[1];return 3*(O[0]+Me)/4-Me},Tn.toByteArray=function se(T){var O,wn,te=et(T),Me=te[0],Je=te[1],kt=new Oe(function ve(T,O,te){return 3*(O+te)/4-te}(0,Me,Je)),jt=0,Wt=Je>0?Me-4:Me;for(wn=0;wn>16&255,kt[jt++]=O>>8&255,kt[jt++]=255&O;return 2===Je&&(O=rt[T.charCodeAt(wn)]<<2|rt[T.charCodeAt(wn+1)]>>4,kt[jt++]=255&O),1===Je&&(O=rt[T.charCodeAt(wn)]<<10|rt[T.charCodeAt(wn+1)]<<4|rt[T.charCodeAt(wn+2)]>>2,kt[jt++]=O>>8&255,kt[jt++]=255&O),kt},Tn.fromByteArray=function D(T){for(var O,te=T.length,Me=te%3,Je=[],jt=0,Wt=te-Me;jtWt?Wt:jt+16383));return 1===Me?Je.push(De[(O=T[te-1])>>2]+De[O<<4&63]+"=="):2===Me&&Je.push(De[(O=(T[te-2]<<8)+T[te-1])>>10]+De[O>>4&63]+De[O<<2&63]+"="),Je.join("")};for(var De=[],rt=[],Oe=typeof Uint8Array<"u"?Uint8Array:Array,dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ge=0,_e=dt.length;Ge<_e;++Ge)De[Ge]=dt[Ge],rt[dt.charCodeAt(Ge)]=Ge;function et(T){var O=T.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var te=T.indexOf("=");return-1===te&&(te=O),[te,te===O?0:4-te%4]}function ue(T){return De[T>>18&63]+De[T>>12&63]+De[T>>6&63]+De[63&T]}function ae(T,O,te){for(var Je=[],kt=O;kt{"use strict";var Oe=De(343),dt=De(461),Ge="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Tn.lW=ve,Tn.h2=50;var _e=2147483647;function Ve(Te){if(Te>_e)throw new RangeError('The value "'+Te+'" is invalid for option "size"');var W=new Uint8Array(Te);return Object.setPrototypeOf(W,ve.prototype),W}function ve(Te,W,ee){if("number"==typeof Te){if("string"==typeof W)throw new TypeError('The "string" argument must be of type string. Received type number');return D(Te)}return se(Te,W,ee)}function se(Te,W,ee){if("string"==typeof Te)return function T(Te,W){if(("string"!=typeof W||""===W)&&(W="utf8"),!ve.isEncoding(W))throw new TypeError("Unknown encoding: "+W);var ee=0|Wt(Te,W),Fe=Ve(ee),nt=Fe.write(Te,W);return nt!==ee&&(Fe=Fe.slice(0,nt)),Fe}(Te,W);if(ArrayBuffer.isView(Te))return function te(Te){if(da(Te,Uint8Array)){var W=new Uint8Array(Te);return Me(W.buffer,W.byteOffset,W.byteLength)}return O(Te)}(Te);if(null==Te)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Te);if(da(Te,ArrayBuffer)||Te&&da(Te.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(da(Te,SharedArrayBuffer)||Te&&da(Te.buffer,SharedArrayBuffer)))return Me(Te,W,ee);if("number"==typeof Te)throw new TypeError('The "value" argument must not be of type number. Received type number');var Fe=Te.valueOf&&Te.valueOf();if(null!=Fe&&Fe!==Te)return ve.from(Fe,W,ee);var nt=function Je(Te){if(ve.isBuffer(Te)){var W=0|kt(Te.length),ee=Ve(W);return 0===ee.length||Te.copy(ee,0,0,W),ee}return void 0!==Te.length?"number"!=typeof Te.length||co(Te.length)?Ve(0):O(Te):"Buffer"===Te.type&&Array.isArray(Te.data)?O(Te.data):void 0}(Te);if(nt)return nt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Te[Symbol.toPrimitive])return ve.from(Te[Symbol.toPrimitive]("string"),W,ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Te)}function ue(Te){if("number"!=typeof Te)throw new TypeError('"size" argument must be of type number');if(Te<0)throw new RangeError('The value "'+Te+'" is invalid for option "size"')}function D(Te){return ue(Te),Ve(Te<0?0:0|kt(Te))}function O(Te){for(var W=Te.length<0?0:0|kt(Te.length),ee=Ve(W),Fe=0;Fe=_e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e.toString(16)+" bytes");return 0|Te}function Wt(Te,W){if(ve.isBuffer(Te))return Te.length;if(ArrayBuffer.isView(Te)||da(Te,ArrayBuffer))return Te.byteLength;if("string"!=typeof Te)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Te);var ee=Te.length,Fe=arguments.length>2&&!0===arguments[2];if(!Fe&&0===ee)return 0;for(var nt=!1;;)switch(W){case"ascii":case"latin1":case"binary":return ee;case"utf8":case"utf-8":return Fc(Te).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ee;case"hex":return ee>>>1;case"base64":return vu(Te).length;default:if(nt)return Fe?-1:Fc(Te).length;W=(""+W).toLowerCase(),nt=!0}}function wn(Te,W,ee){var Fe=!1;if((void 0===W||W<0)&&(W=0),W>this.length||((void 0===ee||ee>this.length)&&(ee=this.length),ee<=0)||(ee>>>=0)<=(W>>>=0))return"";for(Te||(Te="utf8");;)switch(Te){case"hex":return gu(this,W,ee);case"utf8":case"utf-8":return yn(this,W,ee);case"ascii":return Kn(this,W,ee);case"latin1":case"binary":return Nc(this,W,ee);case"base64":return Sa(this,W,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ro(this,W,ee);default:if(Fe)throw new TypeError("Unknown encoding: "+Te);Te=(Te+"").toLowerCase(),Fe=!0}}function rn(Te,W,ee){var Fe=Te[W];Te[W]=Te[ee],Te[ee]=Fe}function Mi(Te,W,ee,Fe,nt){if(0===Te.length)return-1;if("string"==typeof ee?(Fe=ee,ee=0):ee>2147483647?ee=2147483647:ee<-2147483648&&(ee=-2147483648),co(ee=+ee)&&(ee=nt?0:Te.length-1),ee<0&&(ee=Te.length+ee),ee>=Te.length){if(nt)return-1;ee=Te.length-1}else if(ee<0){if(!nt)return-1;ee=0}if("string"==typeof W&&(W=ve.from(W,Fe)),ve.isBuffer(W))return 0===W.length?-1:zr(Te,W,ee,Fe,nt);if("number"==typeof W)return W&=255,"function"==typeof Uint8Array.prototype.indexOf?nt?Uint8Array.prototype.indexOf.call(Te,W,ee):Uint8Array.prototype.lastIndexOf.call(Te,W,ee):zr(Te,[W],ee,Fe,nt);throw new TypeError("val must be string, number or Buffer")}function zr(Te,W,ee,Fe,nt){var st,zt=1,Qt=Te.length,nr=W.length;if(void 0!==Fe&&("ucs2"===(Fe=String(Fe).toLowerCase())||"ucs-2"===Fe||"utf16le"===Fe||"utf-16le"===Fe)){if(Te.length<2||W.length<2)return-1;zt=2,Qt/=2,nr/=2,ee/=2}function A(mn,pe){return 1===zt?mn[pe]:mn.readUInt16BE(pe*zt)}if(nt){var Tt=-1;for(st=ee;stQt&&(ee=Qt-nr),st=ee;st>=0;st--){for(var Ut=!0,Vt=0;Vtnt&&(Fe=nt):Fe=nt;var zt=W.length;Fe>zt/2&&(Fe=zt/2);for(var Qt=0;Qt>8,zt.push(ee%256),zt.push(Fe);return zt}(W,Te.length-ee),Te,ee,Fe)}function Sa(Te,W,ee){return Oe.fromByteArray(0===W&&ee===Te.length?Te:Te.slice(W,ee))}function yn(Te,W,ee){ee=Math.min(Te.length,ee);for(var Fe=[],nt=W;nt239?4:zt>223?3:zt>191?2:1;if(nt+nr<=ee)switch(nr){case 1:zt<128&&(Qt=zt);break;case 2:128==(192&(A=Te[nt+1]))&&(Ut=(31&zt)<<6|63&A)>127&&(Qt=Ut);break;case 3:st=Te[nt+2],128==(192&(A=Te[nt+1]))&&128==(192&st)&&(Ut=(15&zt)<<12|(63&A)<<6|63&st)>2047&&(Ut<55296||Ut>57343)&&(Qt=Ut);break;case 4:st=Te[nt+2],Tt=Te[nt+3],128==(192&(A=Te[nt+1]))&&128==(192&st)&&128==(192&Tt)&&(Ut=(15&zt)<<18|(63&A)<<12|(63&st)<<6|63&Tt)>65535&&Ut<1114112&&(Qt=Ut)}null===Qt?(Qt=65533,nr=1):Qt>65535&&(Fe.push((Qt-=65536)>>>10&1023|55296),Qt=56320|1023&Qt),Fe.push(Qt),nt+=nr}return function kd(Te){var W=Te.length;if(W<=Cd)return String.fromCharCode.apply(String,Te);for(var ee="",Fe=0;Fent.length?ve.from(Qt).copy(nt,zt):Uint8Array.prototype.set.call(nt,Qt,zt);else{if(!ve.isBuffer(Qt))throw new TypeError('"list" argument must be an Array of Buffers');Qt.copy(nt,zt)}zt+=Qt.length}return nt},ve.byteLength=Wt,ve.prototype._isBuffer=!0,ve.prototype.swap16=function(){var W=this.length;if(W%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ee=0;eeee&&(W+=" ... "),""},Ge&&(ve.prototype[Ge]=ve.prototype.inspect),ve.prototype.compare=function(W,ee,Fe,nt,zt){if(da(W,Uint8Array)&&(W=ve.from(W,W.offset,W.byteLength)),!ve.isBuffer(W))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof W);if(void 0===ee&&(ee=0),void 0===Fe&&(Fe=W?W.length:0),void 0===nt&&(nt=0),void 0===zt&&(zt=this.length),ee<0||Fe>W.length||nt<0||zt>this.length)throw new RangeError("out of range index");if(nt>=zt&&ee>=Fe)return 0;if(nt>=zt)return-1;if(ee>=Fe)return 1;if(this===W)return 0;for(var Qt=(zt>>>=0)-(nt>>>=0),nr=(Fe>>>=0)-(ee>>>=0),A=Math.min(Qt,nr),st=this.slice(nt,zt),Tt=W.slice(ee,Fe),Ut=0;Ut>>=0,isFinite(Fe)?(Fe>>>=0,void 0===nt&&(nt="utf8")):(nt=Fe,Fe=void 0)}var zt=this.length-ee;if((void 0===Fe||Fe>zt)&&(Fe=zt),W.length>0&&(Fe<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");for(var Qt=!1;;)switch(nt){case"hex":return Xr(this,W,ee,Fe);case"utf8":case"utf-8":return hs(this,W,ee,Fe);case"ascii":case"latin1":case"binary":return Ya(this,W,ee,Fe);case"base64":return tr(this,W,ee,Fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mu(this,W,ee,Fe);default:if(Qt)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),Qt=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Cd=4096;function Kn(Te,W,ee){var Fe="";ee=Math.min(Te.length,ee);for(var nt=W;ntFe)&&(ee=Fe);for(var nt="",zt=W;ztee)throw new RangeError("Trying to access beyond buffer length")}function lo(Te,W,ee,Fe,nt,zt){if(!ve.isBuffer(Te))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>nt||WTe.length)throw new RangeError("Index out of range")}function Da(Te,W,ee,Fe,nt,zt){if(ee+Fe>Te.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("Index out of range")}function Zr(Te,W,ee,Fe,nt){return W=+W,ee>>>=0,nt||Da(Te,0,ee,4),dt.write(Te,W,ee,Fe,23,4),ee+4}function pl(Te,W,ee,Fe,nt){return W=+W,ee>>>=0,nt||Da(Te,0,ee,8),dt.write(Te,W,ee,Fe,52,8),ee+8}ve.prototype.slice=function(W,ee){var Fe=this.length;(W=~~W)<0?(W+=Fe)<0&&(W=0):W>Fe&&(W=Fe),(ee=void 0===ee?Fe:~~ee)<0?(ee+=Fe)<0&&(ee=0):ee>Fe&&(ee=Fe),ee>>=0,ee>>>=0,Fe||Co(W,ee,this.length);for(var nt=this[W],zt=1,Qt=0;++Qt>>=0,ee>>>=0,Fe||Co(W,ee,this.length);for(var nt=this[W+--ee],zt=1;ee>0&&(zt*=256);)nt+=this[W+--ee]*zt;return nt},ve.prototype.readUint8=ve.prototype.readUInt8=function(W,ee){return W>>>=0,ee||Co(W,1,this.length),this[W]},ve.prototype.readUint16LE=ve.prototype.readUInt16LE=function(W,ee){return W>>>=0,ee||Co(W,2,this.length),this[W]|this[W+1]<<8},ve.prototype.readUint16BE=ve.prototype.readUInt16BE=function(W,ee){return W>>>=0,ee||Co(W,2,this.length),this[W]<<8|this[W+1]},ve.prototype.readUint32LE=ve.prototype.readUInt32LE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+16777216*this[W+3]},ve.prototype.readUint32BE=ve.prototype.readUInt32BE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),16777216*this[W]+(this[W+1]<<16|this[W+2]<<8|this[W+3])},ve.prototype.readIntLE=function(W,ee,Fe){W>>>=0,ee>>>=0,Fe||Co(W,ee,this.length);for(var nt=this[W],zt=1,Qt=0;++Qt=(zt*=128)&&(nt-=Math.pow(2,8*ee)),nt},ve.prototype.readIntBE=function(W,ee,Fe){W>>>=0,ee>>>=0,Fe||Co(W,ee,this.length);for(var nt=ee,zt=1,Qt=this[W+--nt];nt>0&&(zt*=256);)Qt+=this[W+--nt]*zt;return Qt>=(zt*=128)&&(Qt-=Math.pow(2,8*ee)),Qt},ve.prototype.readInt8=function(W,ee){return W>>>=0,ee||Co(W,1,this.length),128&this[W]?-1*(255-this[W]+1):this[W]},ve.prototype.readInt16LE=function(W,ee){W>>>=0,ee||Co(W,2,this.length);var Fe=this[W]|this[W+1]<<8;return 32768&Fe?4294901760|Fe:Fe},ve.prototype.readInt16BE=function(W,ee){W>>>=0,ee||Co(W,2,this.length);var Fe=this[W+1]|this[W]<<8;return 32768&Fe?4294901760|Fe:Fe},ve.prototype.readInt32LE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},ve.prototype.readInt32BE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},ve.prototype.readFloatLE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),dt.read(this,W,!0,23,4)},ve.prototype.readFloatBE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),dt.read(this,W,!1,23,4)},ve.prototype.readDoubleLE=function(W,ee){return W>>>=0,ee||Co(W,8,this.length),dt.read(this,W,!0,52,8)},ve.prototype.readDoubleBE=function(W,ee){return W>>>=0,ee||Co(W,8,this.length),dt.read(this,W,!1,52,8)},ve.prototype.writeUintLE=ve.prototype.writeUIntLE=function(W,ee,Fe,nt){W=+W,ee>>>=0,Fe>>>=0,nt||lo(this,W,ee,Fe,Math.pow(2,8*Fe)-1,0);var Qt=1,nr=0;for(this[ee]=255&W;++nr>>=0,Fe>>>=0,nt||lo(this,W,ee,Fe,Math.pow(2,8*Fe)-1,0);var Qt=Fe-1,nr=1;for(this[ee+Qt]=255&W;--Qt>=0&&(nr*=256);)this[ee+Qt]=W/nr&255;return ee+Fe},ve.prototype.writeUint8=ve.prototype.writeUInt8=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,1,255,0),this[ee]=255&W,ee+1},ve.prototype.writeUint16LE=ve.prototype.writeUInt16LE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,2,65535,0),this[ee]=255&W,this[ee+1]=W>>>8,ee+2},ve.prototype.writeUint16BE=ve.prototype.writeUInt16BE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,2,65535,0),this[ee]=W>>>8,this[ee+1]=255&W,ee+2},ve.prototype.writeUint32LE=ve.prototype.writeUInt32LE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,4,4294967295,0),this[ee+3]=W>>>24,this[ee+2]=W>>>16,this[ee+1]=W>>>8,this[ee]=255&W,ee+4},ve.prototype.writeUint32BE=ve.prototype.writeUInt32BE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,4,4294967295,0),this[ee]=W>>>24,this[ee+1]=W>>>16,this[ee+2]=W>>>8,this[ee+3]=255&W,ee+4},ve.prototype.writeIntLE=function(W,ee,Fe,nt){if(W=+W,ee>>>=0,!nt){var zt=Math.pow(2,8*Fe-1);lo(this,W,ee,Fe,zt-1,-zt)}var Qt=0,nr=1,A=0;for(this[ee]=255&W;++Qt>0)-A&255;return ee+Fe},ve.prototype.writeIntBE=function(W,ee,Fe,nt){if(W=+W,ee>>>=0,!nt){var zt=Math.pow(2,8*Fe-1);lo(this,W,ee,Fe,zt-1,-zt)}var Qt=Fe-1,nr=1,A=0;for(this[ee+Qt]=255&W;--Qt>=0&&(nr*=256);)W<0&&0===A&&0!==this[ee+Qt+1]&&(A=1),this[ee+Qt]=(W/nr>>0)-A&255;return ee+Fe},ve.prototype.writeInt8=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,1,127,-128),W<0&&(W=255+W+1),this[ee]=255&W,ee+1},ve.prototype.writeInt16LE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,2,32767,-32768),this[ee]=255&W,this[ee+1]=W>>>8,ee+2},ve.prototype.writeInt16BE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,2,32767,-32768),this[ee]=W>>>8,this[ee+1]=255&W,ee+2},ve.prototype.writeInt32LE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,4,2147483647,-2147483648),this[ee]=255&W,this[ee+1]=W>>>8,this[ee+2]=W>>>16,this[ee+3]=W>>>24,ee+4},ve.prototype.writeInt32BE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),this[ee]=W>>>24,this[ee+1]=W>>>16,this[ee+2]=W>>>8,this[ee+3]=255&W,ee+4},ve.prototype.writeFloatLE=function(W,ee,Fe){return Zr(this,W,ee,!0,Fe)},ve.prototype.writeFloatBE=function(W,ee,Fe){return Zr(this,W,ee,!1,Fe)},ve.prototype.writeDoubleLE=function(W,ee,Fe){return pl(this,W,ee,!0,Fe)},ve.prototype.writeDoubleBE=function(W,ee,Fe){return pl(this,W,ee,!1,Fe)},ve.prototype.copy=function(W,ee,Fe,nt){if(!ve.isBuffer(W))throw new TypeError("argument should be a Buffer");if(Fe||(Fe=0),!nt&&0!==nt&&(nt=this.length),ee>=W.length&&(ee=W.length),ee||(ee=0),nt>0&&nt=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),W.length-ee>>=0,Fe=void 0===Fe?this.length:Fe>>>0,W||(W=0),"number"==typeof W)for(Qt=ee;Qt55295&&ee<57344){if(!nt){if(ee>56319){(W-=3)>-1&&zt.push(239,191,189);continue}if(Qt+1===Fe){(W-=3)>-1&&zt.push(239,191,189);continue}nt=ee;continue}if(ee<56320){(W-=3)>-1&&zt.push(239,191,189),nt=ee;continue}ee=65536+(nt-55296<<10|ee-56320)}else nt&&(W-=3)>-1&&zt.push(239,191,189);if(nt=null,ee<128){if((W-=1)<0)break;zt.push(ee)}else if(ee<2048){if((W-=2)<0)break;zt.push(ee>>6|192,63&ee|128)}else if(ee<65536){if((W-=3)<0)break;zt.push(ee>>12|224,ee>>6&63|128,63&ee|128)}else{if(!(ee<1114112))throw new Error("Invalid code point");if((W-=4)<0)break;zt.push(ee>>18|240,ee>>12&63|128,ee>>6&63|128,63&ee|128)}}return zt}function vu(Te){return Oe.toByteArray(function Sd(Te){if((Te=(Te=Te.split("=")[0]).trim().replace(nc,"")).length<2)return"";for(;Te.length%4!=0;)Te+="=";return Te}(Te))}function Ja(Te,W,ee,Fe){for(var nt=0;nt=W.length||nt>=Te.length);++nt)W[nt+ee]=Te[nt];return nt}function da(Te,W){return Te instanceof W||null!=Te&&null!=Te.constructor&&null!=Te.constructor.name&&Te.constructor.name===W.name}function co(Te){return Te!=Te}var ml=function(){for(var Te="0123456789abcdef",W=new Array(256),ee=0;ee<16;++ee)for(var Fe=16*ee,nt=0;nt<16;++nt)W[Fe+nt]=Te[ee]+Te[nt];return W}()},797:function(Yt){Yt.exports=function(Tn){var De={};function rt(Oe){if(De[Oe])return De[Oe].exports;var dt=De[Oe]={exports:{},id:Oe,loaded:!1};return Tn[Oe].call(dt.exports,dt,dt.exports,rt),dt.loaded=!0,dt.exports}return rt.m=Tn,rt.c=De,rt.p="",rt(0)}([function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(1),dt=rt(3),Ge=rt(8),_e=rt(15);function et(ae,D,T){var O=null,te=function(Mi,zr){T&&T(Mi,zr),O&&O.visit(Mi,zr)},Me="function"==typeof T?te:null,Je=!1;if(D){var kt="boolean"==typeof D.attachComment&&D.attachComment;((Je="boolean"==typeof D.comment&&D.comment)||kt)&&((O=new Oe.CommentHandler).attach=kt,D.comment=!0,Me=te)}var Wt,jt=!1;D&&"string"==typeof D.sourceType&&(jt="module"===D.sourceType),Wt=D&&"boolean"==typeof D.jsx&&D.jsx?new dt.JSXParser(ae,D,Me):new Ge.Parser(ae,D,Me);var rn=jt?Wt.parseModule():Wt.parseScript();return Je&&O&&(rn.comments=O.comments),Wt.config.tokens&&(rn.tokens=Wt.tokens),Wt.config.tolerant&&(rn.errors=Wt.errorHandler.errors),rn}De.parse=et,De.parseModule=function Ve(ae,D,T){var O=D||{};return O.sourceType="module",et(ae,O,T)},De.parseScript=function ve(ae,D,T){var O=D||{};return O.sourceType="script",et(ae,O,T)},De.tokenize=function se(ae,D,T){var te,O=new _e.Tokenizer(ae,D);te=[];try{for(;;){var Me=O.getNextToken();if(!Me)break;T&&(Me=T(Me)),te.push(Me)}}catch(Je){O.errorHandler.tolerate(Je)}return O.errorHandler.tolerant&&(te.errors=O.errors()),te};var ue=rt(2);De.Syntax=ue.Syntax,De.version="4.0.1"},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(2),dt=function(){function Ge(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return Ge.prototype.insertInnerComments=function(_e,et){if(_e.type===Oe.Syntax.BlockStatement&&0===_e.body.length){for(var Ve=[],ve=this.leading.length-1;ve>=0;--ve){var se=this.leading[ve];et.end.offset>=se.start&&(Ve.unshift(se.comment),this.leading.splice(ve,1),this.trailing.splice(ve,1))}Ve.length&&(_e.innerComments=Ve)}},Ge.prototype.findTrailingComments=function(_e){var et=[];if(this.trailing.length>0){for(var Ve=this.trailing.length-1;Ve>=0;--Ve){var ve=this.trailing[Ve];ve.start>=_e.end.offset&&et.unshift(ve.comment)}return this.trailing.length=0,et}var se=this.stack[this.stack.length-1];if(se&&se.node.trailingComments){var ue=se.node.trailingComments[0];ue&&ue.range[0]>=_e.end.offset&&(et=se.node.trailingComments,delete se.node.trailingComments)}return et},Ge.prototype.findLeadingComments=function(_e){for(var Ve,et=[];this.stack.length>0&&(ve=this.stack[this.stack.length-1])&&ve.start>=_e.start.offset;)Ve=ve.node,this.stack.pop();if(Ve){for(var ue=(Ve.leadingComments?Ve.leadingComments.length:0)-1;ue>=0;--ue){var ae=Ve.leadingComments[ue];ae.range[1]<=_e.start.offset&&(et.unshift(ae),Ve.leadingComments.splice(ue,1))}return Ve.leadingComments&&0===Ve.leadingComments.length&&delete Ve.leadingComments,et}for(ue=this.leading.length-1;ue>=0;--ue){var ve;(ve=this.leading[ue]).start<=_e.start.offset&&(et.unshift(ve.comment),this.leading.splice(ue,1))}return et},Ge.prototype.visitNode=function(_e,et){if(!(_e.type===Oe.Syntax.Program&&_e.body.length>0)){this.insertInnerComments(_e,et);var Ve=this.findTrailingComments(et),ve=this.findLeadingComments(et);ve.length>0&&(_e.leadingComments=ve),Ve.length>0&&(_e.trailingComments=Ve),this.stack.push({node:_e,start:et.start.offset})}},Ge.prototype.visitComment=function(_e,et){var Ve="L"===_e.type[0]?"Line":"Block",ve={type:Ve,value:_e.value};if(_e.range&&(ve.range=_e.range),_e.loc&&(ve.loc=_e.loc),this.comments.push(ve),this.attach){var se={comment:{type:Ve,value:_e.value,range:[et.start.offset,et.end.offset]},start:et.start.offset};_e.loc&&(se.comment.loc=_e.loc),_e.type=Ve,this.leading.push(se),this.trailing.push(se)}},Ge.prototype.visit=function(_e,et){"LineComment"===_e.type||"BlockComment"===_e.type?this.visitComment(_e,et):this.attach&&this.visitNode(_e,et)},Ge}();De.CommentHandler=dt},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Tn,De,rt){"use strict";var D,Oe=this&&this.__extends||(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,O){T.__proto__=O}||function(T,O){for(var te in O)O.hasOwnProperty(te)&&(T[te]=O[te])},function(T,O){function te(){this.constructor=T}D(T,O),T.prototype=null===O?Object.create(O):(te.prototype=O.prototype,new te)});Object.defineProperty(De,"__esModule",{value:!0});var dt=rt(4),Ge=rt(5),_e=rt(6),et=rt(7),Ve=rt(8),ve=rt(13),se=rt(14);function ue(D){var T;switch(D.type){case _e.JSXSyntax.JSXIdentifier:T=D.name;break;case _e.JSXSyntax.JSXNamespacedName:var te=D;T=ue(te.namespace)+":"+ue(te.name);break;case _e.JSXSyntax.JSXMemberExpression:var Me=D;T=ue(Me.object)+"."+ue(Me.property)}return T}ve.TokenName[100]="JSXIdentifier",ve.TokenName[101]="JSXText";var ae=function(D){function T(O,te,Me){return D.call(this,O,te,Me)||this}return Oe(T,D),T.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():D.prototype.parsePrimaryExpression.call(this)},T.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},T.prototype.finishJSX=function(){this.nextToken()},T.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},T.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.scanXHTMLEntity=function(O){for(var te="&",Me=!0,Je=!1,kt=!1,jt=!1;!this.scanner.eof()&&Me&&!Je;){var Wt=this.scanner.source[this.scanner.index];if(Wt===O)break;if(Je=";"===Wt,te+=Wt,++this.scanner.index,!Je)switch(te.length){case 2:kt="#"===Wt;break;case 3:kt&&(Me=(jt="x"===Wt)||dt.Character.isDecimalDigit(Wt.charCodeAt(0)),kt=kt&&!jt);break;default:Me=(Me=Me&&!(kt&&!dt.Character.isDecimalDigit(Wt.charCodeAt(0))))&&!(jt&&!dt.Character.isHexDigit(Wt.charCodeAt(0)))}}if(Me&&Je&&te.length>2){var wn=te.substr(1,te.length-2);kt&&wn.length>1?te=String.fromCharCode(parseInt(wn.substr(1),10)):jt&&wn.length>2?te=String.fromCharCode(parseInt("0"+wn.substr(1),16)):!kt&&!jt&&se.XHTMLEntities[wn]&&(te=se.XHTMLEntities[wn])}return te},T.prototype.lexJSX=function(){var O=this.scanner.source.charCodeAt(this.scanner.index);if(60===O||62===O||47===O||58===O||61===O||123===O||125===O)return{type:7,value:te=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===O||39===O){for(var Me=this.scanner.index,Je=this.scanner.source[this.scanner.index++],kt="";!this.scanner.eof()&&(jt=this.scanner.source[this.scanner.index++])!==Je;)kt+="&"===jt?this.scanXHTMLEntity(Je):jt;return{type:8,value:kt,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}if(46===O){var te,Wt=this.scanner.source.charCodeAt(this.scanner.index+1),wn=this.scanner.source.charCodeAt(this.scanner.index+2);return Me=this.scanner.index,this.scanner.index+=(te=46===Wt&&46===wn?"...":".").length,{type:7,value:te,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}if(96===O)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(dt.Character.isIdentifierStart(O)&&92!==O){for(Me=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var jt=this.scanner.source.charCodeAt(this.scanner.index);if(dt.Character.isIdentifierPart(jt)&&92!==jt)++this.scanner.index;else{if(45!==jt)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Me,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}return this.scanner.lex()},T.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var O=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(O)),O},T.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var O=this.scanner.index,te="";!this.scanner.eof();){var Me=this.scanner.source[this.scanner.index];if("{"===Me||"<"===Me)break;++this.scanner.index,te+=Me,dt.Character.isLineTerminator(Me.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Me&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Je={type:101,value:te,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:O,end:this.scanner.index};return te.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Je)),Je},T.prototype.peekJSXToken=function(){var O=this.scanner.saveState();this.scanner.scanComments();var te=this.lexJSX();return this.scanner.restoreState(O),te},T.prototype.expectJSX=function(O){var te=this.nextJSXToken();(7!==te.type||te.value!==O)&&this.throwUnexpectedToken(te)},T.prototype.matchJSX=function(O){var te=this.peekJSXToken();return 7===te.type&&te.value===O},T.prototype.parseJSXIdentifier=function(){var O=this.createJSXNode(),te=this.nextJSXToken();return 100!==te.type&&this.throwUnexpectedToken(te),this.finalize(O,new Ge.JSXIdentifier(te.value))},T.prototype.parseJSXElementName=function(){var O=this.createJSXNode(),te=this.parseJSXIdentifier();if(this.matchJSX(":")){var Me=te;this.expectJSX(":");var Je=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXNamespacedName(Me,Je))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var kt=te;this.expectJSX(".");var jt=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXMemberExpression(kt,jt))}return te},T.prototype.parseJSXAttributeName=function(){var te,O=this.createJSXNode(),Me=this.parseJSXIdentifier();if(this.matchJSX(":")){var Je=Me;this.expectJSX(":");var kt=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXNamespacedName(Je,kt))}else te=Me;return te},T.prototype.parseJSXStringLiteralAttribute=function(){var O=this.createJSXNode(),te=this.nextJSXToken();8!==te.type&&this.throwUnexpectedToken(te);var Me=this.getTokenRaw(te);return this.finalize(O,new et.Literal(te.value,Me))},T.prototype.parseJSXExpressionAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var te=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new Ge.JSXExpressionContainer(te))},T.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},T.prototype.parseJSXNameValueAttribute=function(){var O=this.createJSXNode(),te=this.parseJSXAttributeName(),Me=null;return this.matchJSX("=")&&(this.expectJSX("="),Me=this.parseJSXAttributeValue()),this.finalize(O,new Ge.JSXAttribute(te,Me))},T.prototype.parseJSXSpreadAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var te=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new Ge.JSXSpreadAttribute(te))},T.prototype.parseJSXAttributes=function(){for(var O=[];!this.matchJSX("/")&&!this.matchJSX(">");){var te=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();O.push(te)}return O},T.prototype.parseJSXOpeningElement=function(){var O=this.createJSXNode();this.expectJSX("<");var te=this.parseJSXElementName(),Me=this.parseJSXAttributes(),Je=this.matchJSX("/");return Je&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new Ge.JSXOpeningElement(te,Je,Me))},T.prototype.parseJSXBoundaryElement=function(){var O=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var te=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(O,new Ge.JSXClosingElement(te))}var Me=this.parseJSXElementName(),Je=this.parseJSXAttributes(),kt=this.matchJSX("/");return kt&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new Ge.JSXOpeningElement(Me,kt,Je))},T.prototype.parseJSXEmptyExpression=function(){var O=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(O,new Ge.JSXEmptyExpression)},T.prototype.parseJSXExpressionContainer=function(){var te,O=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(te=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),te=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(O,new Ge.JSXExpressionContainer(te))},T.prototype.parseJSXChildren=function(){for(var O=[];!this.scanner.eof();){var te=this.createJSXChildNode(),Me=this.nextJSXText();if(Me.start0))break;jt=this.finalize(O.node,new Ge.JSXElement(O.opening,O.children,O.closing)),(O=te[te.length-1]).children.push(jt),te.pop()}}return O},T.prototype.parseJSXElement=function(){var O=this.createJSXNode(),te=this.parseJSXOpeningElement(),Me=[],Je=null;if(!te.selfClosing){var kt=this.parseComplexJSXElement({node:O,opening:te,closing:Je,children:Me});Me=kt.children,Je=kt.closing}return this.finalize(O,new Ge.JSXElement(te,Me,Je))},T.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var O=this.parseJSXElement();return this.finishJSX(),O},T.prototype.isStartOfExpression=function(){return D.prototype.isStartOfExpression.call(this)||this.match("<")},T}(Ve.Parser);De.JSXParser=ae},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var rt={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\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\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\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\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\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};De.Character={fromCodePoint:function(Oe){return Oe<65536?String.fromCharCode(Oe):String.fromCharCode(55296+(Oe-65536>>10))+String.fromCharCode(56320+(Oe-65536&1023))},isWhiteSpace:function(Oe){return 32===Oe||9===Oe||11===Oe||12===Oe||160===Oe||Oe>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(Oe)>=0},isLineTerminator:function(Oe){return 10===Oe||13===Oe||8232===Oe||8233===Oe},isIdentifierStart:function(Oe){return 36===Oe||95===Oe||Oe>=65&&Oe<=90||Oe>=97&&Oe<=122||92===Oe||Oe>=128&&rt.NonAsciiIdentifierStart.test(De.Character.fromCodePoint(Oe))},isIdentifierPart:function(Oe){return 36===Oe||95===Oe||Oe>=65&&Oe<=90||Oe>=97&&Oe<=122||Oe>=48&&Oe<=57||92===Oe||Oe>=128&&rt.NonAsciiIdentifierPart.test(De.Character.fromCodePoint(Oe))},isDecimalDigit:function(Oe){return Oe>=48&&Oe<=57},isHexDigit:function(Oe){return Oe>=48&&Oe<=57||Oe>=65&&Oe<=70||Oe>=97&&Oe<=102},isOctalDigit:function(Oe){return Oe>=48&&Oe<=55}}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(6);De.JSXClosingElement=function O(te){this.type=Oe.JSXSyntax.JSXClosingElement,this.name=te},De.JSXElement=function O(te,Me,Je){this.type=Oe.JSXSyntax.JSXElement,this.openingElement=te,this.children=Me,this.closingElement=Je},De.JSXEmptyExpression=function O(){this.type=Oe.JSXSyntax.JSXEmptyExpression},De.JSXExpressionContainer=function O(te){this.type=Oe.JSXSyntax.JSXExpressionContainer,this.expression=te},De.JSXIdentifier=function O(te){this.type=Oe.JSXSyntax.JSXIdentifier,this.name=te},De.JSXMemberExpression=function O(te,Me){this.type=Oe.JSXSyntax.JSXMemberExpression,this.object=te,this.property=Me},De.JSXAttribute=function O(te,Me){this.type=Oe.JSXSyntax.JSXAttribute,this.name=te,this.value=Me},De.JSXNamespacedName=function O(te,Me){this.type=Oe.JSXSyntax.JSXNamespacedName,this.namespace=te,this.name=Me},De.JSXOpeningElement=function O(te,Me,Je){this.type=Oe.JSXSyntax.JSXOpeningElement,this.name=te,this.selfClosing=Me,this.attributes=Je},De.JSXSpreadAttribute=function O(te){this.type=Oe.JSXSyntax.JSXSpreadAttribute,this.argument=te},De.JSXText=function O(te,Me){this.type=Oe.JSXSyntax.JSXText,this.value=te,this.raw=Me}},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(2);De.ArrayExpression=function We(Xe){this.type=Oe.Syntax.ArrayExpression,this.elements=Xe},De.ArrayPattern=function We(Xe){this.type=Oe.Syntax.ArrayPattern,this.elements=Xe},De.ArrowFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ArrowFunctionExpression,this.id=null,this.params=Xe,this.body=bt,this.generator=!1,this.expression=Cn,this.async=!1},De.AssignmentExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.AssignmentExpression,this.operator=Xe,this.left=bt,this.right=Cn},De.AssignmentPattern=function We(Xe,bt){this.type=Oe.Syntax.AssignmentPattern,this.left=Xe,this.right=bt},De.AsyncArrowFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ArrowFunctionExpression,this.id=null,this.params=Xe,this.body=bt,this.generator=!1,this.expression=Cn,this.async=!0},De.AsyncFunctionDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.FunctionDeclaration,this.id=Xe,this.params=bt,this.body=Cn,this.generator=!1,this.expression=!1,this.async=!0},De.AsyncFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.FunctionExpression,this.id=Xe,this.params=bt,this.body=Cn,this.generator=!1,this.expression=!1,this.async=!0},De.AwaitExpression=function We(Xe){this.type=Oe.Syntax.AwaitExpression,this.argument=Xe},De.BinaryExpression=function We(Xe,bt,Cn){this.type="||"===Xe||"&&"===Xe?Oe.Syntax.LogicalExpression:Oe.Syntax.BinaryExpression,this.operator=Xe,this.left=bt,this.right=Cn},De.BlockStatement=function We(Xe){this.type=Oe.Syntax.BlockStatement,this.body=Xe},De.BreakStatement=function We(Xe){this.type=Oe.Syntax.BreakStatement,this.label=Xe},De.CallExpression=function We(Xe,bt){this.type=Oe.Syntax.CallExpression,this.callee=Xe,this.arguments=bt},De.CatchClause=function We(Xe,bt){this.type=Oe.Syntax.CatchClause,this.param=Xe,this.body=bt},De.ClassBody=function We(Xe){this.type=Oe.Syntax.ClassBody,this.body=Xe},De.ClassDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.ClassDeclaration,this.id=Xe,this.superClass=bt,this.body=Cn},De.ClassExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ClassExpression,this.id=Xe,this.superClass=bt,this.body=Cn},De.ComputedMemberExpression=function We(Xe,bt){this.type=Oe.Syntax.MemberExpression,this.computed=!0,this.object=Xe,this.property=bt},De.ConditionalExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ConditionalExpression,this.test=Xe,this.consequent=bt,this.alternate=Cn},De.ContinueStatement=function We(Xe){this.type=Oe.Syntax.ContinueStatement,this.label=Xe},De.DebuggerStatement=function We(){this.type=Oe.Syntax.DebuggerStatement},De.Directive=function We(Xe,bt){this.type=Oe.Syntax.ExpressionStatement,this.expression=Xe,this.directive=bt},De.DoWhileStatement=function We(Xe,bt){this.type=Oe.Syntax.DoWhileStatement,this.body=Xe,this.test=bt},De.EmptyStatement=function We(){this.type=Oe.Syntax.EmptyStatement},De.ExportAllDeclaration=function We(Xe){this.type=Oe.Syntax.ExportAllDeclaration,this.source=Xe},De.ExportDefaultDeclaration=function We(Xe){this.type=Oe.Syntax.ExportDefaultDeclaration,this.declaration=Xe},De.ExportNamedDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.ExportNamedDeclaration,this.declaration=Xe,this.specifiers=bt,this.source=Cn},De.ExportSpecifier=function We(Xe,bt){this.type=Oe.Syntax.ExportSpecifier,this.exported=bt,this.local=Xe},De.ExpressionStatement=function We(Xe){this.type=Oe.Syntax.ExpressionStatement,this.expression=Xe},De.ForInStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.ForInStatement,this.left=Xe,this.right=bt,this.body=Cn,this.each=!1},De.ForOfStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.ForOfStatement,this.left=Xe,this.right=bt,this.body=Cn},De.ForStatement=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.ForStatement,this.init=Xe,this.test=bt,this.update=Cn,this.body=jr},De.FunctionDeclaration=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.FunctionDeclaration,this.id=Xe,this.params=bt,this.body=Cn,this.generator=jr,this.expression=!1,this.async=!1},De.FunctionExpression=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.FunctionExpression,this.id=Xe,this.params=bt,this.body=Cn,this.generator=jr,this.expression=!1,this.async=!1},De.Identifier=function We(Xe){this.type=Oe.Syntax.Identifier,this.name=Xe},De.IfStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.IfStatement,this.test=Xe,this.consequent=bt,this.alternate=Cn},De.ImportDeclaration=function We(Xe,bt){this.type=Oe.Syntax.ImportDeclaration,this.specifiers=Xe,this.source=bt},De.ImportDefaultSpecifier=function We(Xe){this.type=Oe.Syntax.ImportDefaultSpecifier,this.local=Xe},De.ImportNamespaceSpecifier=function We(Xe){this.type=Oe.Syntax.ImportNamespaceSpecifier,this.local=Xe},De.ImportSpecifier=function We(Xe,bt){this.type=Oe.Syntax.ImportSpecifier,this.local=Xe,this.imported=bt},De.LabeledStatement=function We(Xe,bt){this.type=Oe.Syntax.LabeledStatement,this.label=Xe,this.body=bt},De.Literal=function We(Xe,bt){this.type=Oe.Syntax.Literal,this.value=Xe,this.raw=bt},De.MetaProperty=function We(Xe,bt){this.type=Oe.Syntax.MetaProperty,this.meta=Xe,this.property=bt},De.MethodDefinition=function We(Xe,bt,Cn,jr,Y0){this.type=Oe.Syntax.MethodDefinition,this.key=Xe,this.computed=bt,this.value=Cn,this.kind=jr,this.static=Y0},De.Module=function We(Xe){this.type=Oe.Syntax.Program,this.body=Xe,this.sourceType="module"},De.NewExpression=function We(Xe,bt){this.type=Oe.Syntax.NewExpression,this.callee=Xe,this.arguments=bt},De.ObjectExpression=function We(Xe){this.type=Oe.Syntax.ObjectExpression,this.properties=Xe},De.ObjectPattern=function We(Xe){this.type=Oe.Syntax.ObjectPattern,this.properties=Xe},De.Property=function We(Xe,bt,Cn,jr,Y0,Gi){this.type=Oe.Syntax.Property,this.key=bt,this.computed=Cn,this.value=jr,this.kind=Xe,this.method=Y0,this.shorthand=Gi},De.RegexLiteral=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.Literal,this.value=Xe,this.raw=bt,this.regex={pattern:Cn,flags:jr}},De.RestElement=function We(Xe){this.type=Oe.Syntax.RestElement,this.argument=Xe},De.ReturnStatement=function We(Xe){this.type=Oe.Syntax.ReturnStatement,this.argument=Xe},De.Script=function We(Xe){this.type=Oe.Syntax.Program,this.body=Xe,this.sourceType="script"},De.SequenceExpression=function We(Xe){this.type=Oe.Syntax.SequenceExpression,this.expressions=Xe},De.SpreadElement=function We(Xe){this.type=Oe.Syntax.SpreadElement,this.argument=Xe},De.StaticMemberExpression=function We(Xe,bt){this.type=Oe.Syntax.MemberExpression,this.computed=!1,this.object=Xe,this.property=bt},De.Super=function We(){this.type=Oe.Syntax.Super},De.SwitchCase=function We(Xe,bt){this.type=Oe.Syntax.SwitchCase,this.test=Xe,this.consequent=bt},De.SwitchStatement=function We(Xe,bt){this.type=Oe.Syntax.SwitchStatement,this.discriminant=Xe,this.cases=bt},De.TaggedTemplateExpression=function We(Xe,bt){this.type=Oe.Syntax.TaggedTemplateExpression,this.tag=Xe,this.quasi=bt},De.TemplateElement=function We(Xe,bt){this.type=Oe.Syntax.TemplateElement,this.value=Xe,this.tail=bt},De.TemplateLiteral=function We(Xe,bt){this.type=Oe.Syntax.TemplateLiteral,this.quasis=Xe,this.expressions=bt},De.ThisExpression=function We(){this.type=Oe.Syntax.ThisExpression},De.ThrowStatement=function We(Xe){this.type=Oe.Syntax.ThrowStatement,this.argument=Xe},De.TryStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.TryStatement,this.block=Xe,this.handler=bt,this.finalizer=Cn},De.UnaryExpression=function We(Xe,bt){this.type=Oe.Syntax.UnaryExpression,this.operator=Xe,this.argument=bt,this.prefix=!0},De.UpdateExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.UpdateExpression,this.operator=Xe,this.argument=bt,this.prefix=Cn},De.VariableDeclaration=function We(Xe,bt){this.type=Oe.Syntax.VariableDeclaration,this.declarations=Xe,this.kind=bt},De.VariableDeclarator=function We(Xe,bt){this.type=Oe.Syntax.VariableDeclarator,this.id=Xe,this.init=bt},De.WhileStatement=function We(Xe,bt){this.type=Oe.Syntax.WhileStatement,this.test=Xe,this.body=bt},De.WithStatement=function We(Xe,bt){this.type=Oe.Syntax.WithStatement,this.object=Xe,this.body=bt},De.YieldExpression=function We(Xe,bt){this.type=Oe.Syntax.YieldExpression,this.argument=Xe,this.delegate=bt}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(9),dt=rt(10),Ge=rt(11),_e=rt(7),et=rt(12),Ve=rt(2),ve=rt(13),se="ArrowParameterPlaceHolder",ue=function(){function ae(D,T,O){void 0===T&&(T={}),this.config={range:"boolean"==typeof T.range&&T.range,loc:"boolean"==typeof T.loc&&T.loc,source:null,tokens:"boolean"==typeof T.tokens&&T.tokens,comment:"boolean"==typeof T.comment&&T.comment,tolerant:"boolean"==typeof T.tolerant&&T.tolerant},this.config.loc&&T.source&&null!==T.source&&(this.config.source=String(T.source)),this.delegate=O,this.errorHandler=new dt.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new et.Scanner(D,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return ae.prototype.throwError=function(D){for(var T=[],O=1;O0&&this.delegate)for(var T=0;T>="===D||">>>="===D||"&="===D||"^="===D||"|="===D},ae.prototype.isolateCoverGrammar=function(D){var T=this.context.isBindingElement,O=this.context.isAssignmentTarget,te=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Me=D.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=T,this.context.isAssignmentTarget=O,this.context.firstCoverInitializedNameError=te,Me},ae.prototype.inheritCoverGrammar=function(D){var T=this.context.isBindingElement,O=this.context.isAssignmentTarget,te=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Me=D.call(this);return this.context.isBindingElement=this.context.isBindingElement&&T,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&O,this.context.firstCoverInitializedNameError=te||this.context.firstCoverInitializedNameError,Me},ae.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},ae.prototype.parsePrimaryExpression=function(){var T,O,te,D=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),T=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(D,new _e.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal(O.value,te));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal("true"===O.value,te));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal(null,te));break;case 10:T=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,T=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":T=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":T=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,O=this.nextRegexToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.RegexLiteral(O.regex,te,O.pattern,O.flags));break;default:T=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?T=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?T=this.finalize(D,new _e.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?T=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),T=this.finalize(D,new _e.ThisExpression)):T=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:T=this.throwUnexpectedToken(this.nextToken())}return T},ae.prototype.parseSpreadElement=function(){var D=this.createNode();this.expect("...");var T=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(D,new _e.SpreadElement(T))},ae.prototype.parseArrayInitializer=function(){var D=this.createNode(),T=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else if(this.match("...")){var O=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),T.push(O)}else T.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(D,new _e.ArrayExpression(T))},ae.prototype.parsePropertyMethod=function(D){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var T=this.context.strict,O=this.context.allowStrictDirective;this.context.allowStrictDirective=D.simple;var te=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&D.firstRestricted&&this.tolerateUnexpectedToken(D.firstRestricted,D.message),this.context.strict&&D.stricted&&this.tolerateUnexpectedToken(D.stricted,D.message),this.context.strict=T,this.context.allowStrictDirective=O,te},ae.prototype.parsePropertyMethodFunction=function(){var T=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters(),Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(T,new _e.FunctionExpression(null,te.params,Me,!1))},ae.prototype.parsePropertyMethodAsyncFunction=function(){var D=this.createNode(),T=this.context.allowYield,O=this.context.await;this.context.allowYield=!1,this.context.await=!0;var te=this.parseFormalParameters(),Me=this.parsePropertyMethod(te);return this.context.allowYield=T,this.context.await=O,this.finalize(D,new _e.AsyncFunctionExpression(null,te.params,Me))},ae.prototype.parseObjectPropertyKey=function(){var O,D=this.createNode(),T=this.nextToken();switch(T.type){case 8:case 6:this.context.strict&&T.octal&&this.tolerateUnexpectedToken(T,Ge.Messages.StrictOctalLiteral);var te=this.getTokenRaw(T);O=this.finalize(D,new _e.Literal(T.value,te));break;case 3:case 1:case 5:case 4:O=this.finalize(D,new _e.Identifier(T.value));break;case 7:"["===T.value?(O=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):O=this.throwUnexpectedToken(T);break;default:O=this.throwUnexpectedToken(T)}return O},ae.prototype.isPropertyKey=function(D,T){return D.type===Ve.Syntax.Identifier&&D.name===T||D.type===Ve.Syntax.Literal&&D.value===T},ae.prototype.parseObjectProperty=function(D){var te,T=this.createNode(),O=this.lookahead,Me=null,Je=null,kt=!1,jt=!1,Wt=!1,wn=!1;if(3===O.type){var rn=O.value;this.nextToken(),kt=this.match("["),Me=(wn=!(this.hasLineTerminator||"async"!==rn||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(T,new _e.Identifier(rn))}else this.match("*")?this.nextToken():(kt=this.match("["),Me=this.parseObjectPropertyKey());var Mi=this.qualifiedPropertyName(this.lookahead);if(3===O.type&&!wn&&"get"===O.value&&Mi)te="get",kt=this.match("["),Me=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod();else if(3===O.type&&!wn&&"set"===O.value&&Mi)te="set",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseSetterMethod();else if(7===O.type&&"*"===O.value&&Mi)te="init",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),jt=!0;else if(Me||this.throwUnexpectedToken(this.lookahead),te="init",this.match(":")&&!wn)!kt&&this.isPropertyKey(Me,"__proto__")&&(D.value&&this.tolerateError(Ge.Messages.DuplicateProtoProperty),D.value=!0),this.nextToken(),Je=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Je=wn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),jt=!0;else if(3===O.type)if(rn=this.finalize(T,new _e.Identifier(O.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),Wt=!0;var zr=this.isolateCoverGrammar(this.parseAssignmentExpression);Je=this.finalize(T,new _e.AssignmentPattern(rn,zr))}else Wt=!0,Je=rn;else this.throwUnexpectedToken(this.nextToken());return this.finalize(T,new _e.Property(te,Me,kt,Je,jt,Wt))},ae.prototype.parseObjectInitializer=function(){var D=this.createNode();this.expect("{");for(var T=[],O={value:!1};!this.match("}");)T.push(this.parseObjectProperty(O)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(D,new _e.ObjectExpression(T))},ae.prototype.parseTemplateHead=function(){Oe.assert(this.lookahead.head,"Template literal must start with a template head");var D=this.createNode(),T=this.nextToken();return this.finalize(D,new _e.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ae.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var D=this.createNode(),T=this.nextToken();return this.finalize(D,new _e.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ae.prototype.parseTemplateLiteral=function(){var D=this.createNode(),T=[],O=[],te=this.parseTemplateHead();for(O.push(te);!te.tail;)T.push(this.parseExpression()),te=this.parseTemplateElement(),O.push(te);return this.finalize(D,new _e.TemplateLiteral(O,T))},ae.prototype.reinterpretExpressionAsPattern=function(D){switch(D.type){case Ve.Syntax.Identifier:case Ve.Syntax.MemberExpression:case Ve.Syntax.RestElement:case Ve.Syntax.AssignmentPattern:break;case Ve.Syntax.SpreadElement:D.type=Ve.Syntax.RestElement,this.reinterpretExpressionAsPattern(D.argument);break;case Ve.Syntax.ArrayExpression:D.type=Ve.Syntax.ArrayPattern;for(var T=0;T")||this.expect("=>"),D={type:se,params:[],async:!1};else{var T=this.lookahead,O=[];if(this.match("..."))D=this.parseRestElement(O),this.expect(")"),this.match("=>")||this.expect("=>"),D={type:se,params:[D],async:!1};else{var te=!1;if(this.context.isBindingElement=!0,D=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Me=[];for(this.context.isAssignmentTarget=!1,Me.push(D);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Je=0;Je")||this.expect("=>"),this.context.isBindingElement=!1,Je=0;Je")&&(D.type===Ve.Syntax.Identifier&&"yield"===D.name&&(te=!0,D={type:se,params:[D],async:!1}),!te)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),D.type===Ve.Syntax.SequenceExpression)for(Je=0;Je")){for(var jt=0;jt0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Me=[D,this.lookahead],Je=T,kt=this.isolateCoverGrammar(this.parseExponentiationExpression),jt=[Je,O.value,kt],Wt=[te];!((te=this.binaryPrecedence(this.lookahead))<=0);){for(;jt.length>2&&te<=Wt[Wt.length-1];){kt=jt.pop();var wn=jt.pop();Wt.pop(),Je=jt.pop(),Me.pop();var rn=this.startNode(Me[Me.length-1]);jt.push(this.finalize(rn,new _e.BinaryExpression(wn,Je,kt)))}jt.push(this.nextToken().value),Wt.push(te),Me.push(this.lookahead),jt.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Mi=jt.length-1;T=jt[Mi];for(var zr=Me.pop();Mi>1;){var Xr=Me.pop();rn=this.startNode(Xr,zr&&zr.lineStart),T=this.finalize(rn,new _e.BinaryExpression(wn=jt[Mi-1],jt[Mi-2],T)),Mi-=2,zr=Xr}}return T},ae.prototype.parseConditionalExpression=function(){var D=this.lookahead,T=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var O=this.context.allowIn;this.context.allowIn=!0;var te=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=O,this.expect(":");var Me=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(D),new _e.ConditionalExpression(T,te,Me)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return T},ae.prototype.checkPatternParam=function(D,T){switch(T.type){case Ve.Syntax.Identifier:this.validateParam(D,T,T.name);break;case Ve.Syntax.RestElement:this.checkPatternParam(D,T.argument);break;case Ve.Syntax.AssignmentPattern:this.checkPatternParam(D,T.left);break;case Ve.Syntax.ArrayPattern:for(var O=0;O")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Me=D.async,Je=this.reinterpretAsCoverFormalsList(D);if(Je){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var kt=this.context.strict,jt=this.context.allowStrictDirective;this.context.allowStrictDirective=Je.simple;var Wt=this.context.allowYield,wn=this.context.await;this.context.allowYield=!0,this.context.await=Me;var rn=this.startNode(T);this.expect("=>");var Mi=void 0;if(this.match("{")){var zr=this.context.allowIn;this.context.allowIn=!0,Mi=this.parseFunctionSourceElements(),this.context.allowIn=zr}else Mi=this.isolateCoverGrammar(this.parseAssignmentExpression);var Xr=Mi.type!==Ve.Syntax.BlockStatement;this.context.strict&&Je.firstRestricted&&this.throwUnexpectedToken(Je.firstRestricted,Je.message),this.context.strict&&Je.stricted&&this.tolerateUnexpectedToken(Je.stricted,Je.message),D=this.finalize(rn,Me?new _e.AsyncArrowFunctionExpression(Je.params,Mi,Xr):new _e.ArrowFunctionExpression(Je.params,Mi,Xr)),this.context.strict=kt,this.context.allowStrictDirective=jt,this.context.allowYield=Wt,this.context.await=wn}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(Ge.Messages.InvalidLHSInAssignment),this.context.strict&&D.type===Ve.Syntax.Identifier){var hs=D;this.scanner.isRestrictedWord(hs.name)&&this.tolerateUnexpectedToken(O,Ge.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(hs.name)&&this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(D):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var Ya=(O=this.nextToken()).value,tr=this.isolateCoverGrammar(this.parseAssignmentExpression);D=this.finalize(this.startNode(T),new _e.AssignmentExpression(Ya,D,tr)),this.context.firstCoverInitializedNameError=null}}return D},ae.prototype.parseExpression=function(){var D=this.lookahead,T=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var O=[];for(O.push(T);2!==this.lookahead.type&&this.match(",");)this.nextToken(),O.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(D),new _e.SequenceExpression(O))}return T},ae.prototype.parseStatementListItem=function(){var D;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.IllegalExportDeclaration),D=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.IllegalImportDeclaration),D=this.parseImportDeclaration();break;case"const":D=this.parseLexicalDeclaration({inFor:!1});break;case"function":D=this.parseFunctionDeclaration();break;case"class":D=this.parseClassDeclaration();break;case"let":D=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:D=this.parseStatement()}else D=this.parseStatement();return D},ae.prototype.parseBlock=function(){var D=this.createNode();this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseStatementListItem());return this.expect("}"),this.finalize(D,new _e.BlockStatement(T))},ae.prototype.parseLexicalBinding=function(D,T){var O=this.createNode(),Me=this.parsePattern([],D);this.context.strict&&Me.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(Me.name)&&this.tolerateError(Ge.Messages.StrictVarName);var Je=null;return"const"===D?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(Ge.Messages.DeclarationMissingInitializer,"const")):(!T.inFor&&Me.type!==Ve.Syntax.Identifier||this.match("="))&&(this.expect("="),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(O,new _e.VariableDeclarator(Me,Je))},ae.prototype.parseBindingList=function(D,T){for(var O=[this.parseLexicalBinding(D,T)];this.match(",");)this.nextToken(),O.push(this.parseLexicalBinding(D,T));return O},ae.prototype.isLexicalDeclaration=function(){var D=this.scanner.saveState();this.scanner.scanComments();var T=this.scanner.lex();return this.scanner.restoreState(D),3===T.type||7===T.type&&"["===T.value||7===T.type&&"{"===T.value||4===T.type&&"let"===T.value||4===T.type&&"yield"===T.value},ae.prototype.parseLexicalDeclaration=function(D){var T=this.createNode(),O=this.nextToken().value;Oe.assert("let"===O||"const"===O,"Lexical declaration must be either let or const");var te=this.parseBindingList(O,D);return this.consumeSemicolon(),this.finalize(T,new _e.VariableDeclaration(te,O))},ae.prototype.parseBindingRestElement=function(D,T){var O=this.createNode();this.expect("...");var te=this.parsePattern(D,T);return this.finalize(O,new _e.RestElement(te))},ae.prototype.parseArrayPattern=function(D,T){var O=this.createNode();this.expect("[");for(var te=[];!this.match("]");)if(this.match(","))this.nextToken(),te.push(null);else{if(this.match("...")){te.push(this.parseBindingRestElement(D,T));break}te.push(this.parsePatternWithDefault(D,T)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(O,new _e.ArrayPattern(te))},ae.prototype.parsePropertyPattern=function(D,T){var kt,jt,O=this.createNode(),te=!1,Me=!1;if(3===this.lookahead.type){var Wt=this.lookahead;kt=this.parseVariableIdentifier();var wn=this.finalize(O,new _e.Identifier(Wt.value));if(this.match("=")){D.push(Wt),Me=!0,this.nextToken();var rn=this.parseAssignmentExpression();jt=this.finalize(this.startNode(Wt),new _e.AssignmentPattern(wn,rn))}else this.match(":")?(this.expect(":"),jt=this.parsePatternWithDefault(D,T)):(D.push(Wt),Me=!0,jt=wn)}else te=this.match("["),kt=this.parseObjectPropertyKey(),this.expect(":"),jt=this.parsePatternWithDefault(D,T);return this.finalize(O,new _e.Property("init",kt,te,jt,!1,Me))},ae.prototype.parseObjectPattern=function(D,T){var O=this.createNode(),te=[];for(this.expect("{");!this.match("}");)te.push(this.parsePropertyPattern(D,T)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(O,new _e.ObjectPattern(te))},ae.prototype.parsePattern=function(D,T){var O;return this.match("[")?O=this.parseArrayPattern(D,T):this.match("{")?O=this.parseObjectPattern(D,T):(this.matchKeyword("let")&&("const"===T||"let"===T)&&this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.LetInLexicalBinding),D.push(this.lookahead),O=this.parseVariableIdentifier(T)),O},ae.prototype.parsePatternWithDefault=function(D,T){var O=this.lookahead,te=this.parsePattern(D,T);if(this.match("=")){this.nextToken();var Me=this.context.allowYield;this.context.allowYield=!0;var Je=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Me,te=this.finalize(this.startNode(O),new _e.AssignmentPattern(te,Je))}return te},ae.prototype.parseVariableIdentifier=function(D){var T=this.createNode(),O=this.nextToken();return 4===O.type&&"yield"===O.value?this.context.strict?this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(O):3!==O.type?this.context.strict&&4===O.type&&this.scanner.isStrictModeReservedWord(O.value)?this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord):(this.context.strict||"let"!==O.value||"var"!==D)&&this.throwUnexpectedToken(O):(this.context.isModule||this.context.await)&&3===O.type&&"await"===O.value&&this.tolerateUnexpectedToken(O),this.finalize(T,new _e.Identifier(O.value))},ae.prototype.parseVariableDeclaration=function(D){var T=this.createNode(),te=this.parsePattern([],"var");this.context.strict&&te.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(te.name)&&this.tolerateError(Ge.Messages.StrictVarName);var Me=null;return this.match("=")?(this.nextToken(),Me=this.isolateCoverGrammar(this.parseAssignmentExpression)):te.type!==Ve.Syntax.Identifier&&!D.inFor&&this.expect("="),this.finalize(T,new _e.VariableDeclarator(te,Me))},ae.prototype.parseVariableDeclarationList=function(D){var T={inFor:D.inFor},O=[];for(O.push(this.parseVariableDeclaration(T));this.match(",");)this.nextToken(),O.push(this.parseVariableDeclaration(T));return O},ae.prototype.parseVariableStatement=function(){var D=this.createNode();this.expectKeyword("var");var T=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(D,new _e.VariableDeclaration(T,"var"))},ae.prototype.parseEmptyStatement=function(){var D=this.createNode();return this.expect(";"),this.finalize(D,new _e.EmptyStatement)},ae.prototype.parseExpressionStatement=function(){var D=this.createNode(),T=this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ExpressionStatement(T))},ae.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(Ge.Messages.StrictFunction),this.parseStatement()},ae.prototype.parseIfStatement=function(){var T,D=this.createNode(),O=null;this.expectKeyword("if"),this.expect("(");var te=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),T=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),O=this.parseIfClause())),this.finalize(D,new _e.IfStatement(te,T,O))},ae.prototype.parseDoWhileStatement=function(){var D=this.createNode();this.expectKeyword("do");var T=this.context.inIteration;this.context.inIteration=!0;var O=this.parseStatement();this.context.inIteration=T,this.expectKeyword("while"),this.expect("(");var te=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(D,new _e.DoWhileStatement(O,te))},ae.prototype.parseWhileStatement=function(){var T,D=this.createNode();this.expectKeyword("while"),this.expect("(");var O=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var te=this.context.inIteration;this.context.inIteration=!0,T=this.parseStatement(),this.context.inIteration=te}return this.finalize(D,new _e.WhileStatement(O,T))},ae.prototype.parseForStatement=function(){var Me,Je,Xr,D=null,T=null,O=null,te=!0,kt=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){D=this.createNode(),this.nextToken();var jt=this.context.allowIn;this.context.allowIn=!1;var Wt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=jt,1===Wt.length&&this.matchKeyword("in")){var wn=Wt[0];wn.init&&(wn.id.type===Ve.Syntax.ArrayPattern||wn.id.type===Ve.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(Ge.Messages.ForInOfLoopInitializer,"for-in"),D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.nextToken(),Me=D,Je=this.parseExpression(),D=null}else 1===Wt.length&&null===Wt[0].init&&this.matchContextualKeyword("of")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.nextToken(),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1):(D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){D=this.createNode();var rn=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(jt=this.context.allowIn,this.context.allowIn=!1,Wt=this.parseBindingList(rn,{inFor:!0}),this.context.allowIn=jt,1===Wt.length&&null===Wt[0].init&&this.matchKeyword("in")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)),this.nextToken(),Me=D,Je=this.parseExpression(),D=null):1===Wt.length&&null===Wt[0].init&&this.matchContextualKeyword("of")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)),this.nextToken(),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1):(this.consumeSemicolon(),D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)))):(D=this.finalize(D,new _e.Identifier(rn)),this.nextToken(),Me=D,Je=this.parseExpression(),D=null)}else{var Mi=this.lookahead;if(jt=this.context.allowIn,this.context.allowIn=!1,D=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=jt,this.matchKeyword("in"))(!this.context.isAssignmentTarget||D.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(Ge.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(D),Me=D,Je=this.parseExpression(),D=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||D.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(Ge.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(D),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1;else{if(this.match(",")){for(var zr=[D];this.match(",");)this.nextToken(),zr.push(this.isolateCoverGrammar(this.parseAssignmentExpression));D=this.finalize(this.startNode(Mi),new _e.SequenceExpression(zr))}this.expect(";")}}if(typeof Me>"u"&&(this.match(";")||(T=this.parseExpression()),this.expect(";"),this.match(")")||(O=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Xr=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var hs=this.context.inIteration;this.context.inIteration=!0,Xr=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=hs}return this.finalize(kt,typeof Me>"u"?new _e.ForStatement(D,T,O,Xr):te?new _e.ForInStatement(Me,Je,Xr):new _e.ForOfStatement(Me,Je,Xr))},ae.prototype.parseContinueStatement=function(){var D=this.createNode();this.expectKeyword("continue");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var O=this.parseVariableIdentifier();T=O,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+O.name)||this.throwError(Ge.Messages.UnknownLabel,O.name)}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&this.throwError(Ge.Messages.IllegalContinue),this.finalize(D,new _e.ContinueStatement(T))},ae.prototype.parseBreakStatement=function(){var D=this.createNode();this.expectKeyword("break");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var O=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+O.name)||this.throwError(Ge.Messages.UnknownLabel,O.name),T=O}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(Ge.Messages.IllegalBreak),this.finalize(D,new _e.BreakStatement(T))},ae.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(Ge.Messages.IllegalReturn);var D=this.createNode();this.expectKeyword("return");var O=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ReturnStatement(O))},ae.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(Ge.Messages.StrictModeWith);var T,D=this.createNode();this.expectKeyword("with"),this.expect("(");var O=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),T=this.parseStatement()),this.finalize(D,new _e.WithStatement(O,T))},ae.prototype.parseSwitchCase=function(){var T,D=this.createNode();this.matchKeyword("default")?(this.nextToken(),T=null):(this.expectKeyword("case"),T=this.parseExpression()),this.expect(":");for(var O=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)O.push(this.parseStatementListItem());return this.finalize(D,new _e.SwitchCase(T,O))},ae.prototype.parseSwitchStatement=function(){var D=this.createNode();this.expectKeyword("switch"),this.expect("(");var T=this.parseExpression();this.expect(")");var O=this.context.inSwitch;this.context.inSwitch=!0;var te=[],Me=!1;for(this.expect("{");!this.match("}");){var Je=this.parseSwitchCase();null===Je.test&&(Me&&this.throwError(Ge.Messages.MultipleDefaultsInSwitch),Me=!0),te.push(Je)}return this.expect("}"),this.context.inSwitch=O,this.finalize(D,new _e.SwitchStatement(T,te))},ae.prototype.parseLabelledStatement=function(){var O,D=this.createNode(),T=this.parseExpression();if(T.type===Ve.Syntax.Identifier&&this.match(":")){this.nextToken();var te=T,Me="$"+te.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Me)&&this.throwError(Ge.Messages.Redeclaration,"Label",te.name),this.context.labelSet[Me]=!0;var Je=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Je=this.parseClassDeclaration();else if(this.matchKeyword("function")){var kt=this.lookahead,jt=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(kt,Ge.Messages.StrictFunction):jt.generator&&this.tolerateUnexpectedToken(kt,Ge.Messages.GeneratorInLegacyContext),Je=jt}else Je=this.parseStatement();delete this.context.labelSet[Me],O=new _e.LabeledStatement(te,Je)}else this.consumeSemicolon(),O=new _e.ExpressionStatement(T);return this.finalize(D,O)},ae.prototype.parseThrowStatement=function(){var D=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(Ge.Messages.NewlineAfterThrow);var T=this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ThrowStatement(T))},ae.prototype.parseCatchClause=function(){var D=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var T=[],O=this.parsePattern(T),te={},Me=0;Me0&&this.tolerateError(Ge.Messages.BadGetterArity);var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,false))},ae.prototype.parseSetterMethod=function(){var D=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters();1!==te.params.length?this.tolerateError(Ge.Messages.BadSetterArity):te.params[0]instanceof _e.RestElement&&this.tolerateError(Ge.Messages.BadSetterRestParameter);var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,false))},ae.prototype.parseGeneratorMethod=function(){var D=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters();this.context.allowYield=!1;var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,!0))},ae.prototype.isStartOfExpression=function(){var D=!0,T=this.lookahead.value;switch(this.lookahead.type){case 7:D="["===T||"("===T||"{"===T||"+"===T||"-"===T||"!"===T||"~"===T||"++"===T||"--"===T||"/"===T||"/="===T;break;case 4:D="class"===T||"delete"===T||"function"===T||"let"===T||"new"===T||"super"===T||"this"===T||"typeof"===T||"void"===T||"yield"===T}return D},ae.prototype.parseYieldExpression=function(){var D=this.createNode();this.expectKeyword("yield");var T=null,O=!1;if(!this.hasLineTerminator){var te=this.context.allowYield;this.context.allowYield=!1,(O=this.match("*"))?(this.nextToken(),T=this.parseAssignmentExpression()):this.isStartOfExpression()&&(T=this.parseAssignmentExpression()),this.context.allowYield=te}return this.finalize(D,new _e.YieldExpression(T,O))},ae.prototype.parseClassElement=function(D){var T=this.lookahead,O=this.createNode(),te="",Me=null,Je=null,kt=!1,jt=!1,Wt=!1,wn=!1;if(this.match("*"))this.nextToken();else if(kt=this.match("["),"static"===(Me=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(T=this.lookahead,Wt=!0,kt=this.match("["),this.match("*")?this.nextToken():Me=this.parseObjectPropertyKey()),3===T.type&&!this.hasLineTerminator&&"async"===T.value){var Mi=this.lookahead.value;":"!==Mi&&"("!==Mi&&"*"!==Mi&&(wn=!0,T=this.lookahead,Me=this.parseObjectPropertyKey(),3===T.type&&"constructor"===T.value&&this.tolerateUnexpectedToken(T,Ge.Messages.ConstructorIsAsync))}var zr=this.qualifiedPropertyName(this.lookahead);return 3===T.type?"get"===T.value&&zr?(te="get",kt=this.match("["),Me=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod()):"set"===T.value&&zr&&(te="set",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseSetterMethod()):7===T.type&&"*"===T.value&&zr&&(te="init",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),jt=!0),!te&&Me&&this.match("(")&&(te="init",Je=wn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),jt=!0),te||this.throwUnexpectedToken(this.lookahead),"init"===te&&(te="method"),kt||(Wt&&this.isPropertyKey(Me,"prototype")&&this.throwUnexpectedToken(T,Ge.Messages.StaticPrototype),!Wt&&this.isPropertyKey(Me,"constructor")&&(("method"!==te||!jt||Je&&Je.generator)&&this.throwUnexpectedToken(T,Ge.Messages.ConstructorSpecialMethod),D.value?this.throwUnexpectedToken(T,Ge.Messages.DuplicateConstructor):D.value=!0,te="constructor")),this.finalize(O,new _e.MethodDefinition(Me,kt,Je,te,Wt))},ae.prototype.parseClassElementList=function(){var D=[],T={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():D.push(this.parseClassElement(T));return this.expect("}"),D},ae.prototype.parseClassBody=function(){var D=this.createNode(),T=this.parseClassElementList();return this.finalize(D,new _e.ClassBody(T))},ae.prototype.parseClassDeclaration=function(D){var T=this.createNode(),O=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var te=D&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Me=null;this.matchKeyword("extends")&&(this.nextToken(),Me=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Je=this.parseClassBody();return this.context.strict=O,this.finalize(T,new _e.ClassDeclaration(te,Me,Je))},ae.prototype.parseClassExpression=function(){var D=this.createNode(),T=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var O=3===this.lookahead.type?this.parseVariableIdentifier():null,te=null;this.matchKeyword("extends")&&(this.nextToken(),te=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Me=this.parseClassBody();return this.context.strict=T,this.finalize(D,new _e.ClassExpression(O,te,Me))},ae.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var D=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(D,new _e.Module(T))},ae.prototype.parseScript=function(){for(var D=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(D,new _e.Script(T))},ae.prototype.parseModuleSpecifier=function(){var D=this.createNode();8!==this.lookahead.type&&this.throwError(Ge.Messages.InvalidModuleSpecifier);var T=this.nextToken(),O=this.getTokenRaw(T);return this.finalize(D,new _e.Literal(T.value,O))},ae.prototype.parseImportSpecifier=function(){var T,O,D=this.createNode();return 3===this.lookahead.type?(O=T=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseVariableIdentifier())):(O=T=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),O=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(D,new _e.ImportSpecifier(O,T))},ae.prototype.parseNamedImports=function(){this.expect("{");for(var D=[];!this.match("}");)D.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),D},ae.prototype.parseImportDefaultSpecifier=function(){var D=this.createNode(),T=this.parseIdentifierName();return this.finalize(D,new _e.ImportDefaultSpecifier(T))},ae.prototype.parseImportNamespaceSpecifier=function(){var D=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(Ge.Messages.NoAsAfterImportNamespace),this.nextToken();var T=this.parseIdentifierName();return this.finalize(D,new _e.ImportNamespaceSpecifier(T))},ae.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(Ge.Messages.IllegalImportDeclaration);var D=this.createNode();this.expectKeyword("import");var T,O=[];return 8===this.lookahead.type||(this.match("{")?O=O.concat(this.parseNamedImports()):this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(O.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.match("{")?O=O.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),T=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(D,new _e.ImportDeclaration(O,T))},ae.prototype.parseExportSpecifier=function(){var D=this.createNode(),T=this.parseIdentifierName(),O=T;return this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseIdentifierName()),this.finalize(D,new _e.ExportSpecifier(T,O))},ae.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(Ge.Messages.IllegalExportDeclaration);var T,D=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var O=this.parseFunctionDeclaration(!0);T=this.finalize(D,new _e.ExportDefaultDeclaration(O))}else this.matchKeyword("class")?(O=this.parseClassDeclaration(!0),T=this.finalize(D,new _e.ExportDefaultDeclaration(O))):this.matchContextualKeyword("async")?(O=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),T=this.finalize(D,new _e.ExportDefaultDeclaration(O))):(this.matchContextualKeyword("from")&&this.throwError(Ge.Messages.UnexpectedToken,this.lookahead.value),O=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),T=this.finalize(D,new _e.ExportDefaultDeclaration(O)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Me=this.parseModuleSpecifier();this.consumeSemicolon(),T=this.finalize(D,new _e.ExportAllDeclaration(Me))}else if(4===this.lookahead.type){switch(O=void 0,this.lookahead.value){case"let":case"const":O=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":O=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}T=this.finalize(D,new _e.ExportNamedDeclaration(O,[],null))}else if(this.matchAsyncFunction())O=this.parseFunctionDeclaration(),T=this.finalize(D,new _e.ExportNamedDeclaration(O,[],null));else{var Je=[],kt=null,jt=!1;for(this.expect("{");!this.match("}");)jt=jt||this.matchKeyword("default"),Je.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),kt=this.parseModuleSpecifier(),this.consumeSemicolon()):jt?this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),T=this.finalize(D,new _e.ExportNamedDeclaration(null,Je,kt))}return T},ae}();De.Parser=ue},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.assert=function rt(Oe,dt){if(!Oe)throw new Error("ASSERT: "+dt)}},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var rt=function(){function Oe(){this.errors=[],this.tolerant=!1}return Oe.prototype.recordError=function(dt){this.errors.push(dt)},Oe.prototype.tolerate=function(dt){if(!this.tolerant)throw dt;this.recordError(dt)},Oe.prototype.constructError=function(dt,Ge){var _e=new Error(dt);try{throw _e}catch(et){Object.create&&Object.defineProperty&&(_e=Object.create(et),Object.defineProperty(_e,"column",{value:Ge}))}return _e},Oe.prototype.createError=function(dt,Ge,_e,et){var ve=this.constructError("Line "+Ge+": "+et,_e);return ve.index=dt,ve.lineNumber=Ge,ve.description=et,ve},Oe.prototype.throwError=function(dt,Ge,_e,et){throw this.createError(dt,Ge,_e,et)},Oe.prototype.tolerateError=function(dt,Ge,_e,et){var Ve=this.createError(dt,Ge,_e,et);if(!this.tolerant)throw Ve;this.recordError(Ve)},Oe}();De.ErrorHandler=rt},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(9),dt=rt(4),Ge=rt(11);function _e(ve){return"0123456789abcdef".indexOf(ve.toLowerCase())}function et(ve){return"01234567".indexOf(ve)}var Ve=function(){function ve(se,ue){this.source=se,this.errorHandler=ue,this.trackComment=!1,this.isModule=!1,this.length=se.length,this.index=0,this.lineNumber=se.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return ve.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},ve.prototype.restoreState=function(se){this.index=se.index,this.lineNumber=se.lineNumber,this.lineStart=se.lineStart},ve.prototype.eof=function(){return this.index>=this.length},ve.prototype.throwUnexpectedToken=function(se){return void 0===se&&(se=Ge.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,se)},ve.prototype.tolerateUnexpectedToken=function(se){void 0===se&&(se=Ge.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,se)},ve.prototype.skipSingleLineComment=function(se){var ae,D,ue=[];for(this.trackComment&&(ue=[],ae=this.index-se,D={start:{line:this.lineNumber,column:this.index-this.lineStart-se},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(++this.index,dt.Character.isLineTerminator(T))return this.trackComment&&(D.end={line:this.lineNumber,column:this.index-this.lineStart-1},ue.push({multiLine:!1,slice:[ae+se,this.index-1],range:[ae,this.index-1],loc:D})),13===T&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ue}return this.trackComment&&(D.end={line:this.lineNumber,column:this.index-this.lineStart},ue.push({multiLine:!1,slice:[ae+se,this.index],range:[ae,this.index],loc:D})),ue},ve.prototype.skipMultiLineComment=function(){var ue,ae,se=[];for(this.trackComment&&(se=[],ue=this.index-2,ae={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var D=this.source.charCodeAt(this.index);if(dt.Character.isLineTerminator(D))13===D&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===D){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(ae.end={line:this.lineNumber,column:this.index-this.lineStart},se.push({multiLine:!0,slice:[ue+2,this.index-2],range:[ue,this.index],loc:ae})),se;++this.index}else++this.index}return this.trackComment&&(ae.end={line:this.lineNumber,column:this.index-this.lineStart},se.push({multiLine:!0,slice:[ue+2,this.index],range:[ue,this.index],loc:ae})),this.tolerateUnexpectedToken(),se},ve.prototype.scanComments=function(){var se;this.trackComment&&(se=[]);for(var ue=0===this.index;!this.eof();){var ae=this.source.charCodeAt(this.index);if(dt.Character.isWhiteSpace(ae))++this.index;else if(dt.Character.isLineTerminator(ae))++this.index,13===ae&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ue=!0;else if(47===ae)if(47===(ae=this.source.charCodeAt(this.index+1))){this.index+=2;var D=this.skipSingleLineComment(2);this.trackComment&&(se=se.concat(D)),ue=!0}else{if(42!==ae)break;this.index+=2,D=this.skipMultiLineComment(),this.trackComment&&(se=se.concat(D))}else if(ue&&45===ae){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,D=this.skipSingleLineComment(3),this.trackComment&&(se=se.concat(D))}else{if(60!==ae||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,D=this.skipSingleLineComment(4),this.trackComment&&(se=se.concat(D))}}return se},ve.prototype.isFutureReservedWord=function(se){switch(se){case"enum":case"export":case"import":case"super":return!0;default:return!1}},ve.prototype.isStrictModeReservedWord=function(se){switch(se){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},ve.prototype.isRestrictedWord=function(se){return"eval"===se||"arguments"===se},ve.prototype.isKeyword=function(se){switch(se.length){case 2:return"if"===se||"in"===se||"do"===se;case 3:return"var"===se||"for"===se||"new"===se||"try"===se||"let"===se;case 4:return"this"===se||"else"===se||"case"===se||"void"===se||"with"===se||"enum"===se;case 5:return"while"===se||"break"===se||"catch"===se||"throw"===se||"const"===se||"yield"===se||"class"===se||"super"===se;case 6:return"return"===se||"typeof"===se||"delete"===se||"switch"===se||"export"===se||"import"===se;case 7:return"default"===se||"finally"===se||"extends"===se;case 8:return"function"===se||"continue"===se||"debugger"===se;case 10:return"instanceof"===se;default:return!1}},ve.prototype.codePointAt=function(se){var ue=this.source.charCodeAt(se);if(ue>=55296&&ue<=56319){var ae=this.source.charCodeAt(se+1);ae>=56320&&ae<=57343&&(ue=1024*(ue-55296)+ae-56320+65536)}return ue},ve.prototype.scanHexEscape=function(se){for(var ue="u"===se?4:2,ae=0,D=0;D1114111||"}"!==se)&&this.throwUnexpectedToken(),dt.Character.fromCodePoint(ue)},ve.prototype.getIdentifier=function(){for(var se=this.index++;!this.eof();){var ue=this.source.charCodeAt(this.index);if(92===ue)return this.index=se,this.getComplexIdentifier();if(ue>=55296&&ue<57343)return this.index=se,this.getComplexIdentifier();if(!dt.Character.isIdentifierPart(ue))break;++this.index}return this.source.slice(se,this.index)},ve.prototype.getComplexIdentifier=function(){var ae,se=this.codePointAt(this.index),ue=dt.Character.fromCodePoint(se);for(this.index+=ue.length,92===se&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ae=this.scanUnicodeCodePointEscape()):(null===(ae=this.scanHexEscape("u"))||"\\"===ae||!dt.Character.isIdentifierStart(ae.charCodeAt(0)))&&this.throwUnexpectedToken(),ue=ae);!this.eof()&&(se=this.codePointAt(this.index),dt.Character.isIdentifierPart(se));)ue+=ae=dt.Character.fromCodePoint(se),this.index+=ae.length,92===se&&(ue=ue.substr(0,ue.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ae=this.scanUnicodeCodePointEscape()):(null===(ae=this.scanHexEscape("u"))||"\\"===ae||!dt.Character.isIdentifierPart(ae.charCodeAt(0)))&&this.throwUnexpectedToken(),ue+=ae);return ue},ve.prototype.octalToDecimal=function(se){var ue="0"!==se,ae=et(se);return!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ue=!0,ae=8*ae+et(this.source[this.index++]),"0123".indexOf(se)>=0&&!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ae=8*ae+et(this.source[this.index++]))),{code:ae,octal:ue}},ve.prototype.scanIdentifier=function(){var se,ue=this.index,ae=92===this.source.charCodeAt(ue)?this.getComplexIdentifier():this.getIdentifier();if(3!=(se=1===ae.length?3:this.isKeyword(ae)?4:"null"===ae?5:"true"===ae||"false"===ae?1:3)&&ue+ae.length!==this.index){var D=this.index;this.index=ue,this.tolerateUnexpectedToken(Ge.Messages.InvalidEscapedReservedWord),this.index=D}return{type:se,value:ae,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ue,end:this.index}},ve.prototype.scanPunctuator=function(){var se=this.index,ue=this.source[this.index];switch(ue){case"(":case"{":"{"===ue&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,ue="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(ue=this.source.substr(this.index,4))?this.index+=4:"==="===(ue=ue.substr(0,3))||"!=="===ue||">>>"===ue||"<<="===ue||">>="===ue||"**="===ue?this.index+=3:"&&"===(ue=ue.substr(0,2))||"||"===ue||"=="===ue||"!="===ue||"+="===ue||"-="===ue||"*="===ue||"/="===ue||"++"===ue||"--"===ue||"<<"===ue||">>"===ue||"&="===ue||"|="===ue||"^="===ue||"%="===ue||"<="===ue||">="===ue||"=>"===ue||"**"===ue?this.index+=2:"<>=!+-*%&|^/".indexOf(ue=this.source[this.index])>=0&&++this.index}return this.index===se&&this.throwUnexpectedToken(),{type:7,value:ue,lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanHexLiteral=function(se){for(var ue="";!this.eof()&&dt.Character.isHexDigit(this.source.charCodeAt(this.index));)ue+=this.source[this.index++];return 0===ue.length&&this.throwUnexpectedToken(),dt.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+ue,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanBinaryLiteral=function(se){for(var ae,ue="";!this.eof()&&("0"===(ae=this.source[this.index])||"1"===ae);)ue+=this.source[this.index++];return 0===ue.length&&this.throwUnexpectedToken(),this.eof()||(ae=this.source.charCodeAt(this.index),(dt.Character.isIdentifierStart(ae)||dt.Character.isDecimalDigit(ae))&&this.throwUnexpectedToken()),{type:6,value:parseInt(ue,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanOctalLiteral=function(se,ue){var ae="",D=!1;for(dt.Character.isOctalDigit(se.charCodeAt(0))?(D=!0,ae="0"+this.source[this.index++]):++this.index;!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index));)ae+=this.source[this.index++];return!D&&0===ae.length&&this.throwUnexpectedToken(),(dt.Character.isIdentifierStart(this.source.charCodeAt(this.index))||dt.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(ae,8),octal:D,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ue,end:this.index}},ve.prototype.isImplicitOctalLiteral=function(){for(var se=this.index+1;se=0&&(D=D.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(O,te,Me){var Je=parseInt(te||Me,16);return Je>1114111&&T.throwUnexpectedToken(Ge.Messages.InvalidRegExp),Je<=65535?String.fromCharCode(Je):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(D)}catch{this.throwUnexpectedToken(Ge.Messages.InvalidRegExp)}try{return new RegExp(se,ue)}catch{return null}},ve.prototype.scanRegExpBody=function(){var se=this.source[this.index];Oe.assert("/"===se,"Regular expression literal must start with a slash");for(var ue=this.source[this.index++],ae=!1,D=!1;!this.eof();)if(ue+=se=this.source[this.index++],"\\"===se)se=this.source[this.index++],dt.Character.isLineTerminator(se.charCodeAt(0))&&this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp),ue+=se;else if(dt.Character.isLineTerminator(se.charCodeAt(0)))this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp);else if(ae)"]"===se&&(ae=!1);else{if("/"===se){D=!0;break}"["===se&&(ae=!0)}return D||this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp),ue.substr(1,ue.length-2)},ve.prototype.scanRegExpFlags=function(){for(var ue="";!this.eof();){var ae=this.source[this.index];if(!dt.Character.isIdentifierPart(ae.charCodeAt(0)))break;if(++this.index,"\\"!==ae||this.eof())ue+=ae;else if("u"===(ae=this.source[this.index])){++this.index;var D=this.index,T=this.scanHexEscape("u");if(null!==T)for(ue+=T;D=55296&&se<57343&&dt.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},ve}();De.Scanner=Ve},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.TokenName={},De.TokenName[1]="Boolean",De.TokenName[2]="",De.TokenName[3]="Identifier",De.TokenName[4]="Keyword",De.TokenName[5]="Null",De.TokenName[6]="Numeric",De.TokenName[7]="Punctuator",De.TokenName[8]="String",De.TokenName[9]="RegularExpression",De.TokenName[10]="Template"},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(10),dt=rt(12),Ge=rt(13),_e=function(){function Ve(){this.values=[],this.curly=this.paren=-1}return Ve.prototype.beforeFunctionExpression=function(ve){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(ve)>=0},Ve.prototype.isRegexStart=function(){var ve=this.values[this.values.length-1],se=null!==ve;switch(ve){case"this":case"]":se=!1;break;case")":var ue=this.values[this.paren-1];se="if"===ue||"while"===ue||"for"===ue||"with"===ue;break;case"}":if(se=!1,"function"===this.values[this.curly-3])se=!!(ae=this.values[this.curly-4])&&!this.beforeFunctionExpression(ae);else if("function"===this.values[this.curly-4]){var ae;se=!(ae=this.values[this.curly-5])||!this.beforeFunctionExpression(ae)}}return se},Ve.prototype.push=function(ve){7===ve.type||4===ve.type?("{"===ve.value?this.curly=this.values.length:"("===ve.value&&(this.paren=this.values.length),this.values.push(ve.value)):this.values.push(null)},Ve}(),et=function(){function Ve(ve,se){this.errorHandler=new Oe.ErrorHandler,this.errorHandler.tolerant=!!se&&"boolean"==typeof se.tolerant&&se.tolerant,this.scanner=new dt.Scanner(ve,this.errorHandler),this.scanner.trackComment=!!se&&"boolean"==typeof se.comment&&se.comment,this.trackRange=!!se&&"boolean"==typeof se.range&&se.range,this.trackLoc=!!se&&"boolean"==typeof se.loc&&se.loc,this.buffer=[],this.reader=new _e}return Ve.prototype.errors=function(){return this.errorHandler.errors},Ve.prototype.getNextToken=function(){if(0===this.buffer.length){var ve=this.scanner.scanComments();if(this.scanner.trackComment)for(var se=0;se=ae.status}function et(ue){try{ue.dispatchEvent(new MouseEvent("click"))}catch{var ae=document.createEvent("MouseEvents");ae.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ue.dispatchEvent(ae)}}var Ve="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ve=Ve.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),se=Ve.saveAs||("object"!=typeof window||window!==Ve?function(){}:"download"in HTMLAnchorElement.prototype&&!ve?function(ue,ae,D){var T=Ve.URL||Ve.webkitURL,O=document.createElement("a");O.download=ae=ae||ue.name||"download",O.rel="noopener","string"==typeof ue?(O.href=ue,O.origin===location.origin?et(O):_e(O.href)?Ge(ue,ae,D):et(O,O.target="_blank")):(O.href=T.createObjectURL(ue),setTimeout(function(){T.revokeObjectURL(O.href)},4e4),setTimeout(function(){et(O)},0))}:"msSaveOrOpenBlob"in navigator?function(ue,ae,D){if(ae=ae||ue.name||"download","string"!=typeof ue)navigator.msSaveOrOpenBlob(function dt(ue,ae){return typeof ae>"u"?ae={autoBom:!1}:"object"!=typeof ae&&(console.warn("Deprecated: Expected third argument to be a object"),ae={autoBom:!ae}),ae.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ue.type)?new Blob(["\ufeff",ue],{type:ue.type}):ue}(ue,D),ae);else if(_e(ue))Ge(ue,ae,D);else{var T=document.createElement("a");T.href=ue,T.target="_blank",setTimeout(function(){et(T)})}}:function(ue,ae,D,T){if((T=T||open("","_blank"))&&(T.document.title=T.document.body.innerText="downloading..."),"string"==typeof ue)return Ge(ue,ae,D);var O="application/octet-stream"===ue.type,te=/constructor/i.test(Ve.HTMLElement)||Ve.safari,Me=/CriOS\/[\d]+/.test(navigator.userAgent);if((Me||O&&te||ve)&&typeof FileReader<"u"){var Je=new FileReader;Je.onloadend=function(){var Wt=Je.result;Wt=Me?Wt:Wt.replace(/^data:[^;]*;/,"data:attachment/file;"),T?T.location.href=Wt:location=Wt,T=null},Je.readAsDataURL(ue)}else{var kt=Ve.URL||Ve.webkitURL,jt=kt.createObjectURL(ue);T?T.location=jt:location.href=jt,T=null,setTimeout(function(){kt.revokeObjectURL(jt)},4e4)}});Ve.saveAs=se.saveAs=se,Yt.exports=se})?De.apply(Tn,[]):De)&&(Yt.exports=Oe)},461:(Yt,Tn)=>{Tn.read=function(De,rt,Oe,dt,Ge){var _e,et,Ve=8*Ge-dt-1,ve=(1<>1,ue=-7,ae=Oe?Ge-1:0,D=Oe?-1:1,T=De[rt+ae];for(ae+=D,_e=T&(1<<-ue)-1,T>>=-ue,ue+=Ve;ue>0;_e=256*_e+De[rt+ae],ae+=D,ue-=8);for(et=_e&(1<<-ue)-1,_e>>=-ue,ue+=dt;ue>0;et=256*et+De[rt+ae],ae+=D,ue-=8);if(0===_e)_e=1-se;else{if(_e===ve)return et?NaN:1/0*(T?-1:1);et+=Math.pow(2,dt),_e-=se}return(T?-1:1)*et*Math.pow(2,_e-dt)},Tn.write=function(De,rt,Oe,dt,Ge,_e){var et,Ve,ve,se=8*_e-Ge-1,ue=(1<>1,D=23===Ge?Math.pow(2,-24)-Math.pow(2,-77):0,T=dt?0:_e-1,O=dt?1:-1,te=rt<0||0===rt&&1/rt<0?1:0;for(rt=Math.abs(rt),isNaN(rt)||rt===1/0?(Ve=isNaN(rt)?1:0,et=ue):(et=Math.floor(Math.log(rt)/Math.LN2),rt*(ve=Math.pow(2,-et))<1&&(et--,ve*=2),(rt+=et+ae>=1?D/ve:D*Math.pow(2,1-ae))*ve>=2&&(et++,ve/=2),et+ae>=ue?(Ve=0,et=ue):et+ae>=1?(Ve=(rt*ve-1)*Math.pow(2,Ge),et+=ae):(Ve=rt*Math.pow(2,ae-1)*Math.pow(2,Ge),et=0));Ge>=8;De[Oe+T]=255&Ve,T+=O,Ve/=256,Ge-=8);for(et=et<0;De[Oe+T]=255&et,T+=O,et/=256,se-=8);De[Oe+T-O]|=128*te}},870:(Yt,Tn,De)=>{"use strict";var rt=De(133);Yt.exports=rt},133:(Yt,Tn,De)=>{"use strict";var rt=De(840),Oe=De(34);function dt(Ge){return function(){throw new Error("Function "+Ge+" is deprecated and cannot be used.")}}Yt.exports.Type=De(647),Yt.exports.Schema=De(372),Yt.exports.FAILSAFE_SCHEMA=De(746),Yt.exports.JSON_SCHEMA=De(147),Yt.exports.CORE_SCHEMA=De(192),Yt.exports.DEFAULT_SAFE_SCHEMA=De(31),Yt.exports.DEFAULT_FULL_SCHEMA=De(94),Yt.exports.load=rt.load,Yt.exports.loadAll=rt.loadAll,Yt.exports.safeLoad=rt.safeLoad,Yt.exports.safeLoadAll=rt.safeLoadAll,Yt.exports.dump=Oe.dump,Yt.exports.safeDump=Oe.safeDump,Yt.exports.YAMLException=De(314),Yt.exports.MINIMAL_SCHEMA=De(746),Yt.exports.SAFE_SCHEMA=De(31),Yt.exports.DEFAULT_SCHEMA=De(94),Yt.exports.scan=dt("scan"),Yt.exports.parse=dt("parse"),Yt.exports.compose=dt("compose"),Yt.exports.addConstructor=dt("addConstructor")},997:Yt=>{"use strict";function Tn(_e){return typeof _e>"u"||null===_e}Yt.exports.isNothing=Tn,Yt.exports.isObject=function De(_e){return"object"==typeof _e&&null!==_e},Yt.exports.toArray=function rt(_e){return Array.isArray(_e)?_e:Tn(_e)?[]:[_e]},Yt.exports.repeat=function dt(_e,et){var ve,Ve="";for(ve=0;ve{"use strict";var rt=De(997),Oe=De(314),dt=De(94),Ge=De(31),_e=Object.prototype.toString,et=Object.prototype.hasOwnProperty,Ve=9,ve=10,se=13,ue=32,ae=33,D=34,T=35,O=37,te=38,Me=39,Je=42,kt=44,jt=45,Wt=58,wn=61,rn=62,Mi=63,zr=64,Xr=91,hs=93,Ya=96,tr=123,mu=124,Sa=125,yn={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Cd=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Kn(pe){var yt,Nt,Kt;if(yt=pe.toString(16).toUpperCase(),pe<=255)Nt="x",Kt=2;else if(pe<=65535)Nt="u",Kt=4;else{if(!(pe<=4294967295))throw new Oe("code point within a string may not be greater than 0xFFFFFFFF");Nt="U",Kt=8}return"\\"+Nt+rt.repeat("0",Kt-yt.length)+yt}function Nc(pe){this.schema=pe.schema||dt,this.indent=Math.max(1,pe.indent||2),this.noArrayIndent=pe.noArrayIndent||!1,this.skipInvalid=pe.skipInvalid||!1,this.flowLevel=rt.isNothing(pe.flowLevel)?-1:pe.flowLevel,this.styleMap=function kd(pe,yt){var Nt,Kt,Xt,Pt,dn,qt,We;if(null===yt)return{};for(Nt={},Xt=0,Pt=(Kt=Object.keys(yt)).length;Xt0?pe.charCodeAt(Pt-1):null,jr=jr&&pl(dn,qt)}else{for(Pt=0;PtKt&&" "!==pe[Cn+1],Cn=Pt);else if(!Da(dn))return Ja;qt=Pt>0?pe.charCodeAt(Pt-1):null,jr=jr&&pl(dn,qt)}Xe=Xe||bt&&Pt-Cn-1>Kt&&" "!==pe[Cn+1]}return We||Xe?Nt>9&&Sd(pe)?Ja:Xe?vu:Dd:jr&&!Xt(pe)?Fc:Oc}(yt,Kt||pe.flowLevel>-1&&Nt>=pe.flowLevel,pe.indent,Pt,function qt(We){return function Co(pe,yt){var Nt,Kt;for(Nt=0,Kt=pe.implicitTypes.length;Nt"+ml(yt,pe.indent)+Te(gu(function W(pe,yt){for(var Pt,dn,Nt=/(\n+)([^\n]*)/g,Kt=(Xe=void 0,Xe=pe.indexOf("\n"),Nt.lastIndex=Xe=-1!==Xe?Xe:pe.length,ee(pe.slice(0,Xe),yt)),Xt="\n"===pe[0]||" "===pe[0];dn=Nt.exec(pe);){var We=dn[2];Pt=" "===We[0],Kt+=dn[1]+(Xt||Pt||""===We?"":"\n")+ee(We,yt),Xt=Pt}var Xe;return Kt}(yt,Pt),Xt));case Ja:return'"'+function Fe(pe){for(var Nt,Kt,Xt,yt="",Pt=0;Pt=55296&&Nt<=56319&&(Kt=pe.charCodeAt(Pt+1))>=56320&&Kt<=57343?(yt+=Kn(1024*(Nt-55296)+Kt-56320+65536),Pt++):yt+=!(Xt=yn[Nt])&&Da(Nt)?pe[Pt]:Xt||Kn(Nt);return yt}(yt)+'"';default:throw new Oe("impossible error: invalid scalar style")}}()}function ml(pe,yt){var Nt=Sd(pe)?String(yt):"",Kt="\n"===pe[pe.length-1];return Nt+(!Kt||"\n"!==pe[pe.length-2]&&"\n"!==pe?Kt?"":"-":"+")+"\n"}function Te(pe){return"\n"===pe[pe.length-1]?pe.slice(0,-1):pe}function ee(pe,yt){if(""===pe||" "===pe[0])return pe;for(var Kt,Pt,Nt=/ [^ ]/g,Xt=0,dn=0,qt=0,We="";Kt=Nt.exec(pe);)(qt=Kt.index)-Xt>yt&&(We+="\n"+pe.slice(Xt,Pt=dn>Xt?dn:qt),Xt=Pt+1),dn=qt;return We+="\n",(We+=pe.length-Xt>yt&&dn>Xt?pe.slice(Xt,dn)+"\n"+pe.slice(dn+1):pe.slice(Xt)).slice(1)}function A(pe,yt,Nt){var Kt,Xt,Pt,dn,qt,We;for(Pt=0,dn=(Xt=Nt?pe.explicitTypes:pe.implicitTypes).length;Pt tag resolver accepts not "'+We+'" style');Kt=qt.represent[We](yt,We)}pe.dump=Kt}return!0}return!1}function st(pe,yt,Nt,Kt,Xt,Pt){pe.tag=null,pe.dump=Nt,A(pe,Nt,!1)||A(pe,Nt,!0);var dn=_e.call(pe.dump);Kt&&(Kt=pe.flowLevel<0||pe.flowLevel>yt);var We,Xe,qt="[object Object]"===dn||"[object Array]"===dn;if(qt&&(Xe=-1!==(We=pe.duplicates.indexOf(Nt))),(null!==pe.tag&&"?"!==pe.tag||Xe||2!==pe.indent&&yt>0)&&(Xt=!1),Xe&&pe.usedDuplicates[We])pe.dump="*ref_"+We;else{if(qt&&Xe&&!pe.usedDuplicates[We]&&(pe.usedDuplicates[We]=!0),"[object Object]"===dn)Kt&&0!==Object.keys(pe.dump).length?(function nr(pe,yt,Nt,Kt){var qt,We,Xe,bt,Cn,jr,Xt="",Pt=pe.tag,dn=Object.keys(Nt);if(!0===pe.sortKeys)dn.sort();else if("function"==typeof pe.sortKeys)dn.sort(pe.sortKeys);else if(pe.sortKeys)throw new Oe("sortKeys must be a boolean or a function");for(qt=0,We=dn.length;qt1024)&&(pe.dump&&ve===pe.dump.charCodeAt(0)?jr+="?":jr+="? "),jr+=pe.dump,Cn&&(jr+=Ro(pe,yt)),st(pe,yt+1,bt,!0,Cn)&&(pe.dump&&ve===pe.dump.charCodeAt(0)?jr+=":":jr+=": ",Xt+=jr+=pe.dump));pe.tag=Pt,pe.dump=Xt||"{}"}(pe,yt,pe.dump,Xt),Xe&&(pe.dump="&ref_"+We+pe.dump)):(function Qt(pe,yt,Nt){var dn,qt,We,Xe,bt,Kt="",Xt=pe.tag,Pt=Object.keys(Nt);for(dn=0,qt=Pt.length;dn1024&&(bt+="? "),bt+=pe.dump+(pe.condenseFlow?'"':"")+":"+(pe.condenseFlow?"":" "),st(pe,yt,Xe,!1,!1)&&(Kt+=bt+=pe.dump));pe.tag=Xt,pe.dump="{"+Kt+"}"}(pe,yt,pe.dump),Xe&&(pe.dump="&ref_"+We+" "+pe.dump));else if("[object Array]"===dn){var bt=pe.noArrayIndent&&yt>0?yt-1:yt;Kt&&0!==pe.dump.length?(function zt(pe,yt,Nt,Kt){var dn,qt,Xt="",Pt=pe.tag;for(dn=0,qt=Nt.length;dn "+pe.dump)}return!0}function Tt(pe,yt){var Xt,Pt,Nt=[],Kt=[];for(Ut(pe,Nt,Kt),Xt=0,Pt=Kt.length;Xt{"use strict";function Tn(De,rt){Error.call(this),this.name="YAMLException",this.reason=De,this.mark=rt,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Tn.prototype=Object.create(Error.prototype)).constructor=Tn,Tn.prototype.toString=function(rt){var Oe=this.name+": ";return Oe+=this.reason||"(unknown reason)",!rt&&this.mark&&(Oe+=" "+this.mark.toString()),Oe},Yt.exports=Tn},840:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(314),dt=De(48),Ge=De(31),_e=De(94),et=Object.prototype.hasOwnProperty,Ve=1,ve=2,se=3,ue=4,ae=1,D=2,T=3,O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,te=/[\x85\u2028\u2029]/,Me=/[,\[\]\{\}]/,Je=/^(?:!|!!|![a-z\-]+!)$/i,kt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function jt(A){return Object.prototype.toString.call(A)}function Wt(A){return 10===A||13===A}function wn(A){return 9===A||32===A}function rn(A){return 9===A||32===A||10===A||13===A}function Mi(A){return 44===A||91===A||93===A||123===A||125===A}function zr(A){var st;return 48<=A&&A<=57?A-48:97<=(st=32|A)&&st<=102?st-97+10:-1}function Xr(A){return 120===A?2:117===A?4:85===A?8:0}function hs(A){return 48<=A&&A<=57?A-48:-1}function Ya(A){return 48===A?"\0":97===A?"\x07":98===A?"\b":116===A||9===A?"\t":110===A?"\n":118===A?"\v":102===A?"\f":114===A?"\r":101===A?"\x1b":32===A?" ":34===A?'"':47===A?"/":92===A?"\\":78===A?"\x85":95===A?"\xa0":76===A?"\u2028":80===A?"\u2029":""}function tr(A){return A<=65535?String.fromCharCode(A):String.fromCharCode(55296+(A-65536>>10),56320+(A-65536&1023))}for(var mu=new Array(256),Sa=new Array(256),yn=0;yn<256;yn++)mu[yn]=Ya(yn)?1:0,Sa[yn]=Ya(yn);function Cd(A,st){this.input=A,this.filename=st.filename||null,this.schema=st.schema||_e,this.onWarning=st.onWarning||null,this.legacy=st.legacy||!1,this.json=st.json||!1,this.listener=st.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=A.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function kd(A,st){return new Oe(st,new dt(A.filename,A.input,A.position,A.line,A.position-A.lineStart))}function Kn(A,st){throw kd(A,st)}function Nc(A,st){A.onWarning&&A.onWarning.call(null,kd(A,st))}var gu={YAML:function(st,Tt,Ut){var Vt,mn,pe;null!==st.version&&Kn(st,"duplication of %YAML directive"),1!==Ut.length&&Kn(st,"YAML directive accepts exactly one argument"),null===(Vt=/^([0-9]+)\.([0-9]+)$/.exec(Ut[0]))&&Kn(st,"ill-formed argument of the YAML directive"),mn=parseInt(Vt[1],10),pe=parseInt(Vt[2],10),1!==mn&&Kn(st,"unacceptable YAML version of the document"),st.version=Ut[0],st.checkLineBreaks=pe<2,1!==pe&&2!==pe&&Nc(st,"unsupported YAML version of the document")},TAG:function(st,Tt,Ut){var Vt,mn;2!==Ut.length&&Kn(st,"TAG directive accepts exactly two arguments"),mn=Ut[1],Je.test(Vt=Ut[0])||Kn(st,"ill-formed tag handle (first argument) of the TAG directive"),et.call(st.tagMap,Vt)&&Kn(st,'there is a previously declared suffix for "'+Vt+'" tag handle'),kt.test(mn)||Kn(st,"ill-formed tag prefix (second argument) of the TAG directive"),st.tagMap[Vt]=mn}};function Ro(A,st,Tt,Ut){var Vt,mn,pe,yt;if(st1&&(A.result+=rt.repeat("\n",st-1))}function Ja(A,st){var Tt,Nt,Ut=A.tag,Vt=A.anchor,mn=[],yt=!1;for(null!==A.anchor&&(A.anchorMap[A.anchor]=mn),Nt=A.input.charCodeAt(A.position);0!==Nt&&45===Nt&&rn(A.input.charCodeAt(A.position+1));)if(yt=!0,A.position++,Zr(A,!0,-1)&&A.lineIndent<=st)mn.push(null),Nt=A.input.charCodeAt(A.position);else if(Tt=A.line,W(A,st,se,!1,!0),mn.push(A.result),Zr(A,!0,-1),Nt=A.input.charCodeAt(A.position),(A.line===Tt||A.lineIndent>st)&&0!==Nt)Kn(A,"bad indentation of a sequence entry");else if(A.lineIndentst?Nt=1:A.lineIndent===st?Nt=0:A.lineIndentst?Nt=1:A.lineIndent===st?Nt=0:A.lineIndentst)&&(W(A,st,ue,!0,Vt)&&(We?dn=A.result:qt=A.result),We||(lo(A,Kt,Xt,Pt,dn,qt,mn,pe),Pt=dn=qt=null),Zr(A,!0,-1),bt=A.input.charCodeAt(A.position)),A.lineIndent>st&&0!==bt)Kn(A,"bad indentation of a mapping entry");else if(A.lineIndent=0))break;0===Xt?Kn(A,"bad explicit indentation width of a block scalar; it cannot be less than one"):pe?Kn(A,"repeat of an indentation width identifier"):(yt=st+Xt-1,pe=!0)}if(wn(Pt)){do{Pt=A.input.charCodeAt(++A.position)}while(wn(Pt));if(35===Pt)do{Pt=A.input.charCodeAt(++A.position)}while(!Wt(Pt)&&0!==Pt)}for(;0!==Pt;){for(Da(A),A.lineIndent=0,Pt=A.input.charCodeAt(A.position);(!pe||A.lineIndentyt&&(yt=A.lineIndent),Wt(Pt))Nt++;else{if(A.lineIndent0){for(Vt=pe,mn=0;Vt>0;Vt--)(pe=zr(yt=A.input.charCodeAt(++A.position)))>=0?mn=(mn<<4)+pe:Kn(A,"expected hexadecimal character");A.result+=tr(mn),A.position++}else Kn(A,"unknown escape sequence");Tt=Ut=A.position}else Wt(yt)?(Ro(A,Tt,Ut,!0),nc(A,Zr(A,!1,st)),Tt=Ut=A.position):A.position===A.lineStart&&pl(A)?Kn(A,"unexpected end of the document within a double quoted scalar"):(A.position++,Ut=A.position)}Kn(A,"unexpected end of the stream within a double quoted scalar")}(A,We)?Xt=!0:function Te(A){var st,Tt,Ut;if(42!==(Ut=A.input.charCodeAt(A.position)))return!1;for(Ut=A.input.charCodeAt(++A.position),st=A.position;0!==Ut&&!rn(Ut)&&!Mi(Ut);)Ut=A.input.charCodeAt(++A.position);return A.position===st&&Kn(A,"name of an alias node must contain at least one character"),Tt=A.input.slice(st,A.position),A.anchorMap.hasOwnProperty(Tt)||Kn(A,'unidentified alias "'+Tt+'"'),A.result=A.anchorMap[Tt],Zr(A,!0,-1),!0}(A)?(Xt=!0,(null!==A.tag||null!==A.anchor)&&Kn(A,"alias node should not have any properties")):function Sd(A,st,Tt){var Vt,mn,pe,yt,Nt,Kt,Xt,qt,Pt=A.kind,dn=A.result;if(rn(qt=A.input.charCodeAt(A.position))||Mi(qt)||35===qt||38===qt||42===qt||33===qt||124===qt||62===qt||39===qt||34===qt||37===qt||64===qt||96===qt||(63===qt||45===qt)&&(rn(Vt=A.input.charCodeAt(A.position+1))||Tt&&Mi(Vt)))return!1;for(A.kind="scalar",A.result="",mn=pe=A.position,yt=!1;0!==qt;){if(58===qt){if(rn(Vt=A.input.charCodeAt(A.position+1))||Tt&&Mi(Vt))break}else if(35===qt){if(rn(A.input.charCodeAt(A.position-1)))break}else{if(A.position===A.lineStart&&pl(A)||Tt&&Mi(qt))break;if(Wt(qt)){if(Nt=A.line,Kt=A.lineStart,Xt=A.lineIndent,Zr(A,!1,-1),A.lineIndent>=st){yt=!0,qt=A.input.charCodeAt(A.position);continue}A.position=pe,A.line=Nt,A.lineStart=Kt,A.lineIndent=Xt;break}}yt&&(Ro(A,mn,pe,!1),nc(A,A.line-Nt),mn=pe=A.position,yt=!1),wn(qt)||(pe=A.position+1),qt=A.input.charCodeAt(++A.position)}return Ro(A,mn,pe,!1),!!A.result||(A.kind=Pt,A.result=dn,!1)}(A,We,Ve===Tt)&&(Xt=!0,null===A.tag&&(A.tag="?")),null!==A.anchor&&(A.anchorMap[A.anchor]=A.result)):0===Nt&&(Xt=yt&&Ja(A,Xe))),null!==A.tag&&"!"!==A.tag)if("?"===A.tag){for(null!==A.result&&"scalar"!==A.kind&&Kn(A,'unacceptable node kind for ! tag; it should be "scalar", not "'+A.kind+'"'),Pt=0,dn=A.implicitTypes.length;Pt tag; it should be "'+qt.kind+'", not "'+A.kind+'"'),qt.resolve(A.result)?(A.result=qt.construct(A.result),null!==A.anchor&&(A.anchorMap[A.anchor]=A.result)):Kn(A,"cannot resolve a node with !<"+A.tag+"> explicit tag")):Kn(A,"unknown tag !<"+A.tag+">");return null!==A.listener&&A.listener("close",A),null!==A.tag||null!==A.anchor||Xt}function ee(A){var Tt,Ut,Vt,pe,st=A.position,mn=!1;for(A.version=null,A.checkLineBreaks=A.legacy,A.tagMap={},A.anchorMap={};0!==(pe=A.input.charCodeAt(A.position))&&(Zr(A,!0,-1),pe=A.input.charCodeAt(A.position),!(A.lineIndent>0||37!==pe));){for(mn=!0,pe=A.input.charCodeAt(++A.position),Tt=A.position;0!==pe&&!rn(pe);)pe=A.input.charCodeAt(++A.position);for(Vt=[],(Ut=A.input.slice(Tt,A.position)).length<1&&Kn(A,"directive name must not be less than one character in length");0!==pe;){for(;wn(pe);)pe=A.input.charCodeAt(++A.position);if(35===pe){do{pe=A.input.charCodeAt(++A.position)}while(0!==pe&&!Wt(pe));break}if(Wt(pe))break;for(Tt=A.position;0!==pe&&!rn(pe);)pe=A.input.charCodeAt(++A.position);Vt.push(A.input.slice(Tt,A.position))}0!==pe&&Da(A),et.call(gu,Ut)?gu[Ut](A,Ut,Vt):Nc(A,'unknown document directive "'+Ut+'"')}Zr(A,!0,-1),0===A.lineIndent&&45===A.input.charCodeAt(A.position)&&45===A.input.charCodeAt(A.position+1)&&45===A.input.charCodeAt(A.position+2)?(A.position+=3,Zr(A,!0,-1)):mn&&Kn(A,"directives end mark is expected"),W(A,A.lineIndent-1,ue,!1,!0),Zr(A,!0,-1),A.checkLineBreaks&&te.test(A.input.slice(st,A.position))&&Nc(A,"non-ASCII line breaks are interpreted as content"),A.documents.push(A.result),A.position===A.lineStart&&pl(A)?46===A.input.charCodeAt(A.position)&&(A.position+=3,Zr(A,!0,-1)):A.position"u"&&(Tt=st,st=null);var Ut=Fe(A,Tt);if("function"!=typeof st)return Ut;for(var Vt=0,mn=Ut.length;Vt"u"&&(Tt=st,st=null),nt(A,st,rt.extend({schema:Ge},Tt))},Yt.exports.safeLoad=function nr(A,st){return zt(A,rt.extend({schema:Ge},st))}},48:(Yt,Tn,De)=>{"use strict";var rt=De(997);function Oe(dt,Ge,_e,et,Ve){this.name=dt,this.buffer=Ge,this.position=_e,this.line=et,this.column=Ve}Oe.prototype.getSnippet=function(Ge,_e){var et,Ve,ve,se,ue;if(!this.buffer)return null;for(Ge=Ge||4,_e=_e||75,et="",Ve=this.position;Ve>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(Ve-1));)if(this.position-(Ve-=1)>_e/2-1){et=" ... ",Ve+=5;break}for(ve="",se=this.position;se_e/2-1){ve=" ... ",se-=5;break}return ue=this.buffer.slice(Ve,se),rt.repeat(" ",Ge)+et+ue+ve+"\n"+rt.repeat(" ",Ge+this.position-Ve+et.length)+"^"},Oe.prototype.toString=function(Ge){var _e,et="";return this.name&&(et+='in "'+this.name+'" '),et+="at line "+(this.line+1)+", column "+(this.column+1),Ge||(_e=this.getSnippet())&&(et+=":\n"+_e),et},Yt.exports=Oe},372:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(314),dt=De(647);function Ge(Ve,ve,se){var ue=[];return Ve.include.forEach(function(ae){se=Ge(ae,ve,se)}),Ve[ve].forEach(function(ae){se.forEach(function(D,T){D.tag===ae.tag&&D.kind===ae.kind&&ue.push(T)}),se.push(ae)}),se.filter(function(ae,D){return-1===ue.indexOf(D)})}function et(Ve){this.include=Ve.include||[],this.implicit=Ve.implicit||[],this.explicit=Ve.explicit||[],this.implicit.forEach(function(ve){if(ve.loadKind&&"scalar"!==ve.loadKind)throw new Oe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ge(this,"implicit",[]),this.compiledExplicit=Ge(this,"explicit",[]),this.compiledTypeMap=function _e(){var ve,se,Ve={scalar:{},sequence:{},mapping:{},fallback:{}};function ue(ae){Ve[ae.kind][ae.tag]=Ve.fallback[ae.tag]=ae}for(ve=0,se=arguments.length;ve{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(147)]})},94:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=rt.DEFAULT=new rt({include:[De(31)],explicit:[De(771),De(632),De(716)]})},31:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(192)],implicit:[De(934),De(996)],explicit:[De(486),De(166),De(711),De(738)]})},746:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({explicit:[De(464),De(322),De(71)]})},147:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(746)],implicit:[De(568),De(911),De(877),De(615)]})},647:(Yt,Tn,De)=>{"use strict";var rt=De(314),Oe=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],dt=["scalar","sequence","mapping"];Yt.exports=function _e(et,Ve){if(Ve=Ve||{},Object.keys(Ve).forEach(function(ve){if(-1===Oe.indexOf(ve))throw new rt('Unknown option "'+ve+'" is met in definition of "'+et+'" YAML type.')}),this.tag=et,this.kind=Ve.kind||null,this.resolve=Ve.resolve||function(){return!0},this.construct=Ve.construct||function(ve){return ve},this.instanceOf=Ve.instanceOf||null,this.predicate=Ve.predicate||null,this.represent=Ve.represent||null,this.defaultStyle=Ve.defaultStyle||null,this.styleAliases=function Ge(et){var Ve={};return null!==et&&Object.keys(et).forEach(function(ve){et[ve].forEach(function(se){Ve[String(se)]=ve})}),Ve}(Ve.styleAliases||null),-1===dt.indexOf(this.kind))throw new rt('Unknown kind "'+this.kind+'" is specified for "'+et+'" YAML type.')}},486:(Yt,Tn,De)=>{"use strict";var rt;try{rt=De(172).lW}catch{}var dt=De(647),Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Yt.exports=new dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function _e(se){if(null===se)return!1;var ue,ae,D=0,T=se.length,O=Ge;for(ae=0;ae64)){if(ue<0)return!1;D+=6}return D%8==0},construct:function et(se){var ue,ae,D=se.replace(/[\r\n=]/g,""),T=D.length,O=Ge,te=0,Me=[];for(ue=0;ue>16&255),Me.push(te>>8&255),Me.push(255&te)),te=te<<6|O.indexOf(D.charAt(ue));return 0==(ae=T%4*6)?(Me.push(te>>16&255),Me.push(te>>8&255),Me.push(255&te)):18===ae?(Me.push(te>>10&255),Me.push(te>>2&255)):12===ae&&Me.push(te>>4&255),rt?rt.from?rt.from(Me):new rt(Me):Me},predicate:function ve(se){return rt&&rt.isBuffer(se)},represent:function Ve(se){var D,T,ue="",ae=0,O=se.length,te=Ge;for(D=0;D>18&63],ue+=te[ae>>12&63],ue+=te[ae>>6&63],ue+=te[63&ae]),ae=(ae<<8)+se[D];return 0==(T=O%3)?(ue+=te[ae>>18&63],ue+=te[ae>>12&63],ue+=te[ae>>6&63],ue+=te[63&ae]):2===T?(ue+=te[ae>>10&63],ue+=te[ae>>4&63],ue+=te[ae<<2&63],ue+=te[64]):1===T&&(ue+=te[ae>>2&63],ue+=te[ae<<4&63],ue+=te[64],ue+=te[64]),ue}})},911:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function Oe(_e){if(null===_e)return!1;var et=_e.length;return 4===et&&("true"===_e||"True"===_e||"TRUE"===_e)||5===et&&("false"===_e||"False"===_e||"FALSE"===_e)},construct:function dt(_e){return"true"===_e||"True"===_e||"TRUE"===_e},predicate:function Ge(_e){return"[object Boolean]"===Object.prototype.toString.call(_e)},represent:{lowercase:function(_e){return _e?"true":"false"},uppercase:function(_e){return _e?"TRUE":"FALSE"},camelcase:function(_e){return _e?"True":"False"}},defaultStyle:"lowercase"})},615:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(647),dt=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),et=/^[-+]?[0-9]+e/;Yt.exports=new Oe("tag:yaml.org,2002:float",{kind:"scalar",resolve:function Ge(se){return!(null===se||!dt.test(se)||"_"===se[se.length-1])},construct:function _e(se){var ue,ae,D,T;return ae="-"===(ue=se.replace(/_/g,"").toLowerCase())[0]?-1:1,T=[],"+-".indexOf(ue[0])>=0&&(ue=ue.slice(1)),".inf"===ue?1===ae?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===ue?NaN:ue.indexOf(":")>=0?(ue.split(":").forEach(function(O){T.unshift(parseFloat(O,10))}),ue=0,D=1,T.forEach(function(O){ue+=O*D,D*=60}),ae*ue):ae*parseFloat(ue,10)},predicate:function ve(se){return"[object Number]"===Object.prototype.toString.call(se)&&(se%1!=0||rt.isNegativeZero(se))},represent:function Ve(se,ue){var ae;if(isNaN(se))switch(ue){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===se)switch(ue){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===se)switch(ue){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(rt.isNegativeZero(se))return"-0.0";return ae=se.toString(10),et.test(ae)?ae.replace("e",".e"):ae},defaultStyle:"lowercase"})},877:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(647);function dt(se){return 48<=se&&se<=57||65<=se&&se<=70||97<=se&&se<=102}function Ge(se){return 48<=se&&se<=55}function _e(se){return 48<=se&&se<=57}Yt.exports=new Oe("tag:yaml.org,2002:int",{kind:"scalar",resolve:function et(se){if(null===se)return!1;var T,ue=se.length,ae=0,D=!1;if(!ue)return!1;if(("-"===(T=se[ae])||"+"===T)&&(T=se[++ae]),"0"===T){if(ae+1===ue)return!0;if("b"===(T=se[++ae])){for(ae++;ae=0?"0b"+se.toString(2):"-0b"+se.toString(2).slice(1)},octal:function(se){return se>=0?"0"+se.toString(8):"-0"+se.toString(8).slice(1)},decimal:function(se){return se.toString(10)},hexadecimal:function(se){return se>=0?"0x"+se.toString(16).toUpperCase():"-0x"+se.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Yt,Tn,De)=>{"use strict";var rt;try{rt=De(797)}catch{typeof window<"u"&&(rt=window.esprima)}var dt=De(647);Yt.exports=new dt("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function Ge(ve){if(null===ve)return!1;try{var ue=rt.parse("("+ve+")",{range:!0});return!("Program"!==ue.type||1!==ue.body.length||"ExpressionStatement"!==ue.body[0].type||"ArrowFunctionExpression"!==ue.body[0].expression.type&&"FunctionExpression"!==ue.body[0].expression.type)}catch{return!1}},construct:function _e(ve){var D,se="("+ve+")",ue=rt.parse(se,{range:!0}),ae=[];if("Program"!==ue.type||1!==ue.body.length||"ExpressionStatement"!==ue.body[0].type||"ArrowFunctionExpression"!==ue.body[0].expression.type&&"FunctionExpression"!==ue.body[0].expression.type)throw new Error("Failed to resolve function");return ue.body[0].expression.params.forEach(function(T){ae.push(T.name)}),D=ue.body[0].expression.body.range,new Function(ae,"BlockStatement"===ue.body[0].expression.body.type?se.slice(D[0]+1,D[1]-1):"return "+se.slice(D[0],D[1]))},predicate:function Ve(ve){return"[object Function]"===Object.prototype.toString.call(ve)},represent:function et(ve){return ve.toString()}})},632:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function Oe(et){if(null===et||0===et.length)return!1;var Ve=et,ve=/\/([gim]*)$/.exec(et),se="";return!("/"===Ve[0]&&(ve&&(se=ve[1]),se.length>3||"/"!==Ve[Ve.length-se.length-1]))},construct:function dt(et){var Ve=et,ve=/\/([gim]*)$/.exec(et),se="";return"/"===Ve[0]&&(ve&&(se=ve[1]),Ve=Ve.slice(1,Ve.length-se.length-1)),new RegExp(Ve,se)},predicate:function _e(et){return"[object RegExp]"===Object.prototype.toString.call(et)},represent:function Ge(et){var Ve="/"+et.source+"/";return et.global&&(Ve+="g"),et.multiline&&(Ve+="m"),et.ignoreCase&&(Ve+="i"),Ve}})},771:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function Oe(){return!0},construct:function dt(){},predicate:function _e(et){return typeof et>"u"},represent:function Ge(){return""}})},71:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Oe){return null!==Oe?Oe:{}}})},996:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function Oe(dt){return"<<"===dt||null===dt}})},568:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:null",{kind:"scalar",resolve:function Oe(_e){if(null===_e)return!0;var et=_e.length;return 1===et&&"~"===_e||4===et&&("null"===_e||"Null"===_e||"NULL"===_e)},construct:function dt(){return null},predicate:function Ge(_e){return null===_e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},166:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=Object.prototype.hasOwnProperty,dt=Object.prototype.toString;Yt.exports=new rt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function Ge(et){if(null===et)return!0;var ve,se,ue,ae,D,Ve=[],T=et;for(ve=0,se=T.length;ve{"use strict";var rt=De(647),Oe=Object.prototype.toString;Yt.exports=new rt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function dt(_e){if(null===_e)return!0;var et,Ve,ve,se,ue,ae=_e;for(ue=new Array(ae.length),et=0,Ve=ae.length;et{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Oe){return null!==Oe?Oe:[]}})},738:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=Object.prototype.hasOwnProperty;Yt.exports=new rt("tag:yaml.org,2002:set",{kind:"mapping",resolve:function dt(_e){if(null===_e)return!0;var et,Ve=_e;for(et in Ve)if(Oe.call(Ve,et)&&null!==Ve[et])return!1;return!0},construct:function Ge(_e){return null!==_e?_e:{}}})},464:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Oe){return null!==Oe?Oe:""}})},934:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Yt.exports=new rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function Ge(Ve){return null!==Ve&&(null!==Oe.exec(Ve)||null!==dt.exec(Ve))},construct:function _e(Ve){var ve,se,ue,ae,D,T,O,jt,te=0,Me=null;if(null===(ve=Oe.exec(Ve))&&(ve=dt.exec(Ve)),null===ve)throw new Error("Date resolve error");if(se=+ve[1],ue=+ve[2]-1,ae=+ve[3],!ve[4])return new Date(Date.UTC(se,ue,ae));if(D=+ve[4],T=+ve[5],O=+ve[6],ve[7]){for(te=ve[7].slice(0,3);te.length<3;)te+="0";te=+te}return ve[9]&&(Me=6e4*(60*+ve[10]+ +(ve[11]||0)),"-"===ve[9]&&(Me=-Me)),jt=new Date(Date.UTC(se,ue,ae,D,T,O,te)),Me&&jt.setTime(jt.getTime()-Me),jt},instanceOf:Date,represent:function et(Ve){return Ve.toISOString()}})}},Yt=>{Yt(Yt.s=440)}]); \ No newline at end of file diff --git a/console/ui/dist/prod-nt/static/styles.eae36ebc5439770a.css b/console/ui/dist/prod-nt/static/styles.eae36ebc5439770a.css new file mode 100644 index 0000000000..f365f8b2c7 --- /dev/null +++ b/console/ui/dist/prod-nt/static/styles.eae36ebc5439770a.css @@ -0,0 +1,6 @@ +/*! + * Bootstrap v4.4.1 (https://getbootstrap.com/) + * Copyright 2011-2019 The Bootstrap Authors + * Copyright 2011-2019 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]){color:inherit;text-decoration:none}a:not([href]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer:before{content:"\2014\a0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-1>*{flex:0 0 100%;max-width:100%}.row-cols-2>*{flex:0 0 50%;max-width:50%}.row-cols-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-4>*{flex:0 0 25%;max-width:25%}.row-cols-5>*{flex:0 0 20%;max-width:20%}.row-cols-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-auto{flex:0 0 auto;width:auto;max-width:100%}.col-1{flex:0 0 8.333333%;max-width:8.333333%}.col-2{flex:0 0 16.666667%;max-width:16.666667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.333333%;max-width:33.333333%}.col-5{flex:0 0 41.666667%;max-width:41.666667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.333333%;max-width:58.333333%}.col-8{flex:0 0 66.666667%;max-width:66.666667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.333333%;max-width:83.333333%}.col-11{flex:0 0 91.666667%;max-width:91.666667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-sm-1>*{flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-sm-4>*{flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-md-1>*{flex:0 0 100%;max-width:100%}.row-cols-md-2>*{flex:0 0 50%;max-width:50%}.row-cols-md-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-md-4>*{flex:0 0 25%;max-width:25%}.row-cols-md-5>*{flex:0 0 20%;max-width:20%}.row-cols-md-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.col-md-1{flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-lg-1>*{flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-lg-4>*{flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-xl-1>*{flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-xl-4>*{flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered,.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:#0000000d}.table-hover tbody tr:hover{color:#212529;background-color:#00000013}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#7abaff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#8fd19e}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#86cfda}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#ffdf7e}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#ed969e}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:#00000013}.table-hover .table-active:hover{background-color:#00000013}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:#00000013}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:#ffffff0d}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:#ffffff13}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;font-size:1rem;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size],textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:inline-flex;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:#28a745e6;border-radius:.25rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:#28a745;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#28a745;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label:before,.was-validated .custom-control-input:valid~.custom-control-label:before{border-color:#28a745}.custom-control-input.is-valid:checked~.custom-control-label:before,.was-validated .custom-control-input:valid:checked~.custom-control-label:before{border-color:#34ce57;background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label:before,.was-validated .custom-control-input:valid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #28a74540}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label:before{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:#dc3545e6;border-radius:.25rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#dc3545;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label:before,.was-validated .custom-control-input:invalid~.custom-control-label:before{border-color:#dc3545}.custom-control-input.is-invalid:checked~.custom-control-label:before,.was-validated .custom-control-input:invalid:checked~.custom-control-label:before{border-color:#e4606d;background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #dc354540}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label:before{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.form-inline{display:flex;flex-flow:row wrap;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:flex;align-items:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:flex;flex:0 0 auto;flex-flow:row wrap;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:flex;align-items:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}.btn.disabled,.btn:disabled{opacity:.65}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#0069d9;border-color:#0062cc;box-shadow:0 0 0 .2rem #268fff80}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #268fff80}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{color:#fff;background-color:#5a6268;border-color:#545b62;box-shadow:0 0 0 .2rem #828a9180}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #828a9180}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#218838;border-color:#1e7e34;box-shadow:0 0 0 .2rem #48b46180}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #48b46180}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#138496;border-color:#117a8b;box-shadow:0 0 0 .2rem #3ab0c380}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #3ab0c380}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{color:#212529;background-color:#e0a800;border-color:#d39e00;box-shadow:0 0 0 .2rem #deaa0c80}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #deaa0c80}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c82333;border-color:#bd2130;box-shadow:0 0 0 .2rem #e1536180}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #e1536180}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{color:#212529;background-color:#e2e6ea;border-color:#dae0e5;box-shadow:0 0 0 .2rem #d8d9db80}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #d8d9db80}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{color:#fff;background-color:#23272b;border-color:#1d2124;box-shadow:0 0 0 .2rem #52585d80}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #52585d80}.btn-outline-primary{color:#007bff;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem #007bff80}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #007bff80}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem #6c757d80}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #6c757d80}.btn-outline-success{color:#28a745;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem #28a74580}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #28a74580}.btn-outline-info{color:#17a2b8;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem #17a2b880}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #17a2b880}.btn-outline-warning{color:#ffc107;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem #ffc10780}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #ffc10780}.btn-outline-danger{color:#dc3545;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem #dc354580}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #dc354580}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem #f8f9fa80}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #f8f9fa80}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem #343a4080}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #343a4080}.btn-link{font-weight:400;color:#007bff;text-decoration:none}.btn-link:hover{color:#0056b3;text-decoration:underline}.btn-link.focus,.btn-link:focus{text-decoration:underline;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-toggle:after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle:after{display:none}.dropleft .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty:after{margin-left:0}.dropleft .dropdown-toggle:before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropright .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropleft .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;flex:1 1 0%;min-width:0;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:flex;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label:after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.25rem;opacity:0}.custom-control-input:checked~.custom-control-label:before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #007bff40}.custom-control-input:focus:not(:checked)~.custom-control-label:before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label:before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label,.custom-control-input[disabled]~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label:before,.custom-control-input[disabled]~.custom-control-label:before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label:before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px}.custom-control-label:after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label:before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:before{border-color:#007bff;background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label:before{background-color:#007bff80}.custom-radio .custom-control-label:before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label:before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label:after{top:calc(.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label:after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label:after{background-color:#fff;transform:translate(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-select{display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;border:1px solid #ced4da;border-radius:.25rem;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem}.custom-file{position:relative;display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(1.5em + .75rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40}.custom-file-input:disabled~.custom-file-label,.custom-file-input[disabled]~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label:after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]:after{content:attr(data-browse)}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label:after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:calc(1.5em + .75rem);padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:1.4rem;padding:0;background-color:transparent;appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{-moz-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;-ms-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{-ms-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label:before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label:before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:.5rem 1rem}.navbar .container,.navbar .container-fluid,.navbar .container-lg,.navbar .container-md,.navbar .container-sm,.navbar .container-xl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:#000000e6}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:#000000e6}.navbar-light .navbar-nav .nav-link{color:#00000080}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:#000000b3}.navbar-light .navbar-nav .nav-link.disabled{color:#0000004d}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:#000000e6}.navbar-light .navbar-toggler{color:#00000080;border-color:#0000001a}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-light .navbar-text{color:#00000080}.navbar-light .navbar-text a{color:#000000e6}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:#000000e6}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:#ffffff80}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:#ffffffbf}.navbar-dark .navbar-nav .nav-link.disabled{color:#ffffff40}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:#ffffff80;border-color:#ffffff1a}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-dark .navbar-text{color:#ffffff80}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:#00000008;border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:#00000008;border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;inset:0;padding:1.25rem}.card-img,.card-img-bottom,.card-img-top{flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{display:flex;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{column-count:3;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{display:flex;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item:before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;box-shadow:0 0 0 .2rem #007bff40}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:3;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#0062cc}a.badge-primary.focus,a.badge-primary:focus{outline:0;box-shadow:0 0 0 .2rem #007bff80}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;box-shadow:0 0 0 .2rem #6c757d80}.badge-success{color:#fff;background-color:#28a745}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#1e7e34}a.badge-success.focus,a.badge-success:focus{outline:0;box-shadow:0 0 0 .2rem #28a74580}.badge-info{color:#fff;background-color:#17a2b8}a.badge-info:focus,a.badge-info:hover{color:#fff;background-color:#117a8b}a.badge-info.focus,a.badge-info:focus{outline:0;box-shadow:0 0 0 .2rem #17a2b880}.badge-warning{color:#212529;background-color:#ffc107}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#d39e00}a.badge-warning.focus,a.badge-warning:focus{outline:0;box-shadow:0 0 0 .2rem #ffc10780}.badge-danger{color:#fff;background-color:#dc3545}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#bd2130}a.badge-danger.focus,a.badge-danger:focus{outline:0;box-shadow:0 0 0 .2rem #dc354580}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;box-shadow:0 0 0 .2rem #f8f9fa80}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;box-shadow:0 0 0 .2rem #343a4080}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}.progress{display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.media{display:flex;align-items:flex-start}.media-body{flex:1}.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{flex-direction:row}.list-group-horizontal .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal .list-group-item.active{margin-top:0}.list-group-horizontal .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-sm .list-group-item.active{margin-top:0}.list-group-horizontal-sm .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-md .list-group-item.active{margin-top:0}.list-group-horizontal-md .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-lg .list-group-item.active{margin-top:0}.list-group-horizontal-lg .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-xl .list-group-item.active{margin-top:0}.list-group-horizontal-xl .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush .list-group-item{border-right-width:0;border-left-width:0;border-radius:0}.list-group-flush .list-group-item:first-child{border-top-width:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0;appearance:none}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:.875rem;background-color:#ffffffd9;background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:flex;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:#ffffffd9;background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered:before{display:block;height:calc(100vh - 1rem);content:""}.modal-dialog-centered.modal-dialog-scrollable{flex-direction:column;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable:before{content:none}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.modal-header .close{padding:1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;flex:1 1 auto;padding:1rem}.modal-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:.75rem;border-top:1px solid #dee2e6;border-bottom-right-radius:calc(.3rem - 1px);border-bottom-left-radius:calc(.3rem - 1px)}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered:before{height:calc(100vh - 3.5rem)}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow:before,.bs-tooltip-top .arrow:before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow:before,.bs-tooltip-right .arrow:before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.bs-tooltip-bottom .arrow:before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow:before,.bs-tooltip-left .arrow:before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow:after,.popover .arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=top]>.arrow:before,.bs-popover-top>.arrow:before{bottom:0;border-width:.5rem .5rem 0;border-top-color:#00000040}.bs-popover-auto[x-placement^=top]>.arrow:after,.bs-popover-top>.arrow:after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow:before,.bs-popover-right>.arrow:before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:#00000040}.bs-popover-auto[x-placement^=right]>.arrow:after,.bs-popover-right>.arrow:after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=bottom]>.arrow:before,.bs-popover-bottom>.arrow:before{top:0;border-width:0 .5rem .5rem .5rem;border-bottom-color:#00000040}.bs-popover-auto[x-placement^=bottom]>.arrow:after,.bs-popover-bottom>.arrow:after{top:1px;border-width:0 .5rem .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow:before,.bs-popover-left>.arrow:before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:#00000040}.bs-popover-auto[x-placement^=left]>.arrow:after,.bs-popover-left>.arrow:after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){transform:translate(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid currentColor;border-right-color:transparent;border-radius:50%;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix:after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive:before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9:before{padding-top:42.857143%}.embed-responsive-16by9:before{padding-top:56.25%}.embed-responsive-4by3:before{padding-top:75%}.embed-responsive-1by1:before{padding-top:100%}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-fill{flex:1 1 auto!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}@media (min-width:576px){.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}}@media (min-width:768px){.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports (position:sticky){.sticky-top{position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.stretched-link:after{position:absolute;inset:0;z-index:1;pointer-events:auto;content:"";background-color:#0000}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#19692c!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#0f6674!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#a71d2a!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:#00000080!important}.text-white-50{color:#ffffff80!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;overflow-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,:after,:before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]:after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body,.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-opened.ng-select-right>.ng-select-container{border-top-right-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-left>.ng-select-container{border-top-left-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px #00000013,0 0 0 3px #007eff1a}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px #0000000f}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#999}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;color:#333;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:#999}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px #0000000f;left:0}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel.ng-select-right{left:100%;top:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-right .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-left{left:-100%;top:0;border-top-left-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-left .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:#0000008a;cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{color:#0000008a;background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:#000000de;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:#333;background-color:#ebf5ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}:root{--jse-theme: light;--jse-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono: consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono: 14px;--jse-font-size: 16px;--jse-font-size-text-mode-search: 80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size: 1em;--jse-padding: 10px;--jse-theme-color: #3883fa;--jse-theme-color-highlight: #5f9dff;--jse-background-color: #fff;--jse-text-color: #4d4d4d;--jse-text-readonly: #8d8d8d;--jse-text-color-inverse: #fff;--jse-error-color: #ee5341;--jse-warning-color: #fdc539;--jse-main-border: 1px solid #d7d7d7;--jse-menu-color: var(--jse-text-color-inverse);--jse-menu-button-size: 32px;--jse-modal-background: #f5f5f5;--jse-modal-overlay-background: rgba(0, 0, 0, .3);--jse-modal-code-background: rgba(0, 0, 0, .05);--jse-modal-theme-color: #707070;--jse-modal-theme-color-highlight: #646464;--jse-tooltip-color: var(--jse-text-color);--jse-tooltip-background: var(--jse-modal-background);--jse-tooltip-border: var(--jse-main-border);--jse-tooltip-action-button-color: var(--jse-text-color-inverse);--jse-tooltip-action-button-background: #4d4d4d;--jse-panel-background: #ebebeb;--jse-panel-color: var(--jse-text-color);--jse-panel-color-readonly: #b2b2b2;--jse-panel-border: var(--jse-main-border);--jse-panel-button-color: inherit;--jse-panel-button-background: transparent;--jse-panel-button-color-highlight: var(--jse-text-color);--jse-panel-button-background-highlight: #e0e0e0;--jse-navigation-bar-background: var(--jse-background-color);--jse-navigation-bar-background-highlight: #e5e5e5;--jse-navigation-bar-dropdown-color: #656565;--jse-context-menu-background: #656565;--jse-context-menu-background-highlight: #7a7a7a;--jse-context-menu-color: var(--jse-text-color-inverse);--jse-context-menu-color-disabled: #9d9d9d;--jse-context-menu-separator-color: #7a7a7a;--jse-context-menu-pointer-hover-background: #b2b2b2;--jse-context-menu-pointer-background: var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight: var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color: var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background: rgba(255, 255, 255, .2);--jse-context-menu-tip-color: inherit;--jse-key-color: #1a1a1a;--jse-value-color: #1a1a1a;--jse-value-color-number: #ee422e;--jse-value-color-boolean: #ff8c00;--jse-value-color-null: #004ed0;--jse-value-color-string: #008000;--jse-value-color-url: #008000;--jse-delimiter-color: rgba(0, 0, 0, .38);--jse-edit-outline: 2px solid #656565;--jse-contents-background-color: transparent;--jse-contents-cursor: pointer;--jse-contents-selected-cursor: grab;--jse-selection-background-color: #d3d3d3;--jse-selection-background-inactive-color: #e8e8e8;--jse-hover-background-color: rgba(0, 0, 0, .06);--jse-active-line-background-color: rgba(0, 0, 0, .06);--jse-search-match-background-color: #99ff7780;--jse-collapsed-items-background-color: #f5f5f5;--jse-collapsed-items-selected-background-color: #c2c2c2;--jse-collapsed-items-link-color: rgba(0, 0, 0, .38);--jse-collapsed-items-link-color-highlight: #ee5341;--jse-search-match-color: #ffe665;--jse-search-match-outline: 1px solid #ffd700;--jse-search-match-active-color: #ffd700;--jse-search-match-active-outline: 1px solid #e1be00;--jse-tag-background: rgba(0, 0, 0, .2);--jse-tag-color: var(--jse-text-color-inverse);--jse-table-header-background: #f5f5f5;--jse-table-header-background-highlight: #e8e8e8;--jse-table-row-odd-background: rgba(0, 0, 0, .05);--jse-controls-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .24);--jse-input-background: var(--jse-background-color);--jse-input-background-readonly: transparent;--jse-input-border: 1px solid #d8dbdf;--jse-input-border-focus: 1px solid var(--jse-theme-color);--jse-input-radius: 3px;--jse-button-background: #e0e0e0;--jse-button-background-highlight: #e7e7e7;--jse-button-color: var(--jse-text-color);--jse-button-primary-background: var(--jse-theme-color);--jse-button-primary-background-highlight: var(--jse-theme-color-highlight);--jse-button-primary-background-disabled: #9d9d9d;--jse-button-primary-color: var(--jse-text-color-inverse);--jse-button-secondary-background: #d3d3d3;--jse-button-secondary-background-highlight: #e1e1e1;--jse-button-secondary-background-disabled: #9d9d9d;--jse-button-secondary-color: var(--jse-text-color);--jse-a-color: #156fc5;--jse-a-color-highlight: #0f508d;--jse-message-error-background: var(--jse-error-color);--jse-message-error-color: var(--jse-text-color-inverse);--jse-message-warning-background: #ffde5c;--jse-message-warning-color: var(--jse-text-color);--jse-message-success-background: #9ac45d;--jse-message-success-color: var(--jse-text-color-inverse);--jse-message-info-background: #4f91ff;--jse-message-info-color: var(--jse-text-color-inverse);--jse-message-action-background: rgba(255, 255, 255, .2);--jse-message-action-background-highlight: rgba(255, 255, 255, .3);--item-is-active-bg: #3883fa;--border: 1px solid #d8dbdf;--border-radius: 3px;--background: #fff;--padding: 0 10px;--multi-select-padding: 0 10px;--jse-color-picker-background: var(--jse-panel-background);--jse-color-picker-border-box-shadow: #cbcbcb 0 0 0 1px}.bg-secondary{background-color:#978cf1!important}.bg-success{background-color:#63c179}body{font-family:Source Sans Pro,sans-serif}a{color:#7668ed}a:hover{color:#978cf1}.custom-control-input:checked~.custom-control-label:before{background-color:#7668ed;border-color:#7668ed}.btn{font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:12px;outline:none!important;outline-width:0!important;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;-webkit-appearance:none}.btn-sm{font-size:11px}.btn-primary.dropdown-toggle{background-color:#8b7ff0}.btn-primary.dropdown-toggle[aria-expanded=true]{background-color:#7668ed;border-color:#7668ed}.btn-primary.dropdown-toggle:active{background-color:#7668ed!important;border-color:#7668ed}.btn-primary.dropdown-toggle:focus{background-color:#f96cf8!important;border-color:#f853f7}.btn-primary{background-color:#7668ed;border-color:#7668ed}.btn-primary:hover{background-color:#8b7ff0;border-color:#7668ed}.btn-primary:active{background-color:#7668ed!important;border-color:#7668ed}.btn-primary:focus{background-color:#f96cf8!important;border-color:#f853f7}.btn-primary:disabled{background-color:#7668ed;border-color:#7668ed}.btn-outline-primary{border:solid 2px #7668ED;color:#7668ed;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:13px}.btn-outline-primary:hover{background-color:#8b7ff0;border-color:#7668ed}.btn-outline-primary:active{background-color:#f96cf8!important;border-color:#f853f7!important}.btn-outline-primary:disabled{background-color:#7668ed;border-color:#7668ed}.btn-outline-secondary{border:solid 1px #aaaacc;font-size:10px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:13px}.btn-outline-secondary:hover{background-color:#eaeaf2;color:#7668ed}.btn-outline-secondary:active{background-color:#6e5fec!important}.btn-outline-dark{border-color:#c1c1da;font-size:10px}.btn-outline-dark img{margin-left:-.5em}.btn-outline-dark:hover:not(.disabled){background-color:#7668ed;border-color:#e1e1ed}.btn-outline-dark:active{background-color:#6e5fec}.btn-danger{background-color:#ffd3cf;color:#fe756a;border-color:#fe756a}.btn-danger:hover{background-color:#fe756a!important;color:#fff}.btn-danger-icon{background-color:#fff}.btn-danger-icon:hover{color:#fe756a;background-color:#ffd3cf!important}.btn-group-toggle label{font-size:10px}.btn-warning{background-color:#edd83e;background-color:#ecd635!important}.btn-warning:hover{background-color:#e3ca15!important}.page-btns .btn:hover{background:#A69BFF!important}.page-btns .btn{padding:.3em .9em}.breadcrumb{padding:0;margin:0;background:#fff}.badge{border-radius:20px;padding:.3rem .8rem;text-transform:uppercase;letter-spacing:.1em;font-size:11px;color:#333564;display:inline-flex;align-items:center}.badge-secondary{background-color:#eaeaf2}.badge-secondary img{margin-right:.5rem;margin-left:-.5rem}.badge-light{background-color:#eae8fc}.badge-light img{margin-right:.5rem;margin-left:-.5rem}.badge-primary{background-color:#d8edfa}.badge-primary img{margin-right:.5rem;margin-left:-.5rem}.badge-success{background-color:#d0edd7}.badge-success img{margin-right:.5rem;margin-left:-.5rem}.badge-danger{background-color:#ffd3cf;color:#fe756a}.badge-danger img{margin-right:.5rem;margin-left:-.2rem}.badge-warning{background-color:#faf4ca}.badge-warning img{margin-right:.5rem;margin-left:-.2rem}.badge-info{background-color:#fee6fe}.badge-info img{margin-right:.5rem;margin-left:-.5rem}.badge-dark{background-color:#a7a7ca}.badge-dark img{margin-right:.5rem;margin-left:-.5rem}.loading{width:50px}.add-border .row{border-top:solid 1px #dadae9;border-left:solid 1px #dadae9;border-right:solid 1px #dadae9;padding:.6rem;margin:0}.add-border .form-row{border-top:solid 1px #dadae9;margin:0;padding-top:2rem}.add-border-single-row .row{border:solid 1px #dadae9;padding:.75rem;margin:0}.add-border-single-row-bottom{border-bottom:solid 1px #dadae9}.remove-sides{border-left:none!important;border-right:none!important}.card-box{border:solid 1px #dadae9;padding:1.75rem .75rem}.alert h6{margin-bottom:8px}.alert small{font-size:15px}.alert-primary{background-color:#f2f1fd;border-color:#9f96f2;color:#7668ed}.alert-success{background-color:#dbf1e0;border-color:#87d098;color:#20512c}.alert-secondary{background-color:#fafafc;border-color:#dadae9;color:#4a4a7b}.alert-danger{background-color:#ffeae9;border-color:#fea49d;color:#fe756a}.alert-warning{background-color:#faf4ca;border-color:#f1e16d;color:#333564}.alert-info{background-color:#eef7fd;border-color:#95cdf0;color:#333564}.section-divider:after{height:1px;margin-left:1rem;flex-grow:1;align-self:center;background-color:#dadae9;content:""}.section-divider-btn{display:flex;align-items:center}.section-divider-btn__text{display:flex;flex-grow:1;align-items:center}.section-divider-btn__text:after{height:1px;flex-grow:1;margin-left:15px;background-color:#dadae9;content:""}.table .thead-light th{background-color:#fafafc;border-color:#dadae9;color:#4a4a7b;border-bottom:0}.table-hover tbody tr:hover td{background-color:#f2f1fd}.bg-grad{background-color:#6a57ee;background-image:linear-gradient(to bottom,#6a57ee 0%,#3a3f77 100%);background-position:3% 3%,top right,97% bottom,bottom left;background-repeat:no-repeat}.spinner{height:100%}.spinner>p{display:table-cell;text-align:center;width:100%;vertical-align:middle}.spinner>span{display:block;text-align:left;width:100%;min-width:24px;height:100%;min-height:24px;background-image:url(/static/white-progress-spinner.gif);background-repeat:no-repeat;background-position-x:center;background-position-y:center}.tooltip-bg .tooltip-inner{background-color:#7668ed;font-size:11px;text-align:left}.bs-tooltip-right .arrow:before{border-right-color:#7668ed}.bs-tooltip-top .arrow:before{border-top-color:#7668ed}.bs-tooltip-bottom .arrow:before{border-bottom-color:#7668ed}.bs-tooltip-left .arrow:before{border-left-color:#7668ed}.arrow{position:relative;overflow:hidden;margin-right:5px;display:inline-block}.arrow-right{background-image:url(/static/svg/arrow-right.svg);background-repeat:no-repeat;background-position:center;height:12px;width:12px;top:0;left:0}.arrow-down{background-image:url(/static/svg/arrow-down.svg);background-repeat:no-repeat;background-position:center;height:12px;width:12px;top:0;left:0}.drop-zone{border:2px dashed #7668ED;border-radius:5px;height:100px;margin:auto auto 48px;background-color:#e5e2ff}.drop-zone-content{margin-top:25px;align-items:center;color:#0782d0;display:flex;height:50px;justify-content:center}.jsoneditor{--jse-theme-color: #7668ED;--jes-theme-light-color: #A69BFF;--jse-button-primary-background: #7668ED;--jse-message-success-background: #A69BFF} diff --git a/console/ui/dist/prod-nt/static/styles.f1672f2c7326a24e.css b/console/ui/dist/prod-nt/static/styles.f1672f2c7326a24e.css deleted file mode 100644 index d7989a5dab..0000000000 --- a/console/ui/dist/prod-nt/static/styles.f1672f2c7326a24e.css +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * Bootstrap v4.4.1 (https://getbootstrap.com/) - * Copyright 2011-2019 The Bootstrap Authors - * Copyright 2011-2019 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]){color:inherit;text-decoration:none}a:not([href]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer:before{content:"\2014\a0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-1>*{flex:0 0 100%;max-width:100%}.row-cols-2>*{flex:0 0 50%;max-width:50%}.row-cols-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-4>*{flex:0 0 25%;max-width:25%}.row-cols-5>*{flex:0 0 20%;max-width:20%}.row-cols-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-auto{flex:0 0 auto;width:auto;max-width:100%}.col-1{flex:0 0 8.333333%;max-width:8.333333%}.col-2{flex:0 0 16.666667%;max-width:16.666667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.333333%;max-width:33.333333%}.col-5{flex:0 0 41.666667%;max-width:41.666667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.333333%;max-width:58.333333%}.col-8{flex:0 0 66.666667%;max-width:66.666667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.333333%;max-width:83.333333%}.col-11{flex:0 0 91.666667%;max-width:91.666667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-sm-1>*{flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-sm-4>*{flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-md-1>*{flex:0 0 100%;max-width:100%}.row-cols-md-2>*{flex:0 0 50%;max-width:50%}.row-cols-md-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-md-4>*{flex:0 0 25%;max-width:25%}.row-cols-md-5>*{flex:0 0 20%;max-width:20%}.row-cols-md-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.col-md-1{flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-lg-1>*{flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-lg-4>*{flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-xl-1>*{flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-xl-4>*{flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered,.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:#0000000d}.table-hover tbody tr:hover{color:#212529;background-color:#00000013}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#7abaff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#8fd19e}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#86cfda}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#ffdf7e}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#ed969e}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:#00000013}.table-hover .table-active:hover{background-color:#00000013}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:#00000013}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:#ffffff0d}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:#ffffff13}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;font-size:1rem;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size],textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:inline-flex;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:#28a745e6;border-radius:.25rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:#28a745;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#28a745;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label:before,.was-validated .custom-control-input:valid~.custom-control-label:before{border-color:#28a745}.custom-control-input.is-valid:checked~.custom-control-label:before,.was-validated .custom-control-input:valid:checked~.custom-control-label:before{border-color:#34ce57;background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label:before,.was-validated .custom-control-input:valid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #28a74540}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label:before{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:#dc3545e6;border-radius:.25rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#dc3545;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label:before,.was-validated .custom-control-input:invalid~.custom-control-label:before{border-color:#dc3545}.custom-control-input.is-invalid:checked~.custom-control-label:before,.was-validated .custom-control-input:invalid:checked~.custom-control-label:before{border-color:#e4606d;background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #dc354540}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label:before{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.form-inline{display:flex;flex-flow:row wrap;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:flex;align-items:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:flex;flex:0 0 auto;flex-flow:row wrap;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:flex;align-items:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}.btn.disabled,.btn:disabled{opacity:.65}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#0069d9;border-color:#0062cc;box-shadow:0 0 0 .2rem #268fff80}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #268fff80}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{color:#fff;background-color:#5a6268;border-color:#545b62;box-shadow:0 0 0 .2rem #828a9180}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #828a9180}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#218838;border-color:#1e7e34;box-shadow:0 0 0 .2rem #48b46180}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #48b46180}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#138496;border-color:#117a8b;box-shadow:0 0 0 .2rem #3ab0c380}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #3ab0c380}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{color:#212529;background-color:#e0a800;border-color:#d39e00;box-shadow:0 0 0 .2rem #deaa0c80}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #deaa0c80}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c82333;border-color:#bd2130;box-shadow:0 0 0 .2rem #e1536180}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #e1536180}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{color:#212529;background-color:#e2e6ea;border-color:#dae0e5;box-shadow:0 0 0 .2rem #d8d9db80}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #d8d9db80}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{color:#fff;background-color:#23272b;border-color:#1d2124;box-shadow:0 0 0 .2rem #52585d80}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #52585d80}.btn-outline-primary{color:#007bff;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem #007bff80}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #007bff80}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem #6c757d80}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #6c757d80}.btn-outline-success{color:#28a745;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem #28a74580}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #28a74580}.btn-outline-info{color:#17a2b8;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem #17a2b880}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #17a2b880}.btn-outline-warning{color:#ffc107;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem #ffc10780}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #ffc10780}.btn-outline-danger{color:#dc3545;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem #dc354580}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #dc354580}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem #f8f9fa80}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #f8f9fa80}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem #343a4080}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #343a4080}.btn-link{font-weight:400;color:#007bff;text-decoration:none}.btn-link:hover{color:#0056b3;text-decoration:underline}.btn-link.focus,.btn-link:focus{text-decoration:underline;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-toggle:after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle:after{display:none}.dropleft .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty:after{margin-left:0}.dropleft .dropdown-toggle:before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropright .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropleft .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;flex:1 1 0%;min-width:0;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:flex;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label:after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.25rem;opacity:0}.custom-control-input:checked~.custom-control-label:before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #007bff40}.custom-control-input:focus:not(:checked)~.custom-control-label:before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label:before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label,.custom-control-input[disabled]~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label:before,.custom-control-input[disabled]~.custom-control-label:before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label:before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px}.custom-control-label:after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label:before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:before{border-color:#007bff;background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label:before{background-color:#007bff80}.custom-radio .custom-control-label:before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label:before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label:after{top:calc(.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label:after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label:after{background-color:#fff;transform:translate(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-select{display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem}.custom-file{position:relative;display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(1.5em + .75rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40}.custom-file-input:disabled~.custom-file-label,.custom-file-input[disabled]~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label:after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]:after{content:attr(data-browse)}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label:after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:calc(1.5em + .75rem);padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:1.4rem;padding:0;background-color:transparent;-webkit-appearance:none;appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{-moz-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;-ms-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{-ms-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label:before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label:before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:.5rem 1rem}.navbar .container,.navbar .container-fluid,.navbar .container-lg,.navbar .container-md,.navbar .container-sm,.navbar .container-xl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:#000000e6}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:#000000e6}.navbar-light .navbar-nav .nav-link{color:#00000080}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:#000000b3}.navbar-light .navbar-nav .nav-link.disabled{color:#0000004d}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:#000000e6}.navbar-light .navbar-toggler{color:#00000080;border-color:#0000001a}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-light .navbar-text{color:#00000080}.navbar-light .navbar-text a{color:#000000e6}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:#000000e6}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:#ffffff80}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:#ffffffbf}.navbar-dark .navbar-nav .nav-link.disabled{color:#ffffff40}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:#ffffff80;border-color:#ffffff1a}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-dark .navbar-text{color:#ffffff80}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:#00000008;border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:#00000008;border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;inset:0;padding:1.25rem}.card-img,.card-img-bottom,.card-img-top{flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{display:flex;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{column-count:3;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{display:flex;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item:before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;box-shadow:0 0 0 .2rem #007bff40}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:3;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#0062cc}a.badge-primary.focus,a.badge-primary:focus{outline:0;box-shadow:0 0 0 .2rem #007bff80}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;box-shadow:0 0 0 .2rem #6c757d80}.badge-success{color:#fff;background-color:#28a745}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#1e7e34}a.badge-success.focus,a.badge-success:focus{outline:0;box-shadow:0 0 0 .2rem #28a74580}.badge-info{color:#fff;background-color:#17a2b8}a.badge-info:focus,a.badge-info:hover{color:#fff;background-color:#117a8b}a.badge-info.focus,a.badge-info:focus{outline:0;box-shadow:0 0 0 .2rem #17a2b880}.badge-warning{color:#212529;background-color:#ffc107}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#d39e00}a.badge-warning.focus,a.badge-warning:focus{outline:0;box-shadow:0 0 0 .2rem #ffc10780}.badge-danger{color:#fff;background-color:#dc3545}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#bd2130}a.badge-danger.focus,a.badge-danger:focus{outline:0;box-shadow:0 0 0 .2rem #dc354580}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;box-shadow:0 0 0 .2rem #f8f9fa80}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;box-shadow:0 0 0 .2rem #343a4080}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}.progress{display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.media{display:flex;align-items:flex-start}.media-body{flex:1}.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{flex-direction:row}.list-group-horizontal .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal .list-group-item.active{margin-top:0}.list-group-horizontal .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-sm .list-group-item.active{margin-top:0}.list-group-horizontal-sm .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-md .list-group-item.active{margin-top:0}.list-group-horizontal-md .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-lg .list-group-item.active{margin-top:0}.list-group-horizontal-lg .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-xl .list-group-item.active{margin-top:0}.list-group-horizontal-xl .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush .list-group-item{border-right-width:0;border-left-width:0;border-radius:0}.list-group-flush .list-group-item:first-child{border-top-width:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none;appearance:none}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:.875rem;background-color:#ffffffd9;background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:flex;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:#ffffffd9;background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered:before{display:block;height:calc(100vh - 1rem);content:""}.modal-dialog-centered.modal-dialog-scrollable{flex-direction:column;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable:before{content:none}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.modal-header .close{padding:1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;flex:1 1 auto;padding:1rem}.modal-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:.75rem;border-top:1px solid #dee2e6;border-bottom-right-radius:calc(.3rem - 1px);border-bottom-left-radius:calc(.3rem - 1px)}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered:before{height:calc(100vh - 3.5rem)}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow:before,.bs-tooltip-top .arrow:before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow:before,.bs-tooltip-right .arrow:before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.bs-tooltip-bottom .arrow:before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow:before,.bs-tooltip-left .arrow:before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow:after,.popover .arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=top]>.arrow:before,.bs-popover-top>.arrow:before{bottom:0;border-width:.5rem .5rem 0;border-top-color:#00000040}.bs-popover-auto[x-placement^=top]>.arrow:after,.bs-popover-top>.arrow:after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow:before,.bs-popover-right>.arrow:before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:#00000040}.bs-popover-auto[x-placement^=right]>.arrow:after,.bs-popover-right>.arrow:after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=bottom]>.arrow:before,.bs-popover-bottom>.arrow:before{top:0;border-width:0 .5rem .5rem .5rem;border-bottom-color:#00000040}.bs-popover-auto[x-placement^=bottom]>.arrow:after,.bs-popover-bottom>.arrow:after{top:1px;border-width:0 .5rem .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow:before,.bs-popover-left>.arrow:before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:#00000040}.bs-popover-auto[x-placement^=left]>.arrow:after,.bs-popover-left>.arrow:after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){transform:translate(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid currentColor;border-right-color:transparent;border-radius:50%;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix:after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive:before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9:before{padding-top:42.857143%}.embed-responsive-16by9:before{padding-top:56.25%}.embed-responsive-4by3:before{padding-top:75%}.embed-responsive-1by1:before{padding-top:100%}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-fill{flex:1 1 auto!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}@media (min-width:576px){.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}}@media (min-width:768px){.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports (position:sticky){.sticky-top{position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.stretched-link:after{position:absolute;inset:0;z-index:1;pointer-events:auto;content:"";background-color:#0000}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#19692c!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#0f6674!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#a71d2a!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:#00000080!important}.text-white-50{color:#ffffff80!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;overflow-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,:after,:before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]:after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body,.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px #00000013,0 0 0 3px #007eff1a}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px #0000000f}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#999}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:#999}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px #0000000f;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:#0000008a;cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:#000000de;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:#333;background-color:#ebf5ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}:root{--jse-theme: light;--jse-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono: consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono: 14px;--jse-font-size: 16px;--jse-font-size-text-mode-search: 80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size: 1em;--jse-padding: 10px;--jse-theme-color: #3883fa;--jse-theme-color-highlight: #5f9dff;--jse-background-color: #fff;--jse-text-color: #4d4d4d;--jse-text-readonly: #8d8d8d;--jse-text-color-inverse: #fff;--jse-error-color: #ee5341;--jse-warning-color: #fdc539;--jse-main-border: 1px solid #d7d7d7;--jse-menu-color: var(--jse-text-color-inverse);--jse-menu-button-size: 32px;--jse-modal-background: #f5f5f5;--jse-modal-overlay-background: rgba(0, 0, 0, .3);--jse-modal-code-background: rgba(0, 0, 0, .05);--jse-modal-theme-color: #707070;--jse-modal-theme-color-highlight: #646464;--jse-tooltip-color: var(--jse-text-color);--jse-tooltip-background: var(--jse-modal-background);--jse-tooltip-border: var(--jse-main-border);--jse-tooltip-action-button-color: var(--jse-text-color-inverse);--jse-tooltip-action-button-background: #4d4d4d;--jse-panel-background: #ebebeb;--jse-panel-color: var(--jse-text-color);--jse-panel-color-readonly: #b2b2b2;--jse-panel-border: var(--jse-main-border);--jse-panel-button-color: inherit;--jse-panel-button-background: transparent;--jse-panel-button-color-highlight: var(--jse-text-color);--jse-panel-button-background-highlight: #e0e0e0;--jse-navigation-bar-background: var(--jse-background-color);--jse-navigation-bar-background-highlight: #e5e5e5;--jse-navigation-bar-dropdown-color: #656565;--jse-context-menu-background: #656565;--jse-context-menu-background-highlight: #7a7a7a;--jse-context-menu-color: var(--jse-text-color-inverse);--jse-context-menu-color-disabled: #9d9d9d;--jse-context-menu-separator-color: #7a7a7a;--jse-context-menu-pointer-hover-background: #b2b2b2;--jse-context-menu-pointer-background: var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight: var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color: var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background: rgba(255, 255, 255, .2);--jse-context-menu-tip-color: inherit;--jse-key-color: #1a1a1a;--jse-value-color: #1a1a1a;--jse-value-color-number: #ee422e;--jse-value-color-boolean: #ff8c00;--jse-value-color-null: #004ed0;--jse-value-color-string: #008000;--jse-value-color-url: #008000;--jse-delimiter-color: rgba(0, 0, 0, .38);--jse-edit-outline: 2px solid #656565;--jse-contents-background-color: transparent;--jse-contents-cursor: pointer;--jse-contents-selected-cursor: grab;--jse-selection-background-color: #d3d3d3;--jse-selection-background-inactive-color: #e8e8e8;--jse-hover-background-color: rgba(0, 0, 0, .06);--jse-active-line-background-color: rgba(0, 0, 0, .06);--jse-search-match-background-color: #99ff7780;--jse-collapsed-items-background-color: #f5f5f5;--jse-collapsed-items-selected-background-color: #c2c2c2;--jse-collapsed-items-link-color: rgba(0, 0, 0, .38);--jse-collapsed-items-link-color-highlight: #ee5341;--jse-search-match-color: #ffe665;--jse-search-match-outline: 1px solid #ffd700;--jse-search-match-active-color: #ffd700;--jse-search-match-active-outline: 1px solid #e1be00;--jse-tag-background: rgba(0, 0, 0, .2);--jse-tag-color: var(--jse-text-color-inverse);--jse-table-header-background: #f5f5f5;--jse-table-header-background-highlight: #e8e8e8;--jse-table-row-odd-background: rgba(0, 0, 0, .05);--jse-controls-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .24);--jse-input-background: var(--jse-background-color);--jse-input-background-readonly: transparent;--jse-input-border: 1px solid #d8dbdf;--jse-input-border-focus: 1px solid var(--jse-theme-color);--jse-input-radius: 3px;--jse-button-background: #e0e0e0;--jse-button-background-highlight: #e7e7e7;--jse-button-color: var(--jse-text-color);--jse-button-primary-background: var(--jse-theme-color);--jse-button-primary-background-highlight: var(--jse-theme-color-highlight);--jse-button-primary-background-disabled: #9d9d9d;--jse-button-primary-color: var(--jse-text-color-inverse);--jse-button-secondary-background: #d3d3d3;--jse-button-secondary-background-highlight: #e1e1e1;--jse-button-secondary-background-disabled: #9d9d9d;--jse-button-secondary-color: var(--jse-text-color);--jse-a-color: #156fc5;--jse-a-color-highlight: #0f508d;--jse-message-error-background: var(--jse-error-color);--jse-message-error-color: var(--jse-text-color-inverse);--jse-message-warning-background: #ffde5c;--jse-message-warning-color: var(--jse-text-color);--jse-message-success-background: #9ac45d;--jse-message-success-color: var(--jse-text-color-inverse);--jse-message-info-background: #4f91ff;--jse-message-info-color: var(--jse-text-color-inverse);--jse-message-action-background: rgba(255, 255, 255, .2);--jse-message-action-background-highlight: rgba(255, 255, 255, .3);--item-is-active-bg: #3883fa;--border: 1px solid #d8dbdf;--border-radius: 3px;--background: #fff;--padding: 0 10px;--multi-select-padding: 0 10px;--jse-color-picker-background: var(--jse-panel-background);--jse-color-picker-border-box-shadow: #cbcbcb 0 0 0 1px}.bg-secondary{background-color:#978cf1!important}.bg-success{background-color:#63c179}body{font-family:Source Sans Pro,sans-serif}a{color:#7668ed}a:hover{color:#978cf1}.custom-control-input:checked~.custom-control-label:before{background-color:#7668ed;border-color:#7668ed}.btn{font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:12px;outline:none!important;outline-width:0!important;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;-webkit-appearance:none}.btn-sm{font-size:11px}.btn-primary.dropdown-toggle{background-color:#8b7ff0}.btn-primary.dropdown-toggle[aria-expanded=true]{background-color:#7668ed;border-color:#7668ed}.btn-primary.dropdown-toggle:active{background-color:#7668ed!important;border-color:#7668ed}.btn-primary.dropdown-toggle:focus{background-color:#f96cf8!important;border-color:#f853f7}.btn-primary{background-color:#7668ed;border-color:#7668ed}.btn-primary:hover{background-color:#8b7ff0;border-color:#7668ed}.btn-primary:active{background-color:#7668ed!important;border-color:#7668ed}.btn-primary:focus{background-color:#f96cf8!important;border-color:#f853f7}.btn-primary:disabled{background-color:#7668ed;border-color:#7668ed}.btn-outline-primary{border:solid 2px #7668ED;color:#7668ed;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:13px}.btn-outline-primary:hover{background-color:#8b7ff0;border-color:#7668ed}.btn-outline-primary:active{background-color:#f96cf8!important;border-color:#f853f7!important}.btn-outline-primary:disabled{background-color:#7668ed;border-color:#7668ed}.btn-outline-secondary{border:solid 1px #aaaacc;font-size:10px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:13px}.btn-outline-secondary:hover{background-color:#eaeaf2;color:#7668ed}.btn-outline-secondary:active{background-color:#6e5fec!important}.btn-outline-dark{border-color:#c1c1da;font-size:10px}.btn-outline-dark img{margin-left:-.5em}.btn-outline-dark:hover:not(.disabled){background-color:#7668ed;border-color:#e1e1ed}.btn-outline-dark:active{background-color:#6e5fec}.btn-danger{background-color:#ffd3cf;color:#fe756a;border-color:#fe756a}.btn-danger:hover{background-color:#fe756a!important;color:#fff}.btn-danger-icon{background-color:#fff}.btn-danger-icon:hover{color:#fe756a;background-color:#ffd3cf!important}.btn-group-toggle label{font-size:10px}.btn-warning{background-color:#edd83e;background-color:#ecd635!important}.btn-warning:hover{background-color:#e3ca15!important}.page-btns .btn:hover{background:#A69BFF!important}.page-btns .btn{padding:.3em .9em}.breadcrumb{padding:0;margin:0;background:#fff}.badge{border-radius:20px;padding:.3rem .8rem;text-transform:uppercase;letter-spacing:.1em;font-size:11px;color:#333564;display:inline-flex;align-items:center}.badge-secondary{background-color:#eaeaf2}.badge-secondary img{margin-right:.5rem;margin-left:-.5rem}.badge-light{background-color:#eae8fc}.badge-light img{margin-right:.5rem;margin-left:-.5rem}.badge-primary{background-color:#d8edfa}.badge-primary img{margin-right:.5rem;margin-left:-.5rem}.badge-success{background-color:#d0edd7}.badge-success img{margin-right:.5rem;margin-left:-.5rem}.badge-danger{background-color:#ffd3cf;color:#fe756a}.badge-danger img{margin-right:.5rem;margin-left:-.2rem}.badge-warning{background-color:#faf4ca}.badge-warning img{margin-right:.5rem;margin-left:-.2rem}.badge-info{background-color:#fee6fe}.badge-info img{margin-right:.5rem;margin-left:-.5rem}.badge-dark{background-color:#a7a7ca}.badge-dark img{margin-right:.5rem;margin-left:-.5rem}.loading{width:50px}.add-border .row{border-top:solid 1px #dadae9;border-left:solid 1px #dadae9;border-right:solid 1px #dadae9;padding:.6rem;margin:0}.add-border .form-row{border-top:solid 1px #dadae9;margin:0;padding-top:2rem}.add-border-single-row .row{border:solid 1px #dadae9;padding:.75rem;margin:0}.add-border-single-row-bottom{border-bottom:solid 1px #dadae9}.remove-sides{border-left:none!important;border-right:none!important}.card-box{border:solid 1px #dadae9;padding:1.75rem .75rem}.alert h6{margin-bottom:8px}.alert small{font-size:15px}.alert-primary{background-color:#f2f1fd;border-color:#9f96f2;color:#7668ed}.alert-success{background-color:#dbf1e0;border-color:#87d098;color:#20512c}.alert-secondary{background-color:#fafafc;border-color:#dadae9;color:#4a4a7b}.alert-danger{background-color:#ffeae9;border-color:#fea49d;color:#fe756a}.alert-warning{background-color:#faf4ca;border-color:#f1e16d;color:#333564}.alert-info{background-color:#eef7fd;border-color:#95cdf0;color:#333564}.section-divider:after{height:1px;margin-left:1rem;flex-grow:1;align-self:center;background-color:#dadae9;content:""}.section-divider-btn{display:flex;align-items:center}.section-divider-btn__text{display:flex;flex-grow:1;align-items:center}.section-divider-btn__text:after{height:1px;flex-grow:1;margin-left:15px;background-color:#dadae9;content:""}.table .thead-light th{background-color:#fafafc;border-color:#dadae9;color:#4a4a7b;border-bottom:0}.table-hover tbody tr:hover td{background-color:#f2f1fd}.bg-grad{background-color:#6a57ee;background-image:linear-gradient(to bottom,#6a57ee 0%,#3a3f77 100%);background-position:3% 3%,top right,97% bottom,bottom left;background-repeat:no-repeat}.spinner{height:100%}.spinner>p{display:table-cell;text-align:center;width:100%;vertical-align:middle}.spinner>span{display:block;text-align:left;width:100%;min-width:24px;height:100%;min-height:24px;background-image:url(/static/white-progress-spinner.gif);background-repeat:no-repeat;background-position-x:center;background-position-y:center}.tooltip-bg .tooltip-inner{background-color:#7668ed;font-size:11px;text-align:left}.bs-tooltip-right .arrow:before{border-right-color:#7668ed}.bs-tooltip-top .arrow:before{border-top-color:#7668ed}.bs-tooltip-bottom .arrow:before{border-bottom-color:#7668ed}.bs-tooltip-left .arrow:before{border-left-color:#7668ed}.arrow{position:relative;overflow:hidden;margin-right:5px;display:inline-block}.arrow-right{background-image:url(/static/svg/arrow-right.svg);background-repeat:no-repeat;background-position:center;height:12px;width:12px;top:0;left:0}.arrow-down{background-image:url(/static/svg/arrow-down.svg);background-repeat:no-repeat;background-position:center;height:12px;width:12px;top:0;left:0}.drop-zone{border:2px dashed #7668ED;border-radius:5px;height:100px;margin:auto auto 48px;background-color:#e5e2ff}.drop-zone-content{margin-top:25px;align-items:center;color:#0782d0;display:flex;height:50px;justify-content:center}.jsoneditor{--jse-theme-color: #7668ED;--jes-theme-light-color: #A69BFF;--jse-button-primary-background: #7668ED;--jse-message-success-background: #A69BFF} diff --git a/console/ui/dist/prod/index.html b/console/ui/dist/prod/index.html index 0e517ed342..f0b2a363b7 100644 --- a/console/ui/dist/prod/index.html +++ b/console/ui/dist/prod/index.html @@ -1,13 +1,13 @@ Nakama Console - + - + - + \ No newline at end of file diff --git a/console/ui/dist/prod/static/3rdpartylicenses.txt b/console/ui/dist/prod/static/3rdpartylicenses.txt index d79e79f835..fd1b141e5f 100644 --- a/console/ui/dist/prod/static/3rdpartylicenses.txt +++ b/console/ui/dist/prod/static/3rdpartylicenses.txt @@ -72,6 +72,30 @@ THE SOFTWARE. @ng-select/ng-select MIT +@popperjs/core +MIT +The MIT License (MIT) + +Copyright (c) 2019 Federico Zivolo + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @swimlane/ngx-charts MIT MIT License @@ -997,21 +1021,6 @@ Apache-2.0 -tslib -0BSD -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - ui vanilla-jsoneditor diff --git a/console/ui/dist/prod/static/main.1201486d215da8ad.js b/console/ui/dist/prod/static/main.1201486d215da8ad.js deleted file mode 100644 index 2b635ab7d0..0000000000 --- a/console/ui/dist/prod/static/main.1201486d215da8ad.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{440:(Yt,Tn,De)=>{"use strict";function rt(t){return"function"==typeof t}let Oe=!1;const dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Oe&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Oe=t},get useDeprecatedSynchronousErrorHandling(){return Oe}};function Ge(t){setTimeout(()=>{throw t},0)}const _e={closed:!0,next(t){},error(t){if(dt.useDeprecatedSynchronousErrorHandling)throw t;Ge(t)},complete(){}},et=Array.isArray||(t=>t&&"number"==typeof t.length);function Ve(t){return null!==t&&"object"==typeof t}const se=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class ue{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof ue)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof se?e.errors:e),[])}ue.EMPTY=((t=new ue).closed=!0,t);const D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class O extends ue{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_e;break;case 1:if(!n){this.destination=_e;break}if("object"==typeof n){n instanceof O?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new te(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new te(this,n,e,i)}}[D](){return this}static create(n,e,i){const r=new O(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class te extends O{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;rt(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==_e&&(s=Object.create(e),rt(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;dt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=dt;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):Ge(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;Ge(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);dt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),dt.useDeprecatedSynchronousErrorHandling)throw i;Ge(i)}}__tryOrSetError(n,e,i){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return dt.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(Ge(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const kt="function"==typeof Symbol&&Symbol.observable||"@@observable";function jt(t){return t}function wn(t){return 0===t.length?jt:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let rn=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Je(t,n,e){if(t){if(t instanceof O)return t;if(t[D])return t[D]()}return t||n||e?new O(t,n,e):new O(_e)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||dt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),dt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){dt.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Me(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof O?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Mi(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[kt](){return this}pipe(...e){return 0===e.length?this:wn(e)(this)}toPromise(e){return new(e=Mi(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Mi(t){if(t||(t=dt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Xr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class hs extends ue{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Ya extends O{constructor(n){super(n),this.destination=n}}let tr=(()=>{class t extends rn{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[D](){return new Ya(this)}lift(e){const i=new mu(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Xr;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew mu(n,e),t})();class mu extends tr{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):ue.EMPTY}}function Sa(t){return t&&"function"==typeof t.schedule}function yn(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Cd(t,n))}}class Cd{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new kd(n,this.project,this.thisArg))}}class kd extends O{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Kn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function pl(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const nc=t=>{if(t&&"function"==typeof t[kt])return(t=>n=>{const e=t[kt]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Zr(t))return Kn(t);if(pl(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Ge),n))(t);if(t&&"function"==typeof t[Ro])return(t=>n=>{const e=t[Ro]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${Ve(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Oc(t,n){return new rn(e=>{const i=new ue;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function co(t,n){return n?function da(t,n){if(null!=t){if(function vu(t){return t&&"function"==typeof t[kt]}(t))return function Sd(t,n){return new rn(e=>{const i=new ue;return i.add(n.schedule(()=>{const r=t[kt]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(pl(t))return function Nc(t,n){return new rn(e=>{const i=new ue;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Zr(t))return Oc(t,n);if(function Ja(t){return t&&"function"==typeof t[Ro]}(t)||"string"==typeof t)return function Dd(t,n){if(!t)throw new Error("Iterable cannot be null");return new rn(e=>{const i=new ue;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Ro](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof rn?t:new rn(nc(t))}class ml extends O{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class W extends O{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Ne(t,n){if(!n.closed)return t instanceof rn?t.subscribe(n):nc(t)(n)}function nt(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(nt((r,o)=>co(t(r,o)).pipe(yn((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new zt(t,e)))}class zt{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new Qt(n,this.project,this.concurrent))}}class Qt extends W{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function A(t=Number.POSITIVE_INFINITY){return nt(jt,t)}function st(t,n){return n?Oc(t,n):new rn(Kn(t))}function Tt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return Sa(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof rn?t[0]:A(n)(st(t,e))}function Ut(){return function(n){return n.lift(new Vt(n))}}class Vt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new mn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class mn extends O{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class pe extends rn{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new ue,n.add(this.source.subscribe(new Ft(this.getSubject(),this))),n.closed&&(this._connection=null,n=ue.EMPTY)),n}refCount(){return Ut()(this)}}const yt=(()=>{const t=pe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Ft extends Ya{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class dn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function qt(){return new tr}function We(){return t=>Ut()(function Pt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new dn(r,n));const o=Object.create(i,yt);return o.source=i,o.subjectFactory=r,o}}(qt)(t))}function Xe(t){for(let n in t)if(t[n]===Xe)return n;throw Error("Could not find renamed property on target object.")}function bt(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Cn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Cn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function jr(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Y0=Xe({__forward_ref__:Xe});function Gi(t){return t.__forward_ref__=Gi,t.toString=function(){return Cn(this())},t}function wi(t){return tT(t)?t():t}function tT(t){return"function"==typeof t&&t.hasOwnProperty(Y0)&&t.__forward_ref__===Gi}function nT(t){return t&&!!t.\u0275providers}const U_="https://g.co/ng/security#xss";class Ot extends Error{constructor(n,e){super(G_(n,e)),this.code=n}}function G_(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Ri(t){return"string"==typeof t?t:null==t?"":String(t)}function W_(t,n){throw new Ot(-201,!1)}function jc(t,n){null==t&&function to(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Et(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ci(t){return{providers:t.providers||[],imports:t.imports||[]}}function q_(t){return _L(t,X_)||_L(t,wL)}function _L(t,n){return t.hasOwnProperty(n)?t[n]:null}function xL(t){return t&&(t.hasOwnProperty(iT)||t.hasOwnProperty(hge))?t[iT]:null}const X_=Xe({\u0275prov:Xe}),iT=Xe({\u0275inj:Xe}),wL=Xe({ngInjectableDef:Xe}),hge=Xe({ngInjectorDef:Xe});var ki=(()=>((ki=ki||{})[ki.Default=0]="Default",ki[ki.Host=1]="Host",ki[ki.Self=2]="Self",ki[ki.SkipSelf=4]="SkipSelf",ki[ki.Optional=8]="Optional",ki))();let rT;function Pc(t){const n=rT;return rT=t,n}function CL(t,n,e){const i=q_(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ki.Optional?null:void 0!==n?n:void W_(Cn(t))}const $o=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),J0={},oT="__NG_DI_FLAG__",Y_="ngTempTokenPath",pge="ngTokenPath",mge=/\n/gm,gge="\u0275",kL="__source";let K0;function sg(t){const n=K0;return K0=t,n}function vge(t,n=ki.Default){if(void 0===K0)throw new Ot(-203,!1);return null===K0?CL(t,void 0,n):K0.get(t,n&ki.Optional?null:void 0,n)}function ct(t,n=ki.Default){return(function fge(){return rT}()||vge)(wi(t),n)}function ar(t,n=ki.Default){return ct(t,J_(n))}function J_(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sT(t){const n=[];for(let e=0;e((Td=Td||{})[Td.OnPush=0]="OnPush",Td[Td.Default=1]="Default",Td))(),yu=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(yu||(yu={})),yu))();const kh={},Yr=[],K_=Xe({\u0275cmp:Xe}),aT=Xe({\u0275dir:Xe}),lT=Xe({\u0275pipe:Xe}),DL=Xe({\u0275mod:Xe}),Sh=Xe({\u0275fac:Xe}),Z0=Xe({__NG_ELEMENT_ID__:Xe});let xge=0;function Rt(t){return vf(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Td.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||Yr,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||yu.Emulated,id:"c"+xge++,styles:t.styles||Yr,_:null,setInput:null,schemas:t.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=t.dependencies,s=t.features;return r.inputs=AL(t.inputs,i),r.outputs=AL(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(TL).filter(EL):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(vl).filter(EL):null,r})}function TL(t){return no(t)||Ka(t)}function EL(t){return null!==t}function Di(t){return vf(()=>({type:t.type,bootstrap:t.bootstrap||Yr,declarations:t.declarations||Yr,imports:t.imports||Yr,exports:t.exports||Yr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function AL(t,n){if(null==t)return kh;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const Zt=Rt;function gl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function no(t){return t[K_]||null}function Ka(t){return t[aT]||null}function vl(t){return t[lT]||null}function rc(t,n){const e=t[DL]||null;if(!e&&!0===n)throw new Error(`Type ${Cn(t)} does not have '\u0275mod' property.`);return e}const Dh=0,Rn=1,Ji=2,fs=3,bu=4,Ep=5,Qa=6,lg=7,ks=8,Q_=9,Z_=10,ir=11,cT=12,e1=13,ML=14,cg=15,Za=16,t1=17,ug=18,Ed=19,n1=20,IL=21,Bo=22,uT=1,FL=2,ex=7,tx=8,dg=9,yl=10;function oc(t){return Array.isArray(t)&&"object"==typeof t[uT]}function _u(t){return Array.isArray(t)&&!0===t[uT]}function dT(t){return 0!=(4&t.flags)}function i1(t){return t.componentOffset>-1}function nx(t){return 1==(1&t.flags)}function xu(t){return null!==t.template}function kge(t){return 0!=(256&t[Ji])}function Ap(t,n){return t.hasOwnProperty(Sh)?t[Sh]:null}class Tge{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Hn(){return jL}function jL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Age),Ege}function Ege(){const t=LL(this),n=t?.current;if(n){const e=t.previous;if(e===kh)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Age(t,n,e,i){const r=this.declaredInputs[e],o=LL(t)||function Mge(t,n){return t[PL]=n}(t,{previous:kh,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Tge(l&&l.currentValue,n,a===kh),t[i]=n}Hn.ngInherit=!0;const PL="__ngSimpleChanges__";function LL(t){return t[PL]||null}const Lc=function(t,n,e){},RL="svg";function Ta(t){for(;Array.isArray(t);)t=t[Dh];return t}function ix(t,n){return Ta(n[t])}function sc(t,n){return Ta(n[t.index])}function BL(t,n){return t.data[n]}function hg(t,n){return t[n]}function ac(t,n){const e=n[t];return oc(e)?e:e[Dh]}function rx(t){return 64==(64&t[Ji])}function yf(t,n){return null==n?null:t[n]}function VL(t){t[ug]=0}function fT(t,n){t[Ep]+=n;let e=t,i=t[fs];for(;null!==i&&(1===n&&1===e[Ep]||-1===n&&0===e[Ep]);)i[Ep]+=n,e=i,i=i[fs]}const $i={lFrame:KL(null),bindingsEnabled:!0};function zL(){return $i.bindingsEnabled}function Gt(){return $i.lFrame.lView}function Pr(){return $i.lFrame.tView}function $e(t){return $i.lFrame.contextLView=t,t[ks]}function Be(t){return $i.lFrame.contextLView=null,t}function Ea(){let t=UL();for(;null!==t&&64===t.type;)t=t.parent;return t}function UL(){return $i.lFrame.currentTNode}function Ad(t,n){const e=$i.lFrame;e.currentTNode=t,e.isParent=n}function pT(){return $i.lFrame.isParent}function mT(){$i.lFrame.isParent=!1}function bl(){const t=$i.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function fg(){return $i.lFrame.bindingIndex++}function Eh(t){const n=$i.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function zge(t,n){const e=$i.lFrame;e.bindingIndex=e.bindingRootIndex=t,gT(n)}function gT(t){$i.lFrame.currentDirectiveIndex=t}function XL(){return $i.lFrame.currentQueryIndex}function yT(t){$i.lFrame.currentQueryIndex=t}function Gge(t){const n=t[Rn];return 2===n.type?n.declTNode:1===n.type?t[Qa]:null}function YL(t,n,e){if(e&ki.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&ki.Host||(r=Gge(o),null===r||(o=o[cg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=$i.lFrame=JL();return i.currentTNode=n,i.lView=t,!0}function bT(t){const n=JL(),e=t[Rn];$i.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function JL(){const t=$i.lFrame,n=null===t?null:t.child;return null===n?KL(t):n}function KL(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function QL(){const t=$i.lFrame;return $i.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ZL=QL;function _T(){const t=QL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function _l(){return $i.lFrame.selectedIndex}function Mp(t){$i.lFrame.selectedIndex=t}function es(){const t=$i.lFrame;return BL(t.tView,t.selectedIndex)}function at(){$i.lFrame.currentNamespace=RL}function Ip(){!function Yge(){$i.lFrame.currentNamespace=null}()}function ox(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[ug]+=65536),(a>11>16&&(3&t[Ji])===n){t[Ji]+=2048,Lc(4,a,o);try{o.call(a)}finally{Lc(5,a,o)}}}else{Lc(4,a,o);try{o.call(a)}finally{Lc(5,a,o)}}}const pg=-1;class o1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function CT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[cg],e--;return i}let kT=!0;function ux(t){const n=kT;return kT=t,n}const oR=255,sR=5;let ive=0;const Md={};function dx(t,n){const e=aR(t,n);if(-1!==e)return e;const i=n[Rn];i.firstCreatePass&&(t.injectorIndex=n.length,ST(i.data,t),ST(n,null),ST(i.blueprint,null));const r=DT(t,n),o=t.injectorIndex;if(rR(r)){const s=lx(r),a=cx(r,n),l=a[Rn].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function ST(t,n){t.push(0,0,0,0,0,0,0,0,n)}function aR(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function DT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=pR(r),null===i)return pg;if(e++,r=r[cg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return pg}function TT(t,n,e){!function rve(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Z0)&&(i=e[Z0]),null==i&&(i=e[Z0]=ive++);const r=i&oR;n.data[t+(r>>sR)]|=1<=0?n&oR:lve:n}(e);if("function"==typeof o){if(!YL(n,t,i))return i&ki.Host?lR(r,0,i):cR(n,e,i,r);try{const s=o(i);if(null!=s||i&ki.Optional)return s;W_()}finally{ZL()}}else if("number"==typeof o){let s=null,a=aR(t,n),l=pg,c=i&ki.Host?n[Za][Qa]:null;for((-1===a||i&ki.SkipSelf)&&(l=-1===a?DT(t,n):n[a+8],l!==pg&&fR(i,!1)?(s=n[Rn],a=lx(l),n=cx(l,n)):a=-1);-1!==a;){const u=n[Rn];if(hR(o,a,u.data)){const d=sve(a,n,e,s,i,c);if(d!==Md)return d}l=n[a+8],l!==pg&&fR(i,n[Rn].data[a+8]===c)&&hR(o,a,n)?(s=u,a=lx(l),n=cx(l,n)):a=-1}}return r}function sve(t,n,e,i,r,o){const s=n[Rn],a=s.data[t+8],u=hx(a,s,e,null==i?i1(a)&&kT:i!=s&&0!=(3&a.type),r&ki.Host&&o===a);return null!==u?Fp(n,s,u,a):Md}function hx(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&xu(f)&&f.type===e)return l}return null}function Fp(t,n,e,i){let r=t[e];const o=n.data;if(function Zge(t){return t instanceof o1}(r)){const s=r;s.resolving&&function rge(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Ot(-200,`Circular dependency in DI detected for ${t}${e}`)}(function eo(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ri(t)}(o[e]));const a=ux(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pc(s.injectImpl):null;YL(t,i,ki.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Kge(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=jL(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Pc(l),ux(a),s.resolving=!1,ZL()}}return r}function hR(t,n,e){return!!(e[n+(t>>sR)]&1<{const n=t.prototype.constructor,e=n[Sh]||ET(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Sh]||ET(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ET(t){return tT(t)?()=>{const n=ET(wi(t));return n&&n()}:Ap(t)}function pR(t){const n=t[Rn],e=n.type;return 2===e?n.declTNode:1===e?t[Qa]:null}function Ah(t){return function ove(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function AT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(vg)?l[vg]:Object.defineProperty(l,vg,{value:[]})[vg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class zn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Et({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Np(t,n){t.forEach(e=>Array.isArray(e)?Np(e,n):n(e))}function gR(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function fx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function c1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function fve(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function IT(t,n){const e=_g(t,n);if(e>=0)return t[1|e]}function _g(t,n){return function vR(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Bl=Bl||{})[Bl.Important=1]="Important",Bl[Bl.DashCase=2]="DashCase",Bl))();const LT=new Map;let jve=0;const $T="__ngContext__";function el(t,n){oc(n)?(t[$T]=n[n1],function Lve(t){LT.set(t[n1],t)}(n)):t[$T]=n}let BT;function VT(t,n){return BT(t,n)}function m1(t){const n=t[fs];return _u(n)?n[fs]:n}function HT(t){return LR(t[e1])}function zT(t){return LR(t[bu])}function LR(t){for(;null!==t&&!_u(t);)t=t[bu];return t}function wg(t,n,e,i,r){if(null!=i){let o,s=!1;_u(i)?o=i:oc(i)&&(s=!0,i=i[Dh]);const a=Ta(i);0===t&&null!==e?null==r?zR(n,e,a):Op(n,e,a,r||null,!0):1===t&&null!==e?Op(n,e,a,r||null,!0):2===t?function JT(t,n,e){const i=vx(t,n);i&&function i0e(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function s0e(t,n,e,i,r){const o=e[ex];o!==Ta(e)&&wg(n,t,i,o,r);for(let a=yl;a0&&(t[e-1][bu]=i[bu]);const o=fx(t,yl+n);!function Yve(t,n){g1(t,n,n[ir],2,null,null),n[Dh]=null,n[Qa]=null}(i[Rn],i);const s=o[Ed];null!==s&&s.detachView(o[Rn]),i[fs]=null,i[bu]=null,i[Ji]&=-65}return i}function BR(t,n){if(!(128&n[Ji])){const e=n[ir];e.destroyNode&&g1(t,n,e,3,null,null),function Qve(t){let n=t[e1];if(!n)return qT(t[Rn],t);for(;n;){let e=null;if(oc(n))e=n[e1];else{const i=n[yl];i&&(e=i)}if(!e){for(;n&&!n[bu]&&n!==t;)oc(n)&&qT(n[Rn],n),n=n[fs];null===n&&(n=t),oc(n)&&qT(n[Rn],n),e=n&&n[bu]}n=e}}(n)}}function qT(t,n){if(!(128&n[Ji])){n[Ji]&=-65,n[Ji]|=128,function n0e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===yu.None||o===yu.Emulated)return null}return sc(i,e)}}(t,n.parent,e)}function Op(t,n,e,i,r){t.insertBefore(n,e,i,r)}function zR(t,n,e){t.appendChild(n,e)}function UR(t,n,e,i,r){null!==i?Op(t,n,e,i,r):zR(t,n,e)}function vx(t,n){return t.parentNode(n)}function GR(t,n,e){return qR(t,n,e)}let XT,_x,ZT,xx,qR=function WR(t,n,e){return 40&t.type?sc(t,e):null};function yx(t,n,e,i){const r=VR(t,i,n),o=n[ir],a=GR(i.parent||n[Qa],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return _x}()?.createHTML(t)||t}function eE(){if(void 0===xx&&(xx=null,$o.trustedTypes))try{xx=$o.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xx}function e5(t){return eE()?.createHTML(t)||t}function n5(t){return eE()?.createScriptURL(t)||t}class jp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${U_})`}}class f0e extends jp{getTypeName(){return"HTML"}}class p0e extends jp{getTypeName(){return"Style"}}class m0e extends jp{getTypeName(){return"Script"}}class g0e extends jp{getTypeName(){return"URL"}}class v0e extends jp{getTypeName(){return"ResourceURL"}}function cc(t){return t instanceof jp?t.changingThisBreaksApplicationSecurity:t}function Id(t,n){const e=function y0e(t){return t instanceof jp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${U_})`)}return e===n}class k0e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Cg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class S0e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Cg(n),e}}const T0e=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function wx(t){return(t=String(t)).match(T0e)?t:"unsafe:"+t}function Mh(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function v1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const r5=Mh("area,br,col,hr,img,wbr"),o5=Mh("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),s5=Mh("rp,rt"),tE=v1(r5,v1(o5,Mh("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),v1(s5,Mh("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),v1(s5,o5)),nE=Mh("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),a5=v1(nE,Mh("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Mh("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),E0e=Mh("script,style,template");class A0e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!tE.hasOwnProperty(e))return this.sanitizedSomething=!0,!E0e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();tE.hasOwnProperty(e)&&!r5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(l5(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const M0e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I0e=/([^\#-~ |!])/g;function l5(t){return t.replace(/&/g,"&").replace(M0e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(I0e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Cx;function c5(t,n){let e=null;try{Cx=Cx||function i5(t){const n=new S0e(t);return function D0e(){try{return!!(new window.DOMParser).parseFromString(Cg(""),"text/html")}catch{return!1}}()?new k0e(n):n}(t);let i=n?String(n):"";e=Cx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Cx.getInertBodyElement(i)}while(i!==o);return Cg((new A0e).sanitizeChildren(iE(e)||e))}finally{if(e){const i=iE(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function iE(t){return"content"in t&&function F0e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ko=(()=>((ko=ko||{})[ko.NONE=0]="NONE",ko[ko.HTML=1]="HTML",ko[ko.STYLE=2]="STYLE",ko[ko.SCRIPT=3]="SCRIPT",ko[ko.URL=4]="URL",ko[ko.RESOURCE_URL=5]="RESOURCE_URL",ko))();function kx(t){const n=b1();return n?e5(n.sanitize(ko.HTML,t)||""):Id(t,"HTML")?e5(cc(t)):c5(function ZR(){return void 0!==ZT?ZT:typeof document<"u"?document:void 0}(),Ri(t))}function y1(t){const n=b1();return n?n.sanitize(ko.URL,t)||"":Id(t,"URL")?cc(t):wx(Ri(t))}function u5(t){const n=b1();if(n)return n5(n.sanitize(ko.RESOURCE_URL,t)||"");if(Id(t,"ResourceURL"))return n5(cc(t));throw new Ot(904,!1)}function b1(){const t=Gt();return t&&t[cT]}const Sx=new zn("ENVIRONMENT_INITIALIZER"),Dx=new zn("INJECTOR",-1),h5=new zn("INJECTOR_DEF_TYPES");class f5{get(n,e=J0){if(e===J0){const i=new Error(`NullInjectorError: No provider for ${Cn(n)}!`);throw i.name="NullInjectorError",i}return e}}function $0e(...t){return{\u0275providers:p5(0,t),\u0275fromNgModule:!0}}function p5(t,...n){const e=[],i=new Set;let r;return Np(n,o=>{const s=o;rE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&m5(r,e),e}function m5(t,n){for(let e=0;e{n.push(o)})}}function rE(t,n,e,i){if(!(t=wi(t)))return!1;let r=null,o=xL(t);const s=!o&&no(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=xL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)rE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Np(o.imports,u=>{rE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&m5(c,n)}if(!a){const c=Ap(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Yr},{provide:h5,useValue:r,multi:!0},{provide:Sx,useValue:()=>ct(r),multi:!0})}const l=o.providers;null==l||a||oE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function oE(t,n){for(let e of t)nT(e)&&(e=e.\u0275providers),Array.isArray(e)?oE(e,n):n(e)}const B0e=Xe({provide:String,useValue:Xe});function sE(t){return null!==t&&"object"==typeof t&&B0e in t}function Pp(t){return"function"==typeof t}const aE=new zn("Set Injector scope."),Tx={},H0e={};let lE;function Ex(){return void 0===lE&&(lE=new f5),lE}class Fd{}class y5 extends Fd{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,uE(n,s=>this.processProvider(s)),this.records.set(Dx,kg(void 0,this)),r.has("environment")&&this.records.set(Fd,kg(void 0,this));const o=this.records.get(aE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(h5.multi,Yr,ki.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=sg(this),i=Pc(void 0);try{return n()}finally{sg(e),Pc(i)}}get(n,e=J0,i=ki.Default){this.assertNotDestroyed(),i=J_(i);const r=sg(this),o=Pc(void 0);try{if(!(i&ki.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function q0e(t){return"function"==typeof t||"object"==typeof t&&t instanceof zn}(n)&&q_(n);a=l&&this.injectableDefInScope(l)?kg(cE(n),Tx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ki.Self?Ex():this.parent).get(n,e=i&ki.Optional&&e===J0?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Y_]=s[Y_]||[]).unshift(Cn(n)),r)throw s;return function bge(t,n,e,i){const r=t[Y_];throw n[kL]&&r.unshift(n[kL]),t.message=function _ge(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==gge?t.slice(2):t;let r=Cn(n);if(Array.isArray(n))r=n.map(Cn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Cn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(mge,"\n ")}`}("\n"+t.message,r,e,i),t[pge]=r,t[Y_]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Pc(o),sg(r)}}resolveInjectorInitializers(){const n=sg(this),e=Pc(void 0);try{const i=this.get(Sx.multi,Yr,ki.Self);for(const r of i)r()}finally{sg(n),Pc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Cn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ot(205,!1)}processProvider(n){let e=Pp(n=wi(n))?n:wi(n&&n.provide);const i=function U0e(t){return sE(t)?kg(void 0,t.useValue):kg(b5(t),Tx)}(n);if(Pp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=kg(void 0,Tx,!0),r.factory=()=>sT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Tx&&(e.value=H0e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W0e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=wi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function cE(t){const n=q_(t),e=null!==n?n.factory:Ap(t);if(null!==e)return e;if(t instanceof zn)throw new Ot(204,!1);if(t instanceof Function)return function z0e(t){const n=t.length;if(n>0)throw c1(n,"?"),new Ot(204,!1);const e=function uge(t){const n=t&&(t[X_]||t[wL]);return n?(function dge(t){if(t.hasOwnProperty("name"))return t.name;(""+t).match(/^function\s*([^\s(]+)/)}(t),n):null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ot(204,!1)}function b5(t,n,e){let i;if(Pp(t)){const r=wi(t);return Ap(r)||cE(r)}if(sE(t))i=()=>wi(t.useValue);else if(function v5(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...sT(t.deps||[]));else if(function g5(t){return!(!t||!t.useExisting)}(t))i=()=>ct(wi(t.useExisting));else{const r=wi(t&&(t.useClass||t.provide));if(!function G0e(t){return!!t.deps}(t))return Ap(r)||cE(r);i=()=>new r(...sT(t.deps))}return i}function kg(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function uE(t,n){for(const e of t)Array.isArray(e)?uE(e,n):e&&nT(e)?uE(e.\u0275providers,n):n(e)}class X0e{}class _5{}class J0e{resolveComponentFactory(n){throw function Y0e(t){const n=Error(`No component factory found for ${Cn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let $c=(()=>{class t{}return t.NULL=new J0e,t})();function K0e(){return Sg(Ea(),Gt())}function Sg(t,n){return new ti(sc(t,n))}let ti=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=K0e,t})();function Q0e(t){return t instanceof ti?t.nativeElement:t}class Lp{}let Ss=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Z0e(){const t=Gt(),e=ac(Ea().index,t);return(oc(e)?e:t)[ir]}(),t})(),e1e=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>null}),t})();class _1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const t1e=new _1("15.2.2"),dE={},hE="ngOriginalError";function fE(t){return t[hE]}class Dg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&fE(n);for(;e&&fE(e);)e=fE(e);return e||null}}function w5(t){return t.ownerDocument.defaultView}function Ih(t){return t instanceof Function?t():t}function k5(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const S5="ng-template";function d1e(t,n,e){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==k5(f,c,0)||2&i&&c!==h){if(wu(i))return!1;s=!0}}}}else{if(!s&&!wu(i)&&!wu(l))return!1;if(s&&wu(l))continue;s=!1,i=l|1&i}}return wu(i)||s}function wu(t){return 0==(1&t)}function p1e(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!wu(s)&&(n+=E5(o,r),r=""),i=s,o=o||!wu(i);e++}return""!==r&&(n+=E5(o,r)),n}const Bi={};function w(t){A5(Pr(),Gt(),_l()+t,!1)}function A5(t,n,e,i){if(!i)if(3==(3&n[Ji])){const o=t.preOrderCheckHooks;null!==o&&sx(n,o,e)}else{const o=t.preOrderHooks;null!==o&&ax(n,o,0,e)}Mp(e)}function N5(t,n=null,e=null,i){const r=O5(t,n,e,i);return r.resolveInjectorInitializers(),r}function O5(t,n=null,e=null,i,r=new Set){const o=[e||Yr,$0e(t)];return i=i||("object"==typeof t?void 0:Cn(t)),new y5(o,n||Ex(),i||null,r)}let Rs=(()=>{class t{static create(e,i){if(Array.isArray(e))return N5({name:""},i,e,"");{const r=e.name??"";return N5({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=J0,t.NULL=new f5,t.\u0275prov=Et({token:t,providedIn:"any",factory:()=>ct(Dx)}),t.__NG_ELEMENT_ID__=-1,t})();function le(t,n=ki.Default){const e=Gt();return null===e?ct(t,n):uR(Ea(),e,wi(t),n)}function H5(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;iBo&&A5(t,n,Bo,!1),Lc(s?2:0,r),e(i,r)}finally{Mp(o),Lc(s?3:1,r)}}function _E(t,n,e){if(dT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,x1(t,e,r.hostVars,Bi),r)}function Nd(t,n,e,i,r,o){const s=sc(t,n);!function DE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Ri(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[ir],s,o,t.value,e,i,r)}function oye(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&TE(e)}}function TE(t){for(let i=HT(t);null!==i;i=zT(i))for(let r=yl;r0&&TE(o)}const e=t[Rn].components;if(null!==e)for(let i=0;i0&&TE(r)}}function uye(t,n){const e=ac(n,t),i=e[Rn];(function dye(t,n){for(let e=n.length;e-1&&(WT(n,i),fx(e,i))}this._attachedToViewContainer=!1}BR(this._lView[Rn],this._lView)}onDestroy(n){G5(this._lView[Rn],this._lView,null,n)}markForCheck(){EE(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ji]&=-65}reattach(){this._lView[Ji]|=64}detectChanges(){Nx(this._lView[Rn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ot(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Kve(t,n){g1(t,n,n[ir],2,null,null)}(this._lView[Rn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ot(902,!1);this._appRef=n}}class hye extends w1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Nx(n[Rn],n,n[ks],!1)}checkNoChanges(){}get context(){return null}}class n8 extends $c{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=no(n);return new C1(e,this.ngModule)}}function i8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class pye{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=J_(i);const r=this.injector.get(n,dE,i);return r!==dE||e===dE?r:this.parentInjector.get(n,e,i)}}class C1 extends _5{get inputs(){return i8(this.componentDef.inputs)}get outputs(){return i8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function _1e(t){return t.map(b1e).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Fd?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new pye(n,o):n,a=s.get(Lp,null);if(null===a)throw new Ot(407,!1);const l=s.get(e1e,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function U1e(t,n,e){return t.selectRootElement(n,e===yu.ShadowDom)}(c,i,this.componentDef.encapsulation):GT(c,u,function fye(t){const n=t.toLowerCase();return"svg"===n?RL:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=CE(0,null,null,1,0,null,null,null,null,null),p=Mx(null,f,null,h,null,null,a,c,l,s,null);let m,g;bT(p);try{const v=this.componentDef;let y,_=null;v.findHostDirectiveDefs?(y=[],_=new Map,v.findHostDirectiveDefs(v,y,_),y.push(v)):y=[v];const C=function gye(t,n){const e=t[Rn],i=Bo;return t[i]=n,Ag(e,i,2,"#host",null)}(p,d),S=function vye(t,n,e,i,r,o,s,a){const l=r[Rn];!function yye(t,n,e,i){for(const r of t)n.mergedAttrs=s1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Ox(n,n.mergedAttrs,!0),null!==e&&QR(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Mx(r,U5(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&SE(l,t,i.length-1),Fx(r,u),r[t.index]=u}(C,d,v,y,p,a,c);g=BL(f,Bo),d&&function _ye(t,n,e,i){if(i)CT(t,e,["ng-version",t1e.full]);else{const{attrs:r,classes:o}=function x1e(t){const n=[],e=[];let i=1,r=2;for(;i0&&KR(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function xye(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=s1(r.hostAttrs,e=s1(e,r.hostAttrs))}}(i)}function IE(t){return t===kh?{}:t===Yr?[]:t}function kye(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Sye(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Dye(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Px(t){return!!FE(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function FE(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Od(t,n,e){return t[n]=e}function tl(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Rp(t,n,e,i){const r=tl(t,n,e);return tl(t,n+1,i)||r}function ht(t,n,e,i){const r=Gt();return tl(r,fg(),n)&&(Pr(),Nd(es(),r,t,n,e,i)),ht}function Ig(t,n,e,i){return tl(t,fg(),e)?n+Ri(e)+i:Bi}function Fg(t,n,e,i,r,o){const a=Rp(t,function Th(){return $i.lFrame.bindingIndex}(),e,r);return Eh(2),a?n+Ri(e)+i+Ri(r)+o:Bi}function J(t,n,e,i,r,o,s,a){const l=Gt(),c=Pr(),u=t+Bo,d=c.firstCreatePass?function Pye(t,n,e,i,r,o,s,a,l){const c=n.consts,u=Ag(n,t,4,s||null,yf(c,a));kE(n,e,u,yf(c,l)),ox(n,u);const d=u.tView=CE(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];Ad(d,!1);const h=l[ir].createComment("");yx(c,l,h,d),el(h,l),Fx(l,l[u]=K5(h,l,h,d)),nx(d)&&xE(c,l,d),null!=s&&wE(l,d,a)}function uo(t){return hg(function Vge(){return $i.lFrame.contextLView}(),Bo+t)}function k(t,n,e){const i=Gt();return tl(i,fg(),n)&&uc(Pr(),es(),i,t,n,i[ir],e,!1),k}function NE(t,n,e,i,r){const s=r?"class":"style";ME(t,e,n.inputs[s],s,i)}function b(t,n,e,i){const r=Gt(),o=Pr(),s=Bo+t,a=r[ir],l=o.firstCreatePass?function Rye(t,n,e,i,r,o){const s=n.consts,l=Ag(n,t,2,i,yf(s,r));return kE(n,e,l,yf(s,o)),null!==l.attrs&&Ox(l,l.attrs,!1),null!==l.mergedAttrs&&Ox(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,e,i):o.data[s],c=r[s]=GT(a,n,function Jge(){return $i.lFrame.currentNamespace}()),u=nx(l);return Ad(l,!0),QR(a,c,l),32!=(32&l.flags)&&yx(o,r,c,l),0===function Pge(){return $i.lFrame.elementDepthCount}()&&el(c,r),function Lge(){$i.lFrame.elementDepthCount++}(),u&&(xE(o,r,l),_E(o,l,r)),null!==i&&wE(r,l),b}function x(){let t=Ea();pT()?mT():(t=t.parent,Ad(t,!1));const n=t;!function Rge(){$i.lFrame.elementDepthCount--}();const e=Pr();return e.firstCreatePass&&(ox(e,t),dT(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function eve(t){return 0!=(8&t.flags)}(n)&&NE(e,n,Gt(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tve(t){return 0!=(16&t.flags)}(n)&&NE(e,n,Gt(),n.stylesWithoutHost,!1),x}function ge(t,n,e,i){return b(t,n,e,i),x(),ge}function ta(t,n,e){const i=Gt(),r=Pr(),o=t+Bo,s=r.firstCreatePass?function $ye(t,n,e,i,r){const o=n.consts,s=yf(o,i),a=Ag(n,t,8,"ng-container",s);return null!==s&&Ox(a,s,!0),kE(n,e,a,yf(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Ad(s,!0);const a=i[o]=i[ir].createComment("");return yx(r,i,a,s),el(a,i),nx(s)&&(xE(r,i,s),_E(r,s,i)),null!=e&&wE(i,s),ta}function na(){let t=Ea();const n=Pr();return pT()?mT():(t=t.parent,Ad(t,!1)),n.firstCreatePass&&(ox(n,t),dT(t)&&n.queries.elementEnd(t)),na}function vt(){return Gt()}function S1(t){return!!t&&"function"==typeof t.then}const OE=function v8(t){return!!t&&"function"==typeof t.subscribe};function ye(t,n,e,i){const r=Gt(),o=Pr(),s=Ea();return function b8(t,n,e,i,r,o,s){const a=nx(i),c=t.firstCreatePass&&Z5(t),u=n[ks],d=Q5(n);let h=!0;if(3&i.type||s){const m=sc(i,n),g=s?s(m):m,v=d.length,y=s?C=>s(Ta(C[i.index])):i.index;let _=null;if(!s&&a&&(_=function Bye(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==_)(_.__ngLastListenerFn__||_).__ngNextListenerFn__=o,_.__ngLastListenerFn__=o,h=!1;else{o=x8(i,n,u,o,!1);const C=e.listen(g,r,o);d.push(o,C),c&&c.push(r,y,v,v+1)}}else o=x8(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?ac(t.index,n):n);let l=_8(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=_8(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function j(t=1){return function Wge(t){return($i.lFrame.contextLView=function qge(t,n){for(;t>0;)n=n[cg],t--;return n}(t,$i.lFrame.contextLView))[ks]}(t)}function Vye(t,n){let e=null;const i=function m1e(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function jE(t){return 2|t}function Bp(t){return(131068&t)>>2}function PE(t,n){return-131069&t|n<<2}function LE(t){return 1|t}function M8(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?bf(o):Bp(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];qye(t[a],n)&&(l=!0,t[a+1]=i?LE(u):jE(u)),a=i?bf(u):Bp(u)}l&&(t[e+1]=i?jE(o):LE(o))}function qye(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&_g(t,n)>=0}const ia={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I8(t){return t.substring(ia.key,ia.keyEnd)}function F8(t,n){const e=ia.textEnd;return e===n?-1:(n=ia.keyEnd=function Kye(t,n,e){for(;n32;)n++;return n}(t,ia.key=n,e),$g(t,n,e))}function $g(t,n,e){for(;n=0;e=F8(n,e))lc(t,I8(n),!0)}function Du(t,n,e,i){const r=Gt(),o=Pr(),s=Eh(2);o.firstUpdatePass&&R8(o,t,s,i),n!==Bi&&tl(r,s,n)&&B8(o,o.data[_l()],r,r[ir],t,r[s+1]=function abe(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Cn(cc(t)))),t}(n,e),i,s)}function Tu(t,n,e,i){const r=Pr(),o=Eh(2);r.firstUpdatePass&&R8(r,null,o,i);const s=Gt();if(e!==Bi&&tl(s,o,e)){const a=r.data[_l()];if(H8(a,i)&&!L8(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=jr(l,e||"")),NE(r,a,s,e,i)}else!function sbe(t,n,e,i,r,o,s,a){r===Bi&&(r=Yr);let l=0,c=0,u=0=t.expandoStartIndex}function R8(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[_l()],s=L8(t,e);H8(o,i)&&null===n&&!s&&(n=!1),n=function tbe(t,n,e,i){const r=function vT(t){const n=$i.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=D1(e=RE(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=RE(r,t,n,e,i),null===o){let l=function nbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Bp(i))return t[bf(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=RE(null,t,n,l[1],i),l=D1(l,n.attrs,i),function ibe(t,n,e,i){t[bf(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function rbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=bf(t[a+1]);t[i+1]=$x(h,a),0!==h&&(t[h+1]=PE(t[h+1],i)),t[a+1]=function zye(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$x(a,0),0!==a&&(t[a+1]=PE(t[a+1],i)),a=i;else t[i+1]=$x(l,0),0===a?a=i:t[l+1]=PE(t[l+1],i),l=i;c&&(t[i+1]=jE(t[i+1])),M8(t,u,i,!0),M8(t,u,i,!1),function Wye(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&_g(o,n)>=0&&(e[i+1]=LE(e[i+1]))}(n,u,t,i,o),s=$x(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function RE(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Bi&&(h=d?Yr:void 0);let f=d?IT(h,i):u===i?h:void 0;if(c&&!Bx(f)&&(f=IT(l,i)),Bx(f)&&(a=f,s))return a;const p=t[r+1];r=s?bf(p):Bp(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=IT(l,i))}return a}function Bx(t){return void 0!==t}function H8(t,n){return 0!=(t.flags&(n?8:16))}function I(t,n=""){const e=Gt(),i=Pr(),r=t+Bo,o=i.firstCreatePass?Ag(i,r,1,n,null):i.data[r],s=e[r]=function UT(t,n){return t.createText(n)}(e[ir],n);yx(i,e,s,o),Ad(o,!1)}function Dt(t){return xn("",t,""),Dt}function xn(t,n,e){const i=Gt(),r=Ig(i,t,n,e);return r!==Bi&&Fh(i,_l(),r),xn}function Ld(t,n,e,i,r){const o=Gt(),s=Fg(o,t,n,e,i,r);return s!==Bi&&Fh(o,_l(),s),Ld}function dc(t,n,e){const i=Gt();return tl(i,fg(),n)&&uc(Pr(),es(),i,t,n,i[ir],e,!0),dc}const Vg="en-US";let u6=Vg;function VE(t,n,e,i,r){if(t=wi(t),Array.isArray(t))for(let o=0;o>20;if(Pp(t)||!t.multi){const f=new o1(l,r,le),p=zE(a,n,r?u:u+h,d);-1===p?(TT(dx(c,s),o,a),HE(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=zE(a,n,u+h,d),p=zE(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){TT(dx(c,s),o,a);const v=function x_e(t,n,e,i,r){const o=new o1(t,e,le);return o.multi=[],o.index=n,o.componentProviders=0,O6(o,r,i&&!e),o}(r?__e:b_e,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),HE(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else HE(o,t,f>-1?f:p,O6(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function HE(t,n,e,i){const r=Pp(n),o=function V0e(t){return!!t.useClass}(n);if(r||o){const l=(o?wi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function O6(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function zE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function y_e(t,n,e){const i=Pr();if(i.firstCreatePass){const r=xu(t);VE(e,i.data,i.blueprint,r,!0),VE(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class zg{}class j6{}class P6 extends zg{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new n8(this);const i=rc(n);this._bootstrapComponents=Ih(i.bootstrap),this._r3Injector=O5(n,e,[{provide:zg,useValue:this},{provide:$c,useValue:this.componentFactoryResolver}],Cn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class GE extends j6{constructor(n){super(),this.moduleType=n}create(n){return new P6(this.moduleType,n)}}class C_e extends zg{constructor(n,e,i){super(),this.componentFactoryResolver=new n8(this),this.instance=null;const r=new y5([...n,{provide:zg,useValue:this},{provide:$c,useValue:this.componentFactoryResolver}],e||Ex(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Gx(t,n,e=null){return new C_e(t,n,e).injector}let k_e=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=p5(0,e.type),r=i.length>0?Gx([i],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 t.\u0275prov=Et({token:t,providedIn:"environment",factory:()=>new t(ct(Fd))}),t})();function L6(t){t.getStandaloneInjector=n=>n.get(k_e).getOrCreateStandaloneInjector(t)}function wl(t,n,e){const i=bl()+t,r=Gt();return r[i]===Bi?Od(r,i,e?n.call(e):n()):function k1(t,n){return t[n]}(r,i)}function lr(t,n,e,i){return G6(Gt(),bl(),t,n,e,i)}function Sr(t,n,e,i,r){return function W6(t,n,e,i,r,o,s){const a=n+e;return Rp(t,a,r,o)?Od(t,a+2,s?i.call(s,r,o):i(r,o)):N1(t,a+2)}(Gt(),bl(),t,n,e,i,r)}function Ug(t,n,e,i,r,o){return function q6(t,n,e,i,r,o,s,a){const l=n+e;return function Lx(t,n,e,i,r){const o=Rp(t,n,e,i);return tl(t,n+2,r)||o}(t,l,r,o,s)?Od(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):N1(t,l+3)}(Gt(),bl(),t,n,e,i,r,o)}function N1(t,n){const e=t[n];return e===Bi?void 0:e}function G6(t,n,e,i,r,o){const s=n+e;return tl(t,s,r)?Od(t,s+1,o?i.call(o,r):i(r)):N1(t,s+1)}function XE(t,n,e){const i=t+Bo,r=Gt(),o=hg(r,i);return function O1(t,n){return t[Rn].data[n].pure}(r,i)?G6(r,bl(),n,o.transform,e,o):o.transform(e)}function YE(t){return n=>{setTimeout(t,void 0,n)}}const Ke=class z_e extends tr{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=YE(o),r&&(r=YE(r)),s&&(s=YE(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof ue&&n.add(a),a}};function U_e(){return this._results[Symbol.iterator]()}class JE{get changes(){return this._changes||(this._changes=new Ke)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=JE.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=U_e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Rc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function dve(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=q_e,t})();const G_e=Si,W_e=class extends G_e{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Mx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[t1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ed];return null!==s&&(r[Ed]=s.createEmbeddedView(i)),bE(i,r,n),new w1(r)}};function q_e(){return Wx(Ea(),Gt())}function Wx(t,n){return 4&t.type?new W_e(n,t,Sg(t,n)):null}let nl=(()=>{class t{}return t.__NG_ELEMENT_ID__=X_e,t})();function X_e(){return Q6(Ea(),Gt())}const Y_e=nl,J6=class extends Y_e{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Sg(this._hostTNode,this._hostLView)}get injector(){return new mg(this._hostTNode,this._hostLView)}get parentInjector(){const n=DT(this._hostTNode,this._hostLView);if(rR(n)){const e=cx(n,this._hostLView),i=lx(n);return new mg(e[Rn].data[i+8],e)}return new mg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=K6(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-yl}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function l1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new C1(no(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Fd,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[Rn];if(function jge(t){return _u(t[fs])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[fs],h=new J6(d,d[Qa],d[fs]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function Zve(t,n,e,i){const r=yl+i,o=e.length;i>0&&(e[r-1][bu]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=yl;d{class t{constructor(e){this.appInits=e,this.resolve=Xx,this.reject=Xx,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ct(Yx,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const P1=new zn("AppId",{providedIn:"root",factory:function x$(){return`${lA()}${lA()}${lA()}`}});function lA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const w$=new zn("Platform Initializer"),L1=new zn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),C$=new zn("AnimationModuleType");let xxe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const hc=new zn("LocaleId",{providedIn:"root",factory:()=>ar(hc,ki.Optional|ki.SkipSelf)||function wxe(){return typeof $localize<"u"&&$localize.locale||Vg}()});class kxe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let k$=(()=>{class t{compileModuleSync(e){return new GE(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Ih(rc(e).declarations).reduce((s,a)=>{const l=no(a);return l&&s.push(new C1(l)),s},[]);return new kxe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Txe=(()=>Promise.resolve(0))();function cA(t){typeof Zone>"u"?Txe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Wi{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ke(!1),this.onMicrotaskEmpty=new Ke(!1),this.onStable=new Ke(!1),this.onError=new Ke(!1),typeof Zone>"u")throw new Ot(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)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Exe(){let t=$o.requestAnimationFrame,n=$o.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Ixe(t){const n=()=>{!function Mxe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($o,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,dA(t),t.isCheckStableRunning=!0,uA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),dA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return T$(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),E$(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return T$(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),E$(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,dA(t),uA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wi.isInAngularZone())throw new Ot(909,!1)}static assertNotInAngularZone(){if(Wi.isInAngularZone())throw new Ot(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Axe,Xx,Xx);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Axe={};function uA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function dA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function T$(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function E$(t){t._nesting--,uA(t)}class Fxe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ke,this.onMicrotaskEmpty=new Ke,this.onStable=new Ke,this.onError=new Ke}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const A$=new zn(""),Kx=new zn("");let pA,hA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,pA||(function Nxe(t){pA=t}(r),r.addToWindow(i)),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:()=>{Wi.assertNotInAngularZone(),cA(()=>{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())cA(()=>{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(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.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,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(ct(Wi),ct(fA),ct(Kx))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),fA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return pA?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Oh=!1;let _f=null;const M$=new zn("AllowMultipleToken"),mA=new zn("PlatformDestroyListeners"),I$=new zn("appBootstrapListener");class F${constructor(n,e){this.name=n,this.token=e}}function O$(t,n,e=[]){const i=`Platform: ${n}`,r=new zn(i);return(o=[])=>{let s=gA();if(!s||s.injector.get(M$,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function Pxe(t){if(_f&&!_f.get(M$,!1))throw new Ot(400,!1);_f=t;const n=t.get(P$);(function N$(t){const n=t.get(w$,null);n&&n.forEach(e=>e())})(t)}(function j$(t=[],n){return Rs.create({name:n,providers:[{provide:aE,useValue:"platform"},{provide:mA,useValue:new Set([()=>_f=null])},...t]})}(a,i))}return function Rxe(t){const n=gA();if(!n)throw new Ot(401,!1);return n}()}}function gA(){return _f?.get(P$)??null}let P$=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function R$(t,n){let e;return e="noop"===t?new Fxe:("zone.js"===t?void 0:t)||new Wi(n),e}(i?.ngZone,function L$(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Wi,useValue:r}];return r.run(()=>{const s=Rs.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Dg,null);if(!l)throw new Ot(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Qx(this._modules,a),c.unsubscribe()})}),function $$(t,n,e){try{const i=e();return S1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Jx);return c.runInitializers(),c.donePromise.then(()=>(function d6(t){jc(t,"Expected localeId to be defined"),"string"==typeof t&&(u6=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(hc,Vg)||Vg),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=B$({},i);return function Oxe(t,n,e){const i=new GE(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Au);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ot(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ot(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(mA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ct(Rs))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function B$(t,n){return Array.isArray(n)?n.reduce(B$,t):{...t,...n}}let Au=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,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 o=new rn(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new rn(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Wi.assertNotInAngularZone(),cA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Wi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Tt(o,s.pipe(We()))}bootstrap(e,i){const r=e instanceof _5;if(!this._injector.get(Jx).done){!r&&function ag(t){const n=no(t)||Ka(t)||vl(t);return null!==n&&n.standalone}(e);throw new Ot(405,Oh)}let s;s=r?e:this._injector.get($c).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function jxe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(zg),c=s.create(Rs.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(A$,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Qx(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ot(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 i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Qx(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(I$,[]);i.push(...this._bootstrapListeners),i.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),()=>Qx(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ot(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(ct(Wi),ct(Fd),ct(Dg))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qx(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let qo=(()=>{class t{}return t.__NG_ELEMENT_ID__=Bxe,t})();function Bxe(t){return function Vxe(t,n,e){if(i1(t)&&!e){const i=ac(t.index,n);return new w1(i,i)}return 47&t.type?new w1(n[Za],n):null}(Ea(),Gt(),16==(16&t))}class G${constructor(){}supports(n){return Px(n)}create(n){return new qxe(n)}}const Wxe=(t,n)=>n;class qxe{constructor(n){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=n||Wxe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new Xxe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new W$),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W$),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Xxe{constructor(n,e){this.item=n,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 Yxe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class W${constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Yxe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function q$(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new Kxe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class Kxe{constructor(n){this.key=n,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 Y$(){return new tw([new G$])}let tw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Y$()),deps:[[t,new d1,new u1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ot(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:Y$}),t})();function J$(){return new R1([new X$])}let R1=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||J$()),deps:[[t,new d1,new u1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ot(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:J$}),t})();const ewe=O$(null,"core",[]);let twe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(ct(Au))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();function qg(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let xA=null;function jh(){return xA}class rwe{}const Ir=new zn("DocumentToken");let wA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function owe(){return ct(K$)}()},providedIn:"platform"}),t})();const swe=new zn("Location Initialized");let K$=(()=>{class t extends wA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jh().getBaseHref(this._doc)}onPopState(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){Q$()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){Q$()?this._history.replaceState(e,i,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 t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(){return function awe(){return new K$(ct(Ir))}()},providedIn:"platform"}),t})();function Q$(){return!!window.history.pushState}function CA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Z$(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ph(t){return t&&"?"!==t[0]?"?"+t:t}let zp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(tB)},providedIn:"root"}),t})();const eB=new zn("appBaseHref");let tB=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??ar(Ir).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 CA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ph(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Ph(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Ph(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(wA),ct(eB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lwe=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=CA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Ph(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Ph(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(wA),ct(eB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),kA=(()=>{class t{constructor(e){this._subject=new Ke,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function dwe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Z$(nB(i))),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,i=""){return this.path()==this.normalize(e+Ph(i))}normalize(e){return t.stripTrailingSlash(function uwe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,nB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ph(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ph(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Ph,t.joinWithSlash=CA,t.stripTrailingSlash=Z$,t.\u0275fac=function(e){return new(e||t)(ct(zp))},t.\u0275prov=Et({token:t,factory:function(){return function cwe(){return new kA(ct(zp))}()},providedIn:"root"}),t})();function nB(t){return t.replace(/\/index.html$/,"")}function pB(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const jA=/\s+/,mB=[];let Rh=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=mB,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(jA):mB}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(jA):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(jA).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(le(tw),le(R1),le(ti),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class Gwe{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,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 jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,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 i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Gwe(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),yB(a,r)}});for(let r=0,o=i.length;r{yB(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si),le(tw))},t.\u0275dir=Zt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function yB(t,n){t.context.$implicit=n.item}let gn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new qwe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){bB("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){bB("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,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si))},t.\u0275dir=Zt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class qwe{constructor(){this.$implicit=null,this.ngIf=null}}function bB(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Cn(n)}'.`)}class PA{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let dw=(()=>{class t{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 i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),_B=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new PA(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si),le(dw,9))},t.\u0275dir=Zt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),wB=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,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,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Bl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(R1),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),kl=(()=>{class t{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 i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(le(nl))},t.\u0275dir=Zt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]}),t})(),Vs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();const SB="browser";let _Ce=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>new xCe(ct(Ir),window)}),t})();class xCe{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function wCe(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=TB(this.window.history)||TB(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function TB(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class EB{}class YCe extends rwe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class VA extends YCe{static makeCurrent(){!function iwe(t){xA||(xA=t)}(new VA)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function JCe(){return H1=H1||document.querySelector("base"),H1?H1.getAttribute("href"):null}();return null==e?null:function KCe(t){pw=pw||document.createElement("a"),pw.setAttribute("href",t);const n=pw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){H1=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return pB(document.cookie,n)}}let pw,H1=null;const NB=new zn("TRANSITION_ID"),ZCe=[{provide:Yx,useFactory:function QCe(t,n,e){return()=>{e.get(Jx).donePromise.then(()=>{const i=jh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const mw=new zn("EventManagerPlugins");let gw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),z1=(()=>{class t extends jB{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const HA={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/"},zA=/%COMP%/g,RB=new zn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function $B(t,n){return n.flat(100).map(e=>e.replace(zA,t))}function BB(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let vw=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new UA(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof zB?r.applyToHost(e):r instanceof GA&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case yu.Emulated:o=new zB(s,a,i,this.appId,l);break;case yu.ShadowDom:return new l2e(s,a,e,i);default:o=new GA(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(ct(gw),ct(z1),ct(P1),ct(RB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class UA{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(HA[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(HB(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(HB(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=HA[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=HA[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Bl.DashCase|Bl.Important)?n.style.setProperty(e,i,r&Bl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Bl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,BB(i)):this.eventManager.addEventListener(n,e,BB(i))}}function HB(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class l2e extends UA{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=$B(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class GA extends UA{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=$B(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class zB extends GA{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function o2e(t){return"_ngcontent-%COMP%".replace(zA,t)}(s),this.hostAttr=function s2e(t){return"_nghost-%COMP%".replace(zA,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let c2e=(()=>{class t extends OB{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const UB=["alt","control","meta","shift"],u2e={"\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"},d2e={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let h2e=(()=>{class t extends OB{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),UB.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=u2e[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),UB.forEach(s=>{s!==r&&(0,d2e[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const WB=[{provide:L1,useValue:SB},{provide:w$,useValue:function f2e(){VA.makeCurrent()},multi:!0},{provide:Ir,useFactory:function m2e(){return function h0e(t){ZT=t}(document),document},deps:[]}],g2e=O$(ewe,"browser",WB),qB=new zn(""),XB=[{provide:Kx,useClass:class e2e{addToWindow(n){$o.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},$o.getAllAngularTestabilities=()=>n.getAllTestabilities(),$o.getAllAngularRootElements=()=>n.getAllRootElements(),$o.frameworkStabilizers||($o.frameworkStabilizers=[]),$o.frameworkStabilizers.push(i=>{const r=$o.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?jh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:A$,useClass:hA,deps:[Wi,fA,Kx]},{provide:hA,useClass:hA,deps:[Wi,fA,Kx]}],YB=[{provide:aE,useValue:"root"},{provide:Dg,useFactory:function p2e(){return new Dg},deps:[]},{provide:mw,useClass:c2e,multi:!0,deps:[Ir,Wi,L1]},{provide:mw,useClass:h2e,multi:!0,deps:[Ir]},{provide:vw,useClass:vw,deps:[gw,z1,P1,RB]},{provide:Lp,useExisting:vw},{provide:jB,useExisting:z1},{provide:z1,useClass:z1,deps:[Ir]},{provide:gw,useClass:gw,deps:[mw,Wi]},{provide:EB,useClass:t2e,deps:[]},[]];let qA=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:P1,useValue:e.appId},{provide:NB,useExisting:P1},ZCe]}}}return t.\u0275fac=function(e){return new(e||t)(ct(qB,12))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[...YB,...XB],imports:[Vs,twe]}),t})(),JB=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function y2e(){return new JB(ct(Ir))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let ZB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new(e||t):ct(e7),i},providedIn:"root"}),t})(),e7=(()=>{class t extends ZB{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ko.NONE:return i;case ko.HTML:return Id(i,"HTML")?cc(i):c5(this._doc,String(i)).toString();case ko.STYLE:return Id(i,"Style")?cc(i):i;case ko.SCRIPT:if(Id(i,"Script"))return cc(i);throw new Error("unsafe value used in a script context");case ko.URL:return Id(i,"URL")?cc(i):wx(String(i));case ko.RESOURCE_URL:if(Id(i,"ResourceURL"))return cc(i);throw new Error(`unsafe value used in a resource URL context (see ${U_})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${U_})`)}}bypassSecurityTrustHtml(e){return function b0e(t){return new f0e(t)}(e)}bypassSecurityTrustStyle(e){return function _0e(t){return new p0e(t)}(e)}bypassSecurityTrustScript(e){return function x0e(t){return new m0e(t)}(e)}bypassSecurityTrustUrl(e){return function w0e(t){return new g0e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function C0e(t){return new v0e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function C2e(t){return new e7(t.get(Ir))}(ct(Rs)),i},providedIn:"root"}),t})();function U1(t){return(U1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function K(t,n,e){return(n=function S2e(t){var n=function k2e(t,n){if("object"!==U1(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!==U1(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===U1(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}class t7{}class D2e{}const $h="*";function il(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ma(t,n=null){return{type:4,styles:n,timings:t}}function n7(t,n=null){return{type:2,steps:t,options:n}}function Dr(t){return{type:6,styles:t,offset:null}}function Ia(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function i7(t){Promise.resolve().then(t)}class G1{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){i7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class r7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?i7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const YA="!";function o7(t){return new Ot(3e3,!1)}function ake(){return typeof window<"u"&&typeof window.document<"u"}function JA(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function wf(t){switch(t.length){case 0:return new G1;case 1:return t[0];default:return new r7(t)}}function s7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case YA:v=r.get(m);break;case $h:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function Y2e(t){return new Ot(3502,!1)}();return a}function KA(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&QA(e,"start",t)));break;case"done":t.onDone(()=>i(e&&QA(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&QA(e,"destroy",t)))}}function QA(t,n,e){const o=ZA(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function ZA(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function fc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function a7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let eM=(t,n)=>!1,l7=(t,n,e)=>[],c7=null;function tM(t){const n=t.parentNode||t.host;return n===c7?null:n}(JA()||typeof Element<"u")&&(ake()?(c7=(()=>document.documentElement)(),eM=(t,n)=>{for(;n;){if(n===t)return!0;n=tM(n)}return!1}):eM=(t,n)=>t.contains(n),l7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Up=null,u7=!1;const d7=eM,h7=l7;let f7=(()=>{class t{validateStyleProperty(e){return function cke(t){Up||(Up=function uke(){return typeof document<"u"?document.body:null}()||{},u7=!!Up.style&&"WebkitAppearance"in Up.style);let n=!0;return Up.style&&!function lke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Up.style,!n&&u7&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Up.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return d7(e,i)}getParentElement(e){return tM(e)}query(e,i,r){return h7(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new G1(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),nM=(()=>{class t{}return t.NOOP=new f7,t})();const dke=1e3,iM="ng-enter",yw="ng-leave",bw="ng-trigger",_w=".ng-trigger",m7="ng-animating",rM=".ng-animating";function Bh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:oM(parseFloat(n[1]),n[2])}function oM(t,n){return"s"===n?t*dke:t}function xw(t,n,e){return t.hasOwnProperty("duration")?t:function fke(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(o7()),{duration:0,delay:0,easing:""};r=oM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=oM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function T2e(){return new Ot(3100,!1)}()),a=!0),o<0&&(n.push(function E2e(){return new Ot(3101,!1)}()),a=!0),a&&n.splice(l,0,o7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function W1(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function g7(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Cf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function y7(t,n,e){return e?n+":"+e+";":""}function b7(t){let n="";for(let e=0;e{const o=aM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),JA()&&b7(t))}function Gp(t,n){t.style&&(n.forEach((e,i)=>{const r=aM(i);t.style[r]=""}),JA()&&b7(t))}function q1(t){return Array.isArray(t)?1==t.length?t[0]:n7(t):t}const sM=new RegExp("{{\\s*(.+?)\\s*}}","g");function _7(t){let n=[];if("string"==typeof t){let e;for(;e=sM.exec(t);)n.push(e[1]);sM.lastIndex=0}return n}function X1(t,n,e){const i=t.toString(),r=i.replace(sM,(o,s)=>{let a=n[s];return null==a&&(e.push(function M2e(t){return new Ot(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function ww(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const gke=/-+([a-z0-9])/g;function aM(t){return t.replace(gke,(...n)=>n[1].toUpperCase())}function vke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function pc(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function I2e(t){return new Ot(3004,!1)}()}}function x7(t,n){return window.getComputedStyle(t)[n]}const Sw="*";function Cke(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function kke(t,n,e){if(":"==t[0]){const l=function Ske(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function U2e(t){return new Ot(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(w7(r,s));"<"==o[0]&&!(r==Sw&&s==Sw)&&n.push(w7(s,r))}(i,e,n)):e.push(t),e}const Dw=new Set(["true","1"]),Tw=new Set(["false","0"]);function w7(t,n){const e=Dw.has(t)||Tw.has(t),i=Dw.has(n)||Tw.has(n);return(r,o)=>{let s=t==Sw||t==r,a=n==Sw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Dw.has(t):Tw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Dw.has(n):Tw.has(n)),s&&a}}const Dke=new RegExp("s*:selfs*,?","g");function lM(t,n,e,i){return new Tke(t).build(n,e,i)}class Tke{constructor(n){this._driver=n}build(n,e,i){const r=new Mke(e);return this._resetContextStyleTimingState(r),pc(this,q1(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function N2e(){return new Ot(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function O2e(){return new Ot(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{_7(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(ww(o.values()),e.errors.push(function j2e(t,n){return new Ot(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=pc(this,q1(n.animation),e);return{type:1,matchers:Cke(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Wp(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>pc(this,i,e)),options:Wp(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=pc(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Wp(n.options)}}visitAnimate(n,e){const i=function Fke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return cM(xw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=cM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=xw(e,n);return cM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Dr({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Dr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===$h?i.push(a):e.errors.push(new Ot(3002,!1)):i.push(g7(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function L2e(t,n,e,i,r){return new Ot(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function mke(t,n,e){const i=n.params||{},r=_7(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function A2e(t){return new Ot(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function R2e(){return new Ot(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let _=null!=y.offset?y.offset:function Ike(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),C=0;return null!=_&&(o++,C=y.offset=_),l=l||C<0||C>1,a=a||C0&&o{const _=h>0?y==f?1:h*y:s[y],C=_*g;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(v,e),v.offset=_,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:pc(this,q1(n.animation),e),options:Wp(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Wp(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Wp(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Eke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Dke,"")),t=t.replace(/@\*/g,_w).replace(/@\w+/g,e=>_w+"-"+e.slice(1)).replace(/:animating/g,rM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,fc(e.collectedStyles,e.currentQuerySelector,new Map);const a=pc(this,q1(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Wp(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function H2e(){return new Ot(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:xw(n.timings,e.errors,!0);return{type:12,animation:pc(this,q1(n.animation),e),timings:i,options:null}}}class Mke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Wp(t){return t?(t=W1(t)).params&&(t.params=function Ake(t){return t?W1(t):null}(t.params)):t={},t}function cM(t,n,e){return{duration:t,delay:n,easing:e}}function uM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Ew{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const jke=new RegExp(":enter","g"),Lke=new RegExp(":leave","g");function dM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new Rke).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class Rke{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Ew;const d=new hM(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Bh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),pc(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[uM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Bh(X1(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Bh(i.duration):null,a=null!=i.delay?Bh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),pc(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Aw);const s=Bh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>pc(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Bh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),pc(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return xw(e.params?X1(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Bh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Aw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),pc(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;pc(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Aw={};class hM{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Aw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Mw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Bh(i.duration)),null!=i.delay&&(r.delay=Bh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=X1(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new hM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Aw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new $ke(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(jke,"."+this._enterClassName)).replace(Lke,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function z2e(t){return new Ot(3014,!1)}()),a}}class Mw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Mw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||$h),this._currentKeyframe.set(e,$h);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Bke(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,$h)}else Cf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=X1(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$h),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Cf(a,new Map,this._backFill);c.forEach((u,d)=>{u===YA?n.add(d):u===$h&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?ww(n.values()):[],s=e.size?ww(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return uM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class $ke extends Mw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Cf(n[0]);l.set("offset",0),o.push(l);const c=Cf(n[0]);c.set("offset",S7(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Cf(n[d]);const f=h.get("offset");h.set("offset",S7((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return uM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function S7(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class fM{}const Vke=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Hke extends fM{normalizePropertyName(n,e){return aM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(Vke.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function F2e(t,n){return new Ot(3005,!1)}())}return s+o}}function D7(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const pM={};class T7{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function zke(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||pM,p=this.buildStyles(i,a&&a.params||pM,d),m=l&&l.params||pM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,_=new Map,C="void"===r,S={params:Uke(m,h),delay:this.ast.options?.delay},M=u?[]:dM(n,e,this.ast.animation,o,s,p,g,S,c,d);let $=0;if(M.forEach(R=>{$=Math.max(R.duration+R.delay,$)}),d.length)return D7(e,this._triggerName,i,r,C,p,g,[],[],y,_,$,d);M.forEach(R=>{const z=R.element,U=fc(y,z,new Set);R.preStyleProps.forEach(re=>U.add(re));const q=fc(_,z,new Set);R.postStyleProps.forEach(re=>q.add(re)),z!==e&&v.add(z)});const G=ww(v.values());return D7(e,this._triggerName,i,r,C,p,g,M,G,y,_,$)}}function Uke(t,n){const e=W1(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class Gke{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=W1(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=X1(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class qke{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new Gke(r.style,r.options&&r.options.params||{},i))}),E7(this.states,"true","1"),E7(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new T7(n,r,this.states))}),this.fallbackTransition=function Xke(t,n,e){return new T7(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function E7(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const Yke=new Ew;class Jke{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=lM(this._driver,e,i,r);if(i.length)throw function J2e(t){return new Ot(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=s7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=dM(this._driver,e,o,iM,yw,new Map,new Map,i,Yke,r),s.forEach(u=>{const d=fc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function K2e(){return new Ot(3300,!1)}()),s=[]),r.length)throw function Q2e(t){return new Ot(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,$h))})});const c=wf(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function Z2e(t){return new Ot(3301,!1)}();return e}listen(n,e,i,r){const o=ZA(e,"","","");return KA(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const A7="ng-animate-queued",mM="ng-animate-disabled",tSe=[],M7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nSe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},zc="__ng_removed";class gM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function sSe(t){return t??null}(i?n.value:n),i){const o=W1(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Y1="void",vM=new gM(Y1);class iSe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Uc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function eke(t,n){return new Ot(3302,!1)}();if(null==i||0==i.length)throw function tke(t){return new Ot(3303,!1)}();if(!function aSe(t){return"start"==t||"done"==t}(i))throw function nke(t,n){return new Ot(3400,!1)}();const o=fc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=fc(this._engine.statesByElement,n,new Map);return a.has(e)||(Uc(n,bw),Uc(n,bw+"-"+e),a.set(e,vM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function ike(t){return new Ot(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new yM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Uc(n,bw),Uc(n,bw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new gM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=vM),c.value!==Y1&&l.value===c.value){if(!function uSe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Gp(n,g),Rd(n,v)})}return}const h=fc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Uc(n,A7),s.onStart(()=>{Xg(n,A7)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,_w,!0);i.forEach(r=>{if(r[zc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Y1,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&wf(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||vM,u=new gM(Y1),d=new yM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[zc];(!o||o===M7)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Uc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=ZA(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,KA(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class rSe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new iSe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Iw(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Iw(e))return;const o=e[zc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Uc(n,mM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Xg(n,mM))}removeNode(n,e,i,r){if(Iw(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[zc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Iw(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,_w,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,rM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return wf(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[zc];if(e&&e.setForRemoval){if(n[zc]=M7,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(mM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?wf(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function rke(t){return new Ot(3402,!1)}()}_flushAnimations(n,e){const i=new Ew,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Z=>{u.add(Z);const H=this.driver.query(Z,".ng-animate-queued",!0);for(let he=0;he{const he=iM+m++;p.set(H,he),Z.forEach(E=>Uc(E,he))});const g=[],v=new Set,y=new Set;for(let Z=0;Zv.add(E)):y.add(H))}const _=new Map,C=N7(h,Array.from(v));C.forEach((Z,H)=>{const he=yw+m++;_.set(H,he),Z.forEach(E=>Uc(E,he))}),n.push(()=>{f.forEach((Z,H)=>{const he=p.get(H);Z.forEach(E=>Xg(E,he))}),C.forEach((Z,H)=>{const he=_.get(H);Z.forEach(E=>Xg(E,he))}),g.forEach(Z=>{this.processLeaveNode(Z)})});const S=[],M=[];for(let Z=this._namespaceList.length-1;Z>=0;Z--)this._namespaceList[Z].drainQueuedTransitions(e).forEach(he=>{const E=he.player,F=he.element;if(S.push(E),this.collectedEnterElements.length){const xe=F[zc];if(xe&&xe.setForMove){if(xe.previousTriggersValues&&xe.previousTriggersValues.has(he.triggerName)){const tt=xe.previousTriggersValues.get(he.triggerName),ze=this.statesByElement.get(he.element);if(ze&&ze.has(he.triggerName)){const ot=ze.get(he.triggerName);ot.value=tt,ze.set(he.triggerName,ot)}}return void E.destroy()}}const N=!d||!this.driver.containsElement(d,F),Y=_.get(F),V=p.get(F),oe=this._buildInstruction(he,i,V,Y,N);if(oe.errors&&oe.errors.length)return void M.push(oe);if(N)return E.onStart(()=>Gp(F,oe.fromStyles)),E.onDestroy(()=>Rd(F,oe.toStyles)),void r.push(E);if(he.isFallbackTransition)return E.onStart(()=>Gp(F,oe.fromStyles)),E.onDestroy(()=>Rd(F,oe.toStyles)),void r.push(E);const fe=[];oe.timelines.forEach(xe=>{xe.stretchStartingKeyframe=!0,this.disabledNodes.has(xe.element)||fe.push(xe)}),oe.timelines=fe,i.append(F,oe.timelines),s.push({instruction:oe,player:E,element:F}),oe.queriedElements.forEach(xe=>fc(a,xe,[]).push(E)),oe.preStyleProps.forEach((xe,tt)=>{if(xe.size){let ze=l.get(tt);ze||l.set(tt,ze=new Set),xe.forEach((ot,B)=>ze.add(B))}}),oe.postStyleProps.forEach((xe,tt)=>{let ze=c.get(tt);ze||c.set(tt,ze=new Set),xe.forEach((ot,B)=>ze.add(B))})});if(M.length){const Z=[];M.forEach(H=>{Z.push(function oke(t,n){return new Ot(3505,!1)}())}),S.forEach(H=>H.destroy()),this.reportError(Z)}const $=new Map,G=new Map;s.forEach(Z=>{const H=Z.element;i.has(H)&&(G.set(H,H),this._beforeAnimationBuild(Z.player.namespaceId,Z.instruction,$))}),r.forEach(Z=>{const H=Z.element;this._getPreviousPlayers(H,!1,Z.namespaceId,Z.triggerName,null).forEach(E=>{fc($,H,[]).push(E),E.destroy()})});const R=g.filter(Z=>j7(Z,l,c)),z=new Map;F7(z,this.driver,y,c,$h).forEach(Z=>{j7(Z,l,c)&&R.push(Z)});const q=new Map;f.forEach((Z,H)=>{F7(q,this.driver,new Set(Z),l,YA)}),R.forEach(Z=>{const H=z.get(Z),he=q.get(Z);z.set(Z,new Map([...Array.from(H?.entries()??[]),...Array.from(he?.entries()??[])]))});const re=[],L=[],X={};s.forEach(Z=>{const{element:H,player:he,instruction:E}=Z;if(i.has(H)){if(u.has(H))return he.onDestroy(()=>Rd(H,E.toStyles)),he.disabled=!0,he.overrideTotalTime(E.totalTime),void r.push(he);let F=X;if(G.size>1){let Y=H;const V=[];for(;Y=Y.parentNode;){const oe=G.get(Y);if(oe){F=oe;break}V.push(Y)}V.forEach(oe=>G.set(oe,F))}const N=this._buildAnimation(he.namespaceId,E,$,o,q,z);if(he.setRealPlayer(N),F===X)re.push(he);else{const Y=this.playersByElement.get(F);Y&&Y.length&&(he.parentPlayer=wf(Y)),r.push(he)}}else Gp(H,E.fromStyles),he.onDestroy(()=>Rd(H,E.toStyles)),L.push(he),u.has(H)&&r.push(he)}),L.forEach(Z=>{const H=o.get(Z.element);if(H&&H.length){const he=wf(H);Z.setRealPlayer(he)}}),r.forEach(Z=>{Z.parentPlayer?Z.syncPlayerEvents(Z.parentPlayer):Z.destroy()});for(let Z=0;Z!N.destroyed);F.length?lSe(this,H,F):this.processLeaveNode(H)}return g.length=0,re.forEach(Z=>{this.players.push(Z),Z.onDone(()=>{Z.destroy();const H=this.players.indexOf(Z);this.players.splice(H,1)}),Z.play()}),re}elementContainsData(n,e){let i=!1;const r=e[zc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==Y1;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=fc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Gp(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[zc];if(g&&g.removedBeforeQueried)return new G1(p.duration,p.delay);const v=m!==l,y=function cSe(t){const n=[];return O7(t,n),n}((i.get(m)||tSe).map($=>$.getRealPlayer())).filter($=>!!$.element&&$.element===m),_=o.get(m),C=s.get(m),S=s7(0,this._normalizer,0,p.keyframes,_,C),M=this._buildPlayer(p,S,y);if(p.subTimeline&&r&&d.add(m),v){const $=new yM(n,a,m);$.setRealPlayer(M),c.push($)}return M});c.forEach(p=>{fc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function oSe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Uc(p,m7));const f=wf(h);return f.onDestroy(()=>{u.forEach(p=>Xg(p,m7)),Rd(l,e.toStyles)}),d.forEach(p=>{fc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new G1(n.duration,n.delay)}}class yM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new G1,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>KA(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){fc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Iw(t){return t&&1===t.nodeType}function I7(t,n){const e=t.style.display;return t.style.display=n??"none",e}function F7(t,n,e,i,r){const o=[];e.forEach(l=>o.push(I7(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[zc]=nSe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>I7(l,o[a++])),s}function N7(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Uc(t,n){t.classList?.add(n)}function Xg(t,n){t.classList?.remove(n)}function lSe(t,n,e){wf(e).onDone(()=>t.processLeaveNode(n))}function O7(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class Fw{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new rSe(n,e,i),this._timelineEngine=new Jke(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=lM(this._driver,o,l,c);if(l.length)throw function X2e(t,n){return new Ot(3404,!1)}();a=function Wke(t,n,e){return new qke(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=a7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=a7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let hSe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Rd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Rd(this._element,this._initialStyles),this._endStyles&&(Rd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Gp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gp(this._element,this._endStyles),this._endStyles=null),Rd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function bM(t){let n=null;return t.forEach((e,i)=>{(function fSe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class P7{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:x7(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pSe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return d7(n,e)}getParentElement(n){return tM(n)}query(n,e,i){return h7(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof P7);(function yke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function pke(t){return t.length?t[0]instanceof Map?t:t.map(n=>g7(n)):[]}(e).map(f=>Cf(f));d=function bke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,x7(t,a)))}}return n}(n,d,c);const h=function dSe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=bM(n[0]),n.length>1&&(i=bM(n[n.length-1]))):n instanceof Map&&(e=bM(n)),e||i?new hSe(t,e,i):null}(n,d);return new P7(n,d,l,h)}}let mSe=(()=>{class t extends t7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:yu.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?n7(e):e;return L7(this._renderer,null,i,"register",[r]),new gSe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ct(Lp),ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class gSe extends D2e{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new vSe(this._id,n,e||{},this._renderer)}}class vSe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return L7(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function L7(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const R7="@.disabled";let ySe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new $7("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new bSe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(ct(Lp),ct(Fw),ct(Wi))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class $7{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==R7?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class bSe extends $7{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==R7?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function _Se(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function xSe(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let wSe=(()=>{class t extends Fw{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir),ct(nM),ct(fM),ct(Au))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const B7=[{provide:t7,useClass:mSe},{provide:fM,useFactory:function CSe(){return new Hke}},{provide:Fw,useClass:wSe},{provide:Lp,useFactory:function kSe(t,n,e){return new ySe(t,n,e)},deps:[vw,Fw,Wi]}],_M=[{provide:nM,useFactory:()=>new pSe},{provide:C$,useValue:"BrowserAnimations"},...B7],xM=[{provide:nM,useClass:f7},{provide:C$,useValue:"NoopAnimations"},...B7];let SSe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?xM:_M}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:_M,imports:[qA]}),t})(),DSe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:xM,imports:[qA]}),t})();function $n(...t){let n=t[t.length-1];return Sa(n)?(t.pop(),Oc(t,n)):st(t)}class Hs extends tr{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Xr;return this._value}next(n){super.next(this._value=n)}}const Ow=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class wM extends O{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class TSe extends O{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function CM(t,n,e,i,r=new TSe(t,e,i)){if(!r.closed)return n instanceof rn?n.subscribe(r):nc(n)(r)}const V7={};function jw(...t){let n,e;return Sa(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&et(t[0])&&(t=t[0]),st(t,e).lift(new ESe(n))}class ESe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new ASe(n,this.resultSelector))}}class ASe extends wM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(V7),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function Lw(t){return t?function ISe(t){return new rn(n=>t.schedule(()=>n.complete()))}(t):Vh}function H7(t){return new rn(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?co(e):Lw()).subscribe(n)})}function qp(t,n){return new rn(n?e=>n.schedule(FSe,0,{error:t,subscriber:e}):e=>e.error(t))}function FSe({error:t,subscriber:n}){n.error(t)}function zl(t,n){return"function"==typeof n?e=>e.pipe(zl((i,r)=>co(t(i,r)).pipe(yn((o,s)=>n(i,o,r,s))))):e=>e.lift(new NSe(t))}class NSe{constructor(n){this.project=n}call(n,e){return e.subscribe(new OSe(n,this.project))}}class OSe extends W{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ml(this),r=this.destination;r.add(i),this.innerSubscription=Ne(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const z7=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Sl(t){return n=>0===t?Lw():n.lift(new jSe(t))}class jSe{constructor(n){if(this.total=n,this.total<0)throw new z7}call(n,e){return e.subscribe(new PSe(n,this.total))}}class PSe extends O{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function ns(t,n){return function(i){return i.lift(new LSe(t,n))}}class LSe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new RSe(n,this.predicate,this.thisArg))}}class RSe extends O{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function Rw(t=null){return n=>n.lift(new $Se(t))}class $Se{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new BSe(n,this.defaultValue))}}class BSe extends O{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function U7(t=zSe){return n=>n.lift(new VSe(t))}class VSe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new HSe(n,this.errorFactory))}}class HSe extends O{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function zSe(){return new Ow}function kf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ns((r,o)=>t(r,o,i)):jt,Sl(1),e?Rw(n):U7(()=>new Ow))}function Sf(t,n){return nt(t,n,1)}function Hh(){}function is(t,n,e){return function(r){return r.lift(new USe(t,n,e))}}class USe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new GSe(n,this.nextOrObserver,this.error,this.complete))}}class GSe extends O{constructor(n,e,i,r){super(n),this._tapNext=Hh,this._tapError=Hh,this._tapComplete=Hh,this._tapError=i||Hh,this._tapComplete=r||Hh,rt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Hh,this._tapError=e.error||Hh,this._tapComplete=e.complete||Hh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Ul(t){return function(e){const i=new WSe(t),r=e.lift(i);return i.caught=r}}class WSe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new qSe(n,this.selector,this.caught))}}class qSe extends W{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ml(this);this.add(i);const r=Ne(e,i);r!==i&&this.add(r)}}}function G7(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new XSe(t,n,e))}}class XSe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new YSe(n,this.accumulator,this.seed,this.hasSeed))}}class YSe extends O{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function kM(t){return function(e){return 0===t?Lw():e.lift(new JSe(t))}}class JSe{constructor(n){if(this.total=n,this.total<0)throw new z7}call(n,e){return e.subscribe(new KSe(n,this.total))}}class KSe extends O{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?ns((r,o)=>t(r,o,i)):jt,kM(1),e?Rw(n):U7(()=>new Ow))}class ZSe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new eDe(n,this.predicate,this.inclusive))}}class eDe extends O{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class nDe{constructor(n){this.value=n}call(n,e){return e.subscribe(new iDe(n,this.value))}}class iDe extends O{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function SM(t){return n=>n.lift(new rDe(t))}class rDe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new oDe(n,this.callback))}}class oDe extends O{constructor(n,e){super(n),this.add(new ue(e))}}const zi="primary",K1=Symbol("RouteTitle");class sDe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Yg(t){return new sDe(t)}function aDe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function X7(t){return Array.prototype.concat.apply([],t)}function Y7(t){return t.length>0?t[t.length-1]:null}function Fa(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Df(t){return OE(t)?t:S1(t)?co(Promise.resolve(t)):$n(t)}const $w=!1,cDe={exact:function Q7(t,n,e){if(!Xp(t.segments,n.segments)||!Bw(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!Q7(t.children[i],n.children[i],e))return!1;return!0},subset:Z7},J7={exact:function uDe(t,n){return $d(t,n)},subset:function dDe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>q7(t[e],n[e]))},ignored:()=>!0};function K7(t,n,e){return cDe[e.paths](t.root,n.root,e.matrixParams)&&J7[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Z7(t,n,e){return e9(t,n,n.segments,e)}function e9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Xp(r,e)||n.hasChildren()||!Bw(r,e,i))}if(t.segments.length===e.length){if(!Xp(t.segments,e)||!Bw(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!Z7(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Xp(t.segments,r)&&Bw(t.segments,r,i)&&t.children[zi])&&e9(t.children[zi],n,o,i)}}function Bw(t,n,e){return n.every((i,r)=>J7[e](t[r].parameters,i.parameters))}class Tf{constructor(n=new fr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yg(this.queryParams)),this._queryParamMap}toString(){return pDe.serialize(this)}}class fr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Fa(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vw(this)}}class Q1{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Yg(this.parameters)),this._parameterMap}toString(){return i9(this)}}function Xp(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let Z1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return new DM},providedIn:"root"}),t})();class DM{parse(n){const e=new CDe(n);return new Tf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${ey(n.root,!0)}`,i=function vDe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Hw(e)}=${Hw(r)}`).join("&"):`${Hw(e)}=${Hw(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function mDe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const pDe=new DM;function Vw(t){return t.segments.map(n=>i9(n)).join("/")}function ey(t,n){if(!t.hasChildren())return Vw(t);if(n){const e=t.children[zi]?ey(t.children[zi],!1):"",i=[];return Fa(t.children,(r,o)=>{o!==zi&&i.push(`${o}:${ey(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function fDe(t,n){let e=[];return Fa(t.children,(i,r)=>{r===zi&&(e=e.concat(n(i,r)))}),Fa(t.children,(i,r)=>{r!==zi&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===zi?[ey(t.children[zi],!1)]:[`${r}:${ey(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[zi]?`${Vw(t)}/${e[0]}`:`${Vw(t)}/(${e.join("//")})`}}function t9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hw(t){return t9(t).replace(/%3B/gi,";")}function TM(t){return t9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zw(t){return decodeURIComponent(t)}function n9(t){return zw(t.replace(/\+/g,"%20"))}function i9(t){return`${TM(t.path)}${function gDe(t){return Object.keys(t).map(n=>`;${TM(n)}=${TM(t[n])}`).join("")}(t.parameters)}`}const yDe=/^[^\/()?;=#]+/;function Uw(t){const n=t.match(yDe);return n?n[0]:""}const bDe=/^[^=?&#]+/,xDe=/^[^&#]+/;class CDe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fr([],{}):new fr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[zi]=new fr(n,e)),i}parseSegment(){const n=Uw(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Ot(4009,$w);return this.capture(n),new Q1(zw(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Uw(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Uw(this.remaining);r&&(i=r,this.capture(i))}n[zw(e)]=zw(i)}parseQueryParam(n){const e=function _De(t){const n=t.match(bDe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function wDe(t){const n=t.match(xDe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=n9(e),o=n9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Uw(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Ot(4010,$w);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=zi);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zi]:new fr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Ot(4011,$w)}}function EM(t){return t.segments.length>0?new fr([],{[zi]:t}):t}function Gw(t){const n={};for(const i of Object.keys(t.children)){const o=Gw(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function kDe(t){if(1===t.numberOfChildren&&t.children[zi]){const n=t.children[zi];return new fr(t.segments.concat(n.segments),n.children)}return t}(new fr(t.segments,n))}function Yp(t){return t instanceof Tf}const AM=!1;function SDe(t,n,e,i,r){if(0===e.length)return Jg(n.root,n.root,n.root,i,r);const o=function l9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new a9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Fa(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new a9(e,n,i)}(e);return o.toRoot()?Jg(n.root,n.root,new fr([],{}),i,r):function s(l){const c=function TDe(t,n,e,i){if(t.isAbsolute)return new Kg(n.root,!0,0);if(-1===i)return new Kg(e,e===n.root,0);return function c9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Ot(4005,AM&&"Invalid number of '../'");r=i.segments.length}return new Kg(i,!1,r-o)}(e,i+(ty(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?Qg(c.segmentGroup,c.index,o.commands):MM(c.segmentGroup,c.index,o.commands);return Jg(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function ty(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ny(t){return"object"==typeof t&&null!=t&&t.outlets}function Jg(t,n,e,i,r){let s,o={};i&&Fa(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:s9(t,n,e);const a=EM(Gw(s));return new Tf(a,o,r)}function s9(t,n,e){const i={};return Fa(t.children,(r,o)=>{i[o]=r===n?e:s9(r,n,e)}),new fr(t.segments,i)}class a9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ty(i[0]))throw new Ot(4003,AM&&"Root segment cannot have matrix parameters");const r=i.find(ny);if(r&&r!==Y7(i))throw new Ot(4004,AM&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Kg{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function MM(t,n,e){if(t||(t=new fr([],{})),0===t.segments.length&&t.hasChildren())return Qg(t,n,e);const i=function ADe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(ny(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!d9(l,c,s))return o;i+=2}else{if(!d9(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=MM(t.children[s],n,o))}),Fa(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new fr(t.segments,r))}}function IM(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=IM(new fr([],{}),0,e))}),n}function u9(t){const n={};return Fa(t,(e,i)=>n[i]=`${e}`),n}function d9(t,n,e){return t==e.path&&$d(n,e.parameters)}const iy="imperative";class Bd{constructor(n,e){this.id=n,this.url=e}}class Ww extends Bd{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zh extends Bd{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ry extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qw extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class Xw extends Bd{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class IDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NDe extends Bd{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ODe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class PDe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class LDe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class RDe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $De{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class BDe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class VDe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h9{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let UDe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return SDe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),WDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(n){return UDe.\u0275fac(n)},providedIn:"root"}),t})();class f9{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=FM(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=FM(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=NM(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return NM(n,this._root).map(e=>e.value)}}function FM(t,n){if(t===n.value)return n;for(const e of n.children){const i=FM(t,e);if(i)return i}return null}function NM(t,n){if(t===n.value)return[n];for(const e of n.children){const i=NM(t,e);if(i.length)return i.unshift(n),i}return[]}class Uh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Zg(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class p9 extends f9{constructor(n,e){super(n),this.snapshot=e,OM(this,n)}toString(){return this.snapshot.toString()}}function m9(t,n){const e=function qDe(t,n){const s=new Yw([],{},{},"",{},zi,n,null,t.root,-1,{});return new v9("",new Uh(s,[]))}(t,n),i=new Hs([new Q1("",{})]),r=new Hs({}),o=new Hs({}),s=new Hs({}),a=new Hs(""),l=new Rr(i,r,s,a,o,zi,n,e.root);return l.snapshot=e.root,new p9(new Uh(l,[]),e)}class Rr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(yn(c=>c[K1]))??$n(void 0),this._futureSnapshot=l}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(yn(n=>Yg(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(yn(n=>Yg(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function g9(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function XDe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Yw{get title(){return this.data?.[K1]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,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=Yg(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yg(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class v9 extends f9{constructor(n,e){super(e),this.url=n,OM(this,e)}toString(){return y9(this._root)}}function OM(t,n){n.value._routerState=t,n.children.forEach(e=>OM(t,e))}function y9(t){const n=t.children.length>0?` { ${t.children.map(y9).join(", ")} } `:"";return`${t.value}${n}`}function jM(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,$d(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),$d(n.params,e.params)||t.params.next(e.params),function lDe(t,n){if(t.length!==n.length)return!1;for(let e=0;e$d(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||PM(t.parent,n.parent))}function oy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function JDe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return oy(t,i,r);return oy(t,i)})}(t,n,e);return new Uh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>oy(t,a)),s}}const i=function KDe(t){return new Rr(new Hs(t.url),new Hs(t.params),new Hs(t.queryParams),new Hs(t.fragment),new Hs(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>oy(t,o));return new Uh(i,r)}}const LM="ngNavigationCancelingError";function b9(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Yp(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=_9(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function _9(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[LM]=!0,i.cancellationCode=n,e&&(i.url=e),i}function x9(t){return w9(t)&&Yp(t.url)}function w9(t){return t&&t[LM]}class QDe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new sy,this.attachRef=null}}let sy=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new QDe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Jw=!1;let Jp=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=zi,this.activateEvents=new Ke,this.deactivateEvents=new Ke,this.attachEvents=new Ke,this.detachEvents=new Ke,this.parentContexts=ar(sy),this.location=ar(nl),this.changeDetector=ar(qo),this.environmentInjector=ar(Fd)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}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 Ot(4012,Jw);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ot(4012,Jw);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ot(4012,Jw);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.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,i){if(this.isActivated)throw new Ot(4013,Jw);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ZDe(e,a,r.injector);if(i&&function eTe(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]}),t})();class ZDe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Rr?this.route:n===sy?this.childContexts:this.parent.get(n,e)}}let RM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ng-component"]],standalone:!0,features:[L6],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[Jp],encapsulation:2}),t})();function C9(t,n){return t.providers&&!t._injector&&(t._injector=Gx(t.providers,n,`Route: ${t.path}`)),t._injector??n}function BM(t){const n=t.children&&t.children.map(BM),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==zi&&(e.component=RM),e}function Gc(t){return t.outlet||zi}function k9(t,n){const e=t.filter(i=>Gc(i)===n);return e.push(...t.filter(i=>Gc(i)!==n)),e}function ay(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class oTe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),jM(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Zg(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Fa(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Zg(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Zg(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=Zg(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new VDe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new $De(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(jM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),jM(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=ay(r.snapshot),l=a?.get($c)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class S9{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Kw{constructor(n,e){this.component=n,this.route=e}}function sTe(t,n,e){const i=t._root;return ly(i,n?n._root:null,e,[i.value])}function ev(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function cge(t){return null!==q_(t)}(t)?n.get(t):t:i}function ly(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Zg(n);return t.children.forEach(s=>{(function lTe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function cTe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Xp(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Xp(t.url,n.url)||!$d(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!PM(t,n)||!$d(t.queryParams,n.queryParams);default:return!PM(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new S9(i)):(o.data=s.data,o._resolvedData=s._resolvedData),ly(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Kw(a.outlet.component,s))}else s&&cy(n,a,r),r.canActivateChecks.push(new S9(i)),ly(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Fa(o,(s,a)=>cy(s,e.getContext(a),r)),r}function cy(t,n,e){const i=Zg(t),r=t.value;Fa(i,(o,s)=>{cy(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new Kw(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function uy(t){return"function"==typeof t}function VM(t){return t instanceof Ow||"EmptyError"===t?.name}const Qw=Symbol("INITIAL_VALUE");function tv(){return zl(t=>jw(t.map(n=>n.pipe(Sl(1),function J1(...t){const n=t[t.length-1];return Sa(n)?(t.pop(),e=>Pw(t,e,n)):e=>Pw(t,e)}(Qw)))).pipe(yn(n=>{for(const e of n)if(!0!==e){if(e===Qw)return Qw;if(!1===e||e instanceof Tf)return e}return!0}),ns(n=>n!==Qw),Sl(1)))}function D9(t){return function Wt(...t){return wn(t)}(is(n=>{if(Yp(n))throw b9(0,n)}),yn(n=>!0===n))}const HM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function T9(t,n,e,i,r){const o=zM(t,n,e);return o.matched?function DTe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?$n(r.map(s=>{const a=ev(s,t);return Df(function mTe(t){return t&&uy(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(tv(),D9()):$n(!0)}(i=C9(n,i),n,e).pipe(yn(s=>!0===s?o:{...HM})):$n(o)}function zM(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...HM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||aDe)(e,t,n);if(!r)return{...HM};const o={};Fa(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Zw(t,n,e,i){if(e.length>0&&function ATe(t,n,e){return e.some(i=>eC(t,n,i)&&Gc(i)!==zi)}(t,e,i)){const o=new fr(n,function ETe(t,n,e,i){const r={};r[zi]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Gc(o)!==zi){const s=new fr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Gc(o)]=s}return r}(t,n,i,new fr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function MTe(t,n,e){return e.some(i=>eC(t,n,i))}(t,e,i)){const o=new fr(t.segments,function TTe(t,n,e,i,r){const o={};for(const s of i)if(eC(t,e,s)&&!r[Gc(s)]){const a=new fr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Gc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new fr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function eC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function E9(t,n,e,i){return!!(Gc(t)===i||i!==zi&&eC(n,e,t))&&("**"===t.path||zM(n,t,e).matched)}function A9(t,n,e){return 0===n.length&&!t.children[e]}const tC=!1;class nC{constructor(n){this.segmentGroup=n||null}}class M9{constructor(n){this.urlTree=n}}function dy(t){return qp(new nC(t))}function I9(t){return qp(new M9(t))}function ITe(t){return qp(new Ot(4e3,tC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class OTe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=Zw(this.urlTree.root,[],[],this.config).segmentGroup,e=new fr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,zi).pipe(yn(o=>this.createUrlTree(Gw(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ul(o=>{if(o instanceof M9)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof nC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,zi).pipe(yn(r=>this.createUrlTree(Gw(r),n.queryParams,n.fragment))).pipe(Ul(r=>{throw r instanceof nC?this.noMatchError(r):r}))}noMatchError(n){return new Ot(4002,tC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=EM(n);return new Tf(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(yn(o=>new fr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return co(r).pipe(Sf(o=>{const s=i.children[o],a=k9(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(yn(l=>({segment:l,outlet:o})))}),G7((o,s)=>(o[s.outlet]=s.segment,o),{}),W7())}expandSegment(n,e,i,r,o,s){return co(i).pipe(Sf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Ul(c=>{if(c instanceof nC)return $n(null);throw c}))),kf(a=>!!a),Ul((a,l)=>{if(VM(a))return A9(e,r,o)?$n(new fr([],{})):dy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return E9(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):dy(e):dy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?I9(o):this.lineralizeSegments(i,o).pipe(nt(s=>{const a=new fr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=zM(e,r,o);if(!a)return dy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?I9(d):this.lineralizeSegments(r,d).pipe(nt(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=C9(i,n),i.loadChildren?(i._loadedRoutes?$n({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(yn(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new fr(r,{})))):$n(new fr(r,{}))):T9(e,i,r,n).pipe(zl(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(nt(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=Zw(e,a,l,h),m=new fr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(yn(_=>new fr(a,_)));if(0===h.length&&0===p.length)return $n(new fr(a,{}));const g=Gc(i)===o;return this.expandSegment(d,m,h,p,g?zi:o,!0).pipe(yn(y=>new fr(a.concat(y.segments),y.children)))})):dy(e)))}getChildConfig(n,e,i){return e.children?$n({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?$n({routes:e._loadedRoutes,injector:e._loadedInjector}):function STe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?$n(!0):$n(r.map(s=>{const a=ev(s,t);return Df(function dTe(t){return t&&uy(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(tv(),D9())}(n,e,i).pipe(nt(r=>r?this.configLoader.loadChildren(n,e).pipe(is(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function FTe(t){return qp(_9(tC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):$n({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return $n(i);if(r.numberOfChildren>1||!r.children[zi])return ITe(n.redirectTo);r=r.children[zi]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Tf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Fa(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Fa(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new fr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Ot(4001,tC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class PTe{}class $Te{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=Zw(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,zi).pipe(yn(e=>{if(null===e)return null;const i=new Yw([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zi,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Uh(i,e),o=new v9(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=g9(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return co(Object.keys(i.children)).pipe(Sf(r=>{const o=i.children[r],s=k9(e,r);return this.processSegmentGroup(n,s,o,r)}),G7((r,o)=>r&&o?(r.push(...o),r):null),function QSe(t,n=!1){return e=>e.lift(new ZSe(t,n))}(r=>null!==r),Rw(null),W7(),yn(r=>{if(null===r)return null;const o=N9(r);return function BTe(t){t.sort((n,e)=>n.value.outlet===zi?-1:e.value.outlet===zi?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return co(e).pipe(Sf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),kf(s=>!!s),Ul(s=>{if(VM(s))return A9(i,r,o)?$n([]):$n(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!E9(e,i,r,o))return $n(null);let s;if("**"===e.path){const a=r.length>0?Y7(r).parameters:{},l=j9(i)+r.length;s=$n({snapshot:new Yw(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,P9(e),Gc(e),e.component??e._loadedComponent??null,e,O9(i),l,L9(e)),consumedSegments:[],remainingSegments:[]})}else s=T9(i,e,r,n).pipe(yn(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=j9(i)+l.length;return{snapshot:new Yw(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,P9(e),Gc(e),e.component??e._loadedComponent??null,e,O9(i),d,L9(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(zl(a=>{if(null===a)return $n(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function VTe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=Zw(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(yn(g=>null===g?null:[new Uh(l,g)]));if(0===h.length&&0===p.length)return $n([new Uh(l,[])]);const m=Gc(e)===o;return this.processSegment(d,h,f,p,m?zi:o).pipe(yn(g=>null===g?null:[new Uh(l,g)]))}))}}function HTe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function N9(t){const n=[],e=new Set;for(const i of t){if(!HTe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=N9(i.children);n.push(new Uh(i.value,r))}return n.filter(i=>!e.has(i))}function O9(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function j9(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function P9(t){return t.data||{}}function L9(t){return t.resolve||{}}function R9(t){return"string"==typeof t.title||null===t.title}function UM(t){return zl(n=>{const e=t(n);return e?co(e).pipe(yn(()=>n)):$n(n)})}const nv=new zn("ROUTES");let GM=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return $n(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Df(e.loadComponent()).pipe(yn(B9),is(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),SM(()=>{this.componentLoaders.delete(e)})),r=new pe(i,()=>new tr).pipe(Ut());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return $n({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(yn(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=X7(l.get(nv,[],ki.Self|ki.Optional)));return{routes:c.map(BM),injector:l}}),SM(()=>{this.childrenLoaders.delete(i)})),s=new pe(o,()=>new tr).pipe(Ut());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Df(e()).pipe(yn(B9),nt(r=>r instanceof j6||Array.isArray(r)?$n(r):co(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)(ct(Rs),ct(k$))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function B9(t){return function KTe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let rC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new tr,this.configLoader=ar(GM),this.environmentInjector=ar(Fd),this.urlSerializer=ar(Z1),this.rootContexts=ar(sy),this.navigationId=0,this.afterPreactivation=()=>$n(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new LDe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new PDe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new Hs({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:iy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ns(i=>0!==i.id),yn(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),zl(i=>{let r=!1,o=!1;return $n(i).pipe(is(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),zl(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new qw(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return V9(s.source)&&(e.browserUrlTree=s.extractedUrl),$n(s).pipe(zl(u=>{const d=this.transitions?.getValue();return this.events.next(new Ww(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Vh:Promise.resolve(u)}),function jTe(t,n,e,i){return zl(r=>function NTe(t,n,e,i,r){return new OTe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(yn(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),is(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function UTe(t,n,e,i,r){return nt(o=>function RTe(t,n,e,i,r,o,s="emptyOnly"){return new $Te(t,n,e,i,r,s,o).recognize().pipe(zl(a=>null===a?function LTe(t){return new rn(n=>n.error(t))}(new PTe):$n(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(yn(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),is(u=>{if(i.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 IDe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new Ww(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=m9(d,this.rootComponentType).snapshot;return $n(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new qw(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}}),is(s=>{const a=new FDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),yn(s=>i={...s,guards:sTe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function vTe(t,n){return nt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?$n({...e,guardsResult:!0}):function yTe(t,n,e,i){return co(t).pipe(nt(r=>function kTe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?$n(o.map(a=>{const l=ay(n)??r,c=ev(a,l);return Df(function pTe(t){return t&&uy(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(kf())})).pipe(tv()):$n(!0)}(r.component,r.route,e,n,i)),kf(r=>!0!==r,!0))}(s,i,r,t).pipe(nt(a=>a&&function uTe(t){return"boolean"==typeof t}(a)?function bTe(t,n,e,i){return co(n).pipe(Sf(r=>Pw(function xTe(t,n){return null!==t&&n&&n(new RDe(t)),$n(!0)}(r.route.parent,i),function _Te(t,n){return null!==t&&n&&n(new BDe(t)),$n(!0)}(r.route,i),function CTe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function aTe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>H7(()=>$n(s.guards.map(l=>{const c=ay(s.node)??e,u=ev(l,c);return Df(function fTe(t){return t&&uy(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(kf())})).pipe(tv())));return $n(o).pipe(tv())}(t,r.path,e),function wTe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return $n(!0);const r=i.map(o=>H7(()=>{const s=ay(n)??e,a=ev(o,s);return Df(function hTe(t){return t&&uy(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(kf())}));return $n(r).pipe(tv())}(t,r.route,e))),kf(r=>!0!==r,!0))}(i,o,t,n):$n(a)),yn(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),is(s=>{if(i.guardsResult=s.guardsResult,Yp(s.guardsResult))throw b9(0,s.guardsResult);const a=new NDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),ns(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),UM(s=>{if(s.guards.canActivateChecks.length)return $n(s).pipe(is(a=>{const l=new ODe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),zl(a=>{let l=!1;return $n(a).pipe(function GTe(t,n){return nt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return $n(e);let o=0;return co(r).pipe(Sf(s=>function WTe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!R9(r)&&(o[K1]=r.title),function qTe(t,n,e,i){const r=function XTe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return $n({});const o={};return co(r).pipe(nt(s=>function YTe(t,n,e,i){const r=ay(n)??i,o=ev(t,r);return Df(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(kf(),is(a=>{o[s]=a}))),kM(1),function tDe(t){return n=>n.lift(new nDe(t))}(o),Ul(s=>VM(s)?Vh:qp(s)))}(o,t,n,i).pipe(yn(s=>(t._resolvedData=s,t.data=g9(t,e).resolve,r&&R9(r)&&(t.data[K1]=r.title),null)))}(s.route,i,t,n)),is(()=>o++),kM(1),nt(s=>o===r.length?$n(e):Vh))})}(e.paramsInheritanceStrategy,this.environmentInjector),is({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),is(a=>{const l=new jDe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),UM(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(is(u=>{l.component=u}),yn(()=>{})));for(const u of l.children)c.push(...a(u));return c};return jw(a(s.targetSnapshot.root)).pipe(Rw(),Sl(1))}),UM(()=>this.afterPreactivation()),yn(s=>{const a=function YDe(t,n,e){const i=oy(t,n._root,e?e._root:void 0);return new p9(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),is(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>yn(i=>(new oTe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),is({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new zh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),SM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Ul(s=>{if(o=!0,w9(s)){x9(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ry(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),x9(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||V9(i.source)};e.scheduleNavigation(l,iy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new Xw(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Vh}))}))}cancelNavigationTransition(e,i,r){const o=new ry(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function V9(t){return t!==iy}let H9=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===zi);return i}getResolvedTitleForRoute(e){return e.data[K1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(QTe)},providedIn:"root"}),t})(),QTe=(()=>{class t extends H9{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(ct(JB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(tEe)},providedIn:"root"}),t})();class eEe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let tEe=(()=>{class t extends eEe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oC=new zn("",{providedIn:"root",factory:()=>({})});let iEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(rEe)},providedIn:"root"}),t})(),rEe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oEe(t){throw t}function sEe(t,n,e){return n.parse("/")}const aEe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lEe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let cr=(()=>{class t{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=ar(xxe),this.isNgZoneEnabled=!1,this.options=ar(oC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||oEe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||sEe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ar(iEe),this.routeReuseStrategy=ar(ZTe),this.urlCreationStrategy=ar(WDe),this.titleStrategy=ar(H9),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=X7(ar(nv,{optional:!0})??[]),this.navigationTransitions=ar(rC),this.urlSerializer=ar(Z1),this.location=ar(kA),this.isNgZoneEnabled=ar(Wi)instanceof Wi&&Wi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Tf,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=m9(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),iy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(BM),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,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Yp(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,iy,null,i)}navigate(e,i={skipLocationChange:!1}){return function cEe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!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&&(i&&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,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fu=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new tr;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof zh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=qg(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=qg(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=qg(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,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"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 d5(t,n,e){return function L0e(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?u5:y1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,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 t.\u0275fac=function(e){return new(e||t)(le(cr),le(Rr),Ah("tabindex"),le(Ss),le(ti),le(zp))},t.\u0275dir=Zt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&ye("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ht("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Hn]}),t})(),hy=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ke,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof zh&&this.update()})}ngAfterContentInit(){$n(this.links.changes,$n(null)).pipe(A()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=co(e).pipe(A()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=function uEe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(le(cr),le(ti),le(Ss),le(qo),le(Fu,8))},t.\u0275dir=Zt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,Fu,5),2&e){let o;cn(o=un())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]}),t})();class z9{}let dEe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ns(e=>e instanceof zh),Sf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Gx(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return co(r).pipe(A())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):$n(null);const o=r.pipe(nt(s=>null===s?$n(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?co([o,this.loader.loadComponent(i)]).pipe(A()):o})}}return t.\u0275fac=function(e){return new(e||t)(ct(cr),ct(k$),ct(Fd),ct(z9),ct(GM))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const qM=new zn("");let U9=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.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 Ww?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof zh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof h9&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new h9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function V5(){throw new Error("invalid")}()},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();var mc=(()=>((mc=mc||{})[mc.COMPLETE=0]="COMPLETE",mc[mc.FAILED=1]="FAILED",mc[mc.REDIRECTING=2]="REDIRECTING",mc))();const iv=!1;function Ef(t,n){return{\u0275kind:t,\u0275providers:n}}const XM=new zn("",{providedIn:"root",factory:()=>!1});function W9(){const t=ar(Rs);return n=>{const e=t.get(Au);if(n!==e.components[0])return;const i=t.get(cr),r=t.get(q9);1===t.get(YM)&&i.initialNavigation(),t.get(X9,null,ki.Optional)?.setUpPreloading(),t.get(qM,null,ki.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const q9=new zn(iv?"bootstrap done indicator":"",{factory:()=>new tr}),YM=new zn(iv?"initial navigation":"",{providedIn:"root",factory:()=>1});function gEe(){let t=[];return t=iv?[{provide:Sx,multi:!0,useFactory:()=>{const n=ar(cr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function HDe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Ef(1,t)}const X9=new zn(iv?"router preloader":"");function vEe(t){return Ef(0,[{provide:X9,useExisting:dEe},{provide:z9,useExisting:t}])}const fy=!1,Y9=new zn(fy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),yEe=[kA,{provide:Z1,useClass:DM},cr,sy,{provide:Rr,useFactory:function G9(t){return t.routerState.root},deps:[cr]},GM,fy?{provide:XM,useValue:!0}:[]];function bEe(){return new F$("Router",cr)}let J9=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[yEe,fy&&i?.enableTracing?gEe().\u0275providers:[],{provide:nv,multi:!0,useValue:e},{provide:Y9,useFactory:CEe,deps:[[cr,new u1,new d1]]},{provide:oC,useValue:i||{}},i?.useHash?{provide:zp,useClass:lwe}:{provide:zp,useClass:tB},{provide:qM,useFactory:()=>{const t=ar(_Ce),n=ar(Wi),e=ar(oC),i=ar(rC),r=ar(Z1);return e.scrollOffset&&t.setOffset(e.scrollOffset),new U9(r,i,t,n,e)}},i?.preloadingStrategy?vEe(i.preloadingStrategy).\u0275providers:[],{provide:F$,multi:!0,useFactory:bEe},i?.initialNavigation?kEe(i):[],[{provide:K9,useFactory:W9},{provide:I$,multi:!0,useExisting:K9}]]}}static forChild(e){return{ngModule:t,providers:[{provide:nv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(ct(Y9,8))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[RM]}),t})();function CEe(t){if(fy&&t)throw new Ot(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 kEe(t){return["disabled"===t.initialNavigation?Ef(3,[{provide:Yx,multi:!0,useFactory:()=>{const n=ar(cr);return()=>{n.setUpLocationChangeListener()}}},{provide:YM,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ef(2,[{provide:YM,useValue:0},{provide:Yx,multi:!0,deps:[Rs],useFactory:n=>{const e=n.get(swe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(cr),o=n.get(q9);(function hEe(t,n){t.events.pipe(ns(e=>e instanceof zh||e instanceof ry||e instanceof Xw||e instanceof qw),yn(e=>e instanceof zh||e instanceof qw?mc.COMPLETE:e instanceof ry&&(0===e.code||1===e.code)?mc.REDIRECTING:mc.FAILED),ns(e=>e!==mc.REDIRECTING),Sl(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(rC).afterPreactivation=()=>(i(!0),o.closed?$n(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const K9=new zn(fy?"Router Initializer":"");function sC(t,n){return new rn(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let Q9=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(le(Ss),le(ti))},t.\u0275dir=Zt({type:t}),t})(),Kp=(()=>{class t extends Q9{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,features:[vi]}),t})();const ha=new zn("NgValueAccessor"),TEe={provide:ha,useExisting:Gi(()=>aC),multi:!0};let aC=(()=>{class t extends Kp{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&ye("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Lr([TEe]),vi]}),t})();const EEe={provide:ha,useExisting:Gi(()=>Na),multi:!0},MEe=new zn("CompositionEventMode");let Na=(()=>{class t extends Q9{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function AEe(){const t=jh()?jh().getUserAgent():"";return/android (\d+)/.test(t.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 t.\u0275fac=function(e){return new(e||t)(le(Ss),le(ti),le(MEe,8))},t.\u0275dir=Zt({type:t,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,i){1&e&&ye("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Lr([EEe]),vi]}),t})();const IEe=!1;function Af(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Z9(t){return null!=t&&"number"==typeof t.length}const Oa=new zn("NgValidators"),Mf=new zn("NgAsyncValidators"),FEe=/^(?=.{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 Do{static min(n){return eV(n)}static max(n){return function tV(t){return n=>{if(Af(n.value)||Af(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return nV(n)}static requiredTrue(n){return function iV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function rV(t){return Af(t.value)||FEe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function oV(t){return n=>Af(n.value)||!Z9(n.value)?null:n.value.lengthZ9(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function aV(t){if(!t)return lC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Af(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return fV(n)}static composeAsync(n){return pV(n)}}function eV(t){return n=>{if(Af(n.value)||Af(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function dV(t,n){return n.map(e=>e(t))}function hV(t){return t.map(n=>function NEe(t){return!t.validate}(n)?n:e=>n.validate(e))}function fV(t){if(!t)return null;const n=t.filter(lV);return 0==n.length?null:function(e){return uV(dV(e,n))}}function JM(t){return null!=t?fV(hV(t)):null}function pV(t){if(!t)return null;const n=t.filter(lV);return 0==n.length?null:function(e){return function DEe(...t){if(1===t.length){const n=t[0];if(et(n))return sC(n,null);if(Ve(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return sC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return sC(t=1===t.length&&et(t[0])?t[0]:t,null).pipe(yn(e=>n(...e)))}return sC(t,null)}(dV(e,n).map(cV)).pipe(yn(uV))}}function KM(t){return null!=t?pV(hV(t)):null}function mV(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function gV(t){return t._rawValidators}function vV(t){return t._rawAsyncValidators}function QM(t){return t?Array.isArray(t)?t:[t]:[]}function cC(t,n){return Array.isArray(t)?t.includes(n):t===n}function yV(t,n){const e=QM(n);return QM(t).forEach(r=>{cC(e,r)||e.push(r)}),e}function bV(t,n){return QM(n).filter(e=>!cC(t,e))}class _V{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(n){this._rawValidators=n||[],this._composedValidatorFn=JM(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=KM(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Dl extends _V{get formDirective(){return null}get path(){return null}}class If extends _V{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xV{constructor(n){this._cd=n}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 rl=(()=>{class t extends xV{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(le(If,2))},t.\u0275dir=Zt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Mn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[vi]}),t})(),ol=(()=>{class t extends xV{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(le(Dl,10))},t.\u0275dir=Zt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Mn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[vi]}),t})();function wV(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const t3=!1,py="VALID",dC="INVALID",rv="PENDING",my="DISABLED";function n3(t){return(hC(t)?t.validators:t)||null}function i3(t,n){return(hC(n)?n.asyncValidators:t)||null}function hC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function CV(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Ot(1e3,t3?function LEe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new Ot(1001,t3?function REe(t,n){return`Cannot find form control ${wV(t,n)}`}(n,e):"")}function kV(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new Ot(1002,t3?function $Ee(t,n){return`Must supply a value for form control ${wV(t,n)}`}(n,r):"")})}class fC{constructor(n,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(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===py}get invalid(){return this.status===dC}get pending(){return this.status==rv}get disabled(){return this.status===my}get enabled(){return this.status!==my}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(yV(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(yV(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(bV(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(bV(n,this._rawAsyncValidators))}hasValidator(n){return cC(this._rawValidators,n)}hasAsyncValidator(n){return cC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=rv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=my,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=py,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===py||this.status===rv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?my:py}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=rv,this._hasOwnPendingAsyncValidator=!0;const e=cV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ke,this.statusChanges=new Ke}_calculateStatus(){return this._allControlsDisabled()?my:this.errors?dC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(rv)?rv:this._anyControlsHaveStatus(dC)?dC:py}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function BEe(t){return Array.isArray(t)?JM(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function VEe(t){return Array.isArray(t)?KM(t):t||null}(this._rawAsyncValidators)}}class gy extends fC{constructor(n,e,i){super(n3(e),i3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){kV(this,!0,n),Object.keys(n).forEach(i=>{CV(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class SV extends gy{}const Qp=new zn("CallSetDisabledState",{providedIn:"root",factory:()=>vy}),vy="always";function yy(t,n,e=vy){r3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function zEe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&DV(t,n)})}(t,n),function GEe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function UEe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&DV(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function HEe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function mC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),vC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function gC(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function r3(t,n){const e=gV(t);null!==n.validator?t.setValidators(mV(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=vV(t);null!==n.asyncValidator?t.setAsyncValidators(mV(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();gC(n._rawValidators,r),gC(n._rawAsyncValidators,r)}function vC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=gV(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=vV(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return gC(n._rawValidators,i),gC(n._rawAsyncValidators,i),e}function DV(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function AV(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function MV(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const _y=class extends fC{constructor(n=null,e,i){super(n3(e),i3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=MV(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){AV(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){AV(this._onDisabledChange,n)}_forEachChild(n){}_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(n){MV(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const eAe={provide:ha,useExisting:Gi(()=>c3),multi:!0};let c3=(()=>{class t extends Kp{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ye("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Lr([eAe]),vi]}),t})(),jV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();const u3=new zn("NgModelWithFormControlWarning"),oAe={provide:Dl,useExisting:Gi(()=>fa)};let fa=(()=>{class t extends Dl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ke,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vC(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 i=this.form.get(e.path);return yy(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){mC(e.control||null,e,!1),function YEe(t,n){const e=t.indexOf(n);e>-1&&t.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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function EV(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(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 i=e.control,r=this.form.get(e.path);i!==r&&(mC(i||null,e),(t=>t instanceof _y)(r)&&(yy(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function TV(t,n){r3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function WEe(t,n){return vC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){r3(this.form,this),this._oldForm&&vC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(le(Oa,10),le(Mf,10),le(Qp,8))},t.\u0275dir=Zt({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ye("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lr([oAe]),vi,Hn]}),t})();const lAe={provide:If,useExisting:Gi(()=>ja)};let ja=(()=>{class t extends If{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Ke,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function a3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Na?e=o:function XEe(t){return Object.getPrototypeOf(t.constructor)===Kp}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function s3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(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 function pC(t,n){return[...n.path,t]}(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 t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(le(Dl,13),le(Oa,10),le(Mf,10),le(ha,10),le(u3,8))},t.\u0275dir=Zt({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Lr([lAe]),vi,Hn]}),t})();const cAe={provide:ha,useExisting:Gi(()=>ov),multi:!0};function BV(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let ov=(()=>{class t extends Kp{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=BV(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function uAe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&ye("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Lr([cAe]),vi]}),t})(),xy=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,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(BV(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 t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(ov,9))},t.\u0275dir=Zt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const dAe={provide:ha,useExisting:Gi(()=>f3),multi:!0};function VV(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let f3=(()=>{class t extends Kp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(VV(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(VV(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 t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(f3,9))},t.\u0275dir=Zt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let Zp=(()=>{class t{constructor(){this._validator=lC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):lC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,features:[Hn]}),t})();const pAe={provide:Oa,useExisting:Gi(()=>p3),multi:!0};let p3=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function zV(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>eV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ht("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[Lr([pAe]),vi]}),t})();const mAe={provide:Oa,useExisting:Gi(()=>Ff),multi:!0};let Ff=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=qg,this.createValidator=e=>nV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ht("required",i._enabled?"":null)},inputs:{required:"required"},features:[Lr([mAe]),vi]}),t})(),JV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[jV]}),t})();class KV extends fC{constructor(n,e,i){super(n3(e),i3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){kV(this,!1,n),n.forEach((i,r)=>{CV(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function QV(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let xAe=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return QV(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new gy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new SV(r,i)}control(e,i,r){let o={};return this.useNonNullable?(QV(i)?o=i:(o.validators=i,o.asyncValidators=r),new _y(e,{...o,nonNullable:!0})):new _y(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new KV(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof _y||e instanceof fC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tl=(()=>{class t extends xAe{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Qp,useValue:e.callSetDisabledState??vy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[JV]}),t})(),wAe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:u3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Qp,useValue:e.callSetDisabledState??vy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[JV]}),t})();const m3=new zn("ngx-segment-analytics.config"),CAe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js"};let g3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),yC=(()=>{class t{constructor(e,i,r){if(this._w=e,this._doc=i,this._config=Object.assign(Object.assign({},CAe),r),this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics.SNIPPET_VERSION="4.1.0",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}traits(){return this._w.analytics.traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}get plugins(){return this._w.analytics.plugins}}return t.\u0275fac=function(e){return new(e||t)(ct(g3),ct(Ir),ct(m3))},t.\u0275prov=Et({factory:function(){return new t(ct(g3),ct(Ir),ct(m3))},token:t,providedIn:"root"}),t})();function kAe(t){return function DB(t){return t===SB}(t)?window:{}}let SAe=(()=>{class t{constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static forRoot(e){return{ngModule:t,providers:[{provide:m3,useValue:e},yC]}}}return t.\u0275fac=function(e){return new(e||t)(ct(t,12))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[{provide:g3,useFactory:kAe,deps:[L1]}],imports:[Vs]}),t})();class bC{}class v3{}class Nu{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Nu?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Nu;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Nu?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class DAe{encodeKey(n){return eH(n)}encodeValue(n){return eH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const EAe=/%(\d[a-f0-9])/gi,AAe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function eH(t){return encodeURIComponent(t).replace(EAe,(n,e)=>AAe[e]??n)}function _C(t){return`${t}`}class In{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new DAe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function TAe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(_C):[_C(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new In({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(_C(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(_C(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class MAe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function tH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function nH(t){return typeof Blob<"u"&&t instanceof Blob}function iH(t){return typeof FormData<"u"&&t instanceof FormData}class Cy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function IAe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Nu),this.context||(this.context=new MAe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Cy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var zs=(()=>((zs=zs||{})[zs.Sent=0]="Sent",zs[zs.UploadProgress=1]="UploadProgress",zs[zs.ResponseHeader=2]="ResponseHeader",zs[zs.DownloadProgress=3]="DownloadProgress",zs[zs.Response=4]="Response",zs[zs.User=5]="User",zs))();class y3{constructor(n,e=200,i="OK"){this.headers=n.headers||new Nu,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class b3 extends y3{constructor(n={}){super(n),this.type=zs.ResponseHeader}clone(n={}){return new b3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class xC extends y3{constructor(n={}){super(n),this.type=zs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new xC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class rH extends y3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function _3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let wC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Cy)o=e;else{let l,c;l=r.headers instanceof Nu?r.headers:new Nu(r.headers),r.params&&(c=r.params instanceof In?r.params:new In({fromObject:r.params})),o=new Cy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=$n(o).pipe(Sf(l=>this.handler.handle(l)));if(e instanceof Cy||"events"===r.observe)return s;const a=s.pipe(ns(l=>l instanceof xC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(yn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(yn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(yn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(yn(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new In).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,_3(r,i))}post(e,i,r={}){return this.request("POST",e,_3(r,i))}put(e,i,r={}){return this.request("PUT",e,_3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(ct(bC))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function oH(t,n){return n(t)}function NAe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const x3=new zn("HTTP_INTERCEPTORS"),ky=new zn("HTTP_INTERCEPTOR_FNS");function jAe(){let t=null;return(n,e)=>(null===t&&(t=(ar(x3,{optional:!0})??[]).reduceRight(NAe,oH)),t(n,e))}let sH=(()=>{class t extends bC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(ky)));this.chain=i.reduceRight((r,o)=>function OAe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),oH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(ct(v3),ct(Fd))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const $Ae=/^\)\]\}',?\n/;let lH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new rn(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new Nu(r.getAllResponseHeaders()),m=function BAe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new b3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const _=v;v=v.replace($Ae,"");try{v=""!==v?JSON.parse(v):null}catch(C){v=_,y&&(y=!1,v={error:C,text:v})}}y?(i.next(new xC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new rH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new rH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:zs.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:zs.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:zs.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ct(EB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const w3=new zn("XSRF_ENABLED"),cH=new zn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),uH=new zn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class dH{}let zAe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,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 t.\u0275fac=function(e){return new(e||t)(ct(Ir),ct(L1),ct(cH))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function UAe(t,n){const e=t.url.toLowerCase();if(!ar(w3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=ar(dH).getToken(),r=ar(uH);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Ts=(()=>((Ts=Ts||{})[Ts.Interceptors=0]="Interceptors",Ts[Ts.LegacyInterceptors=1]="LegacyInterceptors",Ts[Ts.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ts[Ts.NoXsrfProtection=3]="NoXsrfProtection",Ts[Ts.JsonpSupport=4]="JsonpSupport",Ts[Ts.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ts))();function sv(t,n){return{\u0275kind:t,\u0275providers:n}}function GAe(...t){const n=[wC,lH,sH,{provide:bC,useExisting:sH},{provide:v3,useExisting:lH},{provide:ky,useValue:UAe,multi:!0},{provide:w3,useValue:!0},{provide:dH,useClass:zAe}];for(const e of t)n.push(...e.\u0275providers);return function R0e(t){return{\u0275providers:t}}(n)}const hH=new zn("LEGACY_INTERCEPTOR_FN");let qAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[GAe(sv(Ts.LegacyInterceptors,[{provide:hH,useFactory:jAe},{provide:ky,useExisting:hH,multi:!0}]))]}),t})();var oi=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(oi||(oi={})),oi))(),Sy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY"}(Sy||(Sy={})),Sy))();class C3{constructor(){K(this,"host",void 0),K(this,"timeoutMs",void 0)}}let xi=(()=>{class t{constructor(e,i){K(this,"httpClient",void 0),K(this,"config",void 0),this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new In({encoder:new Xn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new In({encoder:new Xn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new In({encoder:new Xn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new In({encoder:new Xn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new In({encoder:new Xn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new In({encoder:new Xn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new In({encoder:new Xn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new In({encoder:new Xn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new In({encoder:new Xn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new In({encoder:new Xn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new In({encoder:new Xn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new In({encoder:new Xn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new Nu).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new Nu).set("Authorization","Basic "+btoa(e+":"+i))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(wC),ct(C3,8))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class Xn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const fH=new zn("window"),JAe=[{provide:fH,useFactory:()=>window}],k3="currentSession";let Xo=(()=>{class t{constructor(e,i,r,o){K(this,"window",void 0),K(this,"segment",void 0),K(this,"http",void 0),K(this,"consoleService",void 0),K(this,"currentSessionSubject",void 0),K(this,"currentSession",void 0),this.window=e,this.segment=i,this.http=r,this.consoleService=o;const s=JSON.parse(localStorage.getItem(k3));s&&this.segmentIdentify(s),this.currentSessionSubject=new Hs(s),this.currentSession=this.currentSessionSubject.asObservable()}get currentSessionValue(){return this.currentSessionSubject.getValue()}get username(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1])).usn}get sessionRole(){const e=this.currentSessionSubject.getValue().token;switch(JSON.parse(atob(e.split(".")[1])).rol){case 1:return oi.USER_ROLE_ADMIN;case 2:return oi.USER_ROLE_DEVELOPER;case 3:return oi.USER_ROLE_MAINTAINER;case 4:return oi.USER_ROLE_READONLY;default:return oi.USER_ROLE_UNKNOWN}}login(e,i){return this.consoleService.authenticate({username:e,password:i}).pipe(is(r=>{localStorage.setItem(k3,JSON.stringify(r)),this.currentSessionSubject.next(r),this.segmentIdentify(r)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(is(()=>{localStorage.removeItem(k3),this.currentSessionSubject.next(null)})):Vh}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(fH),ct(yC),ct(wC),ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function KAe(t,n){if(1&t&&(b(0,"div",17),I(1),x()),2&t){const e=j();w(1),xn(" ",e.error," ")}}const QAe=function(t){return{"was-validated":t}},pH=function(t){return{"is-invalid":t}};let ZAe=(()=>{class t{constructor(e,i,r,o,s){K(this,"segment",void 0),K(this,"formBuilder",void 0),K(this,"route",void 0),K(this,"router",void 0),K(this,"authenticationService",void 0),K(this,"error",""),K(this,"loginForm",void 0),K(this,"submitted",void 0),K(this,"returnUrl",void 0),this.segment=e,this.formBuilder=i,this.route=r,this.router=o,this.authenticationService=s}ngOnInit(){this.segment.page("/login"),this.loginForm=this.formBuilder.group({username:["",Do.compose([Do.required])],password:["",Do.compose([Do.required,Do.minLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authenticationService.login(this.f.username.value,this.f.password.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,this.router.navigate([this.returnUrl])},e=>{this.error=e,this.submitted=!1})}get f(){return this.loginForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(yC),le(Tl),le(Rr),le(cr),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:26,vars:14,consts:[[1,"bg-grad","d-flex","h-100"],[1,"align-self-center","mx-auto"],[1,"text-center","mb-4"],["src","/static/svg/logo.svg","alt","Nakama Logo","width","175"],["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"text-center"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group","form-row"],[1,"col-sm-12"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"h1",2),ge(3,"img",3),x(),J(4,KAe,2,1,"div",4),b(5,"div",5)(6,"div",6)(7,"h3",7),I(8,"Login"),x(),b(9,"form",8),ye("ngSubmit",function(){return i.onSubmit()}),b(10,"div",9)(11,"div",10)(12,"label",11),I(13,"Username"),x(),ge(14,"input",12),b(15,"div",13),I(16,"Please enter a username."),x()()(),b(17,"div",9)(18,"div",10)(19,"label",14),I(20,"Password"),x(),ge(21,"input",15),b(22,"div",13),I(23,"Password must be at least 8 characters."),x()()(),b(24,"button",16),I(25,"Login"),x()()()()()()),2&e&&(w(4),k("ngIf",i.error),w(5),k("formGroup",i.loginForm)("ngClass",lr(8,QAe,i.submitted)),w(5),k("ngClass",lr(10,pH,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(6),k("ngClass",lr(12,pH,i.f.password.dirty&&i.f.password.errors)),w(1),k("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),w(2),k("disabled",!i.loginForm.valid||i.submitted))},dependencies:[Rh,gn,sl,Na,rl,ol,Ff,fa,ja],styles:["div[_ngcontent-%COMP%] .mx-auto[_ngcontent-%COMP%]{width:420px}"]})),t})(),eMe=(()=>{class t{constructor(e,i){K(this,"authService",void 0),K(this,"router",void 0),this.authService=e,this.router=i}canActivate(e,i){return!this.authService.currentSessionValue||(this.router.navigate(["/"]),!1)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo),ct(cr))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),tMe=(()=>{class t{constructor(e,i){K(this,"router",void 0),K(this,"authenticationService",void 0),this.router=e,this.authenticationService=i}canActivate(e,i){return!!this.authenticationService.currentSessionValue||(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(cr),ct(Xo))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class nMe extends ue{constructor(n,e){super()}schedule(n,e=0){return this}}class S3 extends nMe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let mH=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Hd extends mH{constructor(n,e=mH.now){super(n,()=>Hd.delegate&&Hd.delegate!==this?Hd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Hd.delegate&&Hd.delegate!==this?Hd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Dy=new Hd(S3);class rMe{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new sMe(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class oMe{constructor(){this.buffer=[]}}class sMe extends O{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(gH,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(vH,e,{subscriber:this,context:s})),this.add(o.schedule(aMe,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(gH,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new oMe;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function gH(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function aMe(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(vH,e,{subscriber:i,context:o})),this.schedule(t,n))}function vH(t){const{subscriber:n,context:e}=t;n.closeContext(e)}class lMe{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new cMe(n,this.compare,this.keySelector))}}class cMe extends O{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Es(t,n,e,i){return rt(e)&&(i=e,e=void 0),i?Es(t,n,e).pipe(yn(r=>et(r)?i(...r):i(r))):new rn(r=>{yH(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function yH(t,n,e,i,r){let o;if(function hMe(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function dMe(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function uMe(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function av(t=0,n,e){let i=-1;return bH(n)?i=Number(n)<1?1:Number(n):Sa(n)&&(e=n),Sa(e)||(e=Dy),new rn(r=>{const o=bH(t)?t:+t-e.now();return e.schedule(fMe,o,{index:0,period:i,subscriber:r})})}function fMe(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function _H(...t){if(1===t.length){if(!et(t[0]))return t[0];t=t[0]}return st(t,void 0).lift(new pMe)}class pMe{call(n,e){return e.subscribe(new mMe(n))}}class mMe extends wM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class _Me extends W{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Ro](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Ne(this.observable,new ml(this))}}function yo(t){return n=>n.lift(new wMe(t))}class wMe{constructor(n){this.notifier=n}call(n,e){const i=new CMe(n),r=Ne(this.notifier,new ml(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class CMe extends W{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function D3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new kMe(t,e))}}class kMe{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new SMe(n,this.observables,this.project))}}class SMe extends wM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Ou{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return $n(this.value);case"E":return qp(this.error);case"C":return Lw()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Ou("N",n):Ou.undefinedValueNotification}static createError(n){return new Ou("E",void 0,n)}static createComplete(){return Ou.completeNotification}}function T3(t,n=Dy){const i=function DMe(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new TMe(i,n))}Ou.completeNotification=new Ou("C"),Ou.undefinedValueNotification=new Ou("N",void 0);class TMe{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new E3(n,this.delay,this.scheduler))}}class E3 extends O{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(E3.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new EMe(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Ou.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Ou.createComplete()),this.unsubscribe()}}class EMe{constructor(n,e){this.time=n,this.notification=e}}function $Me(t,n){if(1&t){const e=vt();b(0,"button",1),ye("click",function(){return $e(e),Be(j().close())}),b(1,"span",2),I(2,"\xd7"),x()()}}const lv=["*"],b3e=["dialog"];function Nf(t){return null!=t}typeof Element<"u"&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const CH={animation:!0,transitionTimerDelayMs:5};let pa=(()=>{class t{constructor(){this.animation=CH.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({factory:function(){return new t},token:t,providedIn:"root"}),t})();const TIe=()=>{},{transitionTimerDelayMs:EIe}=CH,EC=new Map,ma=(t,n,e)=>{let i=e.context||{};const r=EC.get(t);if(r)switch(e.runningTransition){case"continue":return Vh;case"stop":r.transition$.complete(),i=Object.assign(r.context,i),EC.delete(t)}!function TC(t){return(t||document.body).offsetHeight}(t);const o=n(t,i)||TIe;if(!e.animation||"none"===window.getComputedStyle(t).transitionProperty)return o(),$n(void 0);const s=new tr,a=s.pipe(function xMe(...t){return n=>Pw(n,$n(...t))}(!0));EC.set(t,{transition$:s,context:i});const l=function DIe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(t),c=Es(t,"transitionend").pipe(yo(a),ns(({target:d})=>d===t));return _H(av(l+EIe).pipe(yo(a)),c).pipe(yo(a)).subscribe(()=>{EC.delete(t),o(),s.next(),s.complete()}),s.asObservable()};let AH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),IIe=(()=>{class t{constructor(e){this.dismissible=!0,this.type="warning",this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();const FIe=({classList:t})=>{t.remove("show")};let To=(()=>{class t{constructor(e,i,r){this._renderer=i,this._element=r,this.closed=new Ke,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=ma(this._element.nativeElement,FIe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(le(IIe),le(Ss),le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Mn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[Hn],ngContentSelectors:lv,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["type","button","class","close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,i){1&e&&(Cu(),ku(0),J(1,$Me,3,0,"button",0)),2&e&&(w(1),k("ngIf",i.dismissible))},dependencies:[gn],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),t})(),MH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),AC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,i){2&e&&Mn("btn",!0)("active",i.active)("disabled",i.disabled)("focus",i.focused)}}),t})(),OIe=0,F3=(()=>{class t{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+OIe++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[Lr([{provide:ha,useExisting:Gi(()=>t),multi:!0}])]}),t})(),IH=(()=>{class t{constructor(e,i,r,o,s){this._group=e,this._label=i,this._renderer=r,this._element=o,this._cd=s,this._value=null,this._group.register(this),this.updateDisabled()}set value(e){this._value=e;const i=e?e.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",i),this._group.onRadioValueUpdate()}set disabled(e){this._disabled=!1!==e,this.updateDisabled()}set focused(e){this._label&&(this._label.focused=e),e||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(e){this.value!==e&&this._cd.markForCheck(),this._checked=this.value===e,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}}return t.\u0275fac=function(e){return new(e||t)(le(F3),le(AC),le(Ss),le(ti),le(qo))},t.\u0275dir=Zt({type:t,selectors:[["","ngbButton","","type","radio"]],hostVars:3,hostBindings:function(e,i){1&e&&ye("change",function(){return i.onChange()})("focus",function(){return i.focused=!0})("blur",function(){return i.focused=!1}),2&e&&dc("checked",i.checked)("disabled",i.disabled)("name",i.nameAttr)},inputs:{value:"value",disabled:"disabled",name:"name"}}),t})(),FH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})(),PH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),LH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();var ur=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(ur||(ur={})),ur))();const NC=(t,n)=>!!n&&n.some(e=>e.contains(t)),VH=(t,n)=>!n||null!=function kIe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),sFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),aFe=t=>sFe?()=>setTimeout(()=>t(),100):t;function Ey(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(aFe(()=>{const c=Es(n,"keydown").pipe(yo(r),ns(h=>h.which===ur.Escape),is(h=>h.preventDefault())),u=Es(n,"mousedown").pipe(yn(h=>{const f=h.target;return 2!==h.button&&!NC(f,s)&&("inside"===e?NC(f,o)&&VH(f,a):"outside"===e?!NC(f,o):VH(f,a)||!NC(f,o))}),yo(r)),d=Es(n,"mouseup").pipe(D3(u),ns(([h,f])=>f),T3(0),yo(r));_H([c.pipe(yn(h=>0)),d.pipe(yn(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const HH=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function zH(t){const n=Array.from(t.querySelectorAll(HH)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const cFe=/\s+/,GH=new class lFe{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))i=n.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const o=this.offsetParent(n);i=this.offset(n,!1),o!==document.documentElement&&(r=this.offset(o,!1)),r.top+=o.clientTop,r.left+=o.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(n,e=!0){const i=n.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft;let o={height:i.height||n.offsetHeight,width:i.width||n.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(n,e,i,r){const[o="top",s="center"]=i.split("-"),a=r?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),u=parseFloat(l.marginBottom),d=parseFloat(l.marginLeft),h=parseFloat(l.marginRight);let f=0,p=0;switch(o){case"top":f=a.top-(e.offsetHeight+c+u);break;case"bottom":f=a.top+a.height;break;case"left":p=a.left-(e.offsetWidth+d+h);break;case"right":p=a.left+a.width}switch(s){case"top":f=a.top;break;case"bottom":f=a.top+a.height-e.offsetHeight;break;case"left":p=a.left;break;case"right":p=a.left+a.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?p=a.left+a.width/2-e.offsetWidth/2:f=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(f)}px)`;const m=e.getBoundingClientRect(),g=document.documentElement,v=window.innerHeight||g.clientHeight,y=window.innerWidth||g.clientWidth;return m.left>=0&&m.top>=0&&m.right<=y&&m.bottom<=v}};function Ay(t,n,e,i,r){let o=Array.isArray(e)?e:e.split(cFe);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=n.classList,l=f=>{const[p,m]=f.split("-"),g=[];return r&&(g.push(`${r}-${p}`),m&&g.push(`${r}-${p}-${m}`),g.forEach(v=>{a.add(v)})),g};r&&s.forEach(f=>{a.remove(`${r}-${f}`)});let c=o.findIndex(f=>"auto"===f);c>=0&&s.forEach(function(f){null==o.find(p=>-1!==p.search("^"+f))&&o.splice(c++,1,f)});const u=n.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let d=null,h=!1;for(d of o){let f=l(d);if(GH.positionElements(t,n,d,i)){h=!0;break}r&&f.forEach(p=>{a.remove(p)})}return h||(d=o[0],l(d),GH.positionElements(t,n,d,i)),d}new Date(1882,10,12),new Date(2174,10,25);let ZH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs,ZV]}),t})(),xFe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["",8,"navbar"]]}),t})(),jf=(()=>{class t{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,i){2&e&&Mn("disabled",i.disabled)},inputs:{disabled:"disabled"}}),t})(),Pf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,jf,4),2&e){let o;cn(o=un())&&(i.menuItems=o)}},hostVars:5,hostBindings:function(e,i){1&e&&ye("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&(ht("x-placement",i.placement),Mn("dropdown-menu",!0)("show",i.dropdown.isOpen()))}}),t})(),LC=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ht("aria-expanded",i.dropdown.isOpen())}}),t})(),rm=(()=>{class t extends LC{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&ye("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ht("aria-expanded",i.dropdown.isOpen())},features:[Lr([{provide:LC,useExisting:Gi(()=>t)}]),vi]}),t})(),Pu=(()=>{class t{constructor(e,i,r,o,s,a,l){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._closed$=new tr,this._bodyContainer=null,this._open=!1,this.openChange=new Ke,this.placement=i.placement,this.container=i.container,this.autoClose=i.autoClose,this.display=l?"static":"dynamic",this._zoneSubscription=o.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Sl(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Ey(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==ur.Space&&i!==ur.Enter){if(i!==ur.Tab){if(a||s){if(this.open(),r.length){switch(i){case ur.ArrowDown:o=Math.min(o+1,r.length-1);break;case ur.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case ur.Home:o=0;break;case ur.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(HH);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Es(e.target,"focusout").pipe(Sl(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Es(s,"click").pipe(Sl(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?Ay(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const r=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,r),e.removeStyle(r,"position"),e.removeStyle(r,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1050"),i.appendChild(o,r),i.appendChild(this._document.body,o)}}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown"),i.placement="static"===this.display?null:e;const s=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,s);const a=this._bodyContainer;a&&(r.removeClass(a,"dropup"),r.removeClass(a,"dropdown"),r.addClass(a,s))}}}return t.\u0275fac=function(e){return new(e||t)(le(qo),le(xFe),le(Ir),le(Wi),le(ti),le(Ss),le(ez,8))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,Pf,5),ni(r,LC,5)),2&e){let o;cn(o=un())&&(i._menu=o.first),cn(o=un())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Mn("show",i.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[Hn]}),t})(),tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})(),nz=(()=>{class t{constructor(e){this.backdrop=!0,this.keyboard=!0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();class om{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class V3{constructor(n,e,i,r,o,s,a){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._componentFactoryResolver=s,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.asObservable().pipe(Sl(1)).pipe(nt(()=>this._ngZone.run(()=>ma(r,({classList:a})=>a.add("show"),{animation:i,runningTransition:"continue"}))));return{windowRef:this._windowRef,transition$:s}}close(n=!1){return this._windowRef?ma(this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(is(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),null!==(e=this._contentRef)&&void 0!==e&&e.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):$n(void 0)}_getContentRef(n,e){if(n){if(n instanceof Si){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new om([i.rootNodes],i)}return new om([[this._renderer.createText(`${n}`)]])}return new om([])}}const wFe=()=>{};let iz=(()=>{class t{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):wFe}_adjustBody(e){const i=this._document.body,r=i.style.paddingRight,o=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${o+e}px`,()=>i.style["padding-right"]=r}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const r=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),r}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({factory:function(){return new t(ct(Ir))},token:t,providedIn:"root"}),t})(),CFe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Sl(1)).subscribe(()=>{ma(this._el.nativeElement,({classList:e})=>e.add("show"),{animation:this.animation,runningTransition:"continue"})})}hide(){return ma(this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Su("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Mn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class rz{close(n){}dismiss(n){}}class kFe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new tr,this._dismissed=new tr,this._hidden=new tr,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(yo(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(yo(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(n)},()=>{}):!1!==e&&this._dismiss(n)}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():$n(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),kC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Fy=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(Fy||(Fy={})),Fy))();let SFe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new tr,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Ke,this.shown=new tr,this.hidden=new tr}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=kC(ma(e,()=>e.classList.remove("show"),i),ma(this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"continue"};kC(ma(e,()=>e.classList.add("show"),i),ma(this._dialogEl.nativeElement,()=>{},i)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Es(e,"keydown").pipe(yo(this._closed$),ns(r=>r.which===ur.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Fy.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Es(this._dialogEl.nativeElement,"mousedown").pipe(yo(this._closed$),is(()=>i=!1),zl(()=>Es(e,"mouseup").pipe(yo(this._closed$),Sl(1))),ns(({target:r})=>e===r)).subscribe(()=>{i=!0}),Es(e,"click").pipe(yo(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(Fy.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=zH(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&ma(this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(le(Ir),le(ti),le(Wi))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&io(b3e,7),2&e){let r;cn(r=un())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ht("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Su("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Mn("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:lv,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cu(),b(0,"div",0,1)(2,"div",2),ku(3),x()()),2&e&&Su("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),oz=(()=>{class t{constructor(e,i,r,o,s,a){this._applicationRef=e,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new tr,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new Ke,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Es(n,"focusin").pipe(yo(e),yn(o=>o.target));Es(n,"keydown").pipe(yo(e),ns(o=>o.which===ur.Tab),D3(r)).subscribe(([o,s])=>{const[a,l]=zH(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Es(n,"click").pipe(yo(e),D3(r),yn(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,r,o){const s=o.container instanceof HTMLElement?o.container:Nf(o.container)?this._document.querySelector(o.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);const u=new rz,d=this._getContentRef(e,o.injector||i,r,u,o);let h=!1!==o.backdrop?this._attachBackdrop(e,s):void 0,f=this._attachWindowComponent(e,s,d),p=new kFe(f,d,h,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.result.then(l,l),p.result.then(c,c),u.close=m=>{p.close(m)},u.dismiss=m=>{p.dismiss(m)},this._applyWindowOptions(f.instance,o),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),h&&h.instance&&this._applyBackdropOptions(h.instance,o),p}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let o=e.resolveComponentFactory(CFe).create(this._injector);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_attachWindowComponent(e,i,r){let s=e.resolveComponentFactory(SFe).create(this._injector,r.nodes);return this._applicationRef.attachView(s.hostView),i.appendChild(s.location.nativeElement),s}_applyWindowOptions(e,i){this._windowAttributes.forEach(r=>{Nf(i[r])&&(e[r]=i[r])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(r=>{Nf(i[r])&&(e[r]=i[r])})}_getContentRef(e,i,r,o,s){return r?r instanceof Si?this._createFromTemplateRef(r,o):function DC(t){return"string"==typeof t}(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new om([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new om([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new om([[i]])}_createFromComponent(e,i,r,o,s){const a=e.resolveComponentFactory(r),l=Rs.create({providers:[{provide:rz,useValue:o}],parent:i}),c=a.create(l),u=c.location.nativeElement;return s.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new om([[u]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(ct(Au),ct(Rs),ct(Ir),ct(iz),ct(Lp),ct(Wi))},t.\u0275prov=Et({factory:function(){return new t(ct(Au),ct(Dx),ct(Ir),ct(iz),ct(Lp),ct(Wi))},token:t,providedIn:"root"}),t})(),H3=(()=>{class t{constructor(e,i,r,o){this._moduleCFR=e,this._injector=i,this._modalStack=r,this._config=o}open(e,i={}){const r=Object.assign({},this._config,i);return this._modalStack.open(this._moduleCFR,this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(ct($c),ct(Rs),ct(oz),ct(nz))},t.\u0275prov=Et({factory:function(){return new t(ct($c),ct(Dx),ct(oz),ct(nz))},token:t,providedIn:"root"}),t})(),sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[H3]}),t})(),DFe=(()=>{class t{constructor(e){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();const az=t=>Nf(t)&&""!==t;let TFe=0,lz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(le(Si))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),sm=(()=>{class t{constructor(e,i){this.elementRef=i,this.disabled=!1,this.shown=new Ke,this.hidden=new Ke,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Nf(this.domId)||(this.domId="ngb-nav-"+TFe++)}get active(){return this._nav.activeId===this.id}get id(){return az(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Nf(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>am)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,lz,4),2&e){let o;cn(o=un())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Mn("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),am=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new Ke,this.shown=new Ke,this.hidden=new Ke,this.destroy$=new tr,this.navItemChange$=new tr,this.navChange=new Ke,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case ur.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case ur.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case ur.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case ur.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case ur.Home:s=0;break;case ur.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!Nf(this.activeId)){const e=this.items.first?this.items.first.id:null;az(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(yo(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(Ah("role"),le(DFe),le(qo),le(Ir))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,sm,4),ni(r,fv,5)),2&e){let o;cn(o=un())&&(i.items=o),cn(o=un())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&ye("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ht("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Mn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[Hn]}),t})(),fv=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ah("role"),le(sm),le(am),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,i){1&e&&ye("click",function(o){return i.nav.click(i.navItem),o.preventDefault()}),2&e&&(dc("id",i.navItem.domId),ht("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Mn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))}}),t})(),cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();class FFe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const NFe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},vz=t=>t>0?T3(t):n=>n;let bz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),_z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),xz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),Sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),Dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),QFe=(()=>{class t{constructor(e){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})(),ZFe=0,eNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(dc("id",i.id),Su("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Mn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:lv,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Cu(),ge(0,"div",0),b(1,"div",1),ku(2),x())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),tNe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d){this._elementRef=e,this._renderer=i,this._ngZone=l,this._document=c,this._changeDetector=u,this.shown=new Ke,this.hidden=new Ke,this._ngbTooltipWindowId="ngb-tooltip-"+ZFe++,this._windowRef=null,this.animation=a.animation,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new V3(eNe,r,s,i,this._ngZone,o,d),this._zoneSubscription=l.onStable.subscribe(()=>{this._windowRef&&Ay(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Ey(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function yz(t,n,e,i,r,o,s=0,a=0){const l=function OFe(t,n=NFe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new FFe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function jFe(t,n,e,i){return new rn(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function PFe(t,n,e){return i=>{let r=null;const o=i.pipe(yn(l=>({open:l})),ns(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),We());return Tt(o.pipe(ns(l=>l.open),vz(t)),o.pipe(ns(l=>!l.open),vz(n))).pipe(ns(l=>l===r&&(r=null,l.open!==e())),yn(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(Rs),le($c),le(nl),le(QFe),le(Wi),le(Ir),le(qo),le(Au))},t.\u0275dir=Zt({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[Hn]}),t})(),Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();new zn("live announcer delay",{providedIn:"root",factory:function rNe(){return 100}});let Mz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();const lNe=[AH,MH,FH,PH,LH,ZH,tz,sz,cz,gz,bz,_z,xz,Sz,Dz,Tz,Mz];let cNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[lNe,AH,MH,FH,PH,LH,ZH,tz,sz,cz,gz,bz,_z,xz,Sz,Dz,Tz,Mz]}),t})(),Iz=(()=>{class t{constructor(){K(this,"restrictedPages",new Map([["users",oi.USER_ROLE_ADMIN],["config",oi.USER_ROLE_DEVELOPER],["modules",oi.USER_ROLE_DEVELOPER],["apiexplorer",oi.USER_ROLE_DEVELOPER]]))}}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function uNe(t,n){if(1&t&&(ta(0,5),b(1,"a",27),ge(2,"img",28),b(3,"span",12),I(4),x()(),na()),2&t){const e=j().$implicit;k("ngbNavItem",e.navItem),w(1),k("routerLink",e.routerLink),w(1),$p("src","/static/svg/",e.icon,".svg",y1),w(2),Dt(e.label)}}function dNe(t,n){1&t&&ge(0,"hr")}function hNe(t,n){if(1&t&&(J(0,uNe,5,4,"ng-container",26),J(1,dNe,1,0,"hr",25)),2&t){const e=n.$implicit;k("ngIf",j().getSessionRole()<=e.minRole),w(1),k("ngIf",e.separator)}}function fNe(t,n){if(1&t&&(b(0,"div",29)(1,"h2",30),ge(2,"img",31),I(3,"An error has occurred!"),x(),b(4,"h6",32),I(5),x(),b(6,"p"),I(7,"Please refresh the page to try again."),x()()),2&t){const e=j();w(5),Dt(e.error)}}function pNe(t,n){1&t&&(b(0,"div",33),ge(1,"img",34),x())}function mNe(t,n){1&t&&ge(0,"router-outlet")}const gNe=function(){return["/"]},vNe=function(){return["/login"]};let yNe=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"segment",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"routerSub",void 0),K(this,"segmentRouterSub",void 0),K(this,"loading",!0),K(this,"error",""),K(this,"routes",[{navItem:"status",routerLink:["/status"],label:"Status",minRole:oi.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:oi.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:oi.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:oi.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:oi.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:oi.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:oi.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:oi.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:oi.USER_ROLE_READONLY,icon:"chat"},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:oi.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:oi.USER_ROLE_DEVELOPER,icon:"api-explorer"}]),this.route=e,this.router=i,this.segment=r,this.consoleService=o,this.authService=s,this.loading=!1,this.routerSub=this.router.events.pipe(function iMe(t){let n=arguments.length,e=Dy;Sa(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new rMe(t,i,r,e))}}(2e3)).subscribe(a=>{if(0===a.length)return;const l=a[a.length-1];l instanceof Ww&&(this.loading=!0),l instanceof zh&&(this.loading=!1),l instanceof ry&&(this.loading=!1),l instanceof Xw&&(this.loading=!1,this.error=l.error)}),this.segmentRouterSub=i.events.pipe(function CC(t,n){return e=>e.lift(new lMe(t,n))}((a,l)=>!(l instanceof zh)||a.url===l.url)).subscribe(a=>{a&&r.page(a.url)})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(yC),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:40,vars:11,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","https://cloud.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/docs","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"nav",2,3),ye("navChange",function(o){return i.onSidebarNavChange(o)}),b(4,"div",4),ta(5,5),b(6,"a",6),ge(7,"img",7)(8,"img",8),x(),na(),ge(9,"hr"),J(10,hNe,2,2,"ng-template",9),ge(11,"hr"),b(12,"a",10),ge(13,"img",11),b(14,"span",12),I(15,"Heroic Cloud"),x()(),b(16,"a",13),ge(17,"img",14),b(18,"span",12),I(19,"Documentation"),x()(),b(20,"a",15),ge(21,"img",16),b(22,"span",12),I(23,"Forum"),x()(),b(24,"a",17),ge(25,"img",18),b(26,"span",12),I(27,"Heroic Labs Blog"),x()(),ge(28,"hr"),b(29,"div",19),I(30),x(),ta(31,5),b(32,"a",20),ye("click",function(){return i.logout()}),ge(33,"img",21),b(34,"span",12),I(35,"Logout"),x()(),na(),x()(),b(36,"main",22),J(37,fNe,8,1,"div",23),J(38,pNe,2,0,"div",24),J(39,mNe,1,0,"router-outlet",25),x()()()),2&e&&(w(5),k("ngbNavItem","logo"),w(1),k("routerLink",wl(9,gNe)),w(4),k("ngForOf",i.routes),w(20),xn("Logged in as: ",i.getUsername(),""),w(1),k("ngbNavItem","logout"),w(1),k("routerLink",wl(10,vNe)),w(5),k("ngIf",i.error),w(1),k("ngIf",!i.error&&i.loading),w(1),k("ngIf",!i.error&&!i.loading))},dependencies:[Jp,Fu,hy,jn,gn,am,sm,fv],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})),t})(),bNe=(()=>{class t{constructor(e,i,r){K(this,"authService",void 0),K(this,"router",void 0),K(this,"globals",void 0),this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Rs.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class kNe extends CNe{}class ENe{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new ANe(n,this.dueTime,this.scheduler))}}class ANe extends O{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(MNe,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function MNe(t){t.debouncedNext()}function INe(){}function W3(t){return null==t?INe:function(){return this.querySelector(t)}}function NNe(){return[]}function Lz(t){return null==t?NNe:function(){return this.querySelectorAll(t)}}function Rz(t){return function(){return this.matches(t)}}function $z(t){return new Array(t.length)}function $C(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$C.prototype={constructor:$C,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Bz="$";function RNe(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var q3="http://www.w3.org/1999/xhtml";const Vz={svg:"http://www.w3.org/2000/svg",xhtml:q3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function BC(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Vz.hasOwnProperty(n)?{space:Vz[n],local:t}:t}function ZNe(t){return function(){this.removeAttribute(t)}}function eOe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tOe(t,n){return function(){this.setAttribute(t,n)}}function nOe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function iOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function rOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Hz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function sOe(t){return function(){this.style.removeProperty(t)}}function aOe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function lOe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function pv(t,n){return t.style.getPropertyValue(n)||Hz(t).getComputedStyle(t,null).getPropertyValue(n)}function uOe(t){return function(){delete this[t]}}function dOe(t,n){return function(){this[t]=n}}function hOe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function zz(t){return t.trim().split(/^|\s+/)}function X3(t){return t.classList||new Uz(t)}function Uz(t){this._node=t,this._names=zz(t.getAttribute("class")||"")}function Gz(t,n){for(var e=X3(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Xz={},Vr=null;function HOe(t,n,e){return t=Yz(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function Yz(t,n,e){return function(i){var r=Vr;Vr=i;try{t.call(this,this.__data__,n,e)}finally{Vr=r}}}function UOe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=_&&(_=y+1);!(S=g[_])&&++_=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function GNe(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=WNe);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?sOe:"function"==typeof n?lOe:aOe)(t,n,e??"")):pv(this.node(),t)},property:function fOe(t,n){return arguments.length>1?this.each((null==n?uOe:"function"==typeof n?hOe:dOe)(t,n)):this.node()[t]},classed:function vOe(t,n){var e=zz(t+"");if(arguments.length<2){for(var i=X3(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?GOe:UOe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?zC(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?zC(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=i4e.exec(t))?new vc(n[1],n[2],n[3],1):(n=r4e.exec(t))?new vc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=o4e.exec(t))?zC(n[1],n[2],n[3],n[4]):(n=s4e.exec(t))?zC(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=a4e.exec(t))?cU(n[1],n[2]/100,n[3]/100,1):(n=l4e.exec(t))?cU(n[1],n[2]/100,n[3]/100,n[4]):iU.hasOwnProperty(t)?sU(iU[t]):"transparent"===t?new vc(NaN,NaN,NaN,0):null}function sU(t){return new vc(t>>16&255,t>>8&255,255&t,1)}function zC(t,n,e,i){return i<=0&&(t=n=e=NaN),new vc(t,n,e,i)}function Ly(t,n,e,i){return 1===arguments.length?function u4e(t){return t instanceof Oy||(t=lm(t)),t?new vc((t=t.rgb()).r,t.g,t.b,t.opacity):new vc}(t):new vc(t,n,e,i??1)}function vc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function aU(){return"#"+K3(this.r)+K3(this.g)+K3(this.b)}function lU(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function K3(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function cU(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ud(t,n,e,i)}function uU(t){if(t instanceof Ud)return new Ud(t.h,t.s,t.l,t.opacity);if(t instanceof Oy||(t=lm(t)),!t)return new Ud;if(t instanceof Ud)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Ud(s,a,l,t.opacity)}function Ud(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function Q3(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function dU(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function Z3(t){return function(){return t}}function fU(t,n){var e=n-t;return e?function hU(t,n){return function(e){return t+e*n}}(t,e):Z3(isNaN(t)?n:t)}J3(Oy,lm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:rU,formatHex:rU,formatHsl:function c4e(){return uU(this).formatHsl()},formatRgb:oU,toString:oU}),J3(vc,Ly,nU(Oy,{brighter:function(t){return t=null==t?HC:Math.pow(HC,t),new vc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new vc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aU,formatHex:aU,formatRgb:lU,toString:lU})),J3(Ud,function d4e(t,n,e,i){return 1===arguments.length?uU(t):new Ud(t,n,e,i??1)},nU(Oy,{brighter:function(t){return t=null==t?HC:Math.pow(HC,t),new Ud(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ud(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new vc(Q3(t>=240?t-240:t+120,r,i),Q3(t,r,i),Q3(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const UC=function t(n){var e=function m4e(t){return 1==(t=+t)?fU:function(n,e){return e-n?function p4e(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):Z3(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=Ly(r)).r,(o=Ly(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=fU(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function pU(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return dU((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Lu(i,r)})),e=tI.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--gv}()}finally{gv=0,function T4e(){for(var t,e,n=GC,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:GC=e);By=t,nI(i)}(),um=0}}function D4e(){var t=Vy.now(),n=t-WC;n>bU&&(qC-=n,WC=t)}function nI(t){gv||(Ry&&(Ry=clearTimeout(Ry)),t-um>24?(t<1/0&&(Ry=setTimeout(wU,t-Vy.now()-qC)),$y&&($y=clearInterval($y))):($y||(WC=Vy.now(),$y=setInterval(D4e,bU)),gv=1,_U(wU)))}function CU(t,n,e){var i=new YC;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}YC.prototype=xU.prototype={constructor:YC,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?XC():+e)+(null==n?0:+n),!this._next&&By!==this&&(By?By._next=this:GC=this,By=this),this._call=t,this._time=e,nI()},stop:function(){this._call&&(this._call=null,this._time=1/0,nI())}};var E4e=tU("start","end","cancel","interrupt"),A4e=[],kU=0,SU=1,iI=2,JC=3,DU=4,rI=5,KC=6;function QC(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function M4e(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==SU)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===JC)return CU(s);f.state===DU?(f.state=KC,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+ukU)throw new Error("too late; already scheduled");return e}function Gh(t,n){var e=Ru(t,n);if(e.state>JC)throw new Error("too late; already running");return e}function Ru(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function sI(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>iI&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Lu(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Lu(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Lu(c,d)},{i:m-2,x:Lu(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?oI:Gh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function G4e(t,n){var e=BC(t),i="transform"===e?j4e:IU;return this.attrTween(t,"function"==typeof n?(e.local?U4e:z4e)(e,i,cI(this,"attr."+t,n)):null==n?(e.local?B4e:$4e)(e):(e.local?H4e:V4e)(e,i,n))},attrTween:function J4e(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=BC(t);return this.tween(e,(i.local?X4e:Y4e)(i,n))},style:function _je(t,n,e){var i="transform"==(t+="")?O4e:IU;return null==n?this.styleTween(t,function gje(t,n){var e,i,r;return function(){var o=pv(this,t),s=(this.style.removeProperty(t),pv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,FU(t)):"function"==typeof n?this.styleTween(t,function yje(t,n,e){var i,r,o;return function(){var s=pv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=pv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,cI(this,"style."+t,n))).each(function bje(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Gh(this,t),c=l.on,u=null==l.value[o]?a||(a=FU(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function vje(t,n,e){var i,o,r=e+"";return function(){var s=pv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function Cje(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function wje(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function xje(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function Dje(t){return this.tween("text","function"==typeof t?function Sje(t){return function(){var n=t(this);this.textContent=n??""}}(cI(this,"text",t)):function kje(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function Aje(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function Eje(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function Tje(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function dje(){return this.on("end.remove",function uje(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function R4e(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Ru(this.node(),e).tween,r=0,o=i.length;r0&&(R=z-F),C<0?he=E-N:C>0&&(q=re-N),y=fI,B.attr("cursor",qh.selection),Ie());break;default:return}hI()},!0).on("keyup.brush",function _t(){switch(Vr.keyCode){case 16:V&&(oe=fe=V=!1,Ie());break;case 18:y===bv&&(_<0?X=Z:_>0&&(R=z),C<0?he=E:C>0&&(q=re),y=yv,Ie());break;case 32:y===fI&&(Vr.altKey?(_&&(X=Z-F*_,R=z+F*_),C&&(he=E-N*C,q=re+N*C),y=bv):(_<0?X=Z:_>0&&(R=z),C<0?he=E:C>0&&(q=re),y=yv),B.attr("cursor",qh[v]),Ie());break;default:return}hI()},!0),function e4e(t){var n=t.document.documentElement,e=va(t).on("dragstart.drag",Y3,!0);"onselectstart"in n?e.on("selectstart.drag",Y3,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Vr.view)}OU(),sI(g),c.call(g),ze.start()}function ie(){var At=Fe(g);V&&!oe&&!fe&&(Math.abs(At[0]-tt[0])>Math.abs(At[1]-tt[1])?fe=!0:oe=!0),tt=At,Y=!0,hI(),Ie()}function Ie(){var At;switch(F=tt[0]-xe[0],N=tt[1]-xe[1],y){case fI:case jU:_&&(F=Math.max(G-R,Math.min(L-X,F)),z=R+F,Z=X+F),C&&(N=Math.max(U-q,Math.min(H-he,N)),re=q+N,E=he+N);break;case yv:_<0?(F=Math.max(G-R,Math.min(L-R,F)),z=R+F,Z=X):_>0&&(F=Math.max(G-X,Math.min(L-X,F)),z=R,Z=X+F),C<0?(N=Math.max(U-q,Math.min(H-q,N)),re=q+N,E=he):C>0&&(N=Math.max(U-he,Math.min(H-he,N)),re=q,E=he+N);break;case bv:_&&(z=Math.max(G,Math.min(L,R-F*_)),Z=Math.max(G,Math.min(L,X+F*_))),C&&(re=Math.max(U,Math.min(H,q-N*C)),E=Math.max(U,Math.min(H,he+N*C)))}Zn?1:t>=n?0:NaN}function yI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function Xje(t){return(n,e)=>vI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var bI=Math.sqrt(50),_I=Math.sqrt(10),xI=Math.sqrt(2);function $U(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=bI?10:o>=_I?5:o>=xI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=bI?10:o>=_I?5:o>=xI?2:1)}function wI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=bI?r*=10:o>=_I?r*=5:o>=xI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return CI.setTime(+o),kI.setTime(+s),t(CI),t(kI),Math.floor(e(CI,kI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var SI=$u(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});SI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$u(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Jje=SI;var BU=$u(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const Kje=BU;var Uy=6e4,Zje=6048e5;function dm(t){return $u(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Uy)/Zje})}var HU=dm(0),zU=(dm(1),dm(2),dm(3),dm(4),dm(5),dm(6),$u(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Uy)/864e5,t=>t.getDate()-1));const sPe=zU;var UU=$u(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Uy)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()});const aPe=UU;var GU=$u(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,n){t.setTime(+t+n*Uy)},function(t,n){return(n-t)/Uy},function(t){return t.getMinutes()});const lPe=GU;var WU=$u(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()});const cPe=WU;var i2=$u(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});i2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$u(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):i2:null};const uPe=i2;var DI=new Date,TI=new Date;function Xh(t,n,e,i){function r(o){return t(o=0===arguments.length?new Date:new Date(+o)),o}return r.floor=function(o){return t(o=new Date(+o)),o},r.ceil=function(o){return t(o=new Date(o-1)),n(o,1),t(o),o},r.round=function(o){var s=r(o),a=r.ceil(o);return o-s0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return DI.setTime(+o),TI.setTime(+s),t(DI),t(TI),Math.floor(e(DI,TI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var qU=6e4,YU=6048e5;function hm(t){return Xh(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/YU})}var JU=hm(0),r2=hm(1),_v=(hm(2),hm(3),hm(4)),KU=(hm(5),hm(6),Xh(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const QU=KU;function fm(t){return Xh(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*qU)/YU})}var ZU=fm(0),o2=fm(1),xv=(fm(2),fm(3),fm(4)),eG=(fm(5),fm(6),Xh(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qU)/864e5},function(t){return t.getDate()-1}));const tG=eG;var EI=Xh(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});EI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xh(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Gy=EI;var AI=Xh(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});AI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xh(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Wy=AI;function MI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function II(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function qy(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var wv,gG,nG={"-":"",_:" ",0:"0"},ya=/^\s*\d+/,_Pe=/^%/,xPe=/[\\^$*+?|[\]().{}]/g;function Gr(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function EPe(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function APe(t,n,e){var i=ya.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function MPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function oG(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function IPe(t,n,e){var i=ya.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function sG(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function FPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function NPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function OPe(t,n,e){var i=ya.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function jPe(t,n,e){var i=ya.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function PPe(t,n,e){var i=_Pe.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function LPe(t,n,e){var i=ya.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function RPe(t,n,e){var i=ya.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function aG(t,n){return Gr(t.getDate(),n,2)}function $Pe(t,n){return Gr(t.getHours(),n,2)}function BPe(t,n){return Gr(t.getHours()%12||12,n,2)}function VPe(t,n){return Gr(1+tG.count(Gy(t),t),n,3)}function lG(t,n){return Gr(t.getMilliseconds(),n,3)}function HPe(t,n){return lG(t,n)+"000"}function zPe(t,n){return Gr(t.getMonth()+1,n,2)}function UPe(t,n){return Gr(t.getMinutes(),n,2)}function GPe(t,n){return Gr(t.getSeconds(),n,2)}function WPe(t){var n=t.getDay();return 0===n?7:n}function qPe(t,n){return Gr(ZU.count(Gy(t)-1,t),n,2)}function cG(t){var n=t.getDay();return n>=4||0===n?xv(t):xv.ceil(t)}function XPe(t,n){return t=cG(t),Gr(xv.count(Gy(t),t)+(4===Gy(t).getDay()),n,2)}function YPe(t){return t.getDay()}function JPe(t,n){return Gr(o2.count(Gy(t)-1,t),n,2)}function KPe(t,n){return Gr(t.getFullYear()%100,n,2)}function QPe(t,n){return Gr((t=cG(t)).getFullYear()%100,n,2)}function ZPe(t,n){return Gr(t.getFullYear()%1e4,n,4)}function eLe(t,n){var e=t.getDay();return Gr((t=e>=4||0===e?xv(t):xv.ceil(t)).getFullYear()%1e4,n,4)}function tLe(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Gr(n/60|0,"0",2)+Gr(n%60,"0",2)}function uG(t,n){return Gr(t.getUTCDate(),n,2)}function nLe(t,n){return Gr(t.getUTCHours(),n,2)}function iLe(t,n){return Gr(t.getUTCHours()%12||12,n,2)}function rLe(t,n){return Gr(1+QU.count(Wy(t),t),n,3)}function dG(t,n){return Gr(t.getUTCMilliseconds(),n,3)}function oLe(t,n){return dG(t,n)+"000"}function sLe(t,n){return Gr(t.getUTCMonth()+1,n,2)}function aLe(t,n){return Gr(t.getUTCMinutes(),n,2)}function lLe(t,n){return Gr(t.getUTCSeconds(),n,2)}function cLe(t){var n=t.getUTCDay();return 0===n?7:n}function uLe(t,n){return Gr(JU.count(Wy(t)-1,t),n,2)}function hG(t){var n=t.getUTCDay();return n>=4||0===n?_v(t):_v.ceil(t)}function dLe(t,n){return t=hG(t),Gr(_v.count(Wy(t),t)+(4===Wy(t).getUTCDay()),n,2)}function hLe(t){return t.getUTCDay()}function fLe(t,n){return Gr(r2.count(Wy(t)-1,t),n,2)}function pLe(t,n){return Gr(t.getUTCFullYear()%100,n,2)}function mLe(t,n){return Gr((t=hG(t)).getUTCFullYear()%100,n,2)}function gLe(t,n){return Gr(t.getUTCFullYear()%1e4,n,4)}function vLe(t,n){var e=t.getUTCDay();return Gr((t=e>=4||0===e?_v(t):_v.ceil(t)).getUTCFullYear()%1e4,n,4)}function yLe(){return"+0000"}function fG(){return"%"}function pG(t){return+t}function mG(t){return Math.floor(+t/1e3)}function vG(t){return null===t?NaN:+t}!function wLe(t){wv=function bPe(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=Xy(r),u=Yy(r),d=Xy(o),h=Yy(o),f=Xy(s),p=Yy(s),m=Xy(a),g=Yy(a),v=Xy(l),y=Yy(l),_={a:function H(ze){return s[ze.getDay()]},A:function he(ze){return o[ze.getDay()]},b:function E(ze){return l[ze.getMonth()]},B:function F(ze){return a[ze.getMonth()]},c:null,d:aG,e:aG,f:HPe,g:QPe,G:eLe,H:$Pe,I:BPe,j:VPe,L:lG,m:zPe,M:UPe,p:function N(ze){return r[+(ze.getHours()>=12)]},q:function Y(ze){return 1+~~(ze.getMonth()/3)},Q:pG,s:mG,S:GPe,u:WPe,U:qPe,V:XPe,w:YPe,W:JPe,x:null,X:null,y:KPe,Y:ZPe,Z:tLe,"%":fG},C={a:function V(ze){return s[ze.getUTCDay()]},A:function oe(ze){return o[ze.getUTCDay()]},b:function fe(ze){return l[ze.getUTCMonth()]},B:function Fe(ze){return a[ze.getUTCMonth()]},c:null,d:uG,e:uG,f:oLe,g:mLe,G:vLe,H:nLe,I:iLe,j:rLe,L:dG,m:sLe,M:aLe,p:function xe(ze){return r[+(ze.getUTCHours()>=12)]},q:function tt(ze){return 1+~~(ze.getUTCMonth()/3)},Q:pG,s:mG,S:lLe,u:cLe,U:uLe,V:dLe,w:hLe,W:fLe,x:null,X:null,y:pLe,Y:gLe,Z:yLe,"%":fG},S={a:function z(ze,ot,B){var ne=f.exec(ot.slice(B));return ne?(ze.w=p[ne[0].toLowerCase()],B+ne[0].length):-1},A:function U(ze,ot,B){var ne=d.exec(ot.slice(B));return ne?(ze.w=h[ne[0].toLowerCase()],B+ne[0].length):-1},b:function q(ze,ot,B){var ne=v.exec(ot.slice(B));return ne?(ze.m=y[ne[0].toLowerCase()],B+ne[0].length):-1},B:function re(ze,ot,B){var ne=m.exec(ot.slice(B));return ne?(ze.m=g[ne[0].toLowerCase()],B+ne[0].length):-1},c:function L(ze,ot,B){return G(ze,n,ot,B)},d:oG,e:oG,f:jPe,g:rG,G:iG,H:sG,I:sG,j:IPe,L:OPe,m:MPe,M:FPe,p:function R(ze,ot,B){var ne=c.exec(ot.slice(B));return ne?(ze.p=u[ne[0].toLowerCase()],B+ne[0].length):-1},q:APe,Q:LPe,s:RPe,S:NPe,u:kPe,U:SPe,V:DPe,w:CPe,W:TPe,x:function X(ze,ot,B){return G(ze,e,ot,B)},X:function Z(ze,ot,B){return G(ze,i,ot,B)},y:rG,Y:iG,Z:EPe,"%":PPe};function M(ze,ot){return function(B){var Le,_t,At,ne=[],ie=-1,Ie=0,Ye=ze.length;for(B instanceof Date||(B=new Date(+B));++ie53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Ye=(Ie=II(qy(ne.y,0,1))).getUTCDay(),Ie=Ye>4||0===Ye?r2.ceil(Ie):r2(Ie),Ie=QU.offset(Ie,7*(ne.V-1)),ne.y=Ie.getUTCFullYear(),ne.m=Ie.getUTCMonth(),ne.d=Ie.getUTCDate()+(ne.w+6)%7):(Ye=(Ie=MI(qy(ne.y,0,1))).getDay(),Ie=Ye>4||0===Ye?o2.ceil(Ie):o2(Ie),Ie=tG.offset(Ie,7*(ne.V-1)),ne.y=Ie.getFullYear(),ne.m=Ie.getMonth(),ne.d=Ie.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Ye="Z"in ne?II(qy(ne.y,0,1)).getUTCDay():MI(qy(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+7*ne.W-(Ye+5)%7:ne.w+7*ne.U-(Ye+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,II(ne)):MI(ne)}}function G(ze,ot,B,ne){for(var Le,_t,ie=0,Ie=ot.length,Ye=B.length;ie=Ye)return-1;if(37===(Le=ot.charCodeAt(ie++))){if(Le=ot.charAt(ie++),!(_t=S[Le in nG?ot.charAt(ie++):Le])||(ne=_t(ze,B,ne))<0)return-1}else if(Le!=B.charCodeAt(ne++))return-1}return ne}return _.x=M(e,_),_.X=M(i,_),_.c=M(n,_),C.x=M(e,C),C.X=M(i,C),C.c=M(n,C),{format:function(ze){var ot=M(ze+="",_);return ot.toString=function(){return ze},ot},parse:function(ze){var ot=$(ze+="",!1);return ot.toString=function(){return ze},ot},utcFormat:function(ze){var ot=M(ze+="",C);return ot.toString=function(){return ze},ot},utcParse:function(ze){var ot=$(ze+="",!0);return ot.toString=function(){return ze},ot}}}(t),gG=wv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const CLe=yI(vI).right,bG=(yI(vG),CLe);function kLe(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function DLe(t){return+t}var _G=[0,1];function Cv(t){return t}function FI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function SLe(t){return function(){return t}}(isNaN(n)?NaN:.5)}function ELe(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?ALe:ELe,l=c=null,d}function d(h){return isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Lu)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,DLe),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=kLe,u()},d.clamp=function(h){return arguments.length?(s=!!h||Cv,u()):s!==Cv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Cv,Cv)}function Jy(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Ky=1e3,Qy=60*Ky,Zy=60*Qy,eb=24*Zy,FLe=7*eb,CG=30*eb,NI=365*eb;function NLe(t){return new Date(t)}function OLe(t){return t instanceof Date?+t:+new Date(+t)}function kG(t,n,e,i,r,o,s,a,l){var c=wG(),u=c.invert,d=c.domain,h=l(".%L"),f=l(":%S"),p=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),v=l("%b %d"),y=l("%B"),_=l("%Y"),C=[[s,1,Ky],[s,5,5*Ky],[s,15,15*Ky],[s,30,30*Ky],[o,1,Qy],[o,5,5*Qy],[o,15,15*Qy],[o,30,30*Qy],[r,1,Zy],[r,3,3*Zy],[r,6,6*Zy],[r,12,12*Zy],[i,1,eb],[i,2,2*eb],[e,1,FLe],[n,1,CG],[n,3,3*CG],[t,1,NI]];function S($){return(s($)<$?h:o($)<$?f:r($)<$?p:i($)<$?m:n($)<$?e($)<$?g:v:t($)<$?y:_)($)}function M($,G,R){if(null==$&&($=10),"number"==typeof $){var q,z=Math.abs(R-G)/$,U=yI(function(re){return re[2]}).right(C,z);return U===C.length?(q=wI(G/NI,R/NI,$),$=t):U?(q=(U=C[z/C[U-1][2]=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s2(t){if(!(n=jLe.exec(t)))throw new Error("invalid format: "+t);var n;return new OI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function OI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function a2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function kv(t){return(t=a2(Math.abs(t)))?t[1]:NaN}function DG(t,n){var e=a2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}s2.prototype=OI.prototype,OI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const TG={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function PLe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return DG(100*t,n)},r:DG,s:function VLe(t,n){var e=a2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(SG=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+a2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function EG(t){return t}var l2,jI,IG,AG=Array.prototype.map,MG=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qLe(t){var n=t.domain;return t.ticks=function(e){var i=n();return function Yje(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),s=new Array(o=Math.ceil(n-t+1));++r0;){if((c=$U(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function bo(){var t=wG();return t.copy=function(){return xG(t,bo())},Jy.apply(t,arguments),qLe(t)}function FG(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(AG.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?EG:function $Le(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(AG.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=s2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,_=d.precision,C=d.trim,S=d.type;"n"===S?(y=!0,S="g"):TG[S]||(void 0===_&&(_=12),C=!0,S="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var M="$"===m?e:"#"===m&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",$="$"===m?i:/[%p]/.test(S)?s:"",G=TG[S],R=/[defgprs%]/.test(S);function z(U){var L,X,Z,q=M,re=$;if("c"===S)re=G(U)+re,U="";else{var H=(U=+U)<0||1/U<0;if(U=isNaN(U)?l:G(Math.abs(U),_),C&&(U=function BLe(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(U)),H&&0==+U&&"+"!==p&&(H=!1),q=(H?"("===p?p:a:"-"===p||"("===p?"":p)+q,re=("s"===S?MG[8+SG/3]:"")+re+(H&&"("===p?")":""),R)for(L=-1,X=U.length;++L(Z=U.charCodeAt(L))||Z>57){re=(46===Z?r+U.slice(L+1):U.slice(L))+re,U=U.slice(0,L);break}}y&&!g&&(U=n(U,1/0));var he=q.length+U.length+re.length,E=he>1)+q+U+re+E.slice(he);break;default:U=E+q+U+re}return o(U)}return _=void 0===_?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),z.toString=function(){return d+""},z}return{format:c,formatPrefix:function u(d,h){var f=c(((d=s2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(kv(h)/3))),m=Math.pow(10,-p),g=MG[8+p/3];return function(v){return f(m*v)+g}}}}(t),jI=l2.format,IG=l2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const NG=Symbol("implicit");function PI(){var t=new Map,n=[],e=[],i=NG;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==NG)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return PI(n,e).unknown(i)},Jy.apply(r,arguments),r}function La(){var o,s,t=PI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function jG(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],avm)if(Math.abs(u*a-l*c)>vm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((LI-Math.acos((p+d-m)/(2*g*v)))/2),_=y/v,C=y/g;Math.abs(_-1)>vm&&(this._+="L"+(t+_*c)+","+(n+_*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+C*a)+","+(this._y1=n+C*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vm||Math.abs(this._y1-c)>vm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%RI+RI),d>YLe?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>vm&&(this._+="A"+e+","+e+",0,"+ +(d>=LI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const BI=LG;function mo(t){return function(){return t}}function RG(t){return t[0]}function $G(t){return t[1]}function c2(){var t=RG,n=$G,e=mo(!0),i=null,r=gm,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=BI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],_[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),_[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):_[d]))}if(v)return a=null,v+""||null}function c(){return c2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:mo(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:mo(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:mo(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:mo(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:mo(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:mo(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:mo(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function BG(){}function VI(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function VG(t,n){this._context=t,this._k=(1-n)/6}function HG(t,n){this._context=t,this._k=(1-n)/6}function zG(t){this._curve=t}function fRe(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function XG(t,n){var r,s,a,l,c,e=new rb(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=NRe);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new rb(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(YG)}function NRe(t){return t.children}function ORe(t){t.data=t.data.data}function YG(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function rb(t){this.data=t,this.depth=this.height=0,this.parent=null}VG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:VI(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:VI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new VG(i,n)}return e.tension=function(i){return t(+i)},e}(0),HG.prototype={areaStart:BG,areaEnd:BG,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:VI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new HG(i,n)}return e.tension=function(i){return t(+i)},e}(0),function UG(t){function n(e){return new zG(t(e))}return n._curve=t,n}(gm),zG.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function gRe(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,_,C,S,M,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),M=g*g*S,(_=Math.max(y/M,M/v))>C){g-=c;break}C=_}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),rb.prototype=XG.prototype={constructor:rb,count:function _Re(){return this.eachAfter(bRe)},each:function xRe(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function kRe(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function SRe(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function DRe(t){for(var n=this,e=function TRe(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function ERe(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function ARe(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function MRe(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function IRe(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function FRe(){return XG(this).eachBefore(ORe)}};const $Re=["caretElm"];function BRe(t,n){}const VRe=function(t){return{model:t}};function HRe(t,n){if(1&t&&(b(0,"span"),J(1,BRe,0,0,"ng-template",5),x()),2&t){const e=j();w(1),k("ngTemplateOutlet",e.template)("ngTemplateOutletContext",lr(2,VRe,e.context))}}function zRe(t,n){1&t&&ge(0,"span",6),2&t&&k("innerHTML",j().title,kx)}function URe(t,n){if(1&t&&(at(),Ip(),ge(0,"ngx-charts-scale-legend",4)),2&t){const e=j();k("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function GRe(t,n){if(1&t){const e=vt();at(),Ip(),b(0,"ngx-charts-legend",5),ye("labelClick",function(r){return $e(e),Be(j().legendLabelClick.emit(r))})("labelActivate",function(r){return $e(e),Be(j().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return $e(e),Be(j().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=j();k("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const QG=["*"],WRe=["ngx-charts-axis-label",""],ZG=["ticksel"],qRe=["ngx-charts-x-axis-ticks",""];function XRe(t,n){if(1&t&&(at(),b(0,"g",3)(1,"title"),I(2),x(),b(3,"text",4),I(4),x()()),2&t){const e=n.$implicit,i=j();ht("transform",i.tickTransform(e)),w(2),Dt(i.tickFormat(e)),w(1),rr("font-size","12px"),ht("text-anchor",i.textAnchor)("transform",i.textTransform),w(1),xn(" ",i.tickTrim(i.tickFormat(e))," ")}}function YRe(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"line",6),x()),2&t){const e=j(2);ht("transform",e.gridLineTransform()),w(1),ht("y1",-e.gridLineHeight)}}function JRe(t,n){if(1&t&&(at(),b(0,"g"),J(1,YRe,2,2,"g",5),x()),2&t){const e=n.$implicit,i=j();ht("transform",i.tickTransform(e)),w(1),k("ngIf",i.showGridLines)}}const KRe=["ngx-charts-x-axis",""];function QRe(t,n){if(1&t){const e=vt();at(),b(0,"g",2),ye("dimensionsChanged",function(r){return $e(e),Be(j().emitTicksHeight(r))}),x()}if(2&t){const e=j();k("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function ZRe(t,n){if(1&t&&(at(),ge(0,"g",3)),2&t){const e=j();k("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const e5e=["ngx-charts-y-axis-ticks",""];function t5e(t,n){if(1&t&&(at(),b(0,"g",4)(1,"title"),I(2),x(),b(3,"text",5),I(4),x()()),2&t){const e=n.$implicit,i=j();ht("transform",i.transform(e)),w(2),Dt(i.tickFormat(e)),w(1),rr("font-size","12px"),ht("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),w(1),xn(" ",i.tickTrim(i.tickFormat(e))," ")}}function n5e(t,n){if(1&t&&(at(),ge(0,"path",6)),2&t){const e=j();ht("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function i5e(t,n){1&t&&(at(),ge(0,"line",9)),2&t&&ht("x2",j(3).gridLineWidth)}function r5e(t,n){1&t&&(at(),ge(0,"line",9)),2&t&&ht("x2",-j(3).gridLineWidth)}function o5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,i5e,1,1,"line",8),J(2,r5e,1,1,"line",8),x()),2&t){const e=j(2);ht("transform",e.gridLineTransform()),w(1),k("ngIf","left"===e.orient),w(1),k("ngIf","right"===e.orient)}}function s5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,o5e,3,3,"g",7),x()),2&t){const e=n.$implicit,i=j();ht("transform",i.transform(e)),w(1),k("ngIf",i.showGridLines)}}function a5e(t,n){if(1&t&&(at(),b(0,"g")(1,"title"),I(2),x(),b(3,"text",11),I(4),x()()),2&t){const e=j(2).$implicit,i=j();w(2),Dt(i.tickTrim(i.tickFormat(e.value))),w(1),ht("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),w(1),xn(" ",e.name," ")}}function l5e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"line",10),J(2,a5e,5,6,"g",7),x()),2&t){const e=j().$implicit,i=j();ht("transform",i.transform(e.value)),w(1),ht("x2",i.gridLineWidth)("transform",i.gridLineTransform()),w(1),k("ngIf",i.showRefLabels)}}function c5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,l5e,3,4,"g",7),x()),2&t){const e=j();w(1),k("ngIf",e.showRefLines)}}const u5e=["ngx-charts-y-axis",""];function d5e(t,n){if(1&t){const e=vt();at(),b(0,"g",2),ye("dimensionsChanged",function(r){return $e(e),Be(j().emitTicksWidth(r))}),x()}if(2&t){const e=j();k("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function h5e(t,n){if(1&t&&(at(),ge(0,"g",3)),2&t){const e=j();k("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const f5e=["ngx-charts-circle-series",""];function p5e(t,n){if(1&t&&(at(),ge(0,"rect",4)),2&t){const e=j(2);k("@animationState","active"),ht("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const m5e=function(t){return{name:t}};function g5e(t,n){if(1&t){const e=vt();at(),b(0,"g")(1,"defs"),ge(2,"g",1),x(),J(3,p5e,1,6,"rect",2),b(4,"g",3),ye("select",function(){$e(e);const r=j();return Be(r.onClick(r.circle.data))})("activate",function(){return $e(e),Be(j().activateCircle())})("deactivate",function(){return $e(e),Be(j().deactivateCircle())}),x()()}if(2&t){const e=j();w(2),k("name",e.gradientId)("stops",e.circle.gradientStops),w(1),k("ngIf",e.barVisible&&"standard"===e.type),w(1),Mn("active",e.isActive(lr(18,m5e,e.circle.seriesName))),k("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const v5e=["ngx-charts-circle",""],x5e=["ngx-charts-svg-linear-gradient",""];function w5e(t,n){if(1&t&&(at(),ge(0,"stop")),2&t){const e=n.$implicit;rr("stop-color",e.color)("stop-opacity",e.opacity),ht("offset",e.offset+"%")}}const S5e=["ngx-charts-area",""];function D5e(t,n){if(1&t&&(at(),b(0,"defs"),ge(1,"g",2),x()),2&t){const e=j();w(1),k("name",e.gradientId)("stops",e.gradientStops)}}const E5e=["tooltipAnchor"],A5e=["ngx-charts-tooltip-area",""];function M5e(t,n){if(1&t&&(b(0,"div",6),ge(1,"span",7),I(2),x()),2&t){const e=n.$implicit,i=j(2);w(1),rr("background-color",e.color),w(1),xn(" ",i.getToolTipText(e)," ")}}function I5e(t,n){if(1&t&&(at(),Ip(),b(0,"div",4),J(1,M5e,3,3,"div",5),x()),2&t){const e=n.model;w(1),k("ngForOf",e)}}const F5e=["ngx-charts-timeline",""];function N5e(t,n){if(1&t&&(b(0,"header",4)(1,"span",5),I(2),x()()),2&t){const e=j();w(2),Dt(e.title)}}function O5e(t,n){if(1&t){const e=vt();b(0,"li",6)(1,"ngx-charts-legend-entry",7),ye("select",function(r){return $e(e),Be(j().labelClick.emit(r))})("activate",function(r){return $e(e),Be(j().activate(r))})("deactivate",function(r){return $e(e),Be(j().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=j();w(1),k("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Us=["tooltipTemplate"],p2=["seriesTooltipTemplate"],Eo=function(t,n){return[t,n]},n6e=["ngx-charts-line",""];function i6e(t,n){if(1&t){const e=vt();at(),b(0,"g",7),ye("dimensionsChanged",function(r){return $e(e),Be(j().updateXAxisHeight(r))}),x()}if(2&t){const e=j();k("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function r6e(t,n){if(1&t){const e=vt();at(),b(0,"g",8),ye("dimensionsChanged",function(r){return $e(e),Be(j().updateYAxisWidth(r))}),x()}if(2&t){const e=j();k("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function o6e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"g",9),x()),2&t){const e=n.$implicit,i=j();k("@animationState","active"),w(1),k("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function s6e(t,n){if(1&t){const e=vt();at(),b(0,"g")(1,"g",13),ye("select",function(r){return $e(e),Be(j(2).onClick(r))})("activate",function(r){return $e(e),Be(j(2).onActivate(r))})("deactivate",function(r){return $e(e),Be(j(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=j(2);w(1),k("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function a6e(t,n){if(1&t){const e=vt();at(),b(0,"g",10),ye("mouseleave",function(){return $e(e),Be(j().hideCircles())}),b(1,"g",11),ye("hover",function(r){return $e(e),Be(j().updateHoveredVertical(r))}),x(),J(2,s6e,2,9,"g",12),x()}if(2&t){const e=j();w(1),k("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),w(1),k("ngForOf",e.results)}}function l6e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"g",15),x()),2&t){const e=n.$implicit,i=j(2);w(1),k("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function c6e(t,n){if(1&t){const e=vt();at(),b(0,"g",14),ye("onDomainChange",function(r){return $e(e),Be(j().updateDomain(r))}),J(1,l6e,2,8,"g",4),x()}if(2&t){const e=j();k("results",e.results)("view",Sr(10,Eo,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ht("transform",e.timelineTransform),w(1),k("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const u6e=["ngx-charts-line-series",""];function d6e(t,n){if(1&t&&(at(),ge(0,"g",4)),2&t){const e=j();k("name",e.gradientId)("stops",e.gradientStops)}}function h6e(t,n){if(1&t&&(at(),ge(0,"g",5)),2&t){const e=j();Mn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),k("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let iW=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function a$e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new kNe(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Fz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(ct(Au),ct($c),ct(Rs))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function l$e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function c$e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:l$e(o.value,t,n)}),this[r]}}}}var Gs=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Gs||(Gs={})),Gs))();const Lf=7;function rW(t,n,e){return"top"===e?t.top-Lf:"bottom"===e?t.top+t.height-n.height+Lf:"center"===e?t.top+t.height/2-n.height/2:void 0}function oW(t,n,e){return"left"===e?t.left-Lf:"right"===e?t.left+t.width-n.width+Lf:"center"===e?t.left+t.width/2-n.width/2:void 0}class yc{static calculateVerticalAlignment(n,e,i){let r=rW(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Lf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Lf),"center"===r&&(o=e.height/2-i.height/2);const s=rW(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=oW(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Lf),"right"===r&&(o=e.width-n.width/2-i.width/2-Lf),"center"===r&&(o=e.width/2-i.width/2);const s=oW(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===Gs.right?(a=-7,s=yc.calculateVerticalCaret(i,e,r,o)):n===Gs.left?(a=e.width,s=yc.calculateVerticalCaret(i,e,r,o)):n===Gs.top?(s=e.height,a=yc.calculateHorizontalCaret(i,e,r,o)):n===Gs.bottom&&(s=-7,a=yc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===Gs.right?(a=i.left+i.width+r,s=yc.calculateVerticalAlignment(i,e,o)):n===Gs.left?(a=i.left-e.width-r,s=yc.calculateVerticalAlignment(i,e,o)):n===Gs.top?(s=i.top-e.height-r,a=yc.calculateHorizontalAlignment(i,e,o)):n===Gs.bottom&&(s=i.top+i.height+r,a=yc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(yc.shouldFlip(i,e,n,r)){if(n===Gs.right)return Gs.left;if(n===Gs.left)return Gs.right;if(n===Gs.top)return Gs.bottom;if(n===Gs.bottom)return Gs.top}return n}}let u$e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=yc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=yc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=yc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&io($Re,5),2&e){let r;cn(r=un())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ye("resize",function(){return i.onWindowResize()},0,w5),2&e&&Su(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(b(0,"div"),ge(1,"span",0,1),b(3,"div",2),J(4,HRe,2,4,"span",3),J(5,zRe,1,1,"span",4),x()()),2&e&&(w(1),function J8(t,n,e){Tu(lc,Pd,Ig(Gt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),k("hidden",!i.showCaret),w(3),k("ngIf",!i.title),w(1),k("ngIf",i.title))},dependencies:[gn,kl],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function SNe(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);r>3&&o&&Object.defineProperty(n,e,o)}([c$e(100)],t.prototype,"onWindowResize",null),t})();class d$e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let UI=(()=>{class t extends d$e{constructor(e){super(e),this.type=u$e}}return t.\u0275fac=function(e){return new(e||t)(ct(iW))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),os=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new Ke,this.legendLabelActivate=new Ke,this.legendLabelDeactivate=new Ke}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[Lr([UI]),Hn],ngContentSelectors:QG,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Cu(),b(0,"div",0),at(),b(1,"svg",1),ku(2),x(),J(3,URe,1,5,"ngx-charts-scale-legend",2),J(4,GRe,1,7,"ngx-charts-legend",3),x()),2&e&&(rr("width",i.view[0],"px"),k("@animationState","active")("@.disabled",!i.animations),w(1),ht("width",i.chartWidth)("height",i.view[1]),w(2),k("ngIf",i.showLegend&&"scaleLegend"===i.legendType),w(1),k("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[gn,vW,bW]},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({opacity:0}),Ma("500ms 100ms",Dr({opacity:1}))])])]},changeDetection:0}),t})(),h$e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new Ke,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi))},t.\u0275dir=Zt({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),ss=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new Ke}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new h$e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new ENe(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi),le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[Hn],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"div")},encapsulation:2}),t})(),GI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[Hn],attrs:WRe,decls:2,vars:6,template:function(e,i){1&e&&(at(),b(0,"text"),I(1),x()),2&e&&(ht("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),w(1),xn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Rf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function sW(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new Ke,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=sW(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Rf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&io(ZG,5),2&e){let r;cn(r=un())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:qRe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(at(),b(0,"g",null,0),J(2,XRe,5,7,"g",1),x(),J(3,JRe,2,2,"g",2)),2&e&&(w(2),k("ngForOf",i.ticks),w(1),k("ngForOf",i.ticks))},dependencies:[jn,gn],encapsulation:2,changeDetection:0}),t})(),Wl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new Ke,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&io(aW,5),2&e){let r;cn(r=un())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:KRe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(at(),b(0,"g"),J(1,QRe,1,12,"g",0),J(2,ZRe,1,5,"g",1),x()),2&e&&(ht("class",i.xAxisClassName)("transform",i.transform),w(1),k("ngIf",i.xScale),w(1),k("ngIf",i.showLabel))},dependencies:[gn,GI,aW],encapsulation:2,changeDetection:0}),t})();let lW=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new Ke,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function Yh(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=sW(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Rf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&io(ZG,5),2&e){let r;cn(r=un())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:e5e,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(at(),b(0,"g",null,0),J(2,t5e,5,9,"g",1),x(),J(3,n5e,1,2,"path",2),J(4,s5e,2,2,"g",3),J(5,c5e,2,1,"g",3)),2&e&&(w(2),k("ngForOf",i.ticks),w(1),k("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),w(1),k("ngForOf",i.ticks),w(1),k("ngForOf",i.referenceLines))},dependencies:[jn,gn],encapsulation:2,changeDetection:0}),t})(),El=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new Ke,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&io(lW,5),2&e){let r;cn(r=un())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:u5e,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(at(),b(0,"g"),J(1,d5e,1,14,"g",0),J(2,h5e,1,5,"g",1),x()),2&e&&(ht("class",i.yAxisClassName)("transform",i.transform),w(1),k("ngIf",i.yScale),w(1),k("ngIf",i.showLabel))},dependencies:[gn,GI,lW],encapsulation:2,changeDetection:0}),t})(),cW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();var m2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(m2||(m2={})),m2))(),g2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(g2||(g2={})),g2))(),$f=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}($f||($f={})),$f))();let Bu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Gs.top,this.tooltipAlignment=g2.center,this.tooltipType=m2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=$f.all,this.tooltipImmediateExit=!1,this.show=new Ke,this.hide=new Ke}get listensForFocus(){return this.tooltipShowEvent===$f.all||this.tooltipShowEvent===$f.focus}get listensForHover(){return this.tooltipShowEvent===$f.all||this.tooltipShowEvent===$f.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(le(UI),le(nl),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&ye("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),uW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[iW,UI],imports:[Vs]}),t})();function Ra(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function oa(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const dW={};function Al(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,dW[t]?Al():(dW[t]=!0,t)}let YI,ob=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=Ra(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${oa(r)} \u2022 ${oa(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Hn],attrs:f5e,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&J(0,g5e,5,20,"g",0),2&e&&k("ngIf",i.circle)},dependencies:function(){return[gn,Bu,v2,bm]},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({opacity:0}),Ma(250,Dr({opacity:1}))])])]},changeDetection:0}),t})(),v2=(()=>{class t{constructor(){this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&ye("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Hn],attrs:v5e,decls:1,vars:8,template:function(e,i){1&e&&(at(),ge(0,"circle")),2&e&&ht("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),bm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[Hn],attrs:x5e,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(at(),b(0,"linearGradient",0),J(1,w5e,1,5,"stop",1),x()),2&e&&(k("id",i.name),ht("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),w(1),k("ngForOf",i.stops))},dependencies:[jn],encapsulation:2,changeDetection:0}),t})(),XI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new Ke,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=va(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[Hn],attrs:S5e,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(J(0,D5e,2,2,"defs",0),at(),ge(1,"path",1)),2&e&&(k("ngIf",i.gradient),w(1),rr("opacity",i.opacity),ht("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[gn,bm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?YI=window:typeof global<"u"&&(YI=global);const gW=YI.MouseEvent;function JI(t,n=!1,e=!0){if("function"==typeof gW)return new gW(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let sb=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new Ke}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=JI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=JI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=JI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&io(E5e,5),2&e){let r;cn(r=un())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:A5e,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(at(),b(0,"g")(1,"rect",0),ye("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),J(2,I5e,2,1,"ng-template",null,1,Ur),ge(4,"rect",2,3),x()),2&e){const r=uo(3);w(1),ht("x",0)("width",i.dims.width)("height",i.dims.height),w(3),rr("opacity",i.anchorOpacity)("pointer-events","none"),k("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ht("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[jn,Bu],encapsulation:2,data:{animation:[il("animationState",[Ia("inactive => active",[Dr({opacity:0}),Ma(250,Dr({opacity:.7}))]),Ia("active => inactive",[Dr({opacity:.7}),Ma(250,Dr({opacity:0}))])])]},changeDetection:0}),t})(),ab=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new Ke,this.onDomainChange=new Ke,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Al().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=pm().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=bo().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=mm().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function qje(){return gI(e2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Vr.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),va(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),va(this.element).select(".brush").call(this.brush),va(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[Hn],attrs:F5e,ngContentSelectors:QG,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Cu(),at(),b(0,"g",0)(1,"filter"),ge(2,"feColorMatrix",1),x(),b(3,"g",2),ku(4),x(),ge(5,"rect",3)(6,"g",4),x()),2&e&&(ht("transform",i.transform),w(1),ht("id",i.filterId),w(4),ht("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),vW=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new Ke,this.labelActivate=new Ke,this.labelDeactivate=new Ke,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=Ra(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[Hn],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(b(0,"div"),J(1,N5e,3,1,"header",0),b(2,"div",1)(3,"ul",2),J(4,O5e,2,4,"li",3),x()()()),2&e&&(rr("width",i.width,"px"),w(1),k("ngIf",(null==i.title?null:i.title.length)>0),w(2),rr("max-height",i.height-45,"px"),Mn("horizontal-legend",i.horizontal),w(1),k("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[jn,gn,yW]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),yW=(()=>{class t{constructor(){this.isActive=!1,this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke,this.toggle=new Ke}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&ye("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(b(0,"span",0),ye("click",function(){return i.select.emit(i.formattedLabel)}),b(1,"span",1),ye("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),b(2,"span",2),I(3),x()()),2&e&&(Mn("active",i.isActive),k("title",i.formattedLabel),w(1),rr("background-color",i.color),w(2),xn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),bW=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(le(ZB))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[Hn],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"span"),I(3),x()(),ge(4,"div",2),b(5,"div",1)(6,"span"),I(7),x()()()),2&e&&(rr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Mn("horizontal-legend",i.horizontal),w(3),Dt(i.valueRange[1].toLocaleString()),w(1),rr("background",i.gradient),w(3),Dt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Vu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs,cW,uW,Vs,cW,uW]}),t})();let xW=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class vs{constructor(n,e,i,r){"string"==typeof n&&(n=xW.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=xW.find(o=>o.name===n)),"quantile"===e)r=jG().range(n.domain).domain(i);else if("ordinal"===e)r=PI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=FG(0,1,1/o.length);r=bo().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=bo().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=bo().domain(this.domain).range([0,1]),r=La().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let f$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),CW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),m$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),y$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),DW=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new Ke,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=va(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[Hn],attrs:n6e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(at(),ge(0,"path",0)),2&e&&(k("@animationState","active"),ht("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({strokeDasharray:2e3,strokeDashoffset:2e3}),Ma(1e3,Dr({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),b$e=(()=>{class t extends ss{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=gm,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new Ke,this.deactivate=new Ke,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function gs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Al().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function b2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function Bf(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=pm().range([0,i]).domain(e):"linear"===this.scaleType?(r=bo().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=mm().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=bo().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new vs(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(ni(r,Us,5),ni(r,p2,5)),2&e){let o;cn(o=un())&&(i.tooltipTemplate=o.first),cn(o=un())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&ye("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[vi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(b(0,"ngx-charts-chart",0),ye("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),at(),b(1,"defs")(2,"clipPath"),ge(3,"rect"),x()(),b(4,"g",1),J(5,i6e,1,10,"g",2),J(6,r6e,1,12,"g",3),b(7,"g"),J(8,o6e,2,11,"g",4),J(9,a6e,3,9,"g",5),x()(),J(10,c6e,2,13,"g",6),x()),2&e&&(k("view",Sr(17,Eo,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),w(2),ht("id",i.clipPathId),w(1),ht("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),w(1),ht("transform",i.transform),w(1),k("ngIf",i.xAxis),w(1),k("ngIf",i.yAxis),w(1),ht("clip-path",i.clipPath),w(1),k("ngForOf",i.results)("ngForTrackBy",i.trackBy),w(1),k("ngIf",!i.tooltipDisabled),w(1),k("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[jn,gn,Wl,El,sb,os,ob,ab,_$e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[il("animationState",[Ia(":leave",[Dr({opacity:1}),Ma(500,Dr({opacity:0}))])])]},changeDetection:0}),t})(),_$e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return c2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Sv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Sv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function KI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function ZI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function QI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Al().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[Hn],attrs:u6e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(at(),b(0,"g")(1,"defs"),J(2,d6e,1,2,"g",0),x(),ge(3,"g",1)(4,"g",2),J(5,h6e,1,9,"g",3),x()),2&e&&(w(2),k("ngIf",i.hasGradient),w(1),Mn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),k("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),w(1),Mn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),k("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),w(1),k("ngIf",i.hasRange))},dependencies:[gn,XI,bm,DW],encapsulation:2,changeDetection:0}),t})(),TW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})();Math;let iF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),S$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,iF,TW]}),t})(),A$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),F$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),j$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,iF,CW]}),t})(),L$e=(()=>{class t{constructor(){!function P$e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,f$e,CW,m$e,y$e,TW,S$e,A$e,iF,F$e,j$e]}),t})();function R$e(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function $$e(t,n){1&t&&ge(0,"img",31)}function B$e(t,n){1&t&&ge(0,"img",32)}function V$e(t,n){1&t&&ge(0,"img",33)}function H$e(t,n){1&t&&ge(0,"img",34)}function z$e(t,n){if(1&t&&(b(0,"tr",24)(1,"td"),ta(2,25),J(3,$$e,1,0,"img",26),J(4,B$e,1,0,"img",27),J(5,V$e,1,0,"img",28),J(6,H$e,1,0,"img",29),na(),b(7,"span"),I(8),x()(),b(9,"td"),I(10),b(11,"span",30),I(12),x()(),b(13,"td"),I(14),b(15,"span",30),I(16),x()(),b(17,"td"),I(18),b(19,"span",30),I(20),x()(),b(21,"td"),I(22),b(23,"span",30),I(24),x()()()),2&t){const e=n.$implicit,i=j(2);w(2),k("ngSwitch",e.health),w(1),k("ngSwitchCase",0),w(1),k("ngSwitchCase",1),w(1),k("ngSwitchCase",2),w(1),k("ngSwitchCase",3),w(2),Dt(e.name),w(2),xn("",e.session_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxSessionCount()-e.session_count," delta)"),w(2),xn("",e.presence_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),w(2),xn("",e.match_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxMatchCount()-e.match_count," delta)"),w(2),xn("",e.goroutine_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function U$e(t,n){if(1&t&&(b(0,"tbody"),J(1,z$e,25,18,"tr",22),b(2,"tr",3),ge(3,"td",23),b(4,"th",3),I(5),x(),b(6,"th",3),I(7),x(),b(8,"th",3),I(9),x(),b(10,"th",3),I(11),x()()()),2&t){const e=j();w(1),k("ngForOf",e.statusData.nodes),w(4),Dt(e.getTotalSessionCount()),w(2),Dt(e.getMaxPresenceCount()),w(2),Dt(e.getTotalMatchCount()),w(2),Dt(e.getTotalGorountineCount())}}function G$e(t,n){if(1&t&&(b(0,"option",35),I(1),x()),2&t){const e=n.$implicit,i=j();Nh("value",e),w(1),Dt(i.ranges[e])}}const w2=function(t){return{"background-color":t}};function W$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function q$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,W$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function X$e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",37),J(2,q$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function Y$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function J$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,Y$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function K$e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",43),J(2,J$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function Q$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function Z$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,Q$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function eBe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",44),J(2,Z$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function tBe(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function nBe(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,tBe,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function iBe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",45),J(2,nBe,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let rBe=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"showDelta",!1),K(this,"statusData",void 0),K(this,"rateGraphData",[]),K(this,"latencyGraphData",[]),K(this,"inputGraphData",[]),K(this,"outputGraphData",[]),K(this,"rangeForm",void 0),K(this,"ranges",{1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"}),K(this,"rangesKeys",Object.keys(this.ranges).map(o=>+o)),K(this,"colorScheme",{domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]}),K(this,"samples",60),K(this,"refreshTimer",void 0),K(this,"$refreshTimer",void 0),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=av(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=av(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Status"),x(),J(2,R$e,4,2,"ngb-alert",1),b(3,"table",2),ye("mouseover",function(){return i.showDelta=!0})("mouseout",function(){return i.showDelta=!1}),b(4,"thead",3)(5,"tr")(6,"th",4),I(7,"Node name"),x(),b(8,"th",4),I(9,"Sessions"),x(),b(10,"th",4),I(11,"Presences"),x(),b(12,"th",4),I(13,"Authoritative Matches"),x(),b(14,"th",4),I(15,"Goroutines"),x()()(),J(16,U$e,12,5,"tbody",5),x(),b(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),I(21,"View:"),x(),b(22,"div",9)(23,"select",10),ye("change",function(o){return i.setRange(o)}),J(24,G$e,2,2,"option",11),function qE(t,n){const e=Pr();let i;const r=t+Bo;e.firstCreatePass?(i=function R_e(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ap(i.type)),s=Pc(le);try{const a=ux(!1),l=o();return ux(a),function Lye(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Gt(),r,l),l}finally{Pc(s)}}(25,"sortNumbers"),x()()()()(),b(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),I(30,"Processing Latency"),x(),b(31,"small"),I(32," (ms)"),x()()(),b(33,"div",13)(34,"div",14)(35,"h5",15),I(36,"Rate"),x(),b(37,"small"),I(38," (rpc/s)"),x()()()(),b(39,"div",12)(40,"div",16),J(41,X$e,4,12,"div",17),x(),b(42,"div",16),J(43,K$e,4,12,"div",17),x()(),b(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),I(48,"Input"),x(),b(49,"small"),I(50," (kb/s)"),x()()(),b(51,"div",13)(52,"div",14)(53,"h5",15),I(54,"Output"),x(),b(55,"small"),I(56," (kb/s)"),x()()()(),b(57,"div",12)(58,"div",16),J(59,eBe,4,12,"div",17),x(),b(60,"div",16),J(61,iBe,4,12,"div",17),x()()),2&e&&(w(2),k("ngIf",i.error),w(14),k("ngIf",i.statusData),w(1),k("formGroup",i.rangeForm),w(7),k("ngForOf",XE(25,8,i.rangesKeys)),w(17),k("ngIf",i.latencyGraphData.length>0),w(2),k("ngIf",i.rateGraphData.length>0),w(16),k("ngIf",i.inputGraphData.length>0),w(2),k("ngIf",i.outputGraphData.length>0))},dependencies:function(){return[jn,gn,wB,dw,_B,To,Pu,tNe,b$e,sl,xy,wy,ov,rl,ol,fa,ja,sBe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})),t})(),oBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(nt(r=>$n(r.nodes.map(o=>o.name)))).pipe(Ul(r=>(e.data={...e.data,error:r},$n([]))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),sBe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275pipe",gl({name:"sortNumbers",type:t,pure:!1})),t})();var aBe=De(870),rF=De(327);const lBe=["fileSelector"];function cBe(t,n){if(1&t&&(b(0,"div",8),I(1),x()),2&t){const e=j(2);w(1),Dt(e.dropZoneLabel)}}function uBe(t,n){if(1&t){const e=vt();b(0,"div")(1,"input",9),ye("click",function(r){return $e(e),Be(j(2).openFileSelector(r))}),x()()}if(2&t){const e=j(2);w(1),Nh("value",e.browseBtnLabel),k("className",e.browseBtnClassName)}}function dBe(t,n){if(1&t&&(J(0,cBe,2,1,"div",6),J(1,uBe,2,2,"div",7)),2&t){const e=j();k("ngIf",e.dropZoneLabel),w(1),k("ngIf",e.showBrowseBtn)}}function hBe(t,n){}const fBe=function(t){return{openFileSelector:t}};class C2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let OW=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(le(Si))},t.\u0275dir=Zt({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),jW=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new Ke,this.onFileOver=new Ke,this.onFileLeave=new Ke,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new C2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=av(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new C2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new C2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(le(Wi),le(Ss))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&ni(r,OW,5,Si),2&e){let o;cn(o=un())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&io(lBe,7),2&e){let r;cn(r=un())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(b(0,"div",0),ye("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),b(1,"div",1)(2,"input",2,3),ye("change",function(o){return i.uploadFiles(o)}),x(),J(4,dBe,2,2,"ng-template",null,4,Ur),J(6,hBe,0,0,"ng-template",5),x()()),2&e){const r=uo(5);Mn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),k("className",i.dropZoneClassName),w(1),k("className",i.contentClassName),w(1),k("accept",i.accept)("multiple",i.multiple),ht("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),w(4),k("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",lr(13,fBe,i.openFileSelector))}},dependencies:[gn,kl],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),pBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t,bootstrap:function(){return[jW]}}),t.\u0275inj=Ci({imports:[Vs]}),t})();function mBe(t,n){1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),I(3,"Failed to retrieve configuration."),x()()),2&t&&k("dismissible",!1)}function gBe(t,n){if(1&t&&(b(0,"span",33),I(1),x()),2&t){const e=j(2).$implicit;k("id",e.name),w(1),Dt(e.value)}}function vBe(t,n){1&t&&(b(0,"span",34),I(1,"(empty)"),x()),2&t&&k("id",j(2).$implicit.name)}function yBe(t,n){if(1&t&&(b(0,"div",35)(1,"b"),I(2),x(),b(3,"label",27)(4,"a",28),ge(5,"img",10),x()()()),2&t){const e=j(2).index,i=j();w(2),Dt(i.flatConfig[e+1].name),w(1),k("for",i.flatConfig[e+1].name),w(1),$p("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",i.flatConfig[e+1].name,"",y1)}}function bBe(t,n){if(1&t&&(b(0,"span",33),I(1),x()),2&t){const e=j(3).index,i=j();k("id",i.flatConfig[e+1].name),w(1),Dt(i.flatConfig[e+1].value)}}function _Be(t,n){if(1&t&&(b(0,"span",34),I(1,"(empty)"),x()),2&t){const e=j(3).index;k("id",j().flatConfig[e+1].name)}}function xBe(t,n){if(1&t&&(b(0,"div",36),J(1,bBe,2,2,"span",29),J(2,_Be,2,1,"span",30),x()),2&t){const e=j(2).index,i=j();w(1),k("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),w(1),k("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function wBe(t,n){if(1&t&&(b(0,"div",26)(1,"div",7)(2,"b"),I(3),x(),b(4,"label",27)(5,"a",28),ge(6,"img",10),x()()(),b(7,"div",7),J(8,gBe,2,2,"span",29),J(9,vBe,2,1,"span",30),x(),J(10,yBe,6,3,"div",31),J(11,xBe,3,2,"div",32),x()),2&t){const e=j(),i=e.index,r=e.$implicit,o=j();Mn("border-top-0",i>0),w(3),Dt(r.name),w(1),k("for",r.name),w(1),$p("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",r.value.name,"",y1),w(3),k("ngIf",!o.isEmpty(r.value)),w(1),k("ngIf",o.isEmpty(r.value)),w(1),k("ngIf",i{class t{constructor(e,i,r,o,s,a){K(this,"config",void 0),K(this,"route",void 0),K(this,"httpClient",void 0),K(this,"modalService",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"configError",""),K(this,"uploadError",""),K(this,"deleteError",""),K(this,"jsonConfig",void 0),K(this,"flatConfig",void 0),K(this,"nakamaVersion",void 0),K(this,"file",void 0),K(this,"uploading",!1),K(this,"uploadSuccess",!1),K(this,"deleteSuccess",!1),K(this,"deleting",!1),K(this,"confirmDeleteForm",void 0),K(this,"apiConfig",void 0),this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Do.compose([Do.required,Do.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,aBe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});rF.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(T3(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(C3),le(Rr),le(wC),le(H3),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:43,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height",""],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["confirmDelete",""],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],[1,"mt-2"],["autocomplete","off",3,"formGroup"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,i){if(1&e){const r=vt();J(0,mBe,4,1,"ngb-alert",0),b(1,"h2",1),I(2,"Server Configuration"),x(),b(3,"div",2)(4,"h5")(5,"b"),I(6,"Server version:"),x(),I(7),x(),b(8,"button",3),ye("click",function(){return i.exportYaml()}),I(9,"Export Configuration"),x()(),b(10,"div",4),J(11,CBe,2,1,"ng-container",5),b(12,"div",6)(13,"div",7)(14,"b"),I(15,"runtime.env"),x(),b(16,"label",8)(17,"a",9),ge(18,"img",10),x()()(),b(19,"div",11),J(20,SBe,2,1,"div",12),J(21,DBe,3,0,"div",12),x()()(),b(22,"h5",13),I(23,"Import storage data"),x(),b(24,"p"),I(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),J(26,TBe,6,2,"ngb-alert",0),J(27,EBe,4,1,"ngb-alert",14),b(28,"ngx-file-drop",15),ye("onFileDrop",function(s){return i.dropped(s)}),J(29,ABe,2,0,"ng-template",16),x(),b(30,"h5",13),I(31,"Delete all data"),x(),J(32,MBe,6,2,"ngb-alert",0),J(33,IBe,4,1,"ngb-alert",14),b(34,"div",17)(35,"div"),ge(36,"img",18),b(37,"small",19),I(38,"Warning - this operation is not reversible!"),x()(),J(39,NBe,19,5,"ng-template",null,20,Ur),b(41,"button",21),ye("click",function(){$e(r);const s=uo(40);return Be(i.openDeleteDataModal(s))}),I(42,"Delete all"),x()()}2&e&&(k("ngIf",i.configError),w(7),xn(" ",i.nakamaVersion,""),w(4),k("ngForOf",i.flatConfig),w(9),k("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&i.jsonConfig.runtime.env.length>0),w(1),k("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&0===i.jsonConfig.runtime.env.length),w(5),k("ngIf",i.uploadError),w(1),k("ngIf",i.uploadSuccess),w(1),k("disabled",i.uploading),w(4),k("ngIf",i.deleteError),w(1),k("ngIf",i.deleteSuccess),w(8),k("disabled",i.deleting))},dependencies:[jW,OW,Rh,jn,gn,To,sl,Na,rl,ol,fa,ja],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})),t})(),jBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function PBe(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function LBe(t,n){1&t&&(b(0,"tr")(1,"td",51),I(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(w(1),k("colSpan",4))}function RBe(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td")(6,"span",36),I(7,"Administrator"),x(),b(8,"span",36),I(9,"Developer"),x(),b(10,"span",36),I(11,"Maintainer"),x(),b(12,"span",36),I(13,"View Only"),x()(),b(14,"td")(15,"button",52),ye("click",function(){const o=$e(e).$implicit;return Be(j().deleteUser(o.username))}),I(16,"Delete"),x()()()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.username),w(2),Dt(e.email),w(2),k("hidden",e.role!==i.adminRole),w(2),k("hidden",e.role!==i.developerRole),w(2),k("hidden",e.role!==i.maintainerRole),w(2),k("hidden",e.role!==i.readonlyRole)}}function $Be(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),I(3,"An error occurred:"),x(),b(4,"p",53),I(5),x()()),2&t){const e=j();k("dismissible",!1),w(5),Dt(e.userCreateError)}}const oF=function(t){return{"is-invalid":t}};let BBe=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"userCreateError",""),K(this,"users",[]),K(this,"createUserForm",void 0),K(this,"adminRole",oi.USER_ROLE_ADMIN),K(this,"developerRole",oi.USER_ROLE_DEVELOPER),K(this,"maintainerRole",oi.USER_ROLE_MAINTAINER),K(this,"readonlyRole",oi.USER_ROLE_READONLY),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",Do.required],email:["",[Do.required,Do.email]],password:["",Do.compose([Do.required,Do.minLength(8)])],role:[+this.readonlyRole,Do.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}deleteUser(e){this.error="",this.consoleService.deleteUser("",e).pipe(nt(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=oi.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=oi.USER_ROLE_ADMIN;break;case 2:e=oi.USER_ROLE_DEVELOPER;break;case 3:e=oi.USER_ROLE_MAINTAINER;break;case 4:e=oi.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value}).pipe(nt(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-users"]],decls:121,vars:24,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"text-muted",3,"colSpan"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Management"),x(),J(2,PBe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th",4),I(7,"Username"),x(),b(8,"th"),I(9,"Email"),x(),b(10,"th",5),I(11,"Role"),x(),b(12,"th",6),I(13,"Action"),x()()(),b(14,"tbody"),J(15,LBe,3,1,"tr",7),J(16,RBe,17,6,"tr",8),x()(),b(17,"h5",9),I(18,"Add new user"),x(),b(19,"ngb-alert",10)(20,"h6",11),I(21,"User roles"),x(),b(22,"div",12)(23,"div",13)(24,"div",14),ge(25,"img",15),b(26,"h6",16),I(27,"Administrator"),x()(),b(28,"small"),I(29," Owners have complete control over the server, its users and resources. "),x()(),b(30,"div",13)(31,"div",14),ge(32,"img",17),b(33,"h6",16),I(34,"Developer"),x()(),b(35,"small"),I(36," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),b(37,"div",13)(38,"div",14),ge(39,"img",18),b(40,"h6",16),I(41,"Maintainer"),x()(),b(42,"small"),I(43," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),b(44,"div",13)(45,"div",14),ge(46,"img",19),b(47,"h6",16),I(48,"View Only"),x()(),b(49,"small"),I(50," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),J(51,$Be,6,2,"ngb-alert",1),b(52,"div",20)(53,"form",21),ye("ngSubmit",function(){return i.addUser()}),b(54,"div",22)(55,"div",23)(56,"div",24)(57,"label",25),I(58,"Email"),x()(),b(59,"div",26),ge(60,"input",27),b(61,"div",28),I(62,"Email is required"),x()()()(),b(63,"div",22)(64,"div",23)(65,"div",24)(66,"label",29),I(67,"Username"),x()(),b(68,"div",26),ge(69,"input",30),b(70,"div",28),I(71,"Username is required"),x()()()(),b(72,"div",22)(73,"div",23)(74,"div",24)(75,"label",31),I(76,"Password"),x()(),b(77,"div",26),ge(78,"input",32),b(79,"div",28),I(80,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),b(81,"div",22)(82,"div",23)(83,"div",24)(84,"label",33),I(85,"Role"),x()(),b(86,"div",26)(87,"div",34)(88,"button",35)(89,"span",36),I(90,"Administrator"),x(),b(91,"span",36),I(92,"Developer"),x(),b(93,"span",36),I(94,"Maintainer"),x(),b(95,"span",36),I(96,"View Only"),x()(),b(97,"div",37),ge(98,"button",38),b(99,"div",39)(100,"button",40),ye("click",function(){return i.f.role.setValue(+i.adminRole)}),I(101,"Administrator"),x(),b(102,"button",40),ye("click",function(){return i.f.role.setValue(+i.developerRole)}),I(103,"Developer"),x(),b(104,"button",40),ye("click",function(){return i.f.role.setValue(+i.maintainerRole)}),I(105,"Maintainer"),x(),b(106,"button",40),ye("click",function(){return i.f.role.setValue(+i.readonlyRole)}),I(107,"View Only"),x()()()(),b(108,"div",28),I(109,"Role is required"),x()()()(),b(110,"div",41)(111,"div",42),ge(112,"div",24),b(113,"div",26)(114,"div",43),ge(115,"input",44),b(116,"label",45),I(117,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),b(118,"div",46)(119,"button",47),I(120,"Save"),x()()()()),2&e&&(w(2),k("ngIf",i.error),w(13),k("ngIf",0===i.users.length),w(1),k("ngForOf",i.users),w(3),k("type","secondary"),w(32),k("ngIf",i.userCreateError),w(2),k("formGroup",i.createUserForm),w(7),k("ngClass",lr(18,oF,i.f.email.dirty&&i.f.email.errors)),w(1),k("hidden",i.f.email.disabled||i.f.email.valid||i.f.email.pristine),w(8),k("ngClass",lr(20,oF,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(8),k("ngClass",lr(22,oF,i.f.password.dirty&&i.f.password.errors)),w(1),k("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),w(10),k("hidden",i.f.role.value!==+i.adminRole),w(2),k("hidden",i.f.role.value!==+i.developerRole),w(2),k("hidden",i.f.role.value!==+i.maintainerRole),w(2),k("hidden",i.f.role.value!==+i.readonlyRole),w(13),k("hidden",i.f.role.disabled||i.f.role.valid||i.f.role.pristine),w(11),k("disabled",i.createUserForm.invalid))},dependencies:[Rh,jn,gn,To,Pu,rm,Pf,jf,sl,Na,aC,rl,ol,Ff,fa,ja],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})),t})(),VBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function HBe(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Failed to retrieve runtime information: ",e.error,"")}}function zBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function UBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No Go modules were found."),x(),ge(3,"td"),x())}function GBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function WBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No Lua modules were found."),x(),ge(3,"td"),x())}function qBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function XBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No JavaScript modules were found."),x(),ge(3,"td"),x())}const sF=function(){return["/apiexplorer"]},aF=function(t){return{endpoint:t}};function YBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sF))("queryParams",lr(4,aF,e))}}function JBe(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No Go RPC functions were found."),x()())}function KBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sF))("queryParams",lr(4,aF,e))}}function QBe(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No Lua RPC functions were found."),x()())}function ZBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sF))("queryParams",lr(4,aF,e))}}function e7e(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No JavaScript RPC functions were found."),x()())}let t7e=(()=>{class t{constructor(e,i){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"runtimeInfo",void 0),this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Runtime Modules"),x(),J(2,HBe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),I(7,"Go Modules"),x(),b(8,"th",4),I(9,"Last Modified"),x()()(),b(10,"tbody"),J(11,zBe,5,2,"tr",5),J(12,UBe,4,0,"tr",6),x(),b(13,"thead",3)(14,"tr")(15,"th",7),I(16,"Lua Modules"),x()()(),b(17,"tbody"),J(18,GBe,5,2,"tr",5),J(19,WBe,4,0,"tr",6),x(),b(20,"thead",3)(21,"tr")(22,"th",7),I(23,"JavaScript Modules"),x()()(),b(24,"tbody"),J(25,qBe,5,2,"tr",5),J(26,XBe,4,0,"tr",6),x()(),b(27,"h4",8),I(28,"Registered RPC Functions"),x(),b(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),I(33,"Go RPC Functions"),x()()(),b(34,"tbody"),J(35,YBe,7,6,"tr",5),J(36,JBe,3,0,"tr",6),x(),b(37,"thead",3)(38,"tr")(39,"th",7),I(40,"Lua RPC Functions"),x()()(),b(41,"tbody"),J(42,KBe,7,6,"tr",5),J(43,QBe,3,0,"tr",6),x(),b(44,"thead",3)(45,"tr")(46,"th",7),I(47,"JavaScript RPC Functions"),x()()(),b(48,"tbody"),J(49,ZBe,7,6,"tr",5),J(50,e7e,3,0,"tr",6),x()()),2&e&&(w(2),k("ngIf",i.error),w(9),k("ngForOf",i.runtimeInfo.go_modules),w(1),k("ngIf",0===i.runtimeInfo.go_modules.length),w(6),k("ngForOf",i.runtimeInfo.lua_modules),w(1),k("ngIf",0===i.runtimeInfo.lua_modules.length),w(6),k("ngForOf",i.runtimeInfo.js_modules),w(1),k("ngIf",0===i.runtimeInfo.js_modules.length),w(9),k("ngForOf",i.runtimeInfo.go_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.go_rpc_functions.length),w(6),k("ngForOf",i.runtimeInfo.lua_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.lua_rpc_functions.length),w(6),k("ngForOf",i.runtimeInfo.js_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.js_rpc_functions.length))},dependencies:[Fu,jn,gn,To],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})),t})(),n7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function i7e(t,n){1&t&&(b(0,"span"),I(1,"Filter by collection"),x())}function r7e(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.f.collection.value)}}function o7e(t,n){if(1&t){const e=vt();b(0,"button",34),ye("click",function(){const o=$e(e).$implicit;return Be(j().f.collection.setValue(o))}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function s7e(t,n){if(1&t&&(b(0,"ngb-alert",35),ge(1,"img",36),b(2,"h6",37),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying storage objects: ",e.error,"")}}function a7e(t,n){1&t&&(b(0,"th",38),I(1,"Remove"),x())}function l7e(t,n){1&t&&(b(0,"tr")(1,"td",39),I(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function c7e(t,n){if(1&t){const e=vt();b(0,"td",42)(1,"button",43),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteObject(r,s,a))}),I(2,"Delete"),x()()}}function u7e(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(2),x(),b(3,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(4),x(),b(5,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(6),x(),b(7,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(8),x(),J(9,c7e,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.collection),w(2),Dt(e.key),w(2),Dt(e.user_id),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed())}}let d7e=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"collections",[]),K(this,"objects",[]),K(this,"objectCount",0),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Storage Objects"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),J(12,i7e,2,0,"span",10),J(13,r7e,2,1,"span",10),x(),b(14,"div",11)(15,"button",12),ye("click",function(){return i.f.collection.reset()}),I(16,"\u2718 Deselect collection"),x(),ge(17,"div",13),J(18,o7e,2,1,"button",14),x()()(),ge(19,"input",15)(20,"input",16),b(21,"div",17)(22,"span",18),ye("click",function(){return i.f.user_id.setValue(i.systemUserId)}),ge(23,"img",19),x()(),b(24,"div",17)(25,"button",20),ye("click",function(){return i.search(0)}),I(26,"Search"),x()()()()(),b(27,"div",21)(28,"div",22)(29,"button",23),ye("click",function(){return i.search(0)}),ge(30,"img",24),x(),b(31,"button",23),ye("click",function(){return i.search(1)}),ge(32,"img",25),x()()()()(),J(33,s7e,4,2,"ngb-alert",26),b(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),I(39,"Collection Name"),x(),b(40,"th"),I(41,"Key Name"),x(),b(42,"th",30),I(43,"User ID"),x(),b(44,"th",31),I(45,"Last Update"),x(),J(46,a7e,2,0,"th",32),x()(),b(47,"tbody"),J(48,l7e,3,0,"tr",10),J(49,u7e,10,5,"tr",33),x()()()),2&e&&(w(3),xn("",i.objectCount," objects found."),w(4),k("formGroup",i.searchForm),w(4),k("disabled",0===i.collections.length),w(1),k("ngIf",!i.f.collection.value||""===i.f.collection.value),w(1),k("ngIf",i.f.collection.value&&""!==i.f.collection.value),w(2),k("hidden",!i.f.collection.value||""===i.f.collection.value),w(2),k("hidden",!i.f.collection.value||""===i.f.collection.value),w(1),k("ngForOf",i.collections),w(7),k("disabled",i.disableSearch()),w(4),k("disabled",0===i.objects.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.objects.length),w(1),k("ngForOf",i.objects))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Na,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),h7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),f7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();var lF,PW,LW,RW,$W,BW,VW,HW,zW,UW,GW,WW,qW,XW,YW,JW,KW,QW,ZW,eq,tq,nq,iq,rq,oq,sq,aq,lq,cq,uq,dq,hq,fq,pq,mq,gq,vq,yq,bq,_q,xq,wq,Cq,kq,Sq,Dq,Tq,Eq,Aq,Mq,Iq,Fq,Nq,Oq,jq,Pq,Lq,Rq,$q,Bq,Vq,Hq,zq,Uq,Gq,Wq,qq,Xq,Yq,Jq,Kq,Qq,Zq,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,bX,_X,xX,wX,CX,kX,SX,DX,TX,EX,AX,MX,IX,FX,NX,OX,jX,PX,LX,RX,$X,BX,VX,HX,zX,UX,GX,WX,qX,XX,YX,JX,KX,QX,ZX,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,bY,_Y,xY,wY,CY,kY,SY,DY,TY,EY,AY,MY,IY,FY,NY,OY,jY,PY,LY,RY,$Y,BY,VY,HY,zY,UY,GY,WY,qY,XY,YY,JY,KY,QY,ZY,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,bJ,_J,xJ,wJ,CJ,kJ,SJ,DJ,TJ,EJ,AJ,MJ,IJ,FJ,NJ,OJ,jJ,PJ,LJ,RJ,$J,BJ,VJ,HJ,zJ,UJ,GJ,WJ,qJ,XJ,YJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,bK,_K,xK,wK,CK,kK,SK,DK,TK,EK,AK,MK,IK,FK,NK,OK,jK,PK,LK,RK,$K,BK,VK,HK,zK,UK,GK,WK,qK,p7e=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],m7e=["mainAxis","crossAxis","limiter"];function lb(t){var n="function"==typeof Map?new Map:void 0;return lb=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return cF(e,arguments,qi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),cb(r,e)},lb(t)}function cF(t,n,e){return(cF=ZK()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&cb(a,o.prototype),a}).apply(null,arguments)}function Ae(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function XK(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Re(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=k2(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function vn(){vn=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(q,re,L){q[re]=L.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(q,re,L){return Object.defineProperty(q,re,{value:L,enumerable:!0,configurable:!0,writable:!0}),q[re]}try{l({},"")}catch{l=function(re,L,X){return re[L]=X}}function c(q,re,L,X){var H=Object.create((re&&re.prototype instanceof h?re:h).prototype),he=new R(X||[]);return i(H,"_invoke",{value:S(q,L,he)}),H}function u(q,re,L){try{return{type:"normal",arg:q.call(re,L)}}catch(X){return{type:"throw",arg:X}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(z([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function _(q){["next","throw","return"].forEach(function(re){l(q,re,function(L){return this._invoke(re,L)})})}function C(q,re){function L(Z,H,he,E){var F=u(q[Z],q,H);if("throw"!==F.type){var N=F.arg,Y=N.value;return Y&&"object"==bn(Y)&&e.call(Y,"__await")?re.resolve(Y.__await).then(function(V){L("next",V,he,E)},function(V){L("throw",V,he,E)}):re.resolve(Y).then(function(V){N.value=V,he(N)},function(V){return L("throw",V,he,E)})}E(F.arg)}var X;i(this,"_invoke",{value:function(Z,H){function he(){return new re(function(E,F){L(Z,H,E,F)})}return X=X?X.then(he,he):he()}})}function S(q,re,L){var X="suspendedStart";return function(Z,H){if("executing"===X)throw new Error("Generator is already running");if("completed"===X){if("throw"===Z)throw H;return{value:void 0,done:!0}}for(L.method=Z,L.arg=H;;){var he=L.delegate;if(he){var E=M(he,L);if(E){if(E===d)continue;return E}}if("next"===L.method)L.sent=L._sent=L.arg;else if("throw"===L.method){if("suspendedStart"===X)throw X="completed",L.arg;L.dispatchException(L.arg)}else"return"===L.method&&L.abrupt("return",L.arg);X="executing";var F=u(q,re,L);if("normal"===F.type){if(X=L.done?"completed":"suspendedYield",F.arg===d)continue;return{value:F.arg,done:L.done}}"throw"===F.type&&(X="completed",L.method="throw",L.arg=F.arg)}}}function M(q,re){var L=re.method,X=q.iterator[L];if(void 0===X)return re.delegate=null,"throw"===L&&q.iterator.return&&(re.method="return",re.arg=void 0,M(q,re),"throw"===re.method)||"return"!==L&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+L+"' method")),d;var Z=u(X,q.iterator,re.arg);if("throw"===Z.type)return re.method="throw",re.arg=Z.arg,re.delegate=null,d;var H=Z.arg;return H?H.done?(re[q.resultName]=H.value,re.next=q.nextLoc,"return"!==re.method&&(re.method="next",re.arg=void 0),re.delegate=null,d):H:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,d)}function $(q){var re={tryLoc:q[0]};1 in q&&(re.catchLoc=q[1]),2 in q&&(re.finallyLoc=q[2],re.afterLoc=q[3]),this.tryEntries.push(re)}function G(q){var re=q.completion||{};re.type="normal",delete re.arg,q.completion=re}function R(q){this.tryEntries=[{tryLoc:"root"}],q.forEach($,this),this.reset(!0)}function z(q){if(q){var re=q[o];if(re)return re.call(q);if("function"==typeof q.next)return q;if(!isNaN(q.length)){var L=-1,X=function Z(){for(;++L=0;--X){var Z=this.tryEntries[X],H=Z.completion;if("root"===Z.tryLoc)return L("end");if(Z.tryLoc<=this.prev){var he=e.call(Z,"catchLoc"),E=e.call(Z,"finallyLoc");if(he&&E){if(this.prev=0;--L){var X=this.tryEntries[L];if(X.tryLoc<=this.prev&&e.call(X,"finallyLoc")&&this.prev=0;--re){var L=this.tryEntries[re];if(L.finallyLoc===q)return this.complete(L.completion,L.afterLoc),G(L),d}},catch:function(q){for(var re=this.tryEntries.length-1;re>=0;--re){var L=this.tryEntries[re];if(L.tryLoc===q){var X=L.completion;if("throw"===X.type){var Z=X.arg;G(L)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(q,re,L){return this.delegate={iterator:z(q),resultName:re,nextLoc:L},"next"===this.method&&(this.arg=void 0),d}},t}function YK(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Zi(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){YK(o,i,r,s,a,"next",l)}function a(l){YK(o,i,r,s,a,"throw",l)}s(void 0)})}}function Un(t,n){return KK(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||k2(t,n)||JK()}function JK(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function KK(t){if(Array.isArray(t))return t}function QK(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function Ze(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function ke(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function eQ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function qd(t,n){return new t(n)}var db,D2=new Map,fF=0;function fQ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function x7e(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=hF(t),m=D2.get(p)||function w7e(t,n){var e={stylesheet:b7e(n),rules:{}};return D2.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),fF+=1,f}function hb(t){db=t}function Tv(){if(!db)throw new Error("Function called outside component initialization");return db}function Wc(t){Tv().$$.on_mount.push(t)}function Hu(t){Tv().$$.on_destroy.push(t)}function pQ(){var t=Tv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=hQ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function mQ(t,n){return Tv().$$.context.set(t,n),n}function xa(t){return Tv().$$.context.get(t)}function T2(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Ev=[],Vi=[],E2=[],pF=[],gQ=Promise.resolve(),mF=!1;function vQ(){mF||(mF=!0,gQ.then(yQ))}function Xl(){return vQ(),gQ}function _m(t){E2.push(t)}function zu(t){pF.push(t)}var A2,gF=new Set,Av=0;function yQ(){if(0===Av){var t=db;do{try{for(;Avl.start&&(a=d(l,_),l=null,vF(t,a.b,"start"),G&&(u(),c=fQ(t,s,a.b,a.duration,0,S,o.css))),a&&(z>=a.end?($(s=a.b,1-s),vF(t,a.b,"end"),l||(a.b?u():--a.group.r||ho(a.group.c)),a=null):z>=a.start&&(s=a.a+a.d*S((z-a.start)/a.duration),$(s,1-s))),!(!a&&!l)},0===ub.size&&dF(lQ),new Promise(function(z){ub.add({c:p,f:z})}))}return{run:function(f){ba(o)?(A2||(A2=Promise.resolve()).then(function(){A2=null}),A2).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var yF=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function D7e(t,n){t.d(1),n.delete(t.key)}function bF(t,n){ce(t,1,1,function(){n.delete(t.key)})}function F2(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var _=d(r,o,p),C=e(_),S=s.get(C);S?i&&S.p(_,n):(S=c(C,_)).c(),v.set(C,g[p]=S),C in m&&y.set(C,Math.abs(p-m[C]))}var M=new Set,$=new Set;function G(L){Q(L,1),L.m(a,u),s.set(L.key,L),u=L.first,f--}for(;h&&f;){var R=g[f-1],z=t[h-1],U=R.key,q=z.key;R===z?(u=R.first,h--,f--):v.has(q)?!s.has(U)||M.has(U)?G(R):$.has(q)?h--:y.get(U)>y.get(q)?($.add(U),G(R)):(M.add(q),h--):(l(z,s),h--)}for(;h--;){var re=t[h];v.has(re.key)||l(re,s)}for(;f;)G(g[f-1]);return g}function xm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function N2(t){return"object"===bn(t)&&null!==t?t:{}}function Uu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function mt(t){t&&t.c()}function ft(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||_m(function(){var a,l=t.$$.on_mount.map(rQ).filter(ba);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,si(l)):ho(l),t.$$.on_mount=[]}),s.forEach(_m)}function pt(t,n){var e=t.$$;null!==e.fragment&&(ho(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Pn(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=db;hb(t);var c=t.$$={fragment:null,ctx:[],props:o,update:Lt,not_equal:r,bound:oQ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:oQ(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function T7e(t,n){-1===t.$$.dirty[0]&&(Ev.push(t),vQ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function M7e(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function I7e(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?iQ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var N7e=yF.window;function O7e(t){pi(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function _Q(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=t[1].closeButton&&xQ(t),C=t[2];return C&&(s=qd(C,{})),{c:function(){n=be("div"),e=be("div"),i=be("div"),_&&_.c(),r=it(),o=be("div"),s&&mt(s.$$.fragment),P(o,"class",a=Ao(t[1].classContent)+" svelte-n7cvum"),P(o,"style",t[9]),Mt(o,"content",!t[0]),P(i,"class",l=Ao(t[1].classWindow)+" svelte-n7cvum"),P(i,"role","dialog"),P(i,"aria-modal","true"),P(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),P(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),P(i,"style",t[8]),Mt(i,"window",!t[0]),P(e,"class",h=Ao(t[1].classWindowWrap)+" svelte-n7cvum"),P(e,"style",t[7]),Mt(e,"wrap",!t[0]),P(n,"id",f=t[1].id),P(n,"class",p=Ao(t[1].classBg)+" svelte-n7cvum"),P(n,"style",t[6]),Mt(n,"bg",!t[0])},m:function(S,M){Pe(S,n,M),de(n,e),de(e,i),_&&_.m(i,null),de(i,r),de(i,o),s&&ft(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[Nt(i,"introstart",function(){ba(t[13])&&t[13].apply(this,arguments)}),Nt(i,"outrostart",function(){ba(t[14])&&t[14].apply(this,arguments)}),Nt(i,"introend",function(){ba(t[15])&&t[15].apply(this,arguments)}),Nt(i,"outroend",function(){ba(t[16])&&t[16].apply(this,arguments)}),Nt(n,"mousedown",t[20]),Nt(n,"mouseup",t[21])],v=!0)},p:function(S,M){if((t=S)[1].closeButton?_?(_.p(t,M),2&M[0]&&Q(_,1)):((_=xQ(t)).c(),Q(_,1),_.m(i,r)):_&&($t(),ce(_,1,1,function(){_=null}),Bt()),C!==(C=t[2])){if(s){$t();var $=s;ce($.$$.fragment,1,0,function(){pt($,1)}),Bt()}C?(mt((s=qd(C,{})).$$.fragment),Q(s.$$.fragment,1),ft(s,o,null)):s=null}(!g||2&M[0]&&a!==(a=Ao(t[1].classContent)+" svelte-n7cvum"))&&P(o,"class",a),(!g||512&M[0])&&P(o,"style",t[9]),(!g||3&M[0])&&Mt(o,"content",!t[0]),(!g||2&M[0]&&l!==(l=Ao(t[1].classWindow)+" svelte-n7cvum"))&&P(i,"class",l),(!g||2&M[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&P(i,"aria-label",c),(!g||2&M[0]&&u!==(u=t[1].ariaLabelledBy||null))&&P(i,"aria-labelledby",u),(!g||256&M[0])&&P(i,"style",t[8]),(!g||3&M[0])&&Mt(i,"window",!t[0]),(!g||2&M[0]&&h!==(h=Ao(t[1].classWindowWrap)+" svelte-n7cvum"))&&P(e,"class",h),(!g||128&M[0])&&P(e,"style",t[7]),(!g||3&M[0])&&Mt(e,"wrap",!t[0]),(!g||2&M[0]&&f!==(f=t[1].id))&&P(n,"id",f),(!g||2&M[0]&&p!==(p=Ao(t[1].classBg)+" svelte-n7cvum"))&&P(n,"class",p),(!g||64&M[0])&&P(n,"style",t[6]),(!g||3&M[0])&&Mt(n,"bg",!t[0])},i:function(S){g||(Q(_),s&&Q(s.$$.fragment,S),_m(function(){d||(d=I2(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),_m(function(){m||(m=I2(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(S){ce(_),s&&ce(s.$$.fragment,S),d||(d=I2(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=I2(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(S){S&&je(n),_&&_.d(),s&&pt(s),t[50](null),S&&d&&d.end(),t[51](null),t[52](null),S&&m&&m.end(),v=!1,ho(y)}}}function xQ(t){var n,e,i,r,o,s=[P7e,j7e],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=_r()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):($t(),ce(a[d],1,1,function(){a[d]=null}),Bt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){ce(i),o=!1},d:function(c){a[e].d(c),c&&je(r)}}}function j7e(t){var n,e,i,r;return{c:function(){P(n=be("button"),"class",e=Ao(t[1].classCloseButton)+" svelte-n7cvum"),P(n,"aria-label","Close modal"),P(n,"style",t[10]),P(n,"type","button"),Mt(n,"close",!t[0])},m:function(o,s){Pe(o,n,s),i||(r=Nt(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Ao(o[1].classCloseButton)+" svelte-n7cvum")&&P(n,"class",e),1024&s[0]&&P(n,"style",o[10]),3&s[0]&&Mt(n,"close",!o[0])},i:Lt,o:Lt,d:function(o){o&&je(n),i=!1,r()}}}function P7e(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=qd(r,o(t))),{c:function(){n&&mt(n.$$.fragment),e=_r()},m:function(s,a){n&&ft(n,s,a),Pe(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){$t();var l=n;ce(l.$$.fragment,1,0,function(){pt(l,1)}),Bt()}r?(mt((n=qd(r,o(s))).$$.fragment),Q(n.$$.fragment,1),ft(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&Q(n.$$.fragment,s),i=!0)},o:function(s){n&&ce(n.$$.fragment,s),i=!1},d:function(s){s&&je(e),n&&pt(n,s)}}}function L7e(t){var n,e,i,r,o=t[2]&&_Q(t),s=t[49].default,a=Ms(s,t,t[48],null);return{c:function(){o&&o.c(),n=it(),a&&a.c()},m:function(l,c){o&&o.m(l,c),Pe(l,n,c),a&&a.m(l,c),e=!0,i||(r=Nt(N7e,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&Q(o,1)):((o=_Q(l)).c(),Q(o,1),o.m(n.parentNode,n)):o&&($t(),ce(o,1,1,function(){o=null}),Bt()),a&&a.p&&(!e||131072&c[1])&&Fs(a,s,l,l[48],e?Is(s,l[48],c,null):Ns(l[48]),null)},i:function(l){e||(Q(o),Q(a,l),e=!0)},o:function(l){ce(o),ce(a,l),e=!1},d:function(l){o&&o.d(l),l&&je(n),a&&a.d(l),i=!1,r()}}}function wQ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(Ze(Ze({},e),{},{props:Ze(Ze({},n),e.props)}))}}function R7e(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,_=void 0===y?{}:y,C=n.$$scope,S=pQ(),$=n.isTabbable,G=void 0===$?function(Ue){return Ue.tabIndex>=0&&!Ue.hidden&&!Ue.disabled&&"none"!==Ue.style.display&&"hidden"!==Ue.type&&Boolean(Ue.offsetWidth||Ue.offsetHeight||Ue.getClientRects().length)}:$,R=n.show,z=void 0===R?null:R,U=n.id,q=void 0===U?null:U,re=n.key,L=void 0===re?"simple-modal":re,X=n.ariaLabel,Z=void 0===X?null:X,H=n.ariaLabelledBy,he=void 0===H?null:H,E=n.closeButton,F=void 0===E||E,N=n.closeOnEsc,Y=void 0===N||N,V=n.closeOnOuterClick,oe=void 0===V||V,fe=n.styleBg,Fe=void 0===fe?{}:fe,xe=n.styleWindowWrap,tt=void 0===xe?{}:xe,ze=n.styleWindow,ot=void 0===ze?{}:ze,B=n.styleContent,ne=void 0===B?{}:B,ie=n.styleCloseButton,Ie=void 0===ie?{}:ie,Ye=n.classBg,Le=void 0===Ye?null:Ye,_t=n.classWindowWrap,At=void 0===_t?null:_t,_n=n.classWindow,ci=void 0===_n?null:_n,on=n.classContent,Fi=void 0===on?null:on,pn=n.classCloseButton,Nr=void 0===pn?null:pn,$r=n.unstyled,wr=void 0!==$r&&$r,Or=n.setContext,Ai=void 0===Or?mQ:Or,Wr=n.transitionBg,jo=void 0===Wr?F7e:Wr,Nn=n.transitionBgProps,xt=void 0===Nn?{duration:250}:Nn,ui=n.transitionWindow,Ni=void 0===ui?jo:ui,Cr=n.transitionWindowProps,xo=void 0===Cr?xt:Cr,Qo=n.disableFocusTrap,gt=void 0!==Qo&&Qo,On={id:q,ariaLabel:Z,ariaLabelledBy:he,closeButton:F,closeOnEsc:Y,closeOnOuterClick:oe,styleBg:Fe,styleWindowWrap:tt,styleWindow:ot,styleContent:ne,styleCloseButton:Ie,classBg:Le,classWindowWrap:At,classWindow:ci,classContent:Fi,classCloseButton:Nr,transitionBg:jo,transitionBgProps:xt,transitionWindow:Ni,transitionWindowProps:xo,disableFocusTrap:gt,isTabbable:G,unstyled:wr},ai=Ze({},On),bi=null,Er=function(Ue){return Ue?Object.keys(Ue).reduce(function(Dn,ii){return"".concat(Dn,"; ").concat((hi=ii,hi.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ue[ii]);var hi},""):""},qr=function(Ue){return!!(Ue&&Ue.constructor&&Ue.call&&Ue.apply)},ao=function(){e(6,a=Er(Object.assign({},{width:window.innerWidth,height:window.innerHeight},ai.styleBg))),e(7,l=Er(ai.styleWindowWrap)),e(8,c=Er(ai.styleWindow)),e(9,u=Er(ai.styleContent)),e(10,d=Er(ai.styleCloseButton)),e(11,h=ai.transitionBg),e(12,f=ai.transitionWindow)},Js=function(){},vr=Js,Ks=Js,qa=Js,Xa=Js,Ic=function(Ue){var ii=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},hi=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,bi=wQ(Ue,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,ai=Ze(Ze({},On),ii)),ao(),He(),e(13,vr=function(di){hi.onOpen&&hi.onOpen(di),S("open"),S("opening")}),e(14,Ks=function(di){hi.onClose&&hi.onClose(di),S("close"),S("closing")}),e(15,qa=function(di){hi.onOpened&&hi.onOpened(di),S("opened")}),e(16,Xa=function(di){hi.onClosed&&hi.onClosed(di),S("closed")})},we=function(){var Ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};bi&&(e(14,Ks=Ue.onClose||Ks),e(16,Xa=Ue.onClosed||Xa),e(2,bi=null),qe())},He=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},qe=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};Ai(L,{open:Ic,close:we});var ut=!1;return Hu(function(){ut&&we()}),Wc(function(){e(47,ut=!0)}),t.$$set=function(Ue){"isTabbable"in Ue&&e(22,G=Ue.isTabbable),"show"in Ue&&e(23,z=Ue.show),"id"in Ue&&e(24,q=Ue.id),"key"in Ue&&e(25,L=Ue.key),"ariaLabel"in Ue&&e(26,Z=Ue.ariaLabel),"ariaLabelledBy"in Ue&&e(27,he=Ue.ariaLabelledBy),"closeButton"in Ue&&e(28,F=Ue.closeButton),"closeOnEsc"in Ue&&e(29,Y=Ue.closeOnEsc),"closeOnOuterClick"in Ue&&e(30,oe=Ue.closeOnOuterClick),"styleBg"in Ue&&e(31,Fe=Ue.styleBg),"styleWindowWrap"in Ue&&e(32,tt=Ue.styleWindowWrap),"styleWindow"in Ue&&e(33,ot=Ue.styleWindow),"styleContent"in Ue&&e(34,ne=Ue.styleContent),"styleCloseButton"in Ue&&e(35,Ie=Ue.styleCloseButton),"classBg"in Ue&&e(36,Le=Ue.classBg),"classWindowWrap"in Ue&&e(37,At=Ue.classWindowWrap),"classWindow"in Ue&&e(38,ci=Ue.classWindow),"classContent"in Ue&&e(39,Fi=Ue.classContent),"classCloseButton"in Ue&&e(40,Nr=Ue.classCloseButton),"unstyled"in Ue&&e(0,wr=Ue.unstyled),"setContext"in Ue&&e(41,Ai=Ue.setContext),"transitionBg"in Ue&&e(42,jo=Ue.transitionBg),"transitionBgProps"in Ue&&e(43,xt=Ue.transitionBgProps),"transitionWindow"in Ue&&e(44,Ni=Ue.transitionWindow),"transitionWindowProps"in Ue&&e(45,xo=Ue.transitionWindowProps),"disableFocusTrap"in Ue&&e(46,gt=Ue.disableFocusTrap),"$$scope"in Ue&&e(48,C=Ue.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&ut&&(qr(z)?Ic(z):we())},[wr,ai,bi,i,r,o,a,l,c,u,d,h,f,vr,Ks,qa,Xa,qr,we,function(Ue){if(ai.closeOnEsc&&bi&&"Escape"===Ue.key&&(Ue.preventDefault(),we()),bi&&"Tab"===Ue.key&&!ai.disableFocusTrap){var Dn=o.querySelectorAll("*"),ii=Array.from(Dn).filter(ai.isTabbable).sort(function(di,kr){return di.tabIndex-kr.tabIndex}),hi=ii.indexOf(document.activeElement);-1===hi&&Ue.shiftKey&&(hi=0),hi+=ii.length+(Ue.shiftKey?-1:1),ii[hi%=ii.length].focus(),Ue.preventDefault()}},function(Ue){!ai.closeOnOuterClick||Ue.target!==i&&Ue.target!==r||(v=Ue.target)},function(Ue){ai.closeOnOuterClick&&Ue.target===v&&(Ue.preventDefault(),we())},G,z,q,L,Z,he,F,Y,oe,Fe,tt,ot,ne,Ie,Le,At,ci,Fi,Nr,Ai,jo,xt,Ni,xo,gt,ut,C,_,function(Ue){Vi[Ue?"unshift":"push"](function(){e(5,o=Ue)})},function(Ue){Vi[Ue?"unshift":"push"](function(){e(4,r=Ue)})},function(Ue){Vi[Ue?"unshift":"push"](function(){e(3,i=Ue)})}]}var Jo,ro,Gu,Xd,Wu,qc,CQ=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,R7e,L7e,ys,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},O7e,[-1,-1,-1]),r}return Se(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Jo||(Jo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(ro||(ro={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Gu||(Gu={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Xd||(Xd={})),function(t){t.key="key",t.value="value"}(Wu||(Wu={})),function(t){t.asc="asc",t.desc="desc"}(qc||(qc={}));var wm=[{start:0,end:100}],Cm={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},$7e=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),B7e=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),kQ=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),_F="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",xF="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",V7e="NO",wF="SELF",CF="NEXT_INSIDE",H7e=(ql(lF={},qc.asc,"ascending"),ql(lF,qc.desc,"descending"),lF),z7e=0;function fb(){return++z7e}function Uf(t){return(Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function oo(t){return Array.isArray(t)}function Mo(t){return null!==t&&"object"===Uf(t)&&t.constructor===Object}function SQ(t){return!(!t||"object"!==Uf(t))&&"add"===t.op}function DQ(t){return!(!t||"object"!==Uf(t))&&"remove"===t.op}function kF(t){return!(!t||"object"!==Uf(t))&&"replace"===t.op}function SF(t){return!(!t||"object"!==Uf(t))&&"copy"===t.op}function Mv(t){return!(!t||"object"!==Uf(t))&&"move"===t.op}function DF(t){return(DF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function U7e(t,n){return t===n}function TQ(t){return t.slice(0,t.length-1)}function EQ(t){return"object"===DF(t)&&null!==t}function pb(t){return(pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function AQ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function G7e(t,n,e){return r=function(o,s){if("object"!==pb(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==pb(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===pb(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function TF(t){if(oo(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Mo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=qu(t?t[r]:void 0,n.slice(1),e,i);if(Mo(t)||oo(t))return EF(t,r,o);if(i){var s=W7e.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var W7e=/^\d+$/;function MQ(t,n,e){if(0===n.length)return e(t);if(!EQ(t))throw new Error("Path doesn't exist");var i=n[0];return EF(t,i,MQ(t[i],n.slice(1),e))}function AF(t,n){if(0===n.length)return t;if(!EQ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=TF(t);return oo(i)&&i.splice(parseInt(e),1),Mo(i)&&delete i[e],i}return t}var r=n[0];return EF(t,r,AF(t[r],n.slice(1)))}function MF(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return MQ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=TF(o);return s.splice(parseInt(r),0,e),s})}function Xc(t,n){return void 0!==t&&(0===n.length||null!==t&&Xc(t[n[0]],n.slice(1)))}function Xu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function ln(t){return t.map(IQ).join("")}function IQ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function IF(t,n){return t+IQ(n)}function Iv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function Yu(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:U7e;if(p.length=0?G=function(){var z="",U=!0;"-"==t[s]&&(z+=h()),z+="0"==t[s]?h():m(),"."==t[s]&&(z+=h()+m(),U=!1),"e"!=t[s]&&"E"!=t[s]||(z+=h(),"+"!=t[s]&&"-"!=t[s]||(z+=h()),z+=m(),U=!1);var q=+z;return a&&U&&(q>Number.MAX_SAFE_INTEGER||q="a"&&G<="f"?$+=G.charCodeAt()-n9e+10:G>="0"&&G<="9"?$+=+G:C()}return String.fromCharCode($)}function m(){for(var M="";t[s]>="0"&&t[s]<="9";)M+=h();if(M.length)return M;S(),_()}function g(M,$){v(M,$,y())}function v(M,$,G){i[M]=i[M]||{},i[M][$]=G}function y(){return{line:r,column:o,pos:s}}function _(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function C(){f(),_()}function S(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},O2.stringify=function(t,n,e){if(j2(t)){var i,r,o=0,s="object"==bn(e)?e.space:e;switch(bn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var r9e=/"|\\/g,o9e=/[\b]/g,s9e=/\f/g,a9e=/\n/g,l9e=/\r/g,c9e=/\t/g;function P2(t){return'"'+(t=t.replace(r9e,"\\$&").replace(s9e,"\\f").replace(o9e,"\\b").replace(a9e,"\\n").replace(l9e,"\\r").replace(c9e,"\\t"))+'"'}var u9e=/~/g,d9e=/\//g;function OF(t){return t.replace(u9e,"~0").replace(d9e,"~1")}function jF(t){return(jF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function PF(t){var n="function"==typeof Map?new Map:void 0;return PF=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return LF(e,arguments,vb(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),gb(r,e)},PF(t)}function LF(t,n,e){return(LF=RQ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&gb(a,o.prototype),a}).apply(null,arguments)}function RQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gb(t,n){return(gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function vb(t){return(vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var Gf=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&gb(l,c)}(a,PF(Error));var n,e,i,s=(n=a,e=RQ(),function(){var l,c=vb(n);if(e){var u=vb(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function h9e(t,n){if(n&&("object"===jF(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function L2(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function R2(t){return t>=48&&t<=57}function f9e(t){return t>=32&&t<=1114111}var p9e=/^[,:[\]{}()\n]$/;function $Q(t){return m9e.test(t)||t&&B2(t.charCodeAt(0))}var m9e=/^[[{\w-]$/;function g9e(t){return 10===t||13===t||9===t||8===t||12===t}function $2(t){return 32===t||10===t||9===t||13===t}function v9e(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function B2(t){return BQ(t)||RF(t)}function BQ(t){return 34===t||8220===t||8221===t}function RF(t){return 39===t||8216===t||8217===t||96===t||180===t}function yb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function km(t,n){var e=t.length;if(!$2(t.charCodeAt(e-1)))return t+n;for(;$2(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function y9e(t,n,e){return t.substring(0,n)+t.substring(n+e)}var b9e={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},_9e={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Yd(t){var n=0,e="";r()||function(){throw new Gf("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),$Q(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=km(e,",")),function(){for(var _=!0,C=!0;C;)_?_=!1:l(44)||(e=km(e,",")),C=r();C||(e=yb(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=yb(e,",")),n>=t.length)return e;function r(){o();var _=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var C=!0;n=49&&S<=57)for(n++;R2(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(C);R2(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(C);R2(t.charCodeAt(n));)n++;return n>C&&(e+=t.slice(C,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),_}function o(){var _=n,C=s();do{(C=a())&&(C=s())}while(C);return n>_}function s(){for(var _,C="";(_=$2(t.charCodeAt(n)))||v9e(t.charCodeAt(n));)C+=_?t[n]:" ",n++;return C.length>0&&(e+=C,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nC){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;$2(t.charCodeAt(n-1))&&n>0;)n--;var S=t.slice(C,n);return e+=JSON.stringify(S),!0}}function f(_){if(!R2(t.charCodeAt(n))){var C=t.slice(_,n);throw new Gf("Invalid number '".concat(C,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(_){throw new Gf("Invalid character "+JSON.stringify(_),n)}function m(){throw new Gf("Object key expected",n)}function g(){throw new Gf("Object value expected",n)}function v(){throw new Gf("Colon expected",n)}function y(_){for(var C=_+2;/\w/.test(t[C]);)C++;var S=t.slice(_,C);throw new Gf('Invalid unicode character "'.concat(S,'"'),n)}!function(){throw new Gf("Unexpected character "+JSON.stringify(t[n]),n)}()}function x9e(t,n){return"*"===t[n]&&"/"===t[n+1]}function Ws(t){return parseInt(t,10)}function $F(t){return w9e.test(t)}var w9e=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Io(t){return"object"===bn(t)&&null!==t&&t.constructor===Object}function Ho(t){return"object"===bn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function BF(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return BF(Number(t));try{var n=t&&t.valueOf();if(n!==t)return BF(n)}catch{return!1}return!1}function VQ(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function VF(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return bn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Io(t))return"object";var e=n.stringify(t);return e&&$F(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var C9e=/^https?:\/\/\S+$/;function V2(t){return"string"==typeof t&&C9e.test(t)}function Fv(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&($F(e)?n.parse(e):t)}var k9e=/^-?[0-9]+$/,zQ="object"==(typeof global>"u"?"undefined":bn(global))&&global&&global.Object===Object&&global,S9e="object"==(typeof self>"u"?"undefined":bn(self))&&self&&self.Object===Object&&self,Ca=zQ||S9e||Function("return this")(),ll=Ca.Symbol,UQ=Object.prototype,D9e=UQ.hasOwnProperty,T9e=UQ.toString,bb=ll?ll.toStringTag:void 0,E9e=Object.prototype.toString,GQ=ll?ll.toStringTag:void 0;function Ml(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":GQ&&GQ in Object(t)?function(n){var e=D9e.call(n,bb),i=n[bb];try{n[bb]=void 0;var r=!0}catch{}var o=T9e.call(n);return r&&(e?n[bb]=i:delete n[bb]),o}(t):E9e.call(t)}function ls(t){return null!=t&&"object"==bn(t)}function Yl(t){return"symbol"==bn(t)||ls(t)&&"[object Symbol]"==Ml(t)}function WQ(t){return"number"==typeof t?t:Yl(t)?NaN:+t}function Ko(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var lZ=aZ(nZ),K9e=/\{\n\/\* \[wrapped with (.+)\] \*/,Q9e=/,? & /,Z9e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function q2(t){return function(){return t}}var eVe=function(){try{var t=Dm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),X2=eVe,tVe=X2?function(t,n){return X2(t,"toString",{configurable:!0,enumerable:!1,value:q2(n),writable:!0})}:cl,UF=aZ(tVe);function Jc(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var nVe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function uZ(t,n,e){var o,i=n+"";return UF(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(Z9e,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return Jc(nVe,function(s){var a="_."+s[0];o&s[1]&&!J2(r,a)&&r.push(a)}),r.sort()}((o=i.match(K9e))?o[1].split(Q9e):[],e)))}function dZ(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return zF(t)&&lZ(h,d),h.placeholder=i,uZ(h,t,n)}function Pv(t){return t.placeholder}var iVe=/^(?:0|[1-9]\d*)$/;function Zh(t,n){var e=bn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&iVe.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Il(t){return null!=t&&Cb(t.length)&&!Kd(t)}function Fl(t,n,e){if(!zo(e))return!1;var i=bn(n);return!!("number"==i?Il(e)&&Zh(n,e.length):"string"==i&&n in e)&&Kc(e[n],t)}function Lv(t){return dr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&Fl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,yZ=vZ&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,bZ=yZ&&yZ.exports===vZ?Ca.Buffer:void 0,nf=(bZ?bZ.isBuffer:void 0)||Q2,Uo={};function Cc(t){return function(n){return t(n)}}Uo["[object Float32Array]"]=Uo["[object Float64Array]"]=Uo["[object Int8Array]"]=Uo["[object Int16Array]"]=Uo["[object Int32Array]"]=Uo["[object Uint8Array]"]=Uo["[object Uint8ClampedArray]"]=Uo["[object Uint16Array]"]=Uo["[object Uint32Array]"]=!0,Uo["[object Arguments]"]=Uo["[object Array]"]=Uo["[object ArrayBuffer]"]=Uo["[object Boolean]"]=Uo["[object DataView]"]=Uo["[object Date]"]=Uo["[object Error]"]=Uo["[object Function]"]=Uo["[object Map]"]=Uo["[object Number]"]=Uo["[object Object]"]=Uo["[object RegExp]"]=Uo["[object Set]"]=Uo["[object String]"]=Uo["[object WeakMap]"]=!1;var _Z="object"==(typeof exports>"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,Sb=_Z&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,qF=Sb&&Sb.exports===_Z&&zQ.process,Qc=function(){try{return Sb&&Sb.require&&Sb.require("util").types||qF&&qF.binding&&qF.binding("util")}catch{}}(),xZ=Qc&&Qc.isTypedArray,Tm=xZ?Cc(xZ):function(t){return ls(t)&&Cb(t.length)&&!!Uo[Ml(t)]},hVe=Object.prototype.hasOwnProperty;function wZ(t,n){var e=Pi(t),i=!e&&qf(t),r=!e&&!i&&nf(t),o=!e&&!i&&!r&&Tm(t),s=e||i||r||o,a=s?WF(t.length,String):[],l=a.length;for(var c in t)!n&&!hVe.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zh(c,l))||a.push(c);return a}function CZ(t,n){return function(e){return t(n(e))}}var fVe=CZ(Object.keys,Object),pVe=Object.prototype.hasOwnProperty;function XF(t){if(!kb(t))return fVe(t);var n=[];for(var e in Object(t))pVe.call(t,e)&&"constructor"!=e&&n.push(e);return n}function qs(t){return Il(t)?wZ(t):XF(t)}var mVe=Object.prototype.hasOwnProperty,gVe=Lv(function(t,n){if(kb(n)||Il(n))Qd(n,qs(n),t);else for(var e in n)mVe.call(n,e)&&wb(t,e,n[e])}),kZ=gVe,vVe=Object.prototype.hasOwnProperty;function Nl(t){return Il(t)?wZ(t,!0):function yVe(t){if(!zo(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=kb(t),e=[];for(var i in t)("constructor"!=i||!n&&vVe.call(t,i))&&e.push(i);return e}(t)}var bVe=Lv(function(t,n){Qd(n,Nl(n),t)}),Z2=bVe,_Ve=Lv(function(t,n,e,i){Qd(n,Nl(n),t,i)}),Rv=_Ve,xVe=Lv(function(t,n,e,i){Qd(n,qs(n),t,i)}),SZ=xVe,wVe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CVe=/^\w*$/;function YF(t,n){if(Pi(t))return!1;var e=bn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Yl(t))||CVe.test(t)||!wVe.test(t)||null!=n&&t in Object(n)}var Db=Dm(Object,"create"),kVe=Object.prototype.hasOwnProperty,SVe=Object.prototype.hasOwnProperty;function Em(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},rf.prototype.set=function(t,n){var e=this.__data__,i=ek(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var Tb=Dm(Ca,"Map");function tk(t,n){var i,r,e=t.__data__;return("string"==(r=bn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function sf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?$a(a,n-1,e,i,r):Yf(r,a):i||(r[r.length]=a)}return r}function KF(t){return null!=t&&t.length?$a(t,1):[]}function af(t){return UF(pZ(t,void 0,KF),t+"")}var EZ=af(JF),ik=CZ(Object.getPrototypeOf,Object),AZ=Function.prototype.toString,NVe=Object.prototype.hasOwnProperty,OVe=AZ.call(Object);function Bv(t){if(!ls(t)||"[object Object]"!=Ml(t))return!1;var n=ik(t);if(null===n)return!0;var e=NVe.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&AZ.call(e)==OVe}function rk(t){if(!ls(t))return!1;var n=Ml(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Bv(t)}var jVe=dr(function(t,n){try{return wc(t,void 0,n)}catch(e){return rk(e)?e:new Error(e)}}),QF=jVe;function ZF(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Ui(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var eN=dr(function(t,n,e){var i=1;if(e.length){var r=Wf(e,Pv(eN));i|=32}return ef(t,i,n,e,r)});eN.placeholder={};var tN=eN,PVe=af(function(t,n){return Jc(n,function(e){e=Zd(e),tf(t,e,tN(t[e],t))}),t}),MZ=PVe,nN=dr(function(t,n,e){var i=3;if(e.length){var r=Wf(e,Pv(nN));i|=32}return ef(n,i,t,e,r)});nN.placeholder={};var IZ=nN;function Zc(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:Zc(t,n,e)}var LVe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Vv(t){return LVe.test(t)}var iN="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rN="\\ud83c[\\udffb-\\udfff]",FZ="[^\\ud800-\\udfff]",NZ="(?:\\ud83c[\\udde6-\\uddff]){2}",OZ="[\\ud800-\\udbff][\\udc00-\\udfff]",jZ="(?:"+iN+"|"+rN+")?",$Ve="[\\ufe0e\\ufe0f]?"+jZ+"(?:\\u200d(?:"+[FZ,NZ,OZ].join("|")+")[\\ufe0e\\ufe0f]?"+jZ+")*",BVe="(?:"+[FZ+iN+"?",iN,NZ,OZ,"[\\ud800-\\udfff]"].join("|")+")",VVe=RegExp(rN+"(?="+rN+")|"+BVe+$Ve,"g");function Ku(t){return Vv(t)?function(n){return n.match(VVe)||[]}(t):function(n){return n.split("")}(t)}function PZ(t){return function(n){var e=Vv(n=Jr(n))?Ku(n):void 0,i=e?e[0]:n.charAt(0),r=e?Jf(e,1).join(""):n.slice(1);return i[t]()+r}}var ok=PZ("toUpperCase");function oN(t){return ok(Jr(t).toLowerCase())}function sN(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function JZ(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=xc(e))==e?e:0),void 0!==n&&(n=(n=xc(n))==n?n:0),Mm(xc(t),n,e)}function Qu(t){var n=this.__data__=new rf(t);this.size=n.size}function KZ(t,n){return t&&Qd(n,qs(n),t)}Qu.prototype.clear=function(){this.__data__=new rf,this.size=0},Qu.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Qu.prototype.get=function(t){return this.__data__.get(t)},Qu.prototype.has=function(t){return this.__data__.has(t)},Qu.prototype.set=function(t,n){var e=this.__data__;if(e instanceof rf){var i=e.__data__;if(!Tb||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new sf(i)}return e.set(t,n),this.size=e.size,this};var QZ="object"==(typeof exports>"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,ZZ=QZ&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,eee=ZZ&&ZZ.exports===QZ?Ca.Buffer:void 0,tee=eee?eee.allocUnsafe:void 0;function nee(t,n){if(n)return t.slice();var e=t.length,i=tee?tee(e):new t.constructor(e);return t.copy(i),i}function Kf(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Fm:void 0;for(o.set(t,n),o.set(n,t);++d=n||C<0||d&&_-c>=o}function g(){var C,S,_=Mb();if(m(_))return v(_);a=setTimeout(g,(S=n-((C=_)-l),d?CHe(S,o-(C-c)):S))}function v(_){return a=void 0,h&&i?f(_):(i=r=void 0,s)}function y(){var _=Mb(),C=m(_);if(i=arguments,r=this,l=_,C){if(void 0===a)return function p(_){return c=_,a=setTimeout(g,n),u?f(_):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=xc(n)||0,zo(e)&&(u=!!e.leading,o=(d="maxWait"in e)?wHe(xc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Mb())},y}function Nee(t,n){return null==t||t!=t?n:t}var Oee=Object.prototype,kHe=Oee.hasOwnProperty,SHe=dr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&Fl(n[0],n[1],r)&&(i=1);++e=200&&(o=Eb,s=!1,n=new Fm(n));e:for(;++r=0&&t.slice(e,r)==n}function Qee(t){return function(n){var i,r,o,e=eh(n);return"[object Map]"==e?CN(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return Ko(r,function(o){return[o,i[o]]})}(n,t(n))}}var vk=Qee(qs),yk=Qee(Nl),NHe=aN({"&":"&","<":"<",">":">",'"':""","'":"'"}),Zee=/[&<>"']/g,OHe=RegExp(Zee.source);function PN(t){return(t=Jr(t))&&OHe.test(t)?t.replace(Zee,NHe):t}var ete=/[\\^$.*+?()[\]{}|]/g,jHe=RegExp(ete.source);function tte(t){return(t=Jr(t))&&jHe.test(t)?t.replace(ete,"\\$&"):t}function nte(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Ui(l))<0&&(l+=c),l=a>l?0:LN(l);a-1?r[o?n[s]:s]:void 0}}var LHe=Math.max;function RN(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Ui(e);return r<0&&(r=LHe(i+r,0)),Y2(t,Li(n),r)}var lte=ate(RN);function cte(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function ute(t,n){return cte(t,Li(n),th)}var RHe=Math.max,$He=Math.min;function $N(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Ui(e),r=e<0?RHe(i+r,0):$He(r,i-1)),Y2(t,Li(n),r,!0)}var dte=ate($N);function hte(t,n){return cte(t,Li(n),jN)}function sa(t){return t&&t.length?t[0]:void 0}function fte(t,n){var e=-1,i=Il(t)?Array(t.length):[];return Qf(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function Wv(t,n){return(Pi(t)?Ko:fte)(t,Li(n))}function pte(t,n){return $a(Wv(t,n),1)}function mte(t,n){return $a(Wv(t,n),1/0)}function gte(t,n,e){return e=void 0===e?1:Ui(e),$a(Wv(t,n),e)}function vte(t){return null!=t&&t.length?$a(t,1/0):[]}function yte(t,n){return null!=t&&t.length?$a(t,n=void 0===n?1:Ui(n)):[]}function bte(t){return ef(t,512)}var _te=uN("floor");function xte(t){return af(function(n){var e=n.length,i=e,r=Yc.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==W2(o))var s=new Yc([],!0)}for(i=s?i:e;++in}function _k(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=xc(n),e=xc(e)),t(n,e)}}var Ite=_k(BN),Fte=_k(function(t,n){return t>=n}),HHe=Object.prototype.hasOwnProperty;function zHe(t,n){return null!=t&&HHe.call(t,n)}function Nte(t,n){return null!=t&&Cee(t,n,zHe)}var UHe=Math.max,GHe=Math.min;function Ote(t,n,e){return n=Jd(n),void 0===e?(e=n,n=0):e=Jd(e),(i=t=xc(t))>=GHe(r=n,o=e)&&i-1:!!r&&jv(t,n,e)>-1}var qHe=Math.max;function Pte(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Ui(e);return r<0&&(r=qHe(i+r,0)),jv(t,n,r)}function Xi(t){return null!=t&&t.length?Zc(t,0,-1):[]}var XHe=Math.min;function HN(t,n,e){for(var i=e?ON:J2,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=Ko(u,Cc(n))),l=XHe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Fm(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function cne(t){return void 0===t}function une(t){return ls(t)&&"[object WeakMap]"==eh(t)}function dne(t){return ls(t)&&"[object WeakSet]"==Ml(t)}function hne(t){return Li("function"==typeof t?t:eu(t,1))}var oze=Array.prototype.join;function fne(t,n){return null==t?"":oze.call(t,n)}var sze=zv(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),pne=sze,aze=dk(function(t,n,e){tf(t,e,n)}),mne=aze,lze=Math.max,cze=Math.min;function gne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Ui(e))<0?lze(i+r,0):cze(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):Y2(t,cZ,r,!0)}var uze=zv(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),vne=uze,yne=PZ("toLowerCase");function WN(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function One(t,n){var e=t.length;if(e)return Zh(n+=n<0?e:0,e)?t[n]:void 0}function jne(t,n){return t&&t.length?One(t,Ui(n)):void 0}function Pne(t){return t=Ui(t),dr(function(n){return One(n,t)})}function ZN(t,n){return null==(t=Ute(t,n=Xf(n,t)))||delete t[Zd(Ln(n))]}function pze(t){return Bv(t)?void 0:t}var mze=af(function(t,n){var e={};if(null==t)return e;var i=!1;n=Ko(n,function(o){return o=Xf(o,t),i||(i=o.length>1),o}),Qd(t,pN(t),e),i&&(e=eu(e,7,pze));for(var r=n.length;r--;)ZN(e,n[r]);return e}),Lne=mze;function jb(t,n,e,i){if(!zo(t))return t;for(var r=-1,o=(n=Xf(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(fte(t,function(o,s,a){return{criteria:Ko(n,function(c){return c(o)}),index:++i,value:o}}))}function zne(t,n,e,i){return null==t?[]:(Pi(n)||(n=null==n?[]:[n]),Pi(e=i?void 0:e)||(e=null==e?[]:[e]),Hne(t,n,e))}function tO(t){return af(function(n){return n=Ko(n,Cc(Li)),dr(function(e){var i=this;return t(n,function(r){return wc(r,i,e)})})})}var Une=tO(Ko),vze=Math.min,yze=dr(function(t,n){var e=(n=1==n.length&&Pi(n[0])?Ko(n[0],Cc(Li)):Ko($a(n,1),Cc(Li))).length;return dr(function(i){for(var r=-1,o=vze(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=bze(n/2))&&(t+=t)}while(n);return e}var _ze=TN("length"),iO="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rO="\\ud83c[\\udffb-\\udfff]",Xne="[^\\ud800-\\udfff]",Yne="(?:\\ud83c[\\udde6-\\uddff]){2}",Jne="[\\ud800-\\udbff][\\udc00-\\udfff]",Kne="(?:"+iO+"|"+rO+")?",wze="[\\ufe0e\\ufe0f]?"+Kne+"(?:\\u200d(?:"+[Xne,Yne,Jne].join("|")+")[\\ufe0e\\ufe0f]?"+Kne+")*",Cze="(?:"+[Xne+iO+"?",iO,Yne,Jne,"[\\ud800-\\udfff]"].join("|")+")",Qne=RegExp(rO+"(?="+rO+")|"+Cze+wze,"g");function Jv(t){return Vv(t)?function(n){for(var e=Qne.lastIndex=0;Qne.test(n);)++e;return e}(t):_ze(t)}var kze=Math.ceil;function Ck(t,n){var e=(n=void 0===n?" ":_c(n)).length;if(e<2)return e?nO(n,t):n;var i=nO(n,kze(t/Jv(n)));return Vv(n)?Jf(Ku(i),0,t).join(""):i.slice(0,t)}var Sze=Math.ceil,Dze=Math.floor;function Zne(t,n,e){t=Jr(t);var i=(n=Ui(n))?Jv(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return Ck(Dze(r),e)+t+Ck(Sze(r),e)}function eie(t,n,e){t=Jr(t);var i=(n=Ui(n))?Jv(t):0;return n&&i-1;)a!==t&&sie.call(a,l,1),sie.call(t,l,1);return t}function dO(t,n){return t&&t.length&&n&&n.length?uO(t,n):t}var aie=dr(dO);function lie(t,n,e){return t&&t.length&&n&&n.length?uO(t,n,Li(e)):t}function cie(t,n,e){return t&&t.length&&n&&n.length?uO(t,n,void 0,e):t}var Fze=Array.prototype.splice;function uie(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;Zh(r)?Fze.call(t,r,1):ZN(t,r)}}return t}var Nze=af(function(t,n){var e=null==t?0:t.length,i=JF(t,n);return uie(t,Ko(n,function(r){return Zh(r,e)?+r:r}).sort(Vne)),i}),die=Nze,Oze=Math.floor,jze=Math.random;function hO(t,n){return t+Oze(jze()*(n-t+1))}var Pze=parseFloat,Lze=Math.min,Rze=Math.random;function hie(t,n,e){if(e&&"boolean"!=typeof e&&Fl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Jd(t),void 0===n?(n=t,t=0):n=Jd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=Rze();return Lze(t+r*(n-t+Pze("1e-"+((r+"").length-1))),n)}return hO(t,n)}var $ze=Math.ceil,Bze=Math.max;function fie(t){return function(n,e,i){return i&&"number"!=typeof i&&Fl(n,e,i)&&(e=i=void 0),n=Jd(n),void 0===e?(e=n,n=0):e=Jd(e),function(r,o,s,a){for(var l=-1,c=Bze($ze((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&Fl(t,n[0],n[1])?n=[]:e>2&&Fl(n[0],n[1],n[2])&&(n=[n[0]]),Hne(t,$a(n,1),[])}),pO=Kze,Qze=Math.floor,Zze=Math.min;function mO(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=Yl(n),c=void 0===n;r>>1,s=t[o];null!==s&&!Yl(s)&&(e?s<=n:s>>0)?(t=Jr(t))&&("string"==typeof n||null!=n&&!xk(n))&&!(n=_c(n))&&Vv(t)?Jf(Ku(t),0,e):t.split(n,e):[]}var eUe=Math.max;function Wie(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:eUe(Ui(n),0),dr(function(e){var i=e[n],r=Jf(e,0,n);return i&&Yf(r,i),wc(t,this,r)})}var tUe=zv(function(t,n,e){return t+(e?" ":"")+ok(n)}),qie=tUe;function Xie(t,n,e){return t=Jr(t),e=null==e?0:Mm(Ui(e),0,t.length),n=_c(n),t.slice(e,e+n.length)==n}function Yie(){return{}}function Jie(){return""}function Kie(){return!0}var Qie=H2(function(t,n){return t-n},0);function Zie(t){return t&&t.length?XN(t,cl):0}function ere(t,n){return t&&t.length?XN(t,Li(n)):0}function tre(t){var n=null==t?0:t.length;return n?Zc(t,1,n):[]}function nre(t,n,e){return t&&t.length?Zc(t,0,(n=e||void 0===n?1:Ui(n))<0?0:n):[]}function ire(t,n,e){var i=null==t?0:t.length;return i?Zc(t,(n=i-(n=e||void 0===n?1:Ui(n)))<0?0:n,i):[]}function rre(t,n){return t&&t.length?mk(t,Li(n),!1,!0):[]}function ore(t,n){return t&&t.length?mk(t,Li(n)):[]}function sre(t,n){return n(t),t}var are=Object.prototype,nUe=are.hasOwnProperty;function lre(t,n,e,i){return void 0===t||Kc(t,are[e])&&!nUe.call(i,e)?n:t}var iUe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function rUe(t){return"\\"+iUe[t]}var cre=/<%=([\s\S]+?)%>/g,Tk={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:cre,variable:"",imports:{_:{escape:PN}}},oUe=/\b__p \+= '';/g,sUe=/\b(__p \+=) '' \+/g,aUe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lUe=/[()=,{}\[\]\/\s]/,cUe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ek=/($^)/,uUe=/['\n\r\u2028\u2029\\]/g,ure=Object.prototype.hasOwnProperty;function dre(t,n,e){var i=Tk.imports._.templateSettings||Tk;e&&Fl(t,n,e)&&(n=void 0),t=Jr(t),n=Rv({},n,i,lre);var r,o,s=Rv({},n.imports,i.imports,lre),a=qs(s),l=VN(s,a),c=0,u=n.interpolate||Ek,d="__p += '",h=RegExp((n.escape||Ek).source+"|"+u.source+"|"+(u===cre?cUe:Ek).source+"|"+(n.evaluate||Ek).source+"|$","g"),f=ure.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,_,C,S){return y||(y=_),d+=t.slice(c,S).replace(uUe,rUe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),C&&(o=!0,d+="';\n"+C+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=S+g.length,g}),d+="';\n";var p=ure.call(n,"variable")&&n.variable;if(p){if(lUe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(oUe,""):d).replace(sUe,"$1").replace(aUe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=QF(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,rk(m))throw m;return m}function gO(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return zo(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),Gv(t,n,{leading:i,maxWait:n,trailing:r})}function Kv(t,n){return n(t)}var dUe=Math.min;function vO(t,n){if((t=Ui(t))<1||t>9007199254740991)return[];var e=4294967295,i=dUe(t,4294967295);t-=4294967295;for(var r=WF(i,n=nh(n));++e-1;);return e}function bre(t,n){for(var e=-1,i=t.length;++e-1;);return e}function _re(t,n,e){if((t=Jr(t))&&(e||void 0===n))return KQ(t);if(!t||!(n=_c(n)))return t;var i=Ku(t),r=Ku(n);return Jf(i,bre(i,r),yre(i,r)+1).join("")}function xre(t,n,e){if((t=Jr(t))&&(e||void 0===n))return t.slice(0,JQ(t)+1);if(!t||!(n=_c(n)))return t;var i=Ku(t);return Jf(i,0,yre(i,Ku(n))+1).join("")}var hUe=/^\s+/;function wre(t,n,e){if((t=Jr(t))&&(e||void 0===n))return t.replace(hUe,"");if(!t||!(n=_c(n)))return t;var i=Ku(t);return Jf(i,bre(i,Ku(n))).join("")}var fUe=/\w*$/;function Cre(t,n){var e=30,i="...";if(zo(n)){var r="separator"in n?n.separator:r;e="length"in n?Ui(n.length):e,i="omission"in n?_c(n.omission):i}var o=(t=Jr(t)).length;if(Vv(t)){var s=Ku(t);o=s.length}if(e>=o)return t;var a=e-Jv(i);if(a<1)return i;var l=s?Jf(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),xk(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Jr(fUe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(_c(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function kre(t){return GF(t,1)}var pUe=aN({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Sre=/&(?:amp|lt|gt|quot|#39);/g,mUe=RegExp(Sre.source);function Dre(t){return(t=Jr(t))&&mUe.test(t)?t.replace(Sre,pUe):t}var gUe=Uv&&1/lk(new Uv([,-0]))[1]==1/0?function(t){return new Uv(t)}:go,vUe=gUe;function Zf(t,n,e){var i=-1,r=J2,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=ON;else if(o>=200){var c=n?null:vUe(t);if(c)return lk(c);s=!1,r=Eb,l=new Fm}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Tr&&Zh(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:Kv,args:[r],thisArg:void 0}),new Yc(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),Vre=CUe;function Hre(){return dN(this)}function zre(){var t=this.__wrapped__;if(t instanceof Tr){var n=t;return this.__actions__.length&&(n=new Tr(this)),(n=n.reverse()).__actions__.push({func:Kv,args:[kk],thisArg:void 0}),new Yc(n,this.__chain__)}return this.thru(kk)}function _O(t,n,e){var i=t.length;if(i<2)return i?Zf(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,bO(t,e)}),Kre=SUe,Gn={chunk:YZ,compact:mee,concat:gee,difference:Vee,differenceBy:Hee,differenceWith:zee,drop:Gee,dropRight:Wee,dropRightWhile:qee,dropWhile:Xee,fill:rte,findIndex:RN,findLastIndex:$N,first:sa,flatten:KF,flattenDeep:vte,flattenDepth:yte,fromPairs:Ete,head:sa,indexOf:Pte,initial:Xi,intersection:Lte,intersectionBy:Rte,intersectionWith:$te,join:fne,last:Ln,lastIndexOf:gne,nth:jne,pull:aie,pullAll:dO,pullAllBy:lie,pullAllWith:cie,pullAt:die,remove:_ie,reverse:kk,slice:Nie,sortedIndex:Pie,sortedIndexBy:Lie,sortedIndexOf:Rie,sortedLastIndex:$ie,sortedLastIndexBy:Bie,sortedLastIndexOf:Vie,sortedUniq:zie,sortedUniqBy:Uie,tail:tre,take:nre,takeRight:ire,takeRightWhile:rre,takeWhile:ore,union:Tre,unionBy:Ere,unionWith:Are,uniq:Mre,uniqBy:Ire,uniqWith:Fre,unzip:Ak,unzipWith:bO,without:$re,xor:Ure,xorBy:Gre,xorWith:Wre,zip:qre,zipObject:Yre,zipObjectDeep:Jre,zipWith:Kre},vo={countBy:Iee,each:gk,eachRight:Fb,every:ite,filter:ste,find:lte,findLast:dte,flatMap:pte,flatMapDeep:mte,flatMapDepth:gte,forEach:gk,forEachRight:Fb,groupBy:qv,includes:jte,invokeMap:Wte,keyBy:mne,map:Wv,orderBy:zne,partition:lO,reduce:vie,reduceRight:yie,reject:bie,sample:Tie,sampleSize:Eie,shuffle:Iie,size:Fie,some:jie,sortBy:pO},DUe={now:Mb},_s={after:QQ,ary:GF,before:ZF,bind:tN,bindKey:IZ,curry:hk,curryRight:fk,debounce:Gv,defer:$ee,delay:Bee,flip:bte,memoize:$v,negate:Yv,once:Bne,overArgs:Gne,partial:sO,partialRight:iie,rearg:mie,rest:Cie,spread:Wie,throttle:gO,unary:kre,wrap:Bre},mi={castArray:qZ,clone:hee,cloneDeep:fee,cloneDeepWith:_N,cloneWith:pee,conformsTo:Eee,eq:Kc,gt:Ite,gte:Fte,isArguments:qf,isArray:Pi,isArrayBuffer:Xte,isArrayLike:Il,isArrayLikeObject:bs,isBoolean:Yte,isBuffer:nf,isDate:Kte,isElement:Qte,isEmpty:Hi,isEqual:or,isEqualWith:Zte,isError:rk,isFinite:ene,isFunction:Kd,isInteger:UN,isLength:Cb,isMap:yN,isMatch:tne,isMatchWith:nne,isNaN:ine,isNative:rne,isNil:one,isNull:sne,isNumber:GN,isObject:zo,isObjectLike:ls,isPlainObject:Bv,isRegExp:xk,isSafeInteger:lne,isSet:bN,isString:Nb,isSymbol:Yl,isTypedArray:Tm,isUndefined:cne,isWeakMap:une,isWeakSet:dne,lt:bne,lte:_ne,toArray:KN,toFinite:Jd,toInteger:Ui,toLength:LN,toNumber:xc,toPlainObject:FN,toSafeInteger:mre,toString:Jr},Ol={add:YQ,ceil:XZ,divide:Uee,floor:_te,max:kne,maxBy:Sne,mean:Tne,meanBy:Ene,min:Fne,minBy:Xv,multiply:Nne,round:Sie,subtract:Qie,sum:Zie,sumBy:ere},TUe=JZ,EUe=Ote,AUe=hie,Ii={assign:kZ,assignIn:Z2,assignInWith:Rv,assignWith:SZ,at:EZ,create:Fee,defaults:jee,defaultsDeep:Lee,entries:vk,entriesIn:yk,extend:Z2,extendWith:Rv,findKey:ute,findLastKey:hte,forIn:kte,forInRight:Ste,forOwn:Dte,forOwnRight:Tte,functions:Ate,functionsIn:Mte,get:nk,has:Nte,hasIn:uk,invert:Vte,invertBy:zte,invoke:Gte,keys:qs,keysIn:Nl,mapKeys:xne,mapValues:qN,merge:Ane,mergeWith:NN,omit:Lne,omitBy:$ne,pick:rie,pickBy:eO,result:kie,set:Aie,setWith:Mie,toPairs:vk,toPairsIn:yk,transform:vre,unset:Nre,update:jre,updateWith:Pre,values:Nm,valuesIn:Rre},ih={at:Vre,chain:dN,commit:xN,lodash:me,next:QN,plant:cO,reverse:zre,tap:sre,thru:Kv,toIterator:yO,toJSON:Om,value:Om,valueOf:Om,wrapperChain:Hre},Kr={camelCase:WZ,capitalize:oN,deburr:lN,endsWith:Kee,escape:PN,escapeRegExp:tte,kebabCase:pne,lowerCase:vne,lowerFirst:yne,pad:Zne,padEnd:eie,padStart:tie,parseInt:nie,repeat:xie,replace:wie,snakeCase:Oie,split:Gie,startCase:qie,startsWith:Xie,template:dre,templateSettings:Tk,toLower:fre,toUpper:gre,trim:_re,trimEnd:xre,trimStart:wre,truncate:Cre,unescape:Dre,upperCase:Lre,upperFirst:ok,words:cN},so={attempt:QF,bindAll:MZ,cond:See,conforms:Tee,constant:q2,defaultTo:Nee,flow:wte,flowRight:Cte,identity:cl,iteratee:hne,matches:wne,matchesProperty:Cne,method:Mne,methodOf:Ine,mixin:YN,noop:go,nthArg:Pne,over:Une,overEvery:Wne,overSome:qne,property:EN,propertyOf:oie,range:fO,rangeRight:pie,stubArray:sk,stubFalse:Q2,stubObject:Yie,stubString:Jie,stubTrue:Kie,times:vO,toPath:pre,uniqueId:ep},MUe=Math.max,IUe=Math.min,FUe=Math.min,NUe=Array.prototype,Qre=Object.prototype.hasOwnProperty,Zre=ll?ll.iterator:void 0,OUe=Math.max,eoe=Math.min,wO=function(t){return function(n,e,i){if(null==i){var r=zo(e),o=r&&qs(e),s=o&&o.length&&bk(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}(YN);me.after=_s.after,me.ary=_s.ary,me.assign=Ii.assign,me.assignIn=Ii.assignIn,me.assignInWith=Ii.assignInWith,me.assignWith=Ii.assignWith,me.at=Ii.at,me.before=_s.before,me.bind=_s.bind,me.bindAll=so.bindAll,me.bindKey=_s.bindKey,me.castArray=mi.castArray,me.chain=ih.chain,me.chunk=Gn.chunk,me.compact=Gn.compact,me.concat=Gn.concat,me.cond=so.cond,me.conforms=so.conforms,me.constant=so.constant,me.countBy=vo.countBy,me.create=Ii.create,me.curry=_s.curry,me.curryRight=_s.curryRight,me.debounce=_s.debounce,me.defaults=Ii.defaults,me.defaultsDeep=Ii.defaultsDeep,me.defer=_s.defer,me.delay=_s.delay,me.difference=Gn.difference,me.differenceBy=Gn.differenceBy,me.differenceWith=Gn.differenceWith,me.drop=Gn.drop,me.dropRight=Gn.dropRight,me.dropRightWhile=Gn.dropRightWhile,me.dropWhile=Gn.dropWhile,me.fill=Gn.fill,me.filter=vo.filter,me.flatMap=vo.flatMap,me.flatMapDeep=vo.flatMapDeep,me.flatMapDepth=vo.flatMapDepth,me.flatten=Gn.flatten,me.flattenDeep=Gn.flattenDeep,me.flattenDepth=Gn.flattenDepth,me.flip=_s.flip,me.flow=so.flow,me.flowRight=so.flowRight,me.fromPairs=Gn.fromPairs,me.functions=Ii.functions,me.functionsIn=Ii.functionsIn,me.groupBy=vo.groupBy,me.initial=Gn.initial,me.intersection=Gn.intersection,me.intersectionBy=Gn.intersectionBy,me.intersectionWith=Gn.intersectionWith,me.invert=Ii.invert,me.invertBy=Ii.invertBy,me.invokeMap=vo.invokeMap,me.iteratee=so.iteratee,me.keyBy=vo.keyBy,me.keys=qs,me.keysIn=Ii.keysIn,me.map=vo.map,me.mapKeys=Ii.mapKeys,me.mapValues=Ii.mapValues,me.matches=so.matches,me.matchesProperty=so.matchesProperty,me.memoize=_s.memoize,me.merge=Ii.merge,me.mergeWith=Ii.mergeWith,me.method=so.method,me.methodOf=so.methodOf,me.mixin=wO,me.negate=Yv,me.nthArg=so.nthArg,me.omit=Ii.omit,me.omitBy=Ii.omitBy,me.once=_s.once,me.orderBy=vo.orderBy,me.over=so.over,me.overArgs=_s.overArgs,me.overEvery=so.overEvery,me.overSome=so.overSome,me.partial=_s.partial,me.partialRight=_s.partialRight,me.partition=vo.partition,me.pick=Ii.pick,me.pickBy=Ii.pickBy,me.property=so.property,me.propertyOf=so.propertyOf,me.pull=Gn.pull,me.pullAll=Gn.pullAll,me.pullAllBy=Gn.pullAllBy,me.pullAllWith=Gn.pullAllWith,me.pullAt=Gn.pullAt,me.range=so.range,me.rangeRight=so.rangeRight,me.rearg=_s.rearg,me.reject=vo.reject,me.remove=Gn.remove,me.rest=_s.rest,me.reverse=Gn.reverse,me.sampleSize=vo.sampleSize,me.set=Ii.set,me.setWith=Ii.setWith,me.shuffle=vo.shuffle,me.slice=Gn.slice,me.sortBy=vo.sortBy,me.sortedUniq=Gn.sortedUniq,me.sortedUniqBy=Gn.sortedUniqBy,me.split=Kr.split,me.spread=_s.spread,me.tail=Gn.tail,me.take=Gn.take,me.takeRight=Gn.takeRight,me.takeRightWhile=Gn.takeRightWhile,me.takeWhile=Gn.takeWhile,me.tap=ih.tap,me.throttle=_s.throttle,me.thru=Kv,me.toArray=mi.toArray,me.toPairs=Ii.toPairs,me.toPairsIn=Ii.toPairsIn,me.toPath=so.toPath,me.toPlainObject=mi.toPlainObject,me.transform=Ii.transform,me.unary=_s.unary,me.union=Gn.union,me.unionBy=Gn.unionBy,me.unionWith=Gn.unionWith,me.uniq=Gn.uniq,me.uniqBy=Gn.uniqBy,me.uniqWith=Gn.uniqWith,me.unset=Ii.unset,me.unzip=Gn.unzip,me.unzipWith=Gn.unzipWith,me.update=Ii.update,me.updateWith=Ii.updateWith,me.values=Ii.values,me.valuesIn=Ii.valuesIn,me.without=Gn.without,me.words=Kr.words,me.wrap=_s.wrap,me.xor=Gn.xor,me.xorBy=Gn.xorBy,me.xorWith=Gn.xorWith,me.zip=Gn.zip,me.zipObject=Gn.zipObject,me.zipObjectDeep=Gn.zipObjectDeep,me.zipWith=Gn.zipWith,me.entries=Ii.toPairs,me.entriesIn=Ii.toPairsIn,me.extend=Ii.assignIn,me.extendWith=Ii.assignInWith,wO(me,me),me.add=Ol.add,me.attempt=so.attempt,me.camelCase=Kr.camelCase,me.capitalize=Kr.capitalize,me.ceil=Ol.ceil,me.clamp=TUe,me.clone=mi.clone,me.cloneDeep=mi.cloneDeep,me.cloneDeepWith=mi.cloneDeepWith,me.cloneWith=mi.cloneWith,me.conformsTo=mi.conformsTo,me.deburr=Kr.deburr,me.defaultTo=so.defaultTo,me.divide=Ol.divide,me.endsWith=Kr.endsWith,me.eq=mi.eq,me.escape=Kr.escape,me.escapeRegExp=Kr.escapeRegExp,me.every=vo.every,me.find=vo.find,me.findIndex=Gn.findIndex,me.findKey=Ii.findKey,me.findLast=vo.findLast,me.findLastIndex=Gn.findLastIndex,me.findLastKey=Ii.findLastKey,me.floor=Ol.floor,me.forEach=vo.forEach,me.forEachRight=vo.forEachRight,me.forIn=Ii.forIn,me.forInRight=Ii.forInRight,me.forOwn=Ii.forOwn,me.forOwnRight=Ii.forOwnRight,me.get=Ii.get,me.gt=mi.gt,me.gte=mi.gte,me.has=Ii.has,me.hasIn=Ii.hasIn,me.head=Gn.head,me.identity=cl,me.includes=vo.includes,me.indexOf=Gn.indexOf,me.inRange=EUe,me.invoke=Ii.invoke,me.isArguments=mi.isArguments,me.isArray=Pi,me.isArrayBuffer=mi.isArrayBuffer,me.isArrayLike=mi.isArrayLike,me.isArrayLikeObject=mi.isArrayLikeObject,me.isBoolean=mi.isBoolean,me.isBuffer=mi.isBuffer,me.isDate=mi.isDate,me.isElement=mi.isElement,me.isEmpty=mi.isEmpty,me.isEqual=mi.isEqual,me.isEqualWith=mi.isEqualWith,me.isError=mi.isError,me.isFinite=mi.isFinite,me.isFunction=mi.isFunction,me.isInteger=mi.isInteger,me.isLength=mi.isLength,me.isMap=mi.isMap,me.isMatch=mi.isMatch,me.isMatchWith=mi.isMatchWith,me.isNaN=mi.isNaN,me.isNative=mi.isNative,me.isNil=mi.isNil,me.isNull=mi.isNull,me.isNumber=mi.isNumber,me.isObject=zo,me.isObjectLike=mi.isObjectLike,me.isPlainObject=mi.isPlainObject,me.isRegExp=mi.isRegExp,me.isSafeInteger=mi.isSafeInteger,me.isSet=mi.isSet,me.isString=mi.isString,me.isSymbol=mi.isSymbol,me.isTypedArray=mi.isTypedArray,me.isUndefined=mi.isUndefined,me.isWeakMap=mi.isWeakMap,me.isWeakSet=mi.isWeakSet,me.join=Gn.join,me.kebabCase=Kr.kebabCase,me.last=Ln,me.lastIndexOf=Gn.lastIndexOf,me.lowerCase=Kr.lowerCase,me.lowerFirst=Kr.lowerFirst,me.lt=mi.lt,me.lte=mi.lte,me.max=Ol.max,me.maxBy=Ol.maxBy,me.mean=Ol.mean,me.meanBy=Ol.meanBy,me.min=Ol.min,me.minBy=Ol.minBy,me.stubArray=so.stubArray,me.stubFalse=so.stubFalse,me.stubObject=so.stubObject,me.stubString=so.stubString,me.stubTrue=so.stubTrue,me.multiply=Ol.multiply,me.nth=Gn.nth,me.noop=so.noop,me.now=DUe.now,me.pad=Kr.pad,me.padEnd=Kr.padEnd,me.padStart=Kr.padStart,me.parseInt=Kr.parseInt,me.random=AUe,me.reduce=vo.reduce,me.reduceRight=vo.reduceRight,me.repeat=Kr.repeat,me.replace=Kr.replace,me.result=Ii.result,me.round=Ol.round,me.sample=vo.sample,me.size=vo.size,me.snakeCase=Kr.snakeCase,me.some=vo.some,me.sortedIndex=Gn.sortedIndex,me.sortedIndexBy=Gn.sortedIndexBy,me.sortedIndexOf=Gn.sortedIndexOf,me.sortedLastIndex=Gn.sortedLastIndex,me.sortedLastIndexBy=Gn.sortedLastIndexBy,me.sortedLastIndexOf=Gn.sortedLastIndexOf,me.startCase=Kr.startCase,me.startsWith=Kr.startsWith,me.subtract=Ol.subtract,me.sum=Ol.sum,me.sumBy=Ol.sumBy,me.template=Kr.template,me.times=so.times,me.toFinite=mi.toFinite,me.toInteger=Ui,me.toLength=mi.toLength,me.toLower=Kr.toLower,me.toNumber=mi.toNumber,me.toSafeInteger=mi.toSafeInteger,me.toString=mi.toString,me.toUpper=Kr.toUpper,me.trim=Kr.trim,me.trimEnd=Kr.trimEnd,me.trimStart=Kr.trimStart,me.truncate=Kr.truncate,me.unescape=Kr.unescape,me.uniqueId=so.uniqueId,me.upperCase=Kr.upperCase,me.upperFirst=Kr.upperFirst,me.each=vo.forEach,me.eachRight=vo.forEachRight,me.first=Gn.head,wO(me,(xO={},th(me,function(t,n){Qre.call(me.prototype,n)||(xO[n]=t)}),xO),{chain:!1}),me.VERSION="4.17.21",(me.templateSettings=Kr.templateSettings).imports._=me,Jc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){me[t].placeholder=me}),Jc(["drop","take"],function(t,n){Tr.prototype[t]=function(e){e=void 0===e?1:OUe(Ui(e),0);var i=this.__filtered__&&!n?new Tr(this):this.clone();return i.__filtered__?i.__takeCount__=eoe(e,i.__takeCount__):i.__views__.push({size:eoe(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Tr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Jc(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Tr.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:Li(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),Jc(["head","last"],function(t,n){var e="take"+(n?"Right":"");Tr.prototype[t]=function(){return this[e](1).value()[0]}}),Jc(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Tr.prototype[t]=function(){return this.__filtered__?new Tr(this):this[e](1)}}),Tr.prototype.compact=function(){return this.filter(cl)},Tr.prototype.find=function(t){return this.filter(t).head()},Tr.prototype.findLast=function(t){return this.reverse().find(t)},Tr.prototype.invokeMap=dr(function(t,n){return"function"==typeof t?new Tr(this):this.map(function(e){return Ob(e,t,n)})}),Tr.prototype.reject=function(t){return this.filter(Yv(Li(t)))},Tr.prototype.slice=function(t,n){t=Ui(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Tr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Ui(n))<0?e.dropRight(-n):e.take(n-t)),e)},Tr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Tr.prototype.toArray=function(){return this.take(4294967295)},th(Tr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=me[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(me.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Tr,c=a[0],u=l||Pi(s),d=function(v){var y=r.apply(me,Yf([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Tr(this);var g=t.apply(s,a);return g.__actions__.push({func:Kv,args:[d],thisArg:void 0}),new Yc(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),Jc(["pop","push","shift","sort","splice","unshift"],function(t){var n=NUe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);me.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(Pi(o)?o:[],r)}return this[e](function(s){return n.apply(Pi(s)?s:[],r)})}}),th(Tr.prototype,function(t,n){var e=me[n];if(e){var i=e.name+"";Qre.call(Ov,i)||(Ov[i]=[]),Ov[i].push({name:n,func:e})}}),Ov[K2(void 0,2).name]=[{name:"wrapper",func:void 0}],Tr.prototype.clone=function(){var t=new Tr(this.__wrapped__);return t.__actions__=Jl(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Jl(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Jl(this.__views__),t},Tr.prototype.reverse=function(){if(this.__filtered__){var t=new Tr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Tr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Pi(t),i=n<0,r=e?t.length:0,o=function(S,M,$){for(var G=-1,R=$.length;++G1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Io(l)||n&&c.length>0)&&(e[ln(c)]=!0),Io(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function noe(t){return Ze({},t)}function ioe(t){return Object.values(t)}function roe(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(si(o))),r}function kO(t,n){try{return n.parse(t)}catch{return n.parse(Yd(t))}}function ooe(t,n){try{return kO(t,n)}catch{return}}function Ik(t,n){t=t.replace(aoe,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function soe(t){t=t.replace(aoe,"");try{return Yd(t)}catch{}try{var n=Yd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Yd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var aoe=/,\s*$/;function Fk(t,n){var e=uoe.exec(n);if(e){var i=Ws(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return Qv(t)?t:{text:e.stringify(t.json,null,n)}}function loe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return DO(t)?t:{json:n.parse(t.text)}}function Nk(t,n,e){return Zv(t,n,e).text}function coe(t,n){return function RUe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(Qv(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Io(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var uoe=/(position|char) (\d+)/,$Ue=/line (\d+)/,BUe=/column (\d+)/;function hoe(t){return VUe.test(t)&&t.length>2}var VUe=/^[[{]\S/;function TO(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?HUe:zUe:e?UUe:GUe}var HUe={escapeValue:function(t){return foe(goe(String(t)))},unescapeValue:function(t){return voe(poe(t))}},zUe={escapeValue:function(t){return goe(String(t))},unescapeValue:function(t){return voe(t)}},UUe={escapeValue:function(t){return foe(String(t))},unescapeValue:function(t){return poe(t)}},GUe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function foe(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function poe(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return moe[e]||e}catch{return n}})}var moe={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},WUe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function goe(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return moe[n]||n})}function voe(t){return t.replace(/\\["bfnrt\\]/g,function(n){return WUe[n]||n})}function jm(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function yoe(t,n){return Pb(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function Pm(t,n,e){return Pb(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function Pb(t,n){return!!EO(t,n)}function EO(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function boe(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function Ok(t,n,e){var i=e0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,boe(r))}}function e0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function jk(t){var e=e0(t)?.document.activeElement;return!!e&&Pb(e,function(i){return i===t})}function _oe(t,n){return EO(t,function(e){return e.nodeName===n})}function AO(t){return Pm(t,"data-type","selectable-key")?ro.key:Pm(t,"data-type","selectable-value")?ro.value:Pm(t,"data-type","insert-selection-area-inside")?ro.inside:Pm(t,"data-type","insert-selection-area-after")?ro.after:ro.multi}function t0(t){return encodeURIComponent(ln(t))}function xoe(t){var e=EO(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Xu(decodeURIComponent(e)):null}function tp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in XUe||e.push(i),e.join(n)}var XUe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},MO=yF.window;function YUe(t){pi(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function woe(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&C>h,G="left"===v||_+u>window.innerWidth&&_>u;return{left:G?y.right-g:_+g,top:$?C-p:y.bottom+p,positionAbove:$,positionLeft:G}}if("number"==typeof n.left&&"number"==typeof n.top){var R=n.left,z=n.top,U=n.width,q=void 0===U?0:U,re=n.height,L=void 0===re?0:re;return{left:R,top:z,positionAbove:z+L>window.innerHeight&&z>L,positionLeft:R+q>window.innerWidth&&R>q}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function QUe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!Pb(l.target,function(c){return c===i})&&s(o.id)}return Wc(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===tp(l)&&s(o.id)},function(l){a(l)},s,function(l){Vi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Vi[l?"unshift":"push"](function(){e(1,i=l)})}]}var ZUe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,QUe,JUe,ys,{popup:0,closeAbsolutePopup:6},YUe),r}return Se(e)}();function koe(t,n,e){var i=t.slice();return i[6]=n[e],i}function Soe(t){var n,e;return n=new ZUe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function eGe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(iGe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var iGe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function Lb(t){return{value:t,label:Hi(t)?"(whole item)":tu(Kl(t))}}function rh(t){return t.map(function(n){return FO.test(n)?"?.[".concat(n,"]"):IO.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var IO=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,FO=/^\d+$/;function Rb(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function oh(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var rGe={id:"javascript",name:"JavaScript",description:"\n

    \n Enter a JavaScript function to filter, sort, or transform the data.\n

    \n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(rh(e.path)),a=function NO(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function HQ(t){return k9e.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(rh(i.path),"\n")+" const valueB = b".concat(rh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(rh(i.path),"\n")+" const valueB = b".concat(rh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(rh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(rh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},oGe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},$b={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},Bb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},sGe={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function aGe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var OGe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,NGe,FGe,Ei,{path:4,value:0,readOnly:1,onPatch:5,focus:6},IGe),r}return Se(e)}();function Poe(t){for(var n=pO(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=Rk(n,u);jO(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Io(l)&&i(o)){r[ln(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=Re(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),Ze(Ze({},n),{},{expandedMap:r})}function Loe(t,n){var e=n0(t.expandedMap,n),i=n0(t.enforceStringMap,n),r=n0(t.visibleSectionsMap,n);return Ze(Ze({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Roe(t,n,e){if(e){var i=Ze({},t.enforceStringMap);return i[n]=e,Ze(Ze({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=Ze({},t.enforceStringMap);return delete r[n],Ze(Ze({},t),{},{enforceStringMap:r})}return t}function $oe(t,n,e){var i=Yu(t,e),r=e.reduce(function(o,s){return SQ(s)?Boe(i,o,s):DQ(s)?Voe(i,o,s):kF(s)?(u=(c=s).path,d=BO(a=i,(l=o).expandedMap),h=BO(a,l.enforceStringMap),f=BO(a,l.visibleSectionsMap),Mo(c.value)||oo(c.value)||delete d[u],oo(c.value)||delete f[u],(Mo(c.value)||oo(c.value))&&delete h[u],Ze(Ze({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):SF(s)||Mv(s)?function(a,l,c){if(Mv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=$O(LO(l.expandedMap,c.from),u),h=$O(LO(l.enforceStringMap,c.from),u),f=$O(LO(l.visibleSectionsMap,c.from),u),p=l;Mv(c)&&(p=Voe(a,p,{op:"remove",path:c.from}));var m=RO((p=Boe(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=RO(p.enforceStringMap,h),v=RO(p.visibleSectionsMap,f);return Ze(Ze({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function Boe(t,n,e){var i=Ju(t,e.path),r=Xi(i),o=ln(r);if(oo(Sn(t,r))){var s=Ws(Ln(i)),a=r0(n.expandedMap,r,s,1),l=r0(n.enforceStringMap,r,s,1),c=r0(n.visibleSectionsMap,r,s,1);return c=Hoe(c,o,function(u){return zoe(u,s,1)}),Ze(Ze({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function Voe(t,n,e){var i=Ju(t,e.path),r=Xi(i),o=ln(r),s=Sn(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=n0(a,i),l=n0(l,i),c=n0(c,i),oo(s)){var u=Ws(Ln(i));a=r0(a,r,u,-1),l=r0(l,r,u,-1),c=Hoe(c=r0(c,r,u,-1),o,function(d){return zoe(d,u,-1)})}return Ze(Ze({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function n0(t,n){var e={},i=ln(n);return Object.keys(t).forEach(function(r){Iv(r,i)||(e[r]=t[r])}),e}function LO(t,n){var e={};return Object.keys(t).forEach(function(i){Iv(i,n)&&(e[i]=t[i])}),e}function RO(t,n){return Ze(Ze({},t),n)}function $O(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function r0(t,n,e,i){for(var r=n.length,o=ln(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:ln(u),value:t[c]}))}}if(0===s.length)return t;var h=Ze({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function BO(t,n){var e={};return Object.keys(n).filter(function(i){return Xc(t,Ju(t,i))}).forEach(function(i){e[i]=n[i]}),e}function Hoe(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!or(i,r)){var o=Ze({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function zoe(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function lf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof Fv(o,i)}function Vb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function VO(t,n){var e=[];return function i(r,o){e.push(o);var s=ln(o);if(r&&!0===n.expandedMap[s]){if(oo(r)){var a=Rk(n,s);jO(r,a,function(l){i(r[l],o.concat(String(l)))})}Mo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function Uoe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Gu.value});var a=ln(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Gu.inside}),oo(o)){var l=Rk(n,a);jO(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Gu.after})})}Mo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Gu.key}),r(o[c],u),e&&i.push({path:u,type:Gu.after})})}}(t,[]),i}function HO(t,n,e){var i=VO(t,n),r=i.map(ln).indexOf(ln(e));return-1!==r&&r0;){if(!0===t.pointersMap[ln(i)])return!0;i.pop()}return xs(t)?e===ro.key&&or(t.focusPath,n):!(!Yi(t)||!(e===ro.value&&or(t.focusPath,n)||l0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===ro.key||e===ro.value||e===ro.multi)))}function qoe(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Fr(r)?r.focusPath:sa(r.paths),s=function LGe(t,n,e){var i=VO(t,n),r=i.map(ln),o=ln(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return Zu(r)||Xs(r)?Os(t,r.anchorPath,r.anchorPath):Os(t,r.anchorPath,l);if(xs(r)){var u=Sn(t,Xi(s));return Array.isArray(u)||Hi(s)?mr(s,!1):iu(s,!1)}return Yi(r)?mr(s,!1):Zu(r)||Xs(r)?Os(t,o,o):Os(t,a,l)}function Xoe(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=Uoe(t,n,e),o=r.findIndex(function(s){return or(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Sn(t,Xi(r)))?mr(r,!1):iu(r,!1)}function a0(t,n){if(1===n.length){var e=sa(n);if("replace"===e.op||"move"===e.op)return mr(Ju(t,e.path),!1)}if(!Hi(n)&&n.every(function(s){return"move"===s.op})){var i=sa(n),r=n.slice(1);if((SF(i)||Mv(i))&&i.from!==i.path&&r.every(function(s){return(SF(s)||Mv(s))&&s.from===s.path}))return iu(Ju(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return Ju(t,s.path)});if(!Hi(o))return{type:ro.multi,paths:o,anchorPath:sa(o),focusPath:Ln(o),pointersMap:Yoe(o)}}function Yoe(t){var n={};return t.forEach(function(e){n[ln(e)]=!0}),n}function Bk(t){return ql({},ln(t),!0)}function zb(t){return void 0!==t&&(xs(t)||Yi(t)||Fr(t)&&1===t.paths.length)}function Joe(t,n){return zb(n)&&Ho(Sn(t,n.focusPath))?n.focusPath:Xi(n.focusPath)}function l0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return Ze(Ze({},r),{},{active:o===n})});return Ze(Ze({},t),{},{items:i,itemsMap:qv(i,function(r){return ln(r.path)}),activeItem:e,activeIndex:n})}function WGe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return Ze(Ze({},r),{},{active:o===n})});return Ze(Ze({},t),{},{items:i,itemsMap:qv(i,function(r){return ln(r.path)}),activeItem:e,activeIndex:n})}function ase(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Mo(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else lse(String(c),l,r,Wu.value,o)}(t.toLowerCase(),n),i}function lse(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function WO(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function cse(t,n,e){var i=t;return Fb(e,function(r){i=WO(i,n,r.start,r.end)}),i}function qGe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Wu.key){var c=Xi(s),u=Sn(t,c),d=Ln(s),h=Gb(c,Object.keys(u),d,WO(d,e,a,l));return{newSelection:a0(t,h),operations:h}}if(o===Wu.value){var f=Sn(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(ln(s)));var p="string"==typeof f?f:String(f),m=ln(s),g=lf(f,n.enforceStringMap,m,r),v=WO(p,e,a,l),y=[{op:"replace",path:ln(s),value:g?v:Fv(v,r)}];return{newSelection:a0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function XGe(t,n,e,i,r){for(var o=ase(e,t,1/0),s=[],a=0;an.floating[o]&&(s=Xk(s)),{main:s,cross:Xk(s)}}var OWe={start:"end",end:"start"};function e4(t){return t.replace(/start|end/g,function(n){return OWe[n]})}var jWe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,he,E,F,N,Y,V,oe;return vn().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,_=void 0===(y=u.fallbackAxisSideDirection)?"none":y,S=void 0===(C=u.flipAlignment)||C,M=XK(u,p7e),$=Bm(r),G=Bm(a)===a,fe.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return R=fe.sent,z=m||(G||!S?[Xk(a)]:(void 0,xe=Xk(Fe=a),[e4(Fe),xe,e4(xe)])),m||"none"===_||z.push.apply(z,si(function(Fe,xe,tt,ze){var ot=Wk(Fe),B=function(ne,ie,Ie){var Ye=["left","right"],Le=["right","left"];switch(ne){case"top":case"bottom":return Ie?ie?Le:Ye:ie?Ye:Le;case"left":case"right":return ie?["top","bottom"]:["bottom","top"];default:return[]}}(Bm(Fe),"start"===tt,ze);return ot&&(B=B.map(function(ne){return ne+"-"+ot}),xe&&(B=B.concat(B.map(e4)))),B}(a,S,_,R))),U=[a].concat(si(z)),fe.next=29,Sse(n,M);case 29:if(q=fe.sent,re=[],L=(null==(i=o.flip)?void 0:i.overflows)||[],h&&re.push(q[$]),p&&(X=NWe(r,s,R),re.push(q[X.main],q[X.cross])),L=[].concat(si(L),[{placement:r,overflows:re}]),re.every(function(Fe){return Fe<=0})){fe.next=48;break}if(F=((null==(he=o.flip)?void 0:he.index)||0)+1,!(N=U[F])){fe.next=37;break}return fe.abrupt("return",{data:{index:F,overflows:L},reset:{placement:N}});case 37:if(Y=null==(E=L.filter(function(Fe){return Fe.overflows[0]<=0}).sort(function(Fe,xe){return Fe.overflows[1]-xe.overflows[1]})[0])?void 0:E.placement,Y){fe.next=46;break}fe.t0=v,fe.next="bestFit"===fe.t0?42:"initialPlacement"===fe.t0?45:46;break;case 42:return oe=null==(V=L.map(function(Fe){return[Fe.placement,Fe.overflows.filter(function(xe){return xe>0}).reduce(function(xe,tt){return xe+tt},0)]}).sort(function(Fe,xe){return Fe[1]-xe[1]})[0])?void 0:V[0],oe&&(Y=oe),fe.abrupt("break",46);case 45:Y=a;case 46:if(r===Y){fe.next=48;break}return fe.abrupt("return",{reset:{placement:Y}});case 48:return fe.abrupt("return",{});case 49:case"end":return fe.stop()}var Fe,xe},e)}))()}}},PWe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o;return vn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=Zi(vn().mark(function l(c,u){var d,h,f,p,m,g,v,y,_,C,S,M,$,G;return vn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return d=c.placement,h=c.platform,f=c.elements,R.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=R.sent,m=Bm(d),g=Wk(d),v="x"===qk(d),y=["left","top"].includes(m)?-1:1,_=p&&v?-1:1,C="function"==typeof u?u(c):u,S="number"==typeof C?{mainAxis:C,crossAxis:0,alignmentAxis:null}:Ze({mainAxis:0,crossAxis:0,alignmentAxis:null},C),M=S.mainAxis,$=S.crossAxis,G=S.alignmentAxis,R.abrupt("return",(g&&"number"==typeof G&&($="end"===g?-1*G:G),v?{x:$*_,y:M*y}:{x:M*y,y:$*_}));case 14:case"end":return R.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function LWe(t){return"x"===t?"y":"x"}var RWe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,$;return vn().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(R){return{x:R.x,y:R.y}}}:h,p=XK(a,m7e),m={x:r,y:o},G.next=14,Sse(n,p);case 14:return g=G.sent,v=qk(Bm(s)),y=LWe(v),_=m[v],C=m[y],c&&(_=Dse(_+g["y"===v?"top":"left"],_,_-g["y"===v?"bottom":"right"])),d&&(C=Dse(C+g["y"===y?"top":"left"],C,C-g["y"===y?"bottom":"right"])),$=f.fn(Ze(Ze({},n),{},(ql(i={},v,_),ql(i,y,C),i))),G.abrupt("return",Ze(Ze({},$),{},{data:{x:$.x-r,y:$.y-o}}));case 22:case"end":return G.stop()}},e)}))()}}};function kc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function lh(t){return kc(t).getComputedStyle(t)}var t4,Tse=Math.min,qb=Math.max,Yk=Math.round;function Ese(t){var n=lh(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=Yk(e)!==r||Yk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function ap(t){return Mse(t)?(t.nodeName||"").toLowerCase():""}function Ase(){if(t4)return t4;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t4=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function ch(t){return t instanceof kc(t).HTMLElement}function td(t){return t instanceof kc(t).Element}function Mse(t){return t instanceof kc(t).Node}function Ise(t){return typeof ShadowRoot<"u"&&(t instanceof kc(t).ShadowRoot||t instanceof ShadowRoot)}function Jk(t){var n=lh(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function $We(t){return["table","td","th"].includes(ap(t))}function n4(t){var n=/firefox/i.test(Ase()),e=lh(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function i4(){return/^((?!chrome|android).)*safari/i.test(Ase())}function r4(t){return["html","body","#document"].includes(ap(t))}function Fse(t){return td(t)?t:t.contextElement}var Nse={x:1,y:1};function m0(t){var n=Fse(t);if(!ch(n))return Nse;var e=n.getBoundingClientRect(),i=Ese(n),r=i.width,o=i.height,s=i.fallback,a=(s?Yk(e.width):e.width)/r,l=(s?Yk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function Vm(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Fse(t),l=Nse;n&&(i?td(i)&&(l=m0(i)):l=m0(t));var c=a?kc(a):window,u=i4()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=kc(a),g=i&&td(i)?kc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=m0(v),_=v.getBoundingClientRect(),C=getComputedStyle(v);_.x+=(v.clientLeft+parseFloat(C.paddingLeft))*y.x,_.y+=(v.clientTop+parseFloat(C.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=_.x,h+=_.y,v=kc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function lp(t){return((Mse(t)?t.ownerDocument:t.document)||window.document).documentElement}function Kk(t){return td(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ose(t){return Vm(lp(t)).left+Kk(t).scrollLeft}function Xb(t){if("html"===ap(t))return t;var n=t.assignedSlot||t.parentNode||Ise(t)&&t.host||lp(t);return Ise(n)?n.host:n}function jse(t){var n=Xb(t);return r4(n)?n.ownerDocument.body:ch(n)&&Jk(n)?n:jse(n)}function Yb(t,n){var e;void 0===n&&(n=[]);var i=jse(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=kc(i);return r?n.concat(o,o.visualViewport||[],Jk(i)?i:[]):n.concat(i,Yb(i))}function Pse(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=kc(l),d=lp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=i4();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=lp(t),c=lp(l),u=Kk(l),h=qb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=qb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Ose(l),m=-u.scrollTop,"rtl"===lh(d).direction&&(p+=qb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(td(n))i=function(l,c){var u=Vm(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=ch(l)?m0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=Ze({},n);if(i4()){var o,s,a=kc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return QO(i)}function Lse(t,n){return ch(t)&&"fixed"!==lh(t).position?n?n(t):t.offsetParent:null}function Rse(t,n){for(var e=kc(t),i=Lse(t,n);i&&$We(i)&&"static"===lh(i).position;)i=Lse(i,n);return i&&("html"===ap(i)||"body"===ap(i)&&"static"===lh(i).position&&!n4(i))?e:i||function(r){for(var o=Xb(r);ch(o)&&!r4(o);){if(n4(o))return o;o=Xb(o)}return null}(t)||e}function BWe(t,n,e){var i=ch(n),r=lp(n),o=Vm(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==ap(n)||Jk(r))&&(s=Kk(n)),ch(n)){var l=Vm(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Ose(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var VWe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=Yb(c).filter(function(y){return td(y)&&"body"!==ap(y)}),f=null,p="fixed"===lh(c).position,m=p?Xb(c):c;td(m)&&!r4(m);){var g=lh(m),v=n4(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=Xb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(si(o),[i]),l=s.reduce(function(c,u){var d=Pse(n,u,r);return c.top=qb(d.top,c.top),c.right=Tse(d.right,c.right),c.bottom=Tse(d.bottom,c.bottom),c.left=qb(d.left,c.left),c},Pse(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=ch(e),o=lp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==ap(e)||Jk(o))&&(s=Kk(e)),ch(e))){var c=Vm(e);a=m0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:td,getDimensions:function(t){return ch(t)?Ese(t):t.getBoundingClientRect()},getOffsetParent:Rse,getDocumentElement:lp,getScale:m0,getElementRects:function(t){var n=this;return Zi(vn().mark(function e(){var i,r,o,s,a;return vn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Rse,a=n.getDimensions,l.t0=BWe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=Ze,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===lh(t).direction}};function UWe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==bn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function GWe(t){return o4.apply(this,arguments)}function o4(){return o4=Zi(vn().mark(function t(n){var e,i,r,o,s;return vn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==bn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),o4.apply(this,arguments)}function WWe(t){pi(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function qWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("path"),"fill","currentColor"),P(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),P(n,"width","100%"),P(n,"height","100%"),P(n,"viewBox","0 0 20 20"),P(n,"focusable","false"),P(n,"aria-hidden","true"),P(n,"class","svelte-qbd276")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var XWe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,qWe,ys,{},WWe),r}return Se(e)}();function YWe(t){pi(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function JWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("path"),"fill","currentColor"),P(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),P(n,"width","100%"),P(n,"height","100%"),P(n,"viewBox","-2 -2 50 50"),P(n,"focusable","false"),P(n,"aria-hidden","true"),P(n,"role","presentation"),P(n,"class","svelte-whdbu1")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var Qk=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,JWe,ys,{},YWe),r}return Se(e)}();function KWe(t){pi(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function QWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("circle"),"class","circle_path svelte-1p3nqvd"),P(e,"cx","50"),P(e,"cy","50"),P(e,"r","20"),P(e,"fill","none"),P(e,"stroke","currentColor"),P(e,"stroke-width","5"),P(e,"stroke-miterlimit","10"),P(n,"class","loading svelte-1p3nqvd"),P(n,"viewBox","25 25 50 50")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var ZWe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,QWe,ys,{},KWe),r}return Se(e)}();function eqe(t){pi(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var tqe=function(t){return{value:8&t[0]}},$se=function(t){return{value:t[3]}},nqe=function(t){return{listOpen:64&t[0]}},Bse=function(t){return{listOpen:t[6]}},iqe=function(t){return{}},Vse=function(t){return{}},rqe=function(t){return{}},Hse=function(t){return{}},oqe=function(t){return{selection:8&t[0]}},zse=function(t){return{selection:t[3]}};function Use(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var sqe=function(t){return{}},Gse=function(t){return{}},aqe=function(t){return{selection:8&t[0]}},Wse=function(t){return{selection:t[127],index:t[129]}},lqe=function(t){return{}},qse=function(t){return{}},cqe=function(t){return{}},Xse=function(t){return{}};function Yse(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var uqe=function(t){return{item:16777216&t[0]}},Jse=function(t){return{item:t[127],index:t[129]}},dqe=function(t){return{filteredItems:16777216&t[0]}},Kse=function(t){return{filteredItems:t[24]}};function Qse(t){var n,e,i,r,o,s,a=[pqe,fqe,hqe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=be("div"),i&&i.c(),P(n,"class","svelte-select-list svelte-tyxmms"),Mt(n,"prefloat",t[28])},m:function(u,d){Pe(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[_a(t[49].call(null,n)),Nt(n,"scroll",t[41]),Nt(n,"pointerdown",Jh(t[50])),Nt(n,"pointerup",Kh(Jh(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&($t(),ce(l[h],1,1,function(){l[h]=null}),Bt()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),Q(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&Mt(n,"prefloat",u[28])},i:function(u){r||(Q(i),r=!0)},o:function(u){ce(i),r=!1},d:function(u){u&&je(n),~e&&l[e].d(),t[91](null),o=!1,ho(s)}}}function hqe(t){var n,e,i=t[83].empty,r=Ms(i,t,t[82],Xse),o=r||{c:function(){(e=be("div")).textContent="No options",P(e,"class","empty svelte-tyxmms")},m:function(s,a){Pe(s,e,a)},p:Lt,d:function(s){s&&je(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Fs(r,i,s,s[82],n?Is(i,s[82],a,cqe):Ns(s[82]),Xse)},i:function(s){n||(Q(o,s),n=!0)},o:function(s){ce(o,s),n=!1},d:function(s){o&&o.d(s)}}}function fqe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(Qe,Jn)}:Dn,hi=n.debounceWait,di=void 0===hi?300:hi,kr=n.hideEmptyState,Qr=void 0!==kr&&kr,gi=n.inputAttributes,yr=void 0===gi?{}:gi,Ee=n.listAutoWidth,St=void 0===Ee||Ee,Ht=n.showChevron,sn=void 0!==Ht&&Ht,hn=n.listOffset,ri=void 0===hn?5:hn,Oi=n.hoverItemIndex,Bn=void 0===Oi?0:Oi,ei=n.floatingConfig,Yn=void 0===ei?{}:ei,br=n.class,Ar=void 0===br?"":br;function Po(Qe){var Jn=[],er={};Qe.forEach(function(wd){var Br=$r(wd);Jn.includes(Br)||(Jn.push(Br),er[Br]=[],Br&&er[Br].push(Object.assign(Js(Br,wd),{id:Br,groupHeader:!0,selectable:Wr}))),er[Br].push(Object.assign({groupItem:!!Br},wd))});var Qs=[];return Or(Jn).forEach(function(wd){er[wd]&&Qs.push.apply(Qs,si(er[wd]))}),Qs}function ca(){var Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Jn=arguments.length>1?arguments[1]:void 0;e(7,Bn=Qe<0?0:Qe),!Jn&&$r&&c[Bn]&&!c[Bn].selectable&&wo(1)}function md(){var Qe=!0;if(B){var Jn=[],er=[];B.forEach(function(Qs){Jn.includes(Qs[Nn])?Qe=!1:(Jn.push(Qs[Nn]),er.push(Qs))}),Qe||e(3,B=er)}return Qe}function hu(Qe){var Jn=Qe?Qe[Nn]:B[Nn];return _n.find(function(er){return er[Nn]===Jn})}function ua(Qe){return Rl.apply(this,arguments)}function Rl(){return(Rl=Zi(vn().mark(function Qe(Jn){var er;return vn().wrap(function(Qs){for(;;)switch(Qs.prev=Qs.next){case 0:er=B[Jn],e(3,B=1===B.length?void 0:B.filter(function(wd){return wd!==er})),$("clear",er);case 3:case"end":return Qs.stop()}},Qe)}))).apply(this,arguments)}function gd(Qe){var Jn;ze&&N===(null===(Jn=document)||void 0===Jn?void 0:Jn.activeElement)||(Qe&&$("focus",Qe),N.focus(),e(2,ze=!0))}function Ps(Qe){return vd.apply(this,arguments)}function vd(){return(vd=Zi(vn().mark(function Qe(Jn){return vn().wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(!fi&&!z_){er.next=2;break}return er.abrupt("return");case 2:(Ue||ze)&&($("blur",Jn),yd(),e(2,ze=!1),e(26,f=void 0),N.blur());case 3:case"end":return er.stop()}},Qe)}))).apply(this,arguments)}function yd(){e(4,ie=""),e(6,Ue=!1)}y=Zi(vn().mark(function Qe(){return vn().wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:e(78,p=B),e(79,m=ie),e(80,g=V);case 3:case"end":return Jn.stop()}},Qe)})),Tv().$$.before_update.push(y),Wc(function(){Ue&&e(2,ze=!0),ze&&N&&N.focus()});var an,eT=n.ariaValues,Ce=void 0===eT?function(Qe){return"Option ".concat(Qe,", selected.")}:eT,lt=n.ariaListOpen,It=void 0===lt?function(Qe,Jn){return"You are currently focused on option ".concat(Qe,". There are ").concat(Jn," results available.")}:lt,Jt=n.ariaFocused,nn=void 0===Jt?function(){return"Select is focused, type to refine list, press down to open the menu."}:Jt,Vn=null;function li(){clearTimeout(an),an=setTimeout(function(){fi=!1},100)}Hu(function(){var Qe;null===(Qe=Vn)||void 0===Qe||Qe.remove()});var fi=!1;function Lo(Qe){Qe&&!1!==Qe.selectable&&function(Jn){if(Jn){e(4,ie="");var er=Object.assign({},Jn);if(er.groupHeader&&!er.selectable)return;e(3,B=V?B?B.concat([er]):[er]:e(3,B=er)),setTimeout(function(){qr&&yd(),e(26,f=void 0),$("change",B),$("select",Jn)})}}(Qe)}function Ls(Qe){fi||e(7,Bn=Qe)}function Zo(Qe){var Qs,Jn=Qe.item,er=Qe.i;if(!1!==Jn?.selectable){if(B&&!V&&B[Nn]===Jn[Nn])return yd();((Qs=Jn).groupHeader&&Qs.selectable||Qs.selectable||!Qs.hasOwnProperty("selectable"))&&(e(7,Bn=er),Lo(Jn)),z_=!1}}function wo(Qe){if(0===c.filter(function(er){return!Object.hasOwn(er,"selectable")||!0===er.selectable}).length)return e(7,Bn=0);e(7,Qe>0&&Bn===c.length-1?Bn=0:Qe<0&&0===Bn?Bn=c.length-1:Bn+=Qe);var Jn=c[Bn];Jn&&!1===Jn.selectable&&(1!==Qe&&-1!==Qe||wo(Qe))}var $l=bd,wh=bd;function bd(Qe){return{update:function(Jn){Jn.scroll&&(li(),Qe.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Mr={strategy:"absolute",placement:"bottom-start",middleware:[PWe(ri),jWe(),RWe()],autoUpdate:!1},tc=Un(function zWe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return Ze(Ze(Ze({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=Ze({platform:VWe},d),p=Ze(Ze({},f.platform),{},{_c:h}),EWe(c,u,Ze(Ze({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){Hu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function HWe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(si(td(t)?Yb(t):t.contextElement?Yb(t.contextElement):[]),si(Yb(n))):[];p.forEach(function(_){f&&_.addEventListener("scroll",e,{passive:!0}),l&&_.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),td(t)&&!h&&g.observe(t),td(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?Vm(t):null;return h&&function _(){var C=Vm(t);!y||C.x===y.x&&C.y===y.y&&C.width===y.width&&C.height===y.height||e(),y=C,m=requestAnimationFrame(_)}(),e(),function(){var _;p.forEach(function(C){f&&C.removeEventListener("scroll",e),l&&C.removeEventListener("resize",e)}),null==(_=g)||_.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Mr),3),fu=tc[0],_d=tc[1],Ch=tc[2],xd=!0,z_=!1;return t.$$set=function(Qe){"justValue"in Qe&&e(53,R=Qe.justValue),"filter"in Qe&&e(54,U=Qe.filter),"getItems"in Qe&&e(55,re=Qe.getItems),"id"in Qe&&e(56,X=Qe.id),"name"in Qe&&e(8,H=Qe.name),"container"in Qe&&e(0,E=Qe.container),"input"in Qe&&e(1,N=Qe.input),"multiple"in Qe&&e(9,V=Qe.multiple),"multiFullItemClearable"in Qe&&e(10,fe=Qe.multiFullItemClearable),"disabled"in Qe&&e(11,xe=Qe.disabled),"focused"in Qe&&e(2,ze=Qe.focused),"value"in Qe&&e(3,B=Qe.value),"filterText"in Qe&&e(4,ie=Qe.filterText),"placeholder"in Qe&&e(57,Ye=Qe.placeholder),"placeholderAlwaysShow"in Qe&&e(58,_t=Qe.placeholderAlwaysShow),"items"in Qe&&e(52,_n=Qe.items),"label"in Qe&&e(12,on=Qe.label),"itemFilter"in Qe&&e(59,pn=Qe.itemFilter),"groupBy"in Qe&&e(60,$r=Qe.groupBy),"groupFilter"in Qe&&e(61,Or=Qe.groupFilter),"groupHeaderSelectable"in Qe&&e(62,Wr=Qe.groupHeaderSelectable),"itemId"in Qe&&e(13,Nn=Qe.itemId),"loadOptions"in Qe&&e(63,ui=Qe.loadOptions),"containerStyles"in Qe&&e(14,Cr=Qe.containerStyles),"hasError"in Qe&&e(15,Qo=Qe.hasError),"filterSelectedItems"in Qe&&e(64,On=Qe.filterSelectedItems),"required"in Qe&&e(16,bi=Qe.required),"closeListOnChange"in Qe&&e(65,qr=Qe.closeListOnChange),"createGroupHeaderItem"in Qe&&e(66,Js=Qe.createGroupHeaderItem),"searchable"in Qe&&e(17,Ks=Qe.searchable),"inputStyles"in Qe&&e(18,Xa=Qe.inputStyles),"clearable"in Qe&&e(68,we=Qe.clearable),"loading"in Qe&&e(5,qe=Qe.loading),"listOpen"in Qe&&e(6,Ue=Qe.listOpen),"debounce"in Qe&&e(69,ii=Qe.debounce),"debounceWait"in Qe&&e(70,di=Qe.debounceWait),"hideEmptyState"in Qe&&e(19,Qr=Qe.hideEmptyState),"inputAttributes"in Qe&&e(71,yr=Qe.inputAttributes),"listAutoWidth"in Qe&&e(72,St=Qe.listAutoWidth),"showChevron"in Qe&&e(20,sn=Qe.showChevron),"listOffset"in Qe&&e(73,ri=Qe.listOffset),"hoverItemIndex"in Qe&&e(7,Bn=Qe.hoverItemIndex),"floatingConfig"in Qe&&e(74,Yn=Qe.floatingConfig),"class"in Qe&&e(21,Ar=Qe.class),"ariaValues"in Qe&&e(75,Ce=Qe.ariaValues),"ariaListOpen"in Qe&&e(76,It=Qe.ariaListOpen),"ariaFocused"in Qe&&e(77,nn=Qe.ariaFocused),"$$scope"in Qe&&e(82,S=Qe.$$scope)},t.$$.update=function(){var Qe,Jn,er,Qs,wd,Br;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&B&&function(){if("string"==typeof B){var Br,Zs=(_n||[]).find(function(pu){return pu[Nn]===B});e(3,B=Zs||(ql(Br={},Nn,B),ql(Br,"label",B),Br))}else V&&Array.isArray(B)&&B.length>0&&e(3,B=B.map(function(pu){return"string"==typeof pu?{value:pu,label:pu}:pu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!yr&&Ks||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},yr)),X&&e(27,v.id=X,v),Ks||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&B&&(Array.isArray(B)?e(3,B=si(B)):e(3,B=[B])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&B&&e(3,B=null),520&t.$$.dirty[0]&&V&&B&&B.length>1&&md(),8&t.$$.dirty[0]&&B&&(V?JSON.stringify(B)!==JSON.stringify(p)&&md()&&$("input",B):p&&JSON.stringify(B[Nn])===JSON.stringify(p[Nn])||$("input",B)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!B&&V&&p&&$("input",B),6&t.$$.dirty[0]&&!ze&&N&&yd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&ie!==m&&(ui||0!==ie.length)&&(ui?ii(Zi(vn().mark(function Br(){var Zs;return vn().wrap(function(pu){for(;;)switch(pu.prev=pu.next){case 0:return e(5,qe=!0),pu.next=3,re({dispatch:$,loadOptions:ui,convertStringItemsToObjects:lae,filterText:ie});case 3:(Zs=pu.sent)?(e(5,qe=Zs.loading),e(6,Ue=Ue?Zs.listOpen:ie.length>0),e(2,ze=Ue&&Zs.focused),e(52,_n=$r?Po(Zs.filteredItems):Zs.filteredItems)):(e(5,qe=!1),e(2,ze=!0),e(6,Ue=!0));case 5:case"end":return pu.stop()}},Br)})),di):(e(6,Ue=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=U({loadOptions:ui,filterText:ie,items:_n,multiple:V,value:B,itemId:Nn,groupBy:$r,label:on,filterSelectedItems:On,itemFilter:pn,convertStringItemsToObjects:lae,filterGroupedItems:Po})),16777800&t.$$.dirty[0]&&!V&&Ue&&B&&c&&(Qe=c.findIndex(function(Br){return Br[Nn]===B[Nn]}),ca(Qe,!0)),576&t.$$.dirty[0]&&Ue&&V&&e(7,Bn=0),16&t.$$.dirty[0]&&ie&&e(7,Bn=0),128&t.$$.dirty[0]&&$("hoverItem",Bn),520&t.$$.dirty[0]&&e(25,i=V?B&&B.length>0:B),33554448&t.$$.dirty[0]&&e(35,r=i&&ie.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&we&&!xe&&!qe),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=_t&&V||V&&0===(null===(Jn=B)||void 0===Jn?void 0:Jn.length)?Ye:B?"":Ye),520&t.$$.dirty[0]&&e(32,a=B?(er=V&&B.length>0?B.map(function(Br){return Br[on]}).join(", "):B[on],Ce(er)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var Br=c[Bn];return Ue&&Br?It(Br[on],c?c.length:0):nn()}()),2097152&t.$$.dirty[1]&&(Br=_n)&&0!==Br.length&&!Br.some(function(Zs){return"object"!==bn(Zs)})&&B&&(V?!B.some(function(Zs){return!Zs||!Zs[Nn]}):B[Nn])&&(Array.isArray(B)?e(3,B=B.map(function(Zs){return hu(Zs)||Zs})):e(3,B=hu()||B)),8712&t.$$.dirty[0]&&e(53,R=V?B?B.map(function(Br){return Br[Nn]}):null:B&&B[Nn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||B||$("input",B)),16777800&t.$$.dirty[0]&&Ue&&c&&!V&&!B&&ca(),16777216&t.$$.dirty[0]&&function(Br){Ue&&$("filter",Br)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&E&&void 0===(null===(Qs=Yn)||void 0===Qs?void 0:Qs.autoUpdate)&&e(81,Mr.autoUpdate=!0,Mr),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&E&&Yn&&Ch(Object.assign(Mr,Yn)),8388608&t.$$.dirty[0]&&e(30,u=!!Vn),8388672&t.$$.dirty[0]&&function(Br,Zs){if(!Br||!Zs)return e(28,xd=!0);setTimeout(function(){e(28,xd=!1)},0)}(Vn,Ue),8388673&t.$$.dirty[0]&&Ue&&E&&Vn&&(wd=E.getBoundingClientRect().width,e(23,Vn.style.width=St?wd+"px":"auto",Vn)),128&t.$$.dirty[0]&&e(29,d=Bn),70&t.$$.dirty[0]&&N&&Ue&&!ze&&gd()},[E,N,ze,B,ie,qe,Ue,Bn,H,V,fe,xe,on,Nn,Cr,Qo,bi,Ks,Xa,Qr,sn,Ar,function(){$("clear",B),e(3,B=void 0),yd(),gd()},Vn,c,i,f,v,xd,d,u,l,a,s,o,r,ua,function(Qe){if(ze)switch(Qe.stopPropagation(),Qe.key){case"Escape":Qe.preventDefault(),yd();break;case"Enter":if(Qe.preventDefault(),Ue){if(0===c.length)break;if(B&&!V&&B[Nn]===c[Bn][Nn]){yd();break}Lo(c[Bn])}break;case"ArrowDown":Qe.preventDefault(),Ue?wo(1):(e(6,Ue=!0),e(26,f=void 0));break;case"ArrowUp":Qe.preventDefault(),Ue?wo(-1):(e(6,Ue=!0),e(26,f=void 0));break;case"Tab":if(Ue&&ze){if(0===c.length||B&&B[Nn]===c[Bn][Nn])return yd();Qe.preventDefault(),Lo(c[Bn]),yd()}break;case"Backspace":if(!V||ie.length>0)return;if(V&&B&&B.length>0){if(ua(void 0!==f?f:B.length-1),0===f||void 0===f)break;e(26,f=B.length>f?f-1:void 0)}break;case"ArrowLeft":if(!B||!V||ie.length>0)return;void 0===f?e(26,f=B.length-1):B.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!B||!V||ie.length>0||void 0===f)return;f===B.length-1?e(26,f=void 0):f",">="].map(function(X){return{value:X,label:X}}),R=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],z=null!==(i=M)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?Lb(M.filter.path):null,U=null!==(o=M)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?G.find(function(X){var Z;return X.value===(null===(Z=M.filter)||void 0===Z?void 0:Z.relation)}):null,q=(null===(a=M)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",re=null!==(c=M)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?Lb(M.sort.path):null,L=null!==(d=M)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?R.find(function(X){var Z;return X.value===(null===(Z=M.sort)||void 0===Z?void 0:Z.direction)}):null;return t.$$set=function(X){"json"in X&&e(11,C=X.json),"queryOptions"in X&&e(10,M=X.queryOptions),"onChange"in X&&e(12,$=X.onChange)},t.$$.update=function(){var X,Z,H,he,E,F,N,Y,V,oe,fe,Fe,xe,tt,ze,ot,B,ne,ie,Ie,Ye;2048&t.$$.dirty&&e(15,f=Array.isArray(C)),34816&t.$$.dirty&&e(14,p=f?CO(C):[]),34816&t.$$.dirty&&e(13,m=f?CO(C,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(Lb)),8192&t.$$.dirty&&e(6,v=m?m.map(Lb):[]),1088&t.$$.dirty&&e(5,y=null!==(X=M)&&void 0!==X&&null!==(Z=X.projection)&&void 0!==Z&&Z.paths&&v?M.projection.paths.map(function(ie){return v.find(function(Ie){return or(Ie.value,ie)})}).filter(function(ie){return!!ie}):null),1&t.$$.dirty&&(he=(null===(H=z)||void 0===H?void 0:H.value)||null,or(null===(E=M)||void 0===E||null===(F=E.filter)||void 0===F?void 0:F.path,he)||(_("changeFilterPath",he),e(10,M=qu(M,["filter","path"],he,!0)),$(M))),2&t.$$.dirty&&(Y=(null===(N=U)||void 0===N?void 0:N.value)||null,or(null===(V=M)||void 0===V||null===(oe=V.filter)||void 0===oe?void 0:oe.relation,Y)||(_("changeFilterRelation",Y),e(10,M=qu(M,["filter","relation"],Y,!0)),$(M))),4&t.$$.dirty&&(or(null===(Fe=M)||void 0===Fe||null===(xe=Fe.filter)||void 0===xe?void 0:xe.value,fe=q||null)||(_("changeFilterValue",fe),e(10,M=qu(M,["filter","value"],fe,!0)),$(M))),8&t.$$.dirty&&(ie=(null===(tt=re)||void 0===tt?void 0:tt.value)||null,or(null===(Ie=M)||void 0===Ie||null===(Ye=Ie.sort)||void 0===Ye?void 0:Ye.path,ie)||(_("changeSortPath",ie),e(10,M=qu(M,["sort","path"],ie,!0)),$(M))),16&t.$$.dirty&&(ot=(null===(ze=L)||void 0===ze?void 0:ze.value)||null,or(null===(B=M)||void 0===B||null===(ne=B.sort)||void 0===ne?void 0:ne.direction,ot)||(_("changeSortDirection",ot),e(10,M=qu(M,["sort","direction"],ot,!0)),$(M))),32&t.$$.dirty&&function(ie){var Ie,Ye;or(null===(Ie=M)||void 0===Ie||null===(Ye=Ie.projection)||void 0===Ye?void 0:Ye.paths,ie)||(_("changeProjectionPaths",ie),e(10,M=qu(M,["projection","paths"],ie,!0)),$(M))}(y?y.map(function(ie){return ie.value}):null)},[z,U,q,re,L,y,v,g,G,R,M,C,$,m,p,f,function(X){e(0,z=X)},function(X){e(1,U=X)},function(){e(2,q=this.value)},function(X){e(3,re=X)},function(X){e(4,L=X)},function(X){e(5,y=X),e(10,M),e(6,v),e(13,m),e(15,f),e(11,C)}]}var wqe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,xqe,_qe,Ei,{json:11,queryOptions:10,onChange:12},bqe),r}return Se(e)}();function Cqe(t){pi(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function cae(t,n,e){var i=t.slice();return i[5]=n[e],i}function kqe(t){var n,e;return n=new sr({props:{data:Bb}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Sqe(t){var n,e;return n=new sr({props:{data:$b}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function uae(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[Sqe,kqe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=be("button"),i.c(),r=it(),o=tn(d),s=it(),P(n,"type","button"),P(n,"class","jse-query-language svelte-19cxesy"),P(n,"title",a="Select ".concat(t[5].name," as query language")),Mt(n,"selected",t[5].id===t[0])},m:function(g,v){Pe(g,n,v),f[e].m(n,null),de(n,r),de(n,o),de(n,s),l=!0,c||(u=Nt(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):($t(),ce(f[y],1,1,function(){f[y]=null}),Bt(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),Q(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&qn(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&P(n,"title",a),(!l||3&v)&&Mt(n,"selected",t[5].id===t[0])},i:function(g){l||(Q(i),l=!0)},o:function(g){ce(i),l=!1},d:function(g){g&&je(n),f[e].d(),c=!1,u()}}}function Dqe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&dae(t);return s=new sr({props:{data:p0}}),{c:function(){n=be("div"),(e=be("div")).textContent="Transform",i=it(),u&&u.c(),r=it(),o=be("button"),mt(s.$$.fragment),P(e,"class","jse-title svelte-d01h2s"),P(o,"type","button"),P(o,"class","jse-close svelte-d01h2s"),P(n,"class","jse-header svelte-d01h2s")},m:function(d,h){Pe(d,n,h),de(n,e),de(n,i),u&&u.m(n,null),de(n,r),de(n,o),ft(s,o,null),a=!0,l||(c=Nt(o,"click",t[2]),l=!0)},p:function(d,h){var f=Un(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&Q(u,1)):((u=dae(d)).c(),Q(u,1),u.m(n,r)):u&&($t(),ce(u,1,1,function(){u=null}),Bt())},i:function(d){a||(Q(u),Q(s.$$.fragment,d),a=!0)},o:function(d){ce(u),ce(s.$$.fragment,d),a=!1},d:function(d){d&&je(n),u&&u.d(),pt(s),l=!1,c()}}}function Iqe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=xa("simple-modal").close,c=xa("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(Eqe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Vi[h?"unshift":"push"](function(){e(1,i=h)})}]}var Fqe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Iqe,Mqe,Ei,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},Aqe),r}return Se(e)}(),s4=wa("jsoneditor:AutoScrollHandler"),Nqe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},hae=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||Nqe,s=y.a11y||!1,bn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),bn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,bn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},Zk=wa("jsoneditor:History");function fae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){Zk("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){Zk("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,Zk("undo",h),a(),h}},redo:function d(){if(o())return Zk("redo",e[i-=1]),a(),e[i]}}}function g0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var v0=wa("validation");function pae(t,n,e,i){return v0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function Oqe(t,n,e,i){if(v0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Xd.info}]};if(0===t.length)return null;try{var r=g0(function(){return e.parse(t)},function(l){return v0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:g0(function(){return i.parse(t)},function(l){return v0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=g0(function(){return n(o)},function(l){return v0("validate: validated json in ".concat(l," ms"))});return Hi(s)?null:{validationErrors:s}}catch(l){var a=g0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Yd(c)),!0}catch{return!1}}(t,e)},function(c){return v0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:Fk(t,l.message||l.toString()),isRepairable:a}}}var eS=wa("jsoneditor:FocusTracker");function a4(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(eS("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){eS("blur"),l=!1,a()}))}(0,t.onMount)(function(){eS("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){eS("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function jqe(t){pi(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function mae(t,n,e){var i=t.slice();return i[8]=n[e],i}function gae(t){var n,e;return n=new sr({props:{data:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function vae(t){var n,e;return n=new sr({props:{data:t[8].icon}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function yae(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&vae(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=be("button"),d&&d.c(),e=it(),i=tn(u),r=it(),P(n,"type","button"),P(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),P(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){Pe(p,n,m),d&&d.m(n,null),de(n,e),de(n,i),de(n,r),a=!0,l||(c=[Nt(n,"click",h),Nt(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&Q(d,1)):((d=vae(t)).c(),Q(d,1),d.m(n,e)):d&&($t(),ce(d,1,1,function(){d=null}),Bt()),(!a||8&m)&&u!==(u=t[8].text+"")&&qn(i,u),(!a||8&m&&o!==(o=t[8].title))&&P(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(Q(d),a=!0)},o:function(p){ce(d),a=!1},d:function(p){p&&je(n),d&&d.d(),l=!1,ho(c)}}}function Pqe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&gae(t),f=t[3],p=[],m=0;m100&&Cae(t);return{c:function(){n=be("table"),e=be("tbody");for(var u=0;u100?c?c.p(u,d):((c=Cae(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&xae(t);function y(){return t[6](t[7])}return{c:function(){n=be("tr"),e=be("td"),mt(i.$$.fragment),r=it(),o=be("td"),s=tn(m),a=it(),l=be("td"),c=tn(g),u=it(),d=be("td"),v&&v.c(),P(e,"class","jse-validation-error-icon svelte-1oe8e8r"),P(o,"class","svelte-1oe8e8r"),P(l,"class","svelte-1oe8e8r"),P(d,"class","jse-validation-error-action svelte-1oe8e8r"),P(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(_,C){Pe(_,n,C),de(n,e),ft(i,e,null),de(n,r),de(n,o),de(o,s),de(n,a),de(n,l),de(l,c),de(n,u),de(n,d),v&&v.m(d,null),h=!0,f||(p=Nt(n,"click",y),f=!0)},p:function(_,C){t=_,(!h||1&C)&&m!==(m=tu(Kl(t[7].path))+"")&&qn(s,m),(!h||1&C)&&g!==(g=t[7].message+"")&&qn(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,C),1&C&&Q(v,1)):((v=xae(t)).c(),Q(v,1),v.m(d,null)):v&&($t(),ce(v,1,1,function(){v=null}),Bt())},i:function(_){h||(Q(i.$$.fragment,_),Q(v),h=!0)},o:function(_){ce(i.$$.fragment,_),ce(v),h=!1},d:function(_){_&&je(n),pt(i),v&&v.d(),f=!1,p()}}}function Cae(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=be("tr"),e=be("td"),i=it(),r=be("td"),o=it(),s=be("td"),a=tn("(and "),l=tn(h),c=tn(" more errors)"),u=it(),d=be("td"),P(e,"class","svelte-1oe8e8r"),P(r,"class","svelte-1oe8e8r"),P(s,"class","svelte-1oe8e8r"),P(d,"class","svelte-1oe8e8r"),P(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){Pe(f,n,p),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),de(s,a),de(s,l),de(s,c),de(n,u),de(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&qn(l,h)},d:function(f){f&&je(n)}}}function Vqe(t){var n,e,i=!Hi(t[0]),r=i&&_ae(t);return{c:function(){r&&r.c(),n=_r()},m:function(o,s){r&&r.m(o,s),Pe(o,n,s),e=!0},p:function(o,s){var a=Un(s,1)[0];1&a&&(i=!Hi(o[0])),i?r?(r.p(o,a),1&a&&Q(r,1)):((r=_ae(o)).c(),Q(r,1),r.m(n.parentNode,n)):r&&($t(),ce(r,1,1,function(){r=null}),Bt())},i:function(o){e||(Q(r),e=!0)},o:function(o){ce(r),e=!1},d:function(o){r&&r.d(o),o&&je(n)}}}function Hqe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var l4=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Hqe,Vqe,Ei,{validationErrors:0,selectError:1},Rqe),r}return Se(e)}(),zqe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Uqe(t){pi(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function Gqe(t){var n,e,i,r,o,s,a,l,c;return s=new sr({props:{data:p0}}),{c:function(){n=be("div"),e=be("div"),i=tn(t[0]),r=it(),o=be("button"),mt(s.$$.fragment),P(e,"class","jse-title svelte-d01h2s"),P(o,"type","button"),P(o,"class","jse-close svelte-d01h2s"),P(n,"class","jse-header svelte-d01h2s")},m:function(u,d){Pe(u,n,d),de(n,e),de(e,i),de(n,r),de(n,o),ft(s,o,null),a=!0,l||(c=Nt(o,"click",t[3]),l=!0)},p:function(u,d){var h=Un(d,1)[0];(!a||1&h)&&qn(i,u[0])},i:function(u){a||(Q(s.$$.fragment,u),a=!0)},o:function(u){ce(s.$$.fragment,u),a=!1},d:function(u){u&&je(n),pt(s),l=!1,c()}}}function Wqe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=xa("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var c4=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Wqe,Gqe,Ei,{title:0,onClose:1},Uqe),r}return Se(e)}();function qqe(t){pi(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function Xqe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G;return e=new c4({props:{title:"Copying and pasting"}}),{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),(o=be("div")).textContent="These actions are unavailable via the menu. Please use:",s=it(),a=be("div"),l=be("div"),(c=be("div")).textContent="".concat(t[1],"+C"),u=tn("\n for copy"),d=it(),h=be("div"),(f=be("div")).textContent="".concat(t[1],"+X"),p=tn("\n for cut"),m=it(),g=be("div"),(v=be("div")).textContent="".concat(t[1],"+V"),y=tn("\n for paste"),_=it(),C=be("div"),(S=be("button")).textContent="Close",P(c,"class","jse-key svelte-1olothd"),P(l,"class","jse-shortcut"),P(f,"class","jse-key svelte-1olothd"),P(h,"class","jse-shortcut"),P(v,"class","jse-key svelte-1olothd"),P(g,"class","jse-shortcut"),P(a,"class","jse-shortcuts svelte-1olothd"),P(S,"type","button"),P(S,"class","jse-primary svelte-1olothd"),P(C,"class","jse-actions svelte-1olothd"),P(r,"class","jse-modal-contents svelte-1olothd"),P(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(R,z){Pe(R,n,z),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(r,s),de(r,a),de(a,l),de(l,c),de(l,u),de(a,d),de(a,h),de(h,f),de(h,p),de(a,m),de(a,g),de(g,v),de(g,y),de(r,_),de(r,C),de(C,S),M=!0,$||(G=Nt(S,"click",t[0]),$=!0)},p:Lt,i:function(R){M||(Q(e.$$.fragment,R),M=!0)},o:function(R){ce(e.$$.fragment,R),M=!1},d:function(R){R&&je(n),pt(e),$=!1,G()}}}function Yqe(t){return[xa("simple-modal").close,zqe?"\u2318":"Ctrl"]}var kae=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Yqe,Xqe,Ei,{},qqe),r}return Se(e)}();function Sae(t){return!!t&&("space"===t.type||!0===t.space)}function tS(t){return!!t&&("separator"===t.type||!0===t.separator)}function Jb(t){return!!t&&"function"==typeof t.onClick}function u4(t){return!!t&&"dropdown-button"===t.type&&Jb(t.main)&&Array.isArray(t.items)}function Dae(t){return Io(t)&&Io(t.parseError)}function Kqe(t){pi(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var Qqe=function(t){return{}},Tae=function(t){return{}};function Eae(t,n,e){var i=t.slice();return i[3]=n[e],i}var Zqe=function(t){return{}},Aae=function(t){return{}};function eXe(t){var n,e=Nae(t[3])+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=Nae(i[3])+"")&&qn(n,e)},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function tXe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&Mae(t),u=t[3].text&&Iae(t);return{c:function(){n=be("button"),c&&c.c(),e=it(),u&&u.c(),P(n,"type","button"),P(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),P(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){Pe(d,n,h),c&&c.m(n,null),de(n,e),u&&u.m(n,null),s=!0,a||(l=Nt(n,"click",function(){ba(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&Q(c,1)):((c=Mae(t)).c(),Q(c,1),c.m(n,e)):c&&($t(),ce(c,1,1,function(){c=null}),Bt()),t[3].text?u?u.p(t,h):((u=Iae(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&P(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&P(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(Q(c),s=!0)},o:function(d){ce(c),s=!1},d:function(d){d&&je(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function nXe(t){var n;return{c:function(){P(n=be("div"),"class","jse-space svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function iXe(t){var n;return{c:function(){P(n=be("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function Mae(t){var n,e;return n=new sr({props:{data:t[3].icon}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Iae(t){var n,e=t[3].text+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&qn(n,e)},d:function(i){i&&je(n)}}}function Fae(t){var n,e,i,r,o,s,a,l=[iXe,nXe,tXe,eXe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!tS(d[3])),n?0:(null==e&&(e=!!Sae(d[3])),e?1:(null==i&&(i=!!Jb(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=_r()},m:function(d,h){c[r].m(d,h),Pe(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):($t(),ce(c[f],1,1,function(){c[f]=null}),Bt(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(d){a||(Q(o),a=!0)},o:function(d){ce(o),a=!1},d:function(d){c[r].d(d),d&&je(s)}}}function rXe(t){for(var n,e,i,r,o=t[2].left,s=Ms(o,t,t[1],Aae),a=t[0],l=[],c=0;c0&&_.height>0}),u),c=u(e);function u(y){var _=y.getBoundingClientRect();return{x:_.left+_.width/2,y:_.top+_.height/2,rect:_,element:y}}function d(y,_){var S=y.x-_.x,M=(y.y-_.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(S*S+M*M)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(Xv(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(Xv(g.filter(function(y){return o(y.element)}),h)||Xv(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Vi[a?"unshift":"push"](function(){e(2,i=a)})}]}var Jae=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,GXe,UXe,Ei,{items:0,tip:1},EXe),r}return Se(e)}();function WXe(t){var n,e;return n=new Jae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function qXe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$=n.json,G=n.documentState,R=n.parser,z=n.showTip,U=n.onCloseContextMenu,q=n.onEditKey,re=n.onEditValue,L=n.onToggleEnforceString,X=n.onCut,Z=n.onCopy,H=n.onPaste,he=n.onRemove,E=n.onDuplicate,F=n.onExtract,N=n.onInsertBefore,Y=n.onInsert,V=n.onConvert,oe=n.onInsertAfter,fe=n.onSort,Fe=n.onTransform;function xe(){U(),q()}function tt(){U(),re()}function ze(){U(),L()}function ot(){U(),X(!0)}function B(){U(),X(!1)}function ne(){U(),Z(!0)}function ie(){U(),Z(!1)}function Ie(){U(),H()}function Ye(){U(),he()}function Le(){U(),E()}function _t(){U(),F()}function At(pn){U(),c?V(pn):Y(pn)}function _n(){U(),fe()}function ci(){U(),Fe()}function on(){U(),N()}function Fi(){U(),oe()}return t.$$set=function(pn){"json"in pn&&e(2,$=pn.json),"documentState"in pn&&e(3,G=pn.documentState),"parser"in pn&&e(4,R=pn.parser),"showTip"in pn&&e(0,z=pn.showTip),"onCloseContextMenu"in pn&&e(5,U=pn.onCloseContextMenu),"onEditKey"in pn&&e(6,q=pn.onEditKey),"onEditValue"in pn&&e(7,re=pn.onEditValue),"onToggleEnforceString"in pn&&e(8,L=pn.onToggleEnforceString),"onCut"in pn&&e(9,X=pn.onCut),"onCopy"in pn&&e(10,Z=pn.onCopy),"onPaste"in pn&&e(11,H=pn.onPaste),"onRemove"in pn&&e(12,he=pn.onRemove),"onDuplicate"in pn&&e(13,E=pn.onDuplicate),"onExtract"in pn&&e(14,F=pn.onExtract),"onInsertBefore"in pn&&e(15,N=pn.onInsertBefore),"onInsert"in pn&&e(16,Y=pn.onInsert),"onConvert"in pn&&e(17,V=pn.onConvert),"onInsertAfter"in pn&&e(18,oe=pn.onInsertAfter),"onSort"in pn&&e(19,fe=pn.onSort),"onTransform"in pn&&e(20,Fe=pn.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=G.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==$),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Hi(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Sn($,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Io(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Fr(i)||xs(i)||Yi(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Fr(i)||Yi(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&zb(i)&&!s&&!Array.isArray(Sn($,Xi(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&zb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!Ho(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?Lm(i)&&!Io(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,_=m?Lm(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,C=m?Lm(i)&&Ho(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,S=null!=i&&lf(a,G.enforceStringMap,ln(i.focusPath),R)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,M=[{type:"row",items:[{type:"button",onClick:xe,icon:h0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:tt,icon:h0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:h0,text:l,title:"Edit the value (Double-click on the value)",onClick:tt,disabled:!f},{type:"button",icon:S?$b:Bb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:ze,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:ot,icon:d0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:d0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:ot,disabled:!c},{type:"button",icon:d0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:B,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ne,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ne,disabled:!c},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:ie,disabled:!c}]},{type:"button",onClick:Ie,icon:mse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:Le,icon:wse,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:_t,icon:wWe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:_n,icon:Gk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:ci,icon:Hk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ye,icon:XO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return At("structure")},icon:m?Uk:f0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return At("object")},icon:m?Uk:f0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return At("array")},icon:m?Uk:f0,text:"Array",title:g+" array",disabled:!_},{type:"button",onClick:function(){return At("value")},icon:m?Uk:f0,text:"Value",title:g+" value",disabled:!C}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:on,icon:_We,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Fi,icon:vWe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[z,M,$,G,R,U,q,re,L,X,Z,H,he,E,F,N,Y,V,oe,fe,Fe,s,c,C,g,m,_,y,v,d,u,o,p,S,f,l,h,i,a,r]}var XXe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,qXe,WXe,Ei,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Se(e)}();function YXe(t){pi(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function Kae(t,n,e){var i=t.slice();return i[13]=n[e],i}function Qae(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=be("button"),e=tn("show "),i=tn(c),r=tn("-"),o=tn(u),s=it(),P(n,"type","button"),P(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){Pe(h,n,f),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),a||(l=Nt(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&qn(i,c),16&f&&u!==(u=t[13].end+"")&&qn(o,u)},d:function(h){h&&je(n),a=!1,l()}}}function JXe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&_.end<=M.start)&&$.push(_),M.start>=(G?_.end:v.end)&&$.push(M),a=$))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var ZXe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,QXe,JXe,Ei,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},YXe),r}return Se(e)}();function eYe(t){pi(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function tYe(t){var n,e,i,r,o;return e=new sr({props:{data:ru}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-context-menu-pointer svelte-1yzl4st"),P(n,"title",xF),Mt(n,"jse-selected",t[0])},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=Nt(n,"click",t[1]),r=!0)},p:function(s,a){var l=Un(a,1)[0];(!i||1&l)&&Mt(n,"jse-selected",s[0])},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function nYe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var cp=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,nYe,tYe,Ei,{selected:0,onContextMenu:2},eYe),r}return Se(e)}();function iYe(t){pi(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function rYe(t){var n,e,i,r,o,s,a,l=[aYe,sYe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=be("div"),i.c(),P(n,"data-type","selectable-key"),P(n,"class",r=Ao(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){Pe(d,n,h),c[e].m(n,null),o=!0,s||(a=Nt(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):($t(),ce(c[f],1,1,function(){c[f]=null}),Bt(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),Q(i,1),i.m(n,null)),(!o||1&h&&r!==(r=Ao(d[6](d[0]))+" svelte-24a1b2"))&&P(n,"class",r)},i:function(d){o||(Q(i),o=!0)},o:function(d){ce(i),o=!1},d:function(d){d&&je(n),c[e].d(),s=!1,a()}}}function oYe(t){var n,e;return n=new tse({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function sYe(t){var n,e=jm(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){5&r&&e!==(e=jm(i[2].normalization.escapeValue(i[0]))+"")&&qn(n,e)},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function aYe(t){var n,e;return n=new pse({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ele(t){var n,e;return n=new cp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function lYe(t){var n,e,i,r,o,s=[oYe,rYe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&ele(t);return{c:function(){e.c(),i=it(),c&&c.c(),r=_r()},m:function(u,d){a[n].m(u,d),Pe(u,i,d),c&&c.m(u,d),Pe(u,r,d),o=!0},p:function(u,d){var h=Un(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):($t(),ce(a[f],1,1,function(){a[f]=null}),Bt(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),Q(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&($t(),ce(c,1,1,function(){c=null}),Bt()):c?(c.p(u,h),28&h&&Q(c,1)):((c=ele(u)).c(),Q(c,1),c.m(r.parentNode,r))},i:function(u){o||(Q(e),Q(c),o=!0)},o:function(u){ce(e),ce(c),o=!1},d:function(u){a[n].d(u),u&&je(i),c&&c.d(u),u&&je(r)}}}function cYe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&xs(l):void 0),2056&t.$$.dirty&&e(4,r=i&&ip(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(iu(o,!0)))},function(h){return ah("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=Xi(o).concat(p);d.onSelect(f===CF?mr(m,!1):iu(m,!1)),f!==wF&&d.focus()},function(){d.onSelect(iu(o,!1)),d.focus()},o,s,l,u]}var uYe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,cYe,lYe,Ei,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},iYe),r}return Se(e)}();function tle(t,n,e){var i=t.slice();return i[8]=n[e],i}function nle(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=$k(u.selection),v=f.findIndex(function(z){return or(z.path,g)}),y=0,_=v,C=function(){var z;return null===(z=f[_+1])||void 0===z?void 0:z.height};void 0!==C()&&Math.abs(m)>y+C()/2;)y+=C(),_+=1;var M=Sn(h,Xi(g)),$=Array.isArray(M),G=null===(d=f[$?_:_+1])||void 0===d?void 0:d.path,R=_-v;return G?{beforePath:G,offset:R}:{append:!0,offset:R}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,_,C,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=Xi(d.focusPath),g=Sn(u,m);if(!(p||f&&l0(f,m)&&f.length>m.length))return[];var v=o0(d),y=$k(d),_=Ln(v),C=Ln(y),S=f?f[m.length]:void 0;if(!Mo(g)){if(oo(g)){var M=Ws(_),$=Ws(C),G=void 0!==S?Ws(S):g.length;return vO($-M+1,Gz?[].concat(si(R.slice(z,U+1)),si(R.slice(q,R.length))).map(function(re){return Rm(m,re)}):[].concat(si(R.slice(q,z)),si(R.slice(U+1,R.length))).map(function(re){return Rm(m,re)}):[]}(n,o,s),l=Sn(n,Xi(o0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=o0(m=u.selection),y=$k(m),_=f.findIndex(function($){return or($.path,v)}),C=f.findIndex(function($){return or($.path,y)}),Os(p,null===(d=f[_+g])||void 0===d?void 0:d.path,null===(h=f[C+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function uh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Iv(e,n)})}function mYe(t){pi(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function gYe(t){var n,e,i,r,o,s;return e=new sr({props:{data:$m}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){Pe(a,n,l),ft(e,n,null),r=!0,o||(s=[Nt(n,"click",function(){ba(t[0])&&t[0].apply(this,arguments)}),_a(i=qO.call(null,n,Ze({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Un(l,1)[0];t=a,i&&ba(i.update)&&2&c&&i.update.call(null,Ze({text:t[1]},t[2]))},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){ce(e.$$.fragment,a),r=!1},d:function(a){a&&je(n),pt(e),o=!1,ho(s)}}}function vYe(t,n,e){var i,r=xa("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var _0=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,vYe,gYe,ys,{validationError:3,onExpand:0},mYe),r}return Se(e)}();function yYe(t){pi(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var bYe=function(t){return{}},ile=function(t){return{}};function rle(t,n,e){var i=t.slice();return i[53]=n[e],i}var _Ye=function(t){return{}},ole=function(t){return{}};function sle(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function ale(t,n,e){var i=t.slice();return i[50]=n[e],i}var xYe=function(t){return{}},lle=function(t){return{}};function wYe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Fr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),d=t[34].identifier,h=Ms(d,t,t[35],ile),f=!t[17]&&cle();o=new pYe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:dse(t[6],t[9]),context:t[8]}});var p=u&&ule(t),m=t[15]&&dle(t),g=!t[17]&&hle(t);return{c:function(){n=be("div"),e=be("div"),h&&h.c(),i=it(),f&&f.c(),r=it(),mt(o.$$.fragment),s=it(),p&&p.c(),a=it(),m&&m.c(),l=it(),g&&g.c(),P(e,"class","jse-contents svelte-1wlxti1"),P(n,"class","jse-contents-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(v,y){Pe(v,n,y),de(n,e),h&&h.m(e,null),de(e,i),f&&f.m(e,null),de(e,r),ft(o,e,null),de(e,s),p&&p.m(e,null),de(n,a),m&&m.m(n,null),de(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Fs(h,d,v,v[35],c?Is(d,v[35],y,bYe):Ns(v[35]),ile),v[17]?f&&(f.d(1),f=null):f||((f=cle()).c(),f.m(e,r));var _={};2&y[0]&&(_.path=v[1]),1&y[0]&&(_.value=v[0]),8192&y[0]&&(_.enforceString=v[13]),65664&y[0]&&(_.selection=v[16]?v[7]:void 0),576&y[0]&&(_.searchResultItems=dse(v[6],v[9])),256&y[0]&&(_.context=v[8]),o.$set(_),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(Yi(v[7])||Fr(v[7]))&&!v[7].edit&&or(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&Q(p,1)):((p=ule(v)).c(),Q(p,1),p.m(e,null)):p&&($t(),ce(p,1,1,function(){p=null}),Bt()),v[15]?m?(m.p(v,y),32768&y[0]&&Q(m,1)):((m=dle(v)).c(),Q(m,1),m.m(n,l)):m&&($t(),ce(m,1,1,function(){m=null}),Bt()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=hle(v)).c(),g.m(n,null)),(!c||262144&y[0])&&P(n,"style",v[18])},i:function(v){c||(Q(h,v),Q(o.$$.fragment,v),Q(p),Q(m),c=!0)},o:function(v){ce(h,v),ce(o.$$.fragment,v),ce(p),ce(m),c=!1},d:function(v){v&&je(n),h&&h.d(v),f&&f.d(),pt(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function CYe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Fr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),C=[DYe,SYe],S=[];function M(E,F){return E[12]?0:1}r=M(t),o=S[r]=C[r](t);var $=t[34].identifier,G=Ms($,t,t[35],ole),R=!t[17]&&fle();function z(E,F){return E[12]?EYe:TYe}var U=z(t),q=U(t),re=_&&ple(t),L=t[15]&&(!t[12]||!t[15].isChildError)&&mle(t);function X(E,F){return E[12]?MYe:E[17]?void 0:AYe}var Z=X(t),H=Z&&Z(t),he=t[12]&&gle(t);return{c:function(){n=be("div"),e=be("div"),i=be("button"),o.c(),s=it(),G&&G.c(),a=it(),R&&R.c(),l=it(),c=be("div"),u=be("div"),q.c(),d=it(),re&&re.c(),h=it(),L&&L.c(),f=it(),H&&H.c(),p=it(),he&&he.c(),m=_r(),P(i,"type","button"),P(i,"class","jse-expand svelte-1wlxti1"),P(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),P(u,"class","jse-meta-inner svelte-1wlxti1"),P(c,"class","jse-meta svelte-1wlxti1"),P(c,"data-type","selectable-value"),P(e,"class","jse-header svelte-1wlxti1"),P(n,"class","jse-header-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(E,F){Pe(E,n,F),de(n,e),de(e,i),S[r].m(i,null),de(e,s),G&&G.m(e,null),de(e,a),R&&R.m(e,null),de(e,l),de(e,c),de(c,u),q.m(u,null),de(e,d),re&&re.m(e,null),de(n,h),L&&L.m(n,null),de(n,f),H&&H.m(n,null),Pe(E,p,F),he&&he.m(E,F),Pe(E,m,F),g=!0,v||(y=Nt(i,"click",t[21]),v=!0)},p:function(E,F){var N=r;(r=M(E))===N?S[r].p(E,F):($t(),ce(S[N],1,1,function(){S[N]=null}),Bt(),(o=S[r])?o.p(E,F):(o=S[r]=C[r](E)).c(),Q(o,1),o.m(i,null)),G&&G.p&&(!g||16&F[1])&&Fs(G,$,E,E[35],g?Is($,E[35],F,_Ye):Ns(E[35]),ole),E[17]?R&&(R.d(1),R=null):R||((R=fle()).c(),R.m(e,l)),U===(U=z(E))&&q?q.p(E,F):(q.d(1),(q=U(E))&&(q.c(),q.m(u,null))),65922&F[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Fr(E[7]))&&!E[7].edit&&or(E[7].focusPath,E[1])),_?re?(re.p(E,F),65922&F[0]&&Q(re,1)):((re=ple(E)).c(),Q(re,1),re.m(e,null)):re&&($t(),ce(re,1,1,function(){re=null}),Bt()),!E[15]||E[12]&&E[15].isChildError?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,F),36864&F[0]&&Q(L,1)):((L=mle(E)).c(),Q(L,1),L.m(n,f)),Z===(Z=X(E))&&H?H.p(E,F):(H&&H.d(1),(H=Z&&Z(E))&&(H.c(),H.m(n,null))),(!g||262144&F[0])&&P(n,"style",E[18]),E[12]?he?(he.p(E,F),4096&F[0]&&Q(he,1)):((he=gle(E)).c(),Q(he,1),he.m(m.parentNode,m)):he&&($t(),ce(he,1,1,function(){he=null}),Bt())},i:function(E){g||(Q(o),Q(G,E),Q(re),Q(L),Q(he),g=!0)},o:function(E){ce(o),ce(G,E),ce(re),ce(L),ce(he),g=!1},d:function(E){E&&je(n),S[r].d(),G&&G.d(E),R&&R.d(),q.d(),re&&re.d(),L&&L.d(),H&&H.d(),E&&je(p),he&&he.d(E),E&&je(m),v=!1,y()}}}function kYe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Fr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),C=[NYe,FYe],S=[];function M(E,F){return E[12]?0:1}r=M(t),o=S[r]=C[r](t);var $=t[34].identifier,G=Ms($,t,t[35],lle),R=!t[17]&&_le();function z(E,F){return E[12]?jYe:OYe}var U=z(t),q=U(t),re=_&&xle(t),L=t[15]&&(!t[12]||!t[15].isChildError)&&wle(t);function X(E,F){return E[12]?LYe:PYe}var Z=X(t),H=Z(t),he=t[12]&&Cle(t);return{c:function(){n=be("div"),e=be("div"),i=be("button"),o.c(),s=it(),G&&G.c(),a=it(),R&&R.c(),l=it(),c=be("div"),u=be("div"),q.c(),d=it(),re&&re.c(),h=it(),L&&L.c(),f=it(),H.c(),p=it(),he&&he.c(),m=_r(),P(i,"type","button"),P(i,"class","jse-expand svelte-1wlxti1"),P(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),P(u,"class","jse-meta-inner svelte-1wlxti1"),P(u,"data-type","selectable-value"),P(c,"class","jse-meta svelte-1wlxti1"),P(e,"class","jse-header svelte-1wlxti1"),P(n,"class","jse-header-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(E,F){Pe(E,n,F),de(n,e),de(e,i),S[r].m(i,null),de(e,s),G&&G.m(e,null),de(e,a),R&&R.m(e,null),de(e,l),de(e,c),de(c,u),q.m(u,null),de(e,d),re&&re.m(e,null),de(n,h),L&&L.m(n,null),de(n,f),H.m(n,null),Pe(E,p,F),he&&he.m(E,F),Pe(E,m,F),g=!0,v||(y=Nt(i,"click",t[21]),v=!0)},p:function(E,F){var N=r;(r=M(E))===N?S[r].p(E,F):($t(),ce(S[N],1,1,function(){S[N]=null}),Bt(),(o=S[r])?o.p(E,F):(o=S[r]=C[r](E)).c(),Q(o,1),o.m(i,null)),G&&G.p&&(!g||16&F[1])&&Fs(G,$,E,E[35],g?Is($,E[35],F,xYe):Ns(E[35]),lle),E[17]?R&&(R.d(1),R=null):R||((R=_le()).c(),R.m(e,l)),U===(U=z(E))&&q?q.p(E,F):(q.d(1),(q=U(E))&&(q.c(),q.m(u,null))),65922&F[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Fr(E[7]))&&!E[7].edit&&or(E[7].focusPath,E[1])),_?re?(re.p(E,F),65922&F[0]&&Q(re,1)):((re=xle(E)).c(),Q(re,1),re.m(e,null)):re&&($t(),ce(re,1,1,function(){re=null}),Bt()),!E[15]||E[12]&&E[15].isChildError?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,F),36864&F[0]&&Q(L,1)):((L=wle(E)).c(),Q(L,1),L.m(n,f)),Z===(Z=X(E))&&H?H.p(E,F):(H.d(1),(H=Z(E))&&(H.c(),H.m(n,null))),(!g||262144&F[0])&&P(n,"style",E[18]),E[12]?he?(he.p(E,F),4096&F[0]&&Q(he,1)):((he=Cle(E)).c(),Q(he,1),he.m(m.parentNode,m)):he&&($t(),ce(he,1,1,function(){he=null}),Bt())},i:function(E){g||(Q(o),Q(G,E),Q(re),Q(L),Q(he),g=!0)},o:function(E){ce(o),ce(G,E),ce(re),ce(L),ce(he),g=!1},d:function(E){E&&je(n),S[r].d(),G&&G.d(E),R&&R.d(),q.d(),re&&re.d(),L&&L.d(),H.d(),E&&je(p),he&&he.d(E),E&&je(m),v=!1,y()}}}function cle(t){var n;return{c:function(){(n=be("div")).textContent=":",P(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function ule(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),ft(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){ce(e.$$.fragment,r),i=!1},d:function(r){r&&je(n),pt(e)}}}function dle(t){var n,e;return n=new _0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function hle(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),P(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=Nt(n,"click",t[30]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function SYe(t){var n,e;return n=new sr({props:{data:rp}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function DYe(t){var n,e;return n=new sr({props:{data:ru}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function fle(t){var n;return{c:function(){(n=be("div")).textContent=":",P(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function TYe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=be("div")).textContent="{",e=it(),i=be("button"),r=tn(d),o=it(),s=tn(h),a=it(),(l=be("div")).textContent="}",P(n,"class","jse-bracket svelte-1wlxti1"),P(i,"type","button"),P(i,"class","jse-tag svelte-1wlxti1"),P(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){Pe(f,n,p),Pe(f,e,p),Pe(f,i,p),de(i,r),de(i,o),de(i,s),Pe(f,a,p),Pe(f,l,p),c||(u=Nt(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&qn(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&qn(s,h)},d:function(f){f&&je(n),f&&je(e),f&&je(i),f&&je(a),f&&je(l),c=!1,u()}}}function EYe(t){var n;return{c:function(){(n=be("div")).textContent="{",P(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},p:Lt,d:function(e){e&&je(n)}}}function ple(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),ft(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){ce(e.$$.fragment,r),i=!1},d:function(r){r&&je(n),pt(e)}}}function mle(t){var n,e;return n=new _0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function AYe(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),P(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=Nt(n,"click",t[30]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function MYe(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),P(n,"data-type","insert-selection-area-inside")},m:function(r,o){Pe(r,n,o),e||(i=Nt(n,"click",t[29]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function gle(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Xs(t[7])),c=l&&vle(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=it(),p&&p.c(),P(n,"class","jse-props svelte-1wlxti1"),P(o,"data-type","selectable-value"),P(o,"class","jse-footer svelte-1wlxti1"),P(r,"class","jse-footer-outer svelte-1wlxti1"),P(r,"style",t[18])},m:function(m,g){Pe(m,n,g),c&&c.m(n,null),de(n,e);for(var v=0;v]',s=it(),v&&v.c(),P(n,"class","jse-items svelte-1wlxti1"),P(o,"data-type","selectable-value"),P(o,"class","jse-footer svelte-1wlxti1"),P(r,"class","jse-footer-outer svelte-1wlxti1"),P(r,"style",t[18])},m:function(y,_){Pe(y,n,_),d&&d.m(n,null),de(n,e);for(var C=0;C=Le.start&&ne<=Le.end});if(!ie)return null;toe(ie.start,Math.min(p.length,ie.end),function(Le){return tt(String(Le))})}else Object.keys(p).forEach(tt);return xe}(S,l||wm);if(G("dragSelectionStart",{selection:S,items:N}),N){var Y=o0(S),V=N.findIndex(function(fe){return or(fe.path,Y)}),oe=f4({json:M.getJson(),documentState:M.getDocumentState(),deltaY:0,items:N}).offset;e(11,U={initialTarget:E.target,initialClientY:E.clientY,initialContentTop:X(),selectionStartIndex:V,selectionItemsCount:Qoe(S).length,items:N,offset:oe,didMoveItems:!1}),aa.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",he)}else G("Cannot drag the current selection (probably spread over multiple sections)")}else $(E)}},function(E){aa.selecting||aa.dragging||(E.stopPropagation(),Pm(E.target,"data-type","selectable-value")?e(10,R="hover-collection"):Pm(E.target,"data-type","insert-selection-area-inside")?e(10,R="hover-insert-inside"):Pm(E.target,"data-type","insert-selection-area-after")&&e(10,R="hover-insert-after"),clearTimeout(z))},function(E){E.stopPropagation(),z=setTimeout(function(){return e(10,R=void 0)})},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),M.onSelect(cf(m)))},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),M.onSelect(uf(m)))},function(E){M.onSelect(cf(m)),M.onContextMenu(E)},function(E){M.onSelect(uf(m)),M.onContextMenu(E)},$,h,f]}var p4=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,BYe,$Ye,Ei,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},yYe,[-1,-1]),r}return Se(e)}(),VYe=p4,HYe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},zYe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},m4={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},UYe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function GYe(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function WYe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,_=n.onRedo,C=n.onSort,S=n.onTransform,M=n.onContextMenu,$=n.onCopy,G=n.onRenderMenu;function R(){e(1,p=!p)}return t.$$set=function(z){"json"in z&&e(2,u=z.json),"selection"in z&&e(3,d=z.selection),"readOnly"in z&&e(4,h=z.readOnly),"showSearch"in z&&e(1,p=z.showSearch),"historyState"in z&&e(5,m=z.historyState),"onExpandAll"in z&&e(6,g=z.onExpandAll),"onCollapseAll"in z&&e(7,v=z.onCollapseAll),"onUndo"in z&&e(8,y=z.onUndo),"onRedo"in z&&e(9,_=z.onRedo),"onSort"in z&&e(10,C=z.onSort),"onTransform"in z&&e(11,S=z.onTransform),"onContextMenu"in z&&e(12,M=z.onContextMenu),"onCopy"in z&&e(13,$=z.onCopy),"onRenderMenu"in z&&e(14,G=z.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Fr(d)||xs(d)||Yi(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:HYe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!Ho(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:zYe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!Ho(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:KO,title:"Search (Ctrl+F)",className:"jse-search",onClick:R,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:sp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:$,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:C,disabled:h||void 0===u},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:S,disabled:h||void 0===u},l,{type:"button",icon:bse,title:xF,className:"jse-contextmenu",onClick:M},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:_,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=G(c)||c)},[o,p,u,d,h,m,g,v,y,_,C,S,M,$,G,s,a,l,c,r,i]}var qYe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,WYe,GYe,Ei,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Se(e)}();function XYe(t){pi(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function Mle(t){var n;return{c:function(){(n=be("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',P(n,"class","svelte-1q2qkk2")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function YYe(t){var n,e,i,r,o,s,a,l=!t[0]&&Mle();return{c:function(){n=be("div"),e=be("div"),i=it(),r=be("div"),o=tn("Empty document\n "),l&&l.c(),s=it(),a=be("div"),P(e,"class","jse-space jse-before svelte-1q2qkk2"),P(r,"class","jse-contents svelte-1q2qkk2"),P(a,"class","jse-space jse-after svelte-1q2qkk2"),P(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){Pe(c,n,u),de(n,e),de(n,i),de(n,r),de(r,o),l&&l.m(r,null),de(n,s),de(n,a)},p:function(c,u){Un(u,1),c[0]?l&&(l.d(1),l=null):l||((l=Mle()).c(),l.m(r,null))},i:Lt,o:Lt,d:function(c){c&&je(n),l&&l.d()}}}function JYe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var KYe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,JYe,YYe,Ei,{readOnly:0},XYe),r}return Se(e)}(),g4={},QYe={get exports(){return g4},set exports(t){g4=t}},Ile=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(oo(Sn(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function eJe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function tJe(t,n){return function(e,i){var r=Sn(e,t),o=Sn(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Sn(t,n);return[{op:"replace",path:ln(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Io(t))return function ZYe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Sn(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*v4(u,d)});for(var s=[],a=0;aQb&&jle();return{c:function(){n=be("div");for(var d=0;dQb?u?u.p(d,f):((u=jle()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:Lt,o:Lt,d:function(d){d&&je(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=Sn(l,g);if(Array.isArray(v))return fO(0,v.length).map(String);if(Io(v)){var y=Object.keys(v).slice(0);return y.sort(v4),y}return[]},function(g){return Xc(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Vi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Vi[g?"unshift":"push"](function(){e(4,o=g)})}]}var yJe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,vJe,gJe,Ei,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},fJe),r}return Se(e)}();function bJe(t){pi(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function Ule(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",L=!t[4]&&Gle(t),X=[xJe,_Je],Z=[];function H(E,F){return E[2]?0:1}a=H(t),l=Z[a]=X[a](t),y=new sr({props:{data:DWe}}),S=new sr({props:{data:bWe}}),G=new sr({props:{data:p0}});var he=t[0]&&!t[4]&&Wle(t);return{c:function(){n=be("div"),e=be("form"),L&&L.c(),i=it(),r=be("div"),o=be("div"),s=be("div"),l.c(),c=it(),u=be("label"),d=be("input"),h=it(),f=be("div"),p=tn(re),m=tn(t[10]),g=it(),v=be("button"),mt(y.$$.fragment),_=it(),C=be("button"),mt(S.$$.fragment),M=it(),$=be("button"),mt(G.$$.fragment),R=it(),he&&he.c(),P(s,"class","jse-search-icon svelte-3lbrbf"),P(d,"class","jse-search-input svelte-3lbrbf"),P(d,"title","Enter text to search"),P(d,"type","text"),P(d,"placeholder","Find"),P(u,"class","jse-search-input-label svelte-3lbrbf"),P(u,"about","jse-search input"),P(f,"class","jse-search-count svelte-3lbrbf"),Mt(f,"jse-visible",""!==t[8]),P(v,"type","button"),P(v,"class","jse-search-next svelte-3lbrbf"),P(v,"title","Go to next search result (Enter)"),P(C,"type","button"),P(C,"class","jse-search-previous svelte-3lbrbf"),P(C,"title","Go to previous search result (Shift+Enter)"),P($,"type","button"),P($,"class","jse-search-clear svelte-3lbrbf"),P($,"title","Close search box (Esc)"),P(o,"class","jse-search-section svelte-3lbrbf"),P(r,"class","jse-search-contents svelte-3lbrbf"),P(e,"class","jse-search-form svelte-3lbrbf"),P(n,"class","jse-search-box svelte-3lbrbf")},m:function(E,F){Pe(E,n,F),de(n,e),L&&L.m(e,null),de(e,i),de(e,r),de(r,o),de(o,s),Z[a].m(s,null),de(o,c),de(o,u),de(u,d),Hf(d,t[8]),de(o,h),de(o,f),de(f,p),de(f,m),de(o,g),de(o,v),ft(y,v,null),de(o,_),de(o,C),ft(S,C,null),de(o,M),de(o,$),ft(G,$,null),de(r,R),he&&he.m(r,null),z=!0,U||(q=[Nt(d,"input",t[21]),_a(CJe.call(null,d)),Nt(v,"click",t[22]),Nt(C,"click",t[23]),Nt($,"click",t[24]),Nt(e,"submit",t[12]),Nt(e,"keydown",t[13])],U=!0)},p:function(E,F){E[4]?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,F),16&F&&Q(L,1)):((L=Gle(E)).c(),Q(L,1),L.m(e,i));var N=a;(a=H(E))===N?Z[a].p(E,F):($t(),ce(Z[N],1,1,function(){Z[N]=null}),Bt(),(l=Z[a])?l.p(E,F):(l=Z[a]=X[a](E)).c(),Q(l,1),l.m(s,null)),256&F&&d.value!==E[8]&&Hf(d,E[8]),(!z||8&F)&&re!==(re=(-1!==E[3]?"".concat(E[3]+1,"/"):"")+"")&&qn(p,re),(!z||1024&F)&&qn(m,E[10]),(!z||256&F)&&Mt(f,"jse-visible",""!==E[8]),E[0]&&!E[4]?he?he.p(E,F):((he=Wle(E)).c(),he.m(r,null)):he&&(he.d(1),he=null)},i:function(E){z||(Q(L),Q(l),Q(y.$$.fragment,E),Q(S.$$.fragment,E),Q(G.$$.fragment,E),z=!0)},o:function(E){ce(L),ce(l),ce(y.$$.fragment,E),ce(S.$$.fragment,E),ce(G.$$.fragment,E),z=!1},d:function(E){E&&je(n),L&&L.d(),Z[a].d(),pt(y),pt(S),pt(G),he&&he.d(),U=!1,ho(q)}}}function Gle(t){var n,e,i,r,o;return e=new sr({props:{data:t[0]?ru:rp}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-replace-toggle svelte-3lbrbf"),P(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=Nt(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?ru:rp),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function _Je(t){var n,e;return n=new sr({props:{data:KO}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function xJe(t){var n,e;return n=new sr({props:{data:gWe,spin:!0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Wle(t){var n,e,i,r,o,s,a,l;return{c:function(){n=be("div"),e=be("input"),i=it(),(r=be("button")).textContent="Replace",o=it(),(s=be("button")).textContent="All",P(e,"class","jse-replace-input svelte-3lbrbf"),P(e,"title","Enter replacement text"),P(e,"type","text"),P(e,"placeholder","Replace"),P(r,"type","button"),P(r,"title","Replace current occurrence (Ctrl+Enter)"),P(r,"class","svelte-3lbrbf"),P(s,"type","button"),P(s,"title","Replace all occurrences"),P(s,"class","svelte-3lbrbf"),P(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){Pe(c,n,u),de(n,e),Hf(e,t[9]),de(n,i),de(n,r),de(n,o),de(n,s),a||(l=[Nt(e,"input",t[25]),Nt(r,"click",t[14]),Nt(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&Hf(e,c[9])},d:function(c){c&&je(n),a=!1,ho(l)}}}function wJe(t){var n,e,i=t[1]&&Ule(t);return{c:function(){i&&i.c(),n=_r()},m:function(r,o){i&&i.m(r,o),Pe(r,n,o),e=!0},p:function(r,o){var s=Un(o,1)[0];r[1]?i?(i.p(r,s),2&s&&Q(i,1)):((i=Ule(r)).c(),Q(i,1),i.m(n.parentNode,n)):i&&($t(),ce(i,1,1,function(){i=null}),Bt())},i:function(r){e||(Q(i),e=!0)},o:function(r){ce(i),e=!1},d:function(r){i&&i.d(r),r&&je(n)}}}function CJe(t){t.select()}function kJe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?go:g,y=n.onPrevious,_=void 0===y?go:y,C=n.onNext,S=void 0===C?go:C,M=n.onReplace,$=void 0===M?go:M,G=n.onReplaceAll,R=void 0===G?go:G,z=n.onClose,U=void 0===z?go:z,q="",re="",L="";function X(){e(0,f=!f&&!m)}function Z(){m||$(q,L)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,_=H.onPrevious),"onNext"in H&&e(6,S=H.onNext),"onReplace"in H&&e(18,$=H.onReplace),"onReplaceAll"in H&&e(19,R=H.onReplaceAll),"onClose"in H&&e(7,U=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=Gv(v,300)),1048832&t.$$.dirty&&r(q),2&t.$$.dirty&&s&&""!==q&&v(q)},[f,s,a,d,m,_,S,U,q,L,i,X,function(H){H.preventDefault(),q!==re?(re=q,r.cancel(),v(q)):S()},function(H){H.stopPropagation();var he=tp(H);"Enter"===he&&(H.preventDefault(),S()),"Shift+Enter"===he&&(H.preventDefault(),_()),"Ctrl+Enter"===he&&(H.preventDefault(),f?Z():S()),"Ctrl+H"===he&&(H.preventDefault(),X()),"Escape"===he&&(H.preventDefault(),U())},Z,function(){m||R(q,L)},c,v,$,R,r,function(){e(8,q=this.value)},function(){return S()},function(){return _()},function(){return U()},function(){e(9,L=this.value)}]}var SJe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,kJe,wJe,Ei,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},bJe),r}return Se(e)}(),qle=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function DJe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',P(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function HJe(t){var n,e,i,r,o,s,a,l,c,u=[UJe,zJe],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=be("label"),e=be("input"),i=it(),o.c(),s=_r(),P(e,"type","text"),e.readOnly="readonly",P(e,"tabindex","-1"),P(e,"class","jse-hidden-input svelte-qojdc1"),P(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){Pe(f,n,p),de(n,e),t[76](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=Nt(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):($t(),ce(d[m],1,1,function(){d[m]=null}),Bt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){ce(o),a=!1},d:function(f){f&&je(n),t[76](null),f&&je(i),d[r].d(f),f&&je(s),l=!1,c()}}}function zJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new SJe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new VYe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:go}});var m=t[18]&&rce(t),g=t[23]&&oce(t);return f=new l4({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=be("div"),mt(s.$$.fragment),a=it(),l=be("div"),mt(c.$$.fragment),u=it(),m&&m.c(),d=it(),g&&g.c(),h=it(),mt(f.$$.fragment),P(o,"class","jse-search-box-container svelte-qojdc1"),P(l,"class","jse-contents svelte-qojdc1"),P(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){Pe(v,o,y),ft(s,o,null),Pe(v,a,y),Pe(v,l,y),ft(c,l,null),t[77](l),Pe(v,u,y),m&&m.m(v,y),Pe(v,d,y),g&&g.m(v,y),Pe(v,h,y),ft(f,v,y),p=!0},p:function(v,y){var _,C,S,M,$={};524288&y[0]&&($.show=v[19]),131072&y[0]&&($.resultCount=(null===(_=v[17])||void 0===_||null===(C=_.items)||void 0===C?void 0:C.length)||0),131072&y[0]&&($.activeIndex=(null===(S=v[17])||void 0===S?void 0:S.activeIndex)||0),1048576&y[0]&&($.showReplace=v[20]),2097152&y[0]&&($.searching=v[21]),1&y[0]&&($.readOnly=v[0]),s.$set($);var G={};1024&y[0]&&(G.value=v[10]),65536&y[0]&&(G.expandedMap=v[16].expandedMap),65536&y[0]&&(G.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(G.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(G.validationErrorsMap=v[24]),131072&y[0]&&(G.searchResultItemsMap=null===(M=v[17])||void 0===M?void 0:M.itemsMap),65536&y[0]&&(G.selection=v[16].selection),8192&y[0]&&(G.context=v[13]),c.$set(G),v[18]?m?(m.p(v,y),262144&y[0]&&Q(m,1)):((m=rce(v)).c(),Q(m,1),m.m(d.parentNode,d)):m&&($t(),ce(m,1,1,function(){m=null}),Bt()),v[23]?g?(g.p(v,y),8388608&y[0]&&Q(g,1)):((g=oce(v)).c(),Q(g,1),g.m(h.parentNode,h)):g&&($t(),ce(g,1,1,function(){g=null}),Bt());var R={};4096&y[0]&&(R.validationErrors=v[12]),f.$set(R)},i:function(v){p||(Q(s.$$.fragment,v),Q(c.$$.fragment,v),Q(m),Q(g),Q(f.$$.fragment,v),p=!0)},o:function(v){ce(s.$$.fragment,v),ce(c.$$.fragment,v),ce(m),ce(g),ce(f.$$.fragment,v),p=!1},d:function(v){v&&je(o),pt(s),v&&je(a),v&&je(l),pt(c),t[77](null),v&&je(u),m&&m.d(v),v&&je(d),g&&g.d(v),v&&je(h),pt(f,v)}}}function UJe(t){var n,e,i,r,o=[WJe,GJe],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=_r()},m:function(l,c){s[n].m(l,c),Pe(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):($t(),ce(s[u],1,1,function(){s[u]=null}),Bt(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),Q(e,1),e.m(i.parentNode,i))},i:function(l){r||(Q(e),r=!0)},o:function(l){ce(e),r=!1},d:function(l){s[n].d(l),l&&je(i)}}}function rce(t){var n,e;return n=new nd({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:zk,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function oce(t){var n,e;return n=new nd({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:Wb,text:"Ok",onClick:t[8]},{icon:op,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:Wb,text:"Ok",onClick:i[8]},{icon:op,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function GJe(t){var n,e,i,r;return n=new nd({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[47]}]}}),i=new tce({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){mt(n.$$.fragment),e=it(),mt(i.$$.fragment)},m:function(o,s){ft(n,o,s),Pe(o,e,s),ft(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){ce(n.$$.fragment,o),ce(i.$$.fragment,o),r=!1},d:function(o){pt(n,o),o&&je(e),pt(i,o)}}}function WJe(t){var n,e;return n=new KYe({props:{readOnly:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function qJe(t){var n,e,i,r,o,s,a,l,c=t[1]&&nce(t),u=t[2]&&ice(t),h=[];return o=h[r=t[25]?1:0]=[HJe,VJe][r](t),{c:function(){n=be("div"),c&&c.c(),e=it(),u&&u.c(),i=it(),o.c(),P(n,"class","jse-tree-mode svelte-qojdc1"),Mt(n,"no-main-menu",!t[1])},m:function(f,p){Pe(f,n,p),c&&c.m(n,null),de(n,e),u&&u.m(n,null),de(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[Nt($Je,"mousedown",t[49]),Nt(n,"keydown",t[41]),Nt(n,"mousedown",t[42]),Nt(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&Q(c,1)):((c=nce(f)).c(),Q(c,1),c.m(n,e)):c&&($t(),ce(c,1,1,function(){c=null}),Bt()),f[2]?u?(u.p(f,p),4&p[0]&&Q(u,1)):((u=ice(f)).c(),Q(u,1),u.m(n,i)):u&&($t(),ce(u,1,1,function(){u=null}),Bt()),o.p(f,p),(!s||2&p[0])&&Mt(n,"no-main-menu",!f[1])},i:function(f){s||(Q(c),Q(u),Q(o),s=!0)},o:function(f){ce(c),ce(u),ce(o),s=!1},d:function(f){f&&je(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,ho(l)}}}function XJe(t,n,e){var i,r=wa("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=xa("simple-modal").open,h=ep(),f=ep(),p=xa("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=hae(),_=n.readOnly,C=n.externalContent,S=n.mainMenuBar,M=n.navigationBar,$=n.escapeControlCharacters,G=n.escapeUnicodeCharacters,R=n.parser,z=n.parseMemoizeOne,U=n.validator,q=n.validationParser,re=n.pathParser,L=n.indentation,X=n.onError,Z=n.onChange,H=n.onChangeMode,he=n.onRenderValue,E=n.onRenderMenu,F=n.onClassName,N=n.onFocus,Y=n.onBlur,V=n.onSortModal,oe=n.onTransformModal,fe=n.onJSONEditorModal,Fe=!1;a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(l)},hasFocus:function(){return Fe&&document.hasFocus()||jk(l)},onFocus:function(){v=!0,N&&N()},onBlur:function(){v=!1,Y&&Y()}});var xe=void 0;function tt(Ce){r("updateSelection",Ce);var lt="function"==typeof Ce?Ce(ie.selection):Ce;or(lt,ie.selection)||e(16,ie=Ze(Ze({},ie),{},{selection:lt}))}var ze,ot,B,ne=!1,ie=Lk(),Ie=!1,Ye=!1,Le=!1,_t="";function At(Ce){return _n.apply(this,arguments)}function _n(){return(_n=Zi(vn().mark(function Ce(lt){return vn().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return r("search text updated",lt),e(74,_t=lt),It.next=4,Xl();case 4:return It.next=6,Nr();case 6:case"end":return It.stop()}},Ce)}))).apply(this,arguments)}function ci(){return(ci=Zi(vn().mark(function Ce(){return vn().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return e(17,ze=ze?GGe(ze):void 0),lt.next=3,Nr();case 3:case"end":return lt.stop()}},Ce)}))).apply(this,arguments)}function on(){return(on=Zi(vn().mark(function Ce(){return vn().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return e(17,ze=ze?WGe(ze):void 0),lt.next=3,Nr();case 3:case"end":return lt.stop()}},Ce)}))).apply(this,arguments)}function Fi(){return(Fi=Zi(vn().mark(function Ce(lt,It){var Jt,nn,an,li;return vn().wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(nn=null===(Jt=ze)||void 0===Jt?void 0:Jt.activeItem,r("handleReplace",{replacementText:It,activeItem:nn}),nn){fi.next=4;break}return fi.abrupt("return");case 4:return an=qGe(c,ie,It,nn,R),li=an.newSelection,Yn(an.operations,function(Lo,Ls){return{state:Ze(Ze({},Ls),{},{selection:li})}}),fi.next=8,Xl();case 8:return fi.next=10,Nr();case 10:case"end":return fi.stop()}},Ce)}))).apply(this,arguments)}function pn(){return(pn=Zi(vn().mark(function Ce(lt,It){var Jt,an;return vn().wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return r("handleReplaceAll",{text:lt,replacementText:It}),Jt=XGe(c,ie,lt,It,R),an=Jt.newSelection,Yn(Jt.operations,function(li,fi){return{state:Ze(Ze({},fi),{},{selection:an})}}),Vn.next=5,Xl();case 5:return Vn.next=7,Nr();case 7:case"end":return Vn.stop()}},Ce)}))).apply(this,arguments)}function Nr(){return $r.apply(this,arguments)}function $r(){return($r=Zi(vn().mark(function Ce(){var lt,It,Jt;return vn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(It=null===(lt=ze)||void 0===lt?void 0:lt.activeItem,r("focusActiveSearchResult",ze),!It){nn.next=9;break}return e(16,ie=Ze(Ze({},PO(c,ie,Jt=It.path)),{},{selection:void 0})),nn.next=7,Xl();case 7:return nn.next=9,hn(Jt);case 9:case"end":return nn.stop()}},Ce)}))).apply(this,arguments)}var Ai,Wr,wr=fae({onChange:function(Ce){e(22,Or=Ce)}}),Or=wr.getState(),jo=gO(function(Ce,lt){if(""===Ce)return r("clearing search result"),void(void 0!==ze&&e(17,ze=void 0));e(21,Le=!0),setTimeout(function(){r("searching...",Ce);var nn,an,Vn,li,fi,Lo,Ls,It=ase(Ce,lt,1e3);e(17,(nn=It,Vn=null!=(an=ze)&&an.activeItem?use(an.activeItem):void 0,li=nn.findIndex(function(Zo){return or(Vn,use(Zo))}),fi=-1!==li?li:void 0!==an?.activeIndex&&an?.activeIndex0?0:-1,Ls=(Lo=nn.map(function(Zo,wo){return Ze(Ze({},Zo),{},{active:wo===fi})}))[fi],ze={items:Lo,itemsMap:qv(Lo,function(Zo){return ln(Zo.path)}),activeItem:Ls,activeIndex:fi})),e(21,Le=!1)})},300),Nn=!1,xt=[],ui=Zb(pae);function Ni(Ce,lt,It,Jt){g0(function(){var nn;try{nn=ui(Ce,lt,It,Jt)}catch(an){nn=[{path:[],message:"Failed to validate: "+an.message,severity:Xd.warning}]}or(nn,xt)||(r("validationErrors changed:",nn),e(12,xt=nn))},function(nn){return r("validationErrors updated in ".concat(nn," ms"))})}function Cr(){return r("validate"),xe?{parseError:xe,isRepairable:!1}:(Ni(c,U,R,q),Hi(xt)?null:{validationErrors:xt})}function xo(){return c}function Qo(){return ie}function On(Ce){ne||(ne=!0,e(16,ie=nu(Ce,ie,[],coe({json:Ce},10240)?sh:Hb)))}function ai(Ce){void 0!==ie.selection&&(ie.selection&&Xc(Ce,ie.selection.anchorPath)&&Xc(Ce,ie.selection.focusPath)||(r("clearing selection: path does not exist anymore",ie.selection),e(16,ie=Ze(Ze({},ie),{},{selection:s0(Ce,ie)}))))}function bi(Ce){var lt=Ce.previousJson,It=Ce.previousState,Jt=Ce.previousText,nn=Ce.previousTextIsRepaired;void 0===lt&&void 0===Jt||(void 0!==c?wr.add(void 0!==lt?{undo:{patch:[{op:"replace",path:"",value:lt}],state:ul(It),json:void 0,text:Jt,textIsRepaired:nn},redo:{patch:[{op:"replace",path:"",value:c}],state:ul(ie),json:void 0,text:u,textIsRepaired:Nn}}:{undo:{patch:void 0,json:void 0,text:Jt,state:ul(It),textIsRepaired:nn},redo:{patch:void 0,json:c,state:ul(ie),text:u,textIsRepaired:Nn}}):void 0!==lt&&wr.add({undo:{patch:void 0,json:lt,state:ul(It),text:Jt,textIsRepaired:nn},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Nn,state:ul(ie)}}))}function Er(Ce,lt){if(r("patch",Ce,lt),void 0===c)throw new Error("Cannot apply patch: no JSON");var It={json:c,text:u},Jt=c,nn=ie,an=u,Vn=Nn,li=ose(c,Ce),fi=$oe(c,ie,Ce),Lo=a0(c,Ce),Ls=function(wh,bd){return void 0!==bd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?Ze(Ze({},wh),{},{selection:bd}):wh}(fi.documentState,Lo,!1);r("patch updatedSelection",Lo);var Zo="function"==typeof lt?lt(fi.json,Ls):void 0;e(10,c=Zo&&void 0!==Zo.json?Zo.json:fi.json);var wo=Zo&&void 0!==Zo.state?Zo.state:Ls;e(16,ie=wo),e(11,u=void 0),e(23,Nn=!1),e(18,B=void 0),ai(c),wr.add({undo:{patch:li,json:void 0,text:an,state:ul(nn),textIsRepaired:Vn},redo:{patch:Ce,json:void 0,state:ul(wo),text:u,textIsRepaired:Nn}});var $l={json:c,previousJson:Jt,undo:li,redo:Ce};return ei(It,$l),$l}function qr(){!_&&ie.selection&&tt(iu(ie.selection.focusPath,!0))}function ao(){if(!_&&ie.selection){var Ce=ie.selection.focusPath,lt=Sn(c,Ce);Ho(lt)?(r("openJSONEditorModal",{path:It=Ce,value:Jt=lt}),Fe=!0,fe({content:{json:Jt},path:It,onPatch:Wr.onPatch,onClose:function(){Fe=!1,Ps()}})):tt(mr(Ce,!0))}var It,Jt}function Js(){if(!_&&Yi(ie.selection)){var Ce=ie.selection.focusPath,lt=ln(Ce),It=Sn(c,Ce),Jt=!lf(It,ie.enforceStringMap,lt,R),nn=Jt?String(It):Fv(String(It),R);r("handleToggleEnforceString",{enforceString:Jt,value:It,updatedValue:nn}),Yn([{op:"replace",path:lt,value:nn}],function(an,Vn){return{state:Roe(Vn,lt,Jt)}})}}function vr(){return Ks.apply(this,arguments)}function Ks(){return Ks=Zi(vn().mark(function Ce(){var lt,It=arguments;return vn().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return lt=!(It.length>0&&void 0!==It[0])||It[0],Jt.next=3,Jle({json:c,documentState:ie,indentation:lt?L:void 0,readOnly:_,parser:R,onPatch:Yn});case 3:case"end":return Jt.stop()}},Ce)})),Ks.apply(this,arguments)}function qa(){return Xa.apply(this,arguments)}function Xa(){return Xa=Zi(vn().mark(function Ce(){var lt,It=arguments;return vn().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(lt=!(It.length>0&&void 0!==It[0])||It[0],void 0!==c){Jt.next=3;break}return Jt.abrupt("return");case 3:return Jt.next=5,Kle({json:c,documentState:ie,indentation:lt?L:void 0,parser:R});case 5:case"end":return Jt.stop()}},Ce)})),Xa.apply(this,arguments)}function Ic(){d(kae,{},Ze(Ze({},Cm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Ps()}})}function we(Ce,lt){d(jae,{text:Ce,onParse:Ik,onRepair:soe,onApply:lt},Ze(Ze({},Cm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ps()}})}function He(){Zle({json:c,text:u,documentState:ie,keepSelection:!1,readOnly:_,onChange:Z,onPatch:Yn})}function qe(){!_&&void 0!==c&&ie.selection&&c0(ie.selection)&&!Hi(ie.selection.focusPath)&&(r("duplicate",{selection:ie.selection}),Yn(nse(c,Qoe(ie.selection))))}function ut(){_||!ie.selection||!Fr(ie.selection)&&!Yi(ie.selection)||Hi(ie.selection.focusPath)||(r("extract",{selection:ie.selection}),Yn(function(lt,It){if(Yi(It))return[{op:"move",from:ln(It.focusPath),path:""}];if(!Fr(It))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Jt=Sn(lt,Xi(It.focusPath));if(oo(Jt))return[{op:"replace",path:"",value:It.paths.map(function(an){var Vn=Ws(Ln(an));return Jt[Vn]})}];if(Mo(Jt)){var nn={};return It.paths.forEach(function(an){var Vn=String(Ln(an));nn[Vn]=Jt[Vn]}),[{op:"replace",path:"",value:nn}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(It))}(c,ie.selection),function(lt,It){if(Ho(lt))return{state:np(lt,It,[])}}))}function Ue(Ce){void 0!==c&&rS({insertType:Ce,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:br})}function Dn(Ce){xs(ie.selection)&&tt(mr(ie.selection.focusPath,!1)),Ue(Ce)}function ii(Ce){if(!_&&ie.selection)if(Lm(ie.selection))try{var lt=ie.selection.anchorPath,It=Sn(c,lt),Jt=function(an,Vn,li){if("array"===Vn){if(Array.isArray(an))return an;if(Io(an))return ioe(an);if("string"==typeof an)try{var fi=li.parse(an);if(Array.isArray(fi))return fi;if(Io(fi))return ioe(fi)}catch{return[an]}return[an]}if("object"===Vn){if(Array.isArray(an))return noe(an);if(Io(an))return an;if("string"==typeof an)try{var Lo=li.parse(an);if(Io(Lo))return Lo;if(Array.isArray(Lo))return noe(Lo)}catch{return{value:an}}return{value:an}}if("value"===Vn)return Ho(an)?li.stringify(an):an;throw new Error("Cannot convert ".concat(VF(an,li)," to ").concat(Vn))}(It,Ce,R);if(Jt===It)return;var nn=[{op:"replace",path:ln(lt),value:Jt}];r("handleConvert",{selection:ie.selection,path:lt,type:Ce,operations:nn}),Yn(nn,function(an,Vn){return{state:np(an,Vn,ie.selection.focusPath)}})}catch(an){X(an)}else X(new Error("Cannot convert current selection to ".concat(Ce)))}function hi(){var Ce=qoe(c,ie,!1),lt=Xi(ie.selection.focusPath);!Hi(Ce.focusPath)&&or(lt,Xi(Ce.focusPath))?tt(uf(Ce.focusPath)):tt(cf(lt)),r("insert before",{selection:ie.selection,selectionBefore:Ce,parentPath:lt}),Xl().then(Rl)}function di(){var Ce=Fr(ie.selection)?Ln(ie.selection.paths):ie.selection.focusPath;r("insert after",Ce),tt(uf(Ce)),Xl().then(Rl)}function kr(Ce){return Qr.apply(this,arguments)}function Qr(){return(Qr=Zi(vn().mark(function Ce(lt){return vn().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,ece({char:lt,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:br,onSelect:tt});case 2:case"end":return It.stop()}},Ce)}))).apply(this,arguments)}function gi(){if(!_&&wr.getState().canUndo){var Ce=wr.undo();if(Ce){var lt={json:c,text:u};e(10,c=Ce.undo.patch?Yu(c,Ce.undo.patch):Ce.undo.json),e(16,ie=Ce.undo.state),e(11,u=Ce.undo.text),e(23,Nn=Ce.undo.textIsRepaired),r("undo",{item:Ce,json:c,documentState:ie}),ei(lt,{json:c,previousJson:lt.json,redo:Ce.undo.patch,undo:Ce.redo.patch}),Ps(),ie.selection&&hn(ie.selection.focusPath,!1)}}}function yr(){if(!_&&wr.getState().canRedo){var Ce=wr.redo();if(Ce){var lt={json:c,text:u};e(10,c=Ce.redo.patch?Yu(c,Ce.redo.patch):Ce.redo.json),e(16,ie=Ce.redo.state),e(11,u=Ce.redo.text),e(23,Nn=Ce.redo.textIsRepaired),r("redo",{item:Ce,json:c,documentState:ie}),ei(lt,{json:c,previousJson:lt.json,redo:Ce.redo.patch,undo:Ce.undo.patch}),Ps(),ie.selection&&hn(ie.selection.focusPath,!1)}}}function Ee(Ce){var lt;_||void 0===c||(Fe=!0,V({id:h,json:c,rootPath:Ce,onSort:(lt=Zi(vn().mark(function It(Jt){var nn;return vn().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:r("onSort",Ce,nn=Jt.operations),Yn(nn,function(Vn,li){return{state:Ze(Ze({},np(Vn,li,Ce)),{},{selection:mr(Ce,!1)})}});case 3:case"end":return an.stop()}},It)})),function(It){return lt.apply(this,arguments)}),onClose:function(){Fe=!1,Ps()}}))}function St(){ie.selection&&Ee(Joe(c,ie.selection))}function Ht(Ce){var It=Ce.rootPath,Jt=Ce.onTransform,nn=Ce.onClose;void 0!==c&&It&&(Fe=!0,oe({id:Ce.id||f,json:c,rootPath:It,onTransform:Jt?function(an){Jt({operations:an,json:c,transformedJson:Yu(c,an)})}:function(an){r("onTransform",It,an),Yn(an,function(Vn,li){return{state:Ze(Ze({},np(Vn,li,It)),{},{selection:mr(It,!1)})}})},onClose:function(){Fe=!1,Ps(),nn&&nn()}}))}function sn(){ie.selection&&Ht({rootPath:Joe(c,ie.selection)})}function hn(Ce){return ri.apply(this,arguments)}function ri(){return ri=Zi(vn().mark(function Ce(lt){var It,Jt,nn,an,li=arguments;return vn().wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return It=!(li.length>1&&void 0!==li[1])||li[1],e(16,ie=PO(c,ie,Xi(lt))),fi.next=4,Xl();case 4:if(!(Jt=Oi(lt))){fi.next=14;break}if(r("scrollTo",{path:lt,elem:Jt,refContents:s}),nn=s.getBoundingClientRect(),an=Jt.getBoundingClientRect(),It){fi.next=12;break}if(!(an.bottom>nn.top&&an.topIt.bottom-20&&y(lt,{container:s,offset:-(It.height-nn-20),duration:0})}}function ei(Ce,lt){(void 0!==Ce.json||void 0!==Ce?.text)&&(void 0!==u?Z({text:u,json:void 0},Ce,{contentErrors:Cr(),patchResult:lt}):void 0!==c&&Z({text:void 0,json:c},Ce,{contentErrors:Cr(),patchResult:lt}))}function Yn(Ce,lt){if(!_)return r("handlePatch",Ce,lt),Er(Ce,lt)}function br(Ce,lt){var It=ie,Jt=c,nn=u,an={json:c,text:u},Vn=Nn,li=nu(c,ie,[],sh),fi="function"==typeof lt?lt(Ce,li):void 0;e(10,c=fi&&void 0!==fi.json?fi.json:Ce),e(16,ie=fi&&void 0!==fi.state?fi.state:li),e(11,u=void 0),e(23,Nn=!1),ai(c),bi({previousJson:Jt,previousState:It,previousText:nn,previousTextIsRepaired:Vn}),ei(an,null)}function Ar(Ce,lt){r("handleChangeText");var It=ie,Jt=c,nn=u,an={json:c,text:u},Vn=Nn;try{e(10,c=z(Ce)),e(16,ie=nu(c,ie,[],sh)),e(11,u=void 0),e(23,Nn=!1)}catch{try{e(10,c=z(Yd(Ce))),e(16,ie=nu(c,ie,[],sh)),e(11,u=Ce),e(23,Nn=!0)}catch{e(10,c=void 0),e(16,ie=Lk({json:c,expand:sh})),e(11,u=Ce),e(23,Nn=!1)}}if("function"==typeof lt){var li=lt(c,ie);e(10,c=li&&li.json?li.json:c),e(16,ie=li&&li.state?li.state:ie)}ai(c),bi({previousJson:Jt,previousState:It,previousText:nn,previousTextIsRepaired:Vn}),ei(an,null)}function Po(Ce,lt){var It=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Ce,expanded:lt,recursive:It}),e(16,ie=lt?It?nu(c,ie,Ce,Hb):function PGe(t,n){return Ze(Ze({},t),{},{expandedMap:Ze(Ze({},t.expandedMap),{},ql({},ln(n),!0))})}(ie,Ce):Loe(ie,Ce)),ie.selection&&!lt&&function RGe(t,n){return l0(t.focusPath,n)&&(t.focusPath.length>n.length||Xs(t))}(ie.selection,Ce)&&tt(void 0),setTimeout(function(){jk(l)||Ps()})}function ca(Ce){r("openFind",{findAndReplace:Ce}),e(19,Ie=!1),e(20,Ye=!1),Xl().then(function(){e(19,Ie=!0),e(20,Ye=Ce)})}function md(Ce,lt){r("handleExpandSection",Ce,lt);var nn,an,Vn,It=ln(Ce);e(16,(an=It,Vn=lt,ie=Ze(Ze({},nn=ie),{},{visibleSectionsMap:Ze(Ze({},nn.visibleSectionsMap),{},ql({},an,Poe(Rk(nn,an).concat(Vn))))})))}function hu(Ce){r("pasted json as text",Ce),e(18,B=Ce)}function ua(Ce){Fe=!0;var Lo=m(XXe,{json:c,documentState:ie,parser:R,showTip:Ce.showTip,onEditKey:qr,onEditValue:ao,onToggleEnforceString:Js,onCut:vr,onCopy:qa,onPaste:Ic,onRemove:He,onDuplicate:qe,onExtract:ut,onInsertBefore:hi,onInsert:Dn,onConvert:ii,onInsertAfter:di,onSort:St,onTransform:sn,onCloseContextMenu:function(){g(Lo),Ps()}},{left:Ce.left,top:Ce.top,offsetTop:Ce.offsetTop,offsetLeft:Ce.offsetLeft,width:Ce.width,height:Ce.height,anchor:Ce.anchor,closeOnOuterClick:!0,onClose:function(){Fe=!1,Ps()}})}function Rl(Ce){if(!_&&!ip(ie.selection)){if(Ce&&(Ce.stopPropagation(),Ce.preventDefault()),Ce&&"contextmenu"===Ce.type&&Ce.target!==a)ua({left:Ce.clientX,top:Ce.clientY,width:260,height:336,showTip:!1});else{var lt,It=null===(lt=s)||void 0===lt?void 0:lt.querySelector(".jse-context-menu-pointer.jse-selected");if(It)ua({anchor:It,offsetTop:2,width:260,height:336,showTip:!1});else{var Jt,nn=null===(Jt=s)||void 0===Jt?void 0:Jt.getBoundingClientRect();nn&&ua({top:nn.top+2,left:nn.left+2,width:260,height:336,showTip:!1})}}return!1}}function gd(){return(gd=Zi(vn().mark(function Ce(){var lt,It,Jt;return vn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return r("apply pasted json",B),It=(lt=B).path,Jt=lt.contents,tt(mr(It,!1)),nn.next=5,Xl();case 5:Yn([{op:"replace",path:ln(It),value:Jt}],function(an,Vn){return{state:np(an,Vn,It)}});case 7:case"end":return nn.stop()}},Ce)}))).apply(this,arguments)}function Ps(){r("focus"),a&&(a.focus(),a.select())}function vd(Ce){return lt=c,It=ie,nn=Xi(Jt=Ce),an=[Ln(Jt)],(li=(Vn=Sn(lt,nn))?HO(Vn,It,an):void 0)?mr(nn.concat(li),!1):uf(Jt);var lt,It,Jt,nn,an,Vn,li}function yd(Ce){i&&i.onDrag(Ce)}function eT(){i&&i.onDragEnd()}return t.$$set=function(Ce){"readOnly"in Ce&&e(0,_=Ce.readOnly),"externalContent"in Ce&&e(50,C=Ce.externalContent),"mainMenuBar"in Ce&&e(1,S=Ce.mainMenuBar),"navigationBar"in Ce&&e(2,M=Ce.navigationBar),"escapeControlCharacters"in Ce&&e(51,$=Ce.escapeControlCharacters),"escapeUnicodeCharacters"in Ce&&e(52,G=Ce.escapeUnicodeCharacters),"parser"in Ce&&e(3,R=Ce.parser),"parseMemoizeOne"in Ce&&e(53,z=Ce.parseMemoizeOne),"validator"in Ce&&e(54,U=Ce.validator),"validationParser"in Ce&&e(55,q=Ce.validationParser),"pathParser"in Ce&&e(4,re=Ce.pathParser),"indentation"in Ce&&e(5,L=Ce.indentation),"onError"in Ce&&e(6,X=Ce.onError),"onChange"in Ce&&e(56,Z=Ce.onChange),"onChangeMode"in Ce&&e(57,H=Ce.onChangeMode),"onRenderValue"in Ce&&e(58,he=Ce.onRenderValue),"onRenderMenu"in Ce&&e(7,E=Ce.onRenderMenu),"onClassName"in Ce&&e(59,F=Ce.onClassName),"onFocus"in Ce&&e(60,N=Ce.onFocus),"onBlur"in Ce&&e(61,Y=Ce.onBlur),"onSortModal"in Ce&&e(62,V=Ce.onSortModal),"onTransformModal"in Ce&&e(63,oe=Ce.onTransformModal),"onJSONEditorModal"in Ce&&e(64,fe=Ce.onJSONEditorModal)},t.$$.update=function(){var Ce,lt;3145728&t.$$.dirty[1]&&e(73,ot=TO({escapeControlCharacters:$,escapeUnicodeCharacters:G})),524288&t.$$.dirty[1]&&function gt(Ce){void 0!==Ce.json&&function(lt){if(void 0!==lt){var It=!or(c,lt);if(r("update external json",{isChanged:It,currentlyText:void 0===c}),It){var Jt={json:c,text:u},nn=ie,an=c,Vn=u,li=Nn;e(10,c=lt),On(c),e(11,u=void 0),e(23,Nn=!1),ai(c),bi({previousJson:an,previousState:nn,previousText:Vn,previousTextIsRepaired:li}),ei(Jt,null)}}}(Ce.json),void 0!==Ce.text&&function(lt){if(void 0!==lt&&void 0===C.json){var It=lt!==u;if(r("update external text",{isChanged:It}),It){var Jt={json:c,text:u},nn=c,an=ie,Vn=u,li=Nn;try{e(10,c=z(lt)),On(c),e(11,u=lt),e(23,Nn=!1),xe=void 0}catch(fi){try{e(10,c=z(Yd(lt))),On(c),e(11,u=lt),e(23,Nn=!0),xe=void 0,ai(c)}catch{e(10,c=void 0),e(11,u=C.text),e(23,Nn=!1),xe=Fk(u,fi.message||fi.toString())}}ai(c),bi({previousJson:nn,previousState:an,previousText:Vn,previousTextIsRepaired:li}),ei(Jt,null)}}}(Ce.text)}(C),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&jo(_t,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Ni(c,U,R,q),4096&t.$$.dirty[0]&&e(24,(lt={},(Ce=xt).forEach(function(It){lt[ln(It.path)]=It}),Ce.forEach(function(It){for(var Jt=It.path;Jt.length>0;){var nn=ln(Jt=Xi(Jt));nn in lt||(lt[nn]={isChildError:!0,path:Jt,message:"Contains invalid data",severity:Xd.warning})}}),Ai=lt)),512&t.$$.dirty[0]&&(i=s?function(Ce){var lt,It;function Jt(li){return li<20?200:li<50?400:1200}function nn(){Ce&&(Ce.scrollTop+=.05*(lt||0))}function an(li){It&&li===lt||(Vn(),s4("startAutoScroll",li),lt=li,It=setInterval(nn,50))}function Vn(){It&&(s4("stopAutoScroll"),clearInterval(It),It=void 0,lt=void 0)}return s4("createAutoScrollHandler",Ce),{onDrag:function(li){if(Ce){var fi=li.clientY,Lo=Ce.getBoundingClientRect(),Ls=Lo.top,Zo=Lo.bottom;fiZo?an(Jt(fi-Zo)):Vn()}},onDragEnd:function(){Vn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Wr={readOnly:_,parser:R,normalization:ot,getJson:xo,getDocumentState:Qo,findElement:Oi,findNextInside:vd,focus:Ps,onPatch:Yn,onInsert:Ue,onExpand:Po,onSelect:tt,onFind:ca,onExpandSection:md,onPasteJson:hu,onRenderValue:he,onContextMenu:ua,onClassName:F||function(){},onDrag:yd,onDragEnd:eT}),8192&t.$$.dirty[0]&&r("context changed",Wr)},[_,S,M,R,re,L,X,E,function(){return Nn&&void 0!==c&&br(c),{json:c,text:u}},s,c,u,xt,Wr,a,l,ie,ze,B,Ie,Ye,Le,Or,Nn,Ai,o,At,function(){return ci.apply(this,arguments)},function(){return on.apply(this,arguments)},function(Ce,lt){return Fi.apply(this,arguments)},function(Ce,lt){return pn.apply(this,arguments)},function(){e(19,Ie=!1),e(20,Ye=!1),At(""),Ps()},function(Ce){r("select validation error",Ce),tt(mr(Ce.path,!1)),hn(Ce.path)},qa,function(Ce){Ce.preventDefault(),Qle({clipboardText:Ce.clipboardData.getData("text/plain"),json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onChangeText:Ar,openRepairModal:we})},gi,yr,function(){Ee([])},function(){Ht({rootPath:[]})},function(){Po([],!0,!0)},function(){Po([],!1,!0)},function(Ce){var lt=tp(Ce),It=Ce.shiftKey;if(r("keydown",{combo:lt,key:Ce.key}),"Ctrl+X"===lt&&(Ce.preventDefault(),vr(!0)),"Ctrl+Shift+X"===lt&&(Ce.preventDefault(),vr(!1)),"Ctrl+C"===lt&&(Ce.preventDefault(),qa(!0)),"Ctrl+Shift+C"===lt&&(Ce.preventDefault(),qa(!1)),"Ctrl+D"===lt&&(Ce.preventDefault(),qe()),"Delete"!==lt&&"Backspace"!==lt||(Ce.preventDefault(),He()),"Insert"===lt&&(Ce.preventDefault(),Ue("structure")),"Ctrl+A"===lt&&(Ce.preventDefault(),tt(mr([],!1))),"Ctrl+Q"===lt&&Rl(Ce),"ArrowUp"===lt||"Shift+ArrowUp"===lt){Ce.preventDefault();var Jt=ie.selection?qoe(c,ie,It,!0)||ie.selection:s0(c,ie);tt(Jt),Bn(Jt.focusPath)}if("ArrowDown"===lt||"Shift+ArrowDown"===lt){Ce.preventDefault();var nn=ie.selection?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Fr(Mr)?Mr.focusPath:Ln(Mr.paths),fu=HO(wo,$l,tc),_d=fu,Ch=fu;if(null===fu||null==_d||null==Ch)return null;if(wh){var xd=HO(wo,Ho(Sn(wo,tc))?Loe($l,tc):$l,tc);return null===xd?null:Zu(Mr)?Os(wo,xd,xd):Xs(Mr)?Os(wo,_d,Ch):Os(wo,Mr.anchorPath,xd)}if(xs(Mr)){var z_=Sn(wo,Xi(fu));return Array.isArray(z_)?mr(Ch,!1):iu(Ch,!1)}return Yi(Mr)?mr(Ch,!1):Xs(Mr)?Os(wo,_d,Ch):Os(wo,fu,fu)}(c,ie,It,!0)||ie.selection:s0(c,ie);tt(nn),Bn(nn.focusPath)}if("ArrowLeft"===lt||"Shift+ArrowLeft"===lt){Ce.preventDefault();var an=ie.selection?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=Xoe(wo,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),fu=tc.caret,_d=tc.previous;if(wh)return Fr(Mr)?null:Os(wo,Mr.anchorPath,Mr.focusPath);if(fu&&_d)return zO(_d);var xd=Sn(wo,Xi(Mr.focusPath));return Yi(Mr)&&Array.isArray(xd)?Os(wo,Mr.focusPath,Mr.focusPath):Fr(Mr)&&!Array.isArray(xd)?iu(Mr.focusPath,!1):null}(c,ie,It,!_)||ie.selection:s0(c,ie);tt(an),Bn(an.focusPath)}if("ArrowRight"===lt||"Shift+ArrowRight"===lt){Ce.preventDefault();var Vn=ie.selection&&void 0!==c?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=Xoe(wo,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),fu=tc.caret,_d=tc.next;return wh?Fr(Mr)?null:Os(wo,Mr.anchorPath,Mr.focusPath):fu&&_d?zO(_d):Fr(Mr)?mr(Mr.focusPath,!1):null}(c,ie,It,!_)||ie.selection:s0(c,ie);tt(Vn),Bn(Vn.focusPath)}if("Enter"===lt&&ie.selection){if(!_&&Fr(ie.selection)&&1===ie.selection.paths.length){var li=ie.selection.focusPath,fi=Sn(c,Xi(li));Array.isArray(fi)&&tt(mr(li,!1))}!_&&xs(ie.selection)&&(Ce.preventDefault(),tt(Ze(Ze({},ie.selection),{},{edit:!0}))),Yi(ie.selection)&&(Ce.preventDefault(),Ho(Sn(c,ie.selection.focusPath))?Po(ie.selection.focusPath,!0):_||tt(Ze(Ze({},ie.selection),{},{edit:!0})))}if(1===lt.replace(/^Shift\+/,"").length&&ie.selection)return Ce.preventDefault(),void kr(Ce.key);if("Enter"===lt&&(Zu(ie.selection)||Xs(ie.selection)))return Ce.preventDefault(),void kr("");if("Ctrl+Enter"===lt&&Yi(ie.selection)){var Lo=Sn(c,ie.selection.focusPath);V2(Lo)&&window.open(String(Lo),"_blank")}if("Escape"===lt&&ie.selection&&(Ce.preventDefault(),tt(void 0)),"Ctrl+F"===lt&&(Ce.preventDefault(),ca(!1)),"Ctrl+H"===lt&&(Ce.preventDefault(),ca(!0)),"Ctrl+Z"===lt){Ce.preventDefault();var Ls=document.activeElement;Ls&&Ls.blur&&Ls.focus?(Ls.blur(),setTimeout(function(){gi(),setTimeout(function(){return Ls.select()})})):gi()}if("Ctrl+Shift+Z"===lt){Ce.preventDefault();var Zo=document.activeElement;Zo&&Zo.blur&&Zo.focus?(Zo.blur(),setTimeout(function(){yr(),setTimeout(function(){return Zo.select()})})):yr()}},function(Ce){r("handleMouseDown",Ce),setTimeout(function(){setTimeout(function(){v||yoe(Ce.target,"BUTTON")||(Ps(),ie.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,ie=Ze(Ze({},ie),{},{selection:Os(c||{},[],[])}))))})})},Rl,function(Ce){_||ua({anchor:_oe(Ce.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return gd.apply(this,arguments)},function(){r("clear pasted json"),e(18,B=void 0)},function(){H(Jo.text)},function(Ce){tt(Ce),Ps(),hn(Ce.focusPath)},function(Ce){!Pb(Ce.target,function(It){return It===l})&&ip(ie.selection)&&(r("click outside the editor, stop edit mode"),tt(function(It){return xs(It)||Yi(It)?Ze(Ze({},It),{},{edit:!1}):It}),v&&a&&(a.focus(),a.blur()),Xl().then(function(){setTimeout(function(){a&&a.blur()})}))},C,$,G,z,U,q,Z,H,he,F,N,Y,V,oe,fe,function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hb;r("expand");var lt=Ze(Ze({},ie),{},{expandedMap:{},visibleSectionsMap:{}});e(16,ie=nu(c,lt,[],Ce))},Cr,xo,Er,Ht,hn,Oi,Ps,ot,_t,function(Ce){e(19,Ie=Ce)},function(Ce){Vi[Ce?"unshift":"push"](function(){e(14,a=Ce)})},function(Ce){Vi[Ce?"unshift":"push"](function(){e(9,s=Ce)})},function(Ce){Vi[Ce?"unshift":"push"](function(){e(15,l=Ce)})}]}var k4=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,XJe,qJe,Ei,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},BJe,[-1,-1,-1,-1,-1]),r}return Se(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function YJe(t){pi(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function sce(t){var n,e,i,r,o,s=[KJe,JJe],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=_r()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):($t(),ce(a[d],1,1,function(){a[d]=null}),Bt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){ce(i),o=!1},d:function(c){a[e].d(c),c&&je(r)}}}function JJe(t){var n;return{c:function(){n=tn("(Only available for arrays, not for objects)")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function KJe(t){var n,e;return n=new wqe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ace(t){var n,e;return n=new k4({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:go,onError:console.error,onChange:go,onChangeMode:go,onFocus:go,onBlur:go,onSortModal:go,onTransformModal:go,onJSONEditorModal:go,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function QJe(t){var n,e;return{c:function(){n=be("div"),e=tn(t[17]),P(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){Pe(i,n,r),de(n,e)},p:function(i,r){131072&r[0]&&qn(e,i[17])},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function ZJe(t){var n,e;return n=new k4({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:go,onError:console.error,onChange:go,onChangeMode:go,onFocus:go,onBlur:go,onSortModal:go,onTransformModal:go,onJSONEditorModal:go,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function eKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,Z,H,he,E,F,N,Y,V,oe,fe,Fe,xe,tt,ze,ot,B,ne=t[21](t[0]).description+"";n=new Fqe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new sr({props:{data:t[15]?ru:rp}});var ie=t[15]&&sce(t);X=new sr({props:{data:t[16]?ru:rp}});var Ie=t[16]&&ace(t),Ye=[ZJe,QJe],Le=[];function _t(At,_n){return At[17]?1:0}return Y=_t(t),V=Le[Y]=Ye[Y](t),{c:function(){mt(n.$$.fragment),e=it(),i=be("div"),r=be("div"),o=be("div"),(s=be("div")).innerHTML='
    Language
    ',a=it(),l=be("div"),c=it(),(u=be("div")).innerHTML='
    Path
    ',d=it(),h=be("input"),p=it(),m=be("div"),g=be("div"),v=be("button"),mt(y.$$.fragment),_=tn("\n Wizard"),C=it(),ie&&ie.c(),S=it(),(M=be("div")).innerHTML='
    Query
    ',$=it(),G=be("textarea"),R=it(),z=be("div"),U=be("div"),q=be("div"),re=be("div"),L=be("button"),mt(X.$$.fragment),Z=tn("\n Original"),H=it(),Ie&&Ie.c(),he=it(),E=be("div"),(F=be("div")).innerHTML='
    Preview
    ',N=it(),V.c(),oe=it(),fe=be("div"),Fe=be("button"),xe=tn("Transform"),P(s,"class","jse-label svelte-107mggt"),P(l,"class","jse-description svelte-107mggt"),P(u,"class","jse-label svelte-107mggt"),P(h,"class","jse-path svelte-107mggt"),P(h,"type","text"),h.readOnly=!0,P(h,"title","Selected path"),h.value=f=Hi(t[1])?"(whole document)":tu(Kl(t[1])),P(v,"type","button"),P(v,"class","svelte-107mggt"),P(g,"class","jse-label-inner svelte-107mggt"),P(m,"class","jse-label svelte-107mggt"),P(M,"class","jse-label svelte-107mggt"),P(G,"class","jse-query svelte-107mggt"),P(G,"spellcheck","false"),G.value=t[13],P(o,"class","jse-query-contents svelte-107mggt"),P(L,"type","button"),P(L,"class","svelte-107mggt"),P(re,"class","jse-label-inner svelte-107mggt"),P(q,"class","jse-label svelte-107mggt"),P(U,"class","jse-original-data svelte-107mggt"),Mt(U,"jse-hide",!t[16]),P(F,"class","jse-label svelte-107mggt"),P(E,"class","jse-preview-data svelte-107mggt"),P(z,"class","jse-data-contents svelte-107mggt"),Mt(z,"jse-hide-original-data",!t[16]),P(r,"class","jse-main-contents svelte-107mggt"),P(Fe,"type","button"),P(Fe,"class","jse-primary svelte-107mggt"),Fe.disabled=tt=!!t[17],P(fe,"class","jse-actions svelte-107mggt"),P(i,"class","jse-modal-contents svelte-107mggt")},m:function(At,_n){ft(n,At,_n),Pe(At,e,_n),Pe(At,i,_n),de(i,r),de(r,o),de(o,s),de(o,a),de(o,l),l.innerHTML=ne,de(o,c),de(o,u),de(o,d),de(o,h),de(o,p),de(o,m),de(m,g),de(g,v),ft(y,v,null),de(v,_),de(o,C),ie&&ie.m(o,null),de(o,S),de(o,M),de(o,$),de(o,G),de(r,R),de(r,z),de(z,U),de(U,q),de(q,re),de(re,L),ft(X,L,null),de(L,Z),de(U,H),Ie&&Ie.m(U,null),de(z,he),de(z,E),de(E,F),de(E,N),Le[Y].m(E,null),de(i,oe),de(i,fe),de(fe,Fe),de(Fe,xe),ze=!0,ot||(B=[Nt(v,"click",t[25]),Nt(G,"input",t[23]),Nt(L,"click",t[26]),Nt(Fe,"click",t[24]),_a(nKe.call(null,Fe))],ot=!0)},p:function(At,_n){var ci={};512&_n[0]&&(ci.queryLanguages=At[9]),1&_n[0]&&(ci.queryLanguageId=At[0]),n.$set(ci),(!ze||1&_n[0])&&ne!==(ne=At[21](At[0]).description+"")&&(l.innerHTML=ne),(!ze||2&_n[0]&&f!==(f=Hi(At[1])?"(whole document)":tu(Kl(At[1])))&&h.value!==f)&&(h.value=f);var on={};32768&_n[0]&&(on.data=At[15]?ru:rp),y.$set(on),At[15]?ie?(ie.p(At,_n),32768&_n[0]&&Q(ie,1)):((ie=sce(At)).c(),Q(ie,1),ie.m(o,S)):ie&&($t(),ce(ie,1,1,function(){ie=null}),Bt()),(!ze||8192&_n[0])&&(G.value=At[13]);var Fi={};65536&_n[0]&&(Fi.data=At[16]?ru:rp),X.$set(Fi),At[16]?Ie?(Ie.p(At,_n),65536&_n[0]&&Q(Ie,1)):((Ie=ace(At)).c(),Q(Ie,1),Ie.m(U,null)):Ie&&($t(),ce(Ie,1,1,function(){Ie=null}),Bt()),(!ze||65536&_n[0])&&Mt(U,"jse-hide",!At[16]);var pn=Y;(Y=_t(At))===pn?Le[Y].p(At,_n):($t(),ce(Le[pn],1,1,function(){Le[pn]=null}),Bt(),(V=Le[Y])?V.p(At,_n):(V=Le[Y]=Ye[Y](At)).c(),Q(V,1),V.m(E,null)),(!ze||65536&_n[0])&&Mt(z,"jse-hide-original-data",!At[16]),(!ze||131072&_n[0]&&tt!==(tt=!!At[17]))&&(Fe.disabled=tt)},i:function(At){ze||(Q(n.$$.fragment,At),Q(y.$$.fragment,At),Q(ie),Q(X.$$.fragment,At),Q(Ie),Q(V),ze=!0)},o:function(At){ce(n.$$.fragment,At),ce(y.$$.fragment,At),ce(ie),ce(X.$$.fragment,At),ce(Ie),ce(V),ze=!1},d:function(At){pt(n,At),At&&je(e),At&&je(i),pt(y),ie&&ie.d(),pt(X),Ie&&Ie.d(),Le[Y].d(),ot=!1,ho(B)}}}function tKe(t){var n,e,i,r,o;return e=new Doe({props:{$$slots:{default:[eKe]},$$scope:{ctx:t}}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=_a(iS.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function nKe(t){t.focus()}function iKe(t,n,e){var i,r,o=wa("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+fb():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,_=n.queryLanguageId,C=n.onChangeQueryLanguage,S=n.onRenderValue,M=n.onClassName,$=n.onTransform,G=xa("simple-modal").close,R="".concat(a,":").concat(ln(u)),z=ed[R]||{},U=!1!==ed.showWizard,q=!1!==ed.showOriginal,re=z.queryOptions||{},L=_===z.queryLanguageId&&z.query?z.query:he(_).createQuery(l,z.queryOptions||{}),X=z.isManual||!1,Z=void 0,H={text:""};function he(F){return y.find(function(N){return N.id===F})||y[0]}var E=Gv(function(F,N){try{o("previewTransform",{query:N});var Y=he(_).executeQuery(F,N,p);e(18,H={json:Y}),e(17,Z=void 0)}catch(V){e(18,H={text:""}),e(17,Z=V.toString())}},300);return t.$$set=function(F){"id"in F&&e(28,a=F.id),"json"in F&&e(29,l=F.json),"rootPath"in F&&e(1,u=F.rootPath),"indentation"in F&&e(2,d=F.indentation),"escapeControlCharacters"in F&&e(3,h=F.escapeControlCharacters),"escapeUnicodeCharacters"in F&&e(4,f=F.escapeUnicodeCharacters),"parser"in F&&e(5,p=F.parser),"parseMemoizeOne"in F&&e(6,m=F.parseMemoizeOne),"validationParser"in F&&e(7,g=F.validationParser),"pathParser"in F&&e(8,v=F.pathParser),"queryLanguages"in F&&e(9,y=F.queryLanguages),"queryLanguageId"in F&&e(0,_=F.queryLanguageId),"onChangeQueryLanguage"in F&&e(30,C=F.onChangeQueryLanguage),"onRenderValue"in F&&e(10,S=F.onRenderValue),"onClassName"in F&&e(11,M=F.onClassName),"onTransform"in F&&e(31,$=F.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Sn(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&E(i,L),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,ed[R]={queryOptions:re,query:L,queryLanguageId:_,isManual:X},ed),o("store state in memory",R,ed[R]))},[_,u,d,h,f,p,m,g,v,y,S,M,re,L,i,U,q,Z,H,r,G,he,function(F){e(12,re=F),e(13,L=he(_).createQuery(l,F)),e(33,X=!1),o("updateQueryByWizard",{queryOptions:re,query:L,isManual:X})},function(F){e(13,L=F.target.value),e(33,X=!0),o("handleChangeQuery",{query:L,isManual:X})},function(){try{o("handleTransform",{query:L});var F=he(_).executeQuery(i,L,p);$([{op:"replace",path:ln(u),value:F}]),G()}catch(N){console.error(N),e(18,H={text:""}),e(17,Z=N.toString())}},function(){e(15,U=!U),e(32,ed.showWizard=U,ed)},function(){e(16,q=!q),e(32,ed.showOriginal=q,ed)},function(F){o("handleChangeQueryLanguage",F),e(0,_=F),C(F);var N=he(_);e(13,L=N.createQuery(l,re)),e(33,X=!1)},a,l,C,$,ed,X]}var rKe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,iKe,tKe,Ei,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},YJe,[-1,-1]),r}return Se(e)}(),up={};function oKe(t){pi(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function lce(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new Hm({props:c}),Vi.push(function(){return Uu(o,"value",l)}),{c:function(){n=be("tr"),(e=be("th")).textContent="Property",i=it(),r=be("td"),mt(o.$$.fragment),P(e,"class","svelte-1y818v2"),P(r,"class","svelte-1y818v2")},m:function(u,d){Pe(u,n,d),de(n,e),de(n,i),de(n,r),ft(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],zu(function(){return s=!1})),o.$set(h)},i:function(u){a||(Q(o.$$.fragment,u),a=!0)},o:function(u){ce(o.$$.fragment,u),a=!1},d:function(u){u&&je(n),pt(o)}}}function cce(t){var n,e;return{c:function(){n=be("div"),e=tn(t[5]),P(n,"class","jse-error svelte-1y818v2")},m:function(i,r){Pe(i,n,r),de(n,e)},p:function(i,r){32&r&&qn(e,i[5])},d:function(i){i&&je(n)}}}function sKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,Z;e=new c4({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&lce(t);function he(N){t[15](N)}var E={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(E.value=t[2]),S=new Hm({props:E}),Vi.push(function(){return Uu(S,"value",he)});var F=t[5]&&cce(t);return{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),o=be("table"),(s=be("colgroup")).innerHTML=' \n ',a=it(),l=be("tbody"),c=be("tr"),(u=be("th")).textContent="Path",d=it(),h=be("td"),f=be("input"),m=it(),H&&H.c(),g=it(),v=be("tr"),(y=be("th")).textContent="Direction",_=it(),C=be("td"),mt(S.$$.fragment),$=it(),G=be("div"),F&&F.c(),R=it(),z=be("div"),U=be("button"),q=tn("Sort"),P(u,"class","svelte-1y818v2"),P(f,"class","jse-path svelte-1y818v2"),P(f,"type","text"),f.readOnly=!0,P(f,"title","Selected path"),f.value=p=Hi(t[0])?"(whole document)":tu(Kl(t[0])),P(h,"class","svelte-1y818v2"),P(y,"class","svelte-1y818v2"),P(C,"class","svelte-1y818v2"),P(o,"class","svelte-1y818v2"),P(G,"class","jse-space svelte-1y818v2"),P(U,"type","button"),P(U,"class","jse-primary svelte-1y818v2"),U.disabled=re=!!t[4]&&!t[1],P(z,"class","jse-actions svelte-1y818v2"),P(r,"class","jse-modal-contents svelte-1y818v2"),P(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(N,Y){Pe(N,n,Y),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(o,s),de(o,a),de(o,l),de(l,c),de(c,u),de(c,d),de(c,h),de(h,f),de(l,m),H&&H.m(l,null),de(l,g),de(l,v),de(v,y),de(v,_),de(v,C),ft(S,C,null),de(r,$),de(r,G),F&&F.m(G,null),de(r,R),de(r,z),de(z,U),de(U,q),L=!0,X||(Z=[Nt(U,"click",t[8]),_a(aKe.call(null,U)),_a(iS.call(null,n,t[6]))],X=!0)},p:function(N,Y){var V=Un(Y,1)[0],oe={};16&V&&(oe.title=N[4]?"Sort array items":"Sort object keys"),e.$set(oe),(!L||1&V&&p!==(p=Hi(N[0])?"(whole document)":tu(Kl(N[0])))&&f.value!==p)&&(f.value=p),N[4]&&(N[3].length>1||void 0===N[1])?H?(H.p(N,V),26&V&&Q(H,1)):((H=lce(N)).c(),Q(H,1),H.m(l,g)):H&&($t(),ce(H,1,1,function(){H=null}),Bt());var fe={};!M&&4&V&&(M=!0,fe.value=N[2],zu(function(){return M=!1})),S.$set(fe),N[5]?F?F.p(N,V):((F=cce(N)).c(),F.m(G,null)):F&&(F.d(1),F=null),(!L||18&V&&re!==(re=!!N[4]&&!N[1]))&&(U.disabled=re)},i:function(N){L||(Q(e.$$.fragment,N),Q(H),Q(S.$$.fragment,N),L=!0)},o:function(N){ce(e.$$.fragment,N),ce(H),ce(S.$$.fragment,N),L=!1},d:function(N){N&&je(n),pt(e),H&&H.d(),pt(S),F&&F.d(),X=!1,ho(Z)}}}function aKe(t){t.focus()}function lKe(t,n,e){var i,r,o,s=wa("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=xa("simple-modal").close,h="".concat(a,":").concat(ln(c)),f=Sn(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=up[h]&&up[h].selectedProperty||void 0,v=up[h]&&up[h].selectedDirection||p,y=void 0;return t.$$set=function(_){"id"in _&&e(9,a=_.id),"json"in _&&e(10,l=_.json),"rootPath"in _&&e(0,c=_.rootPath),"onSort"in _&&e(11,u=_.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?CO(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(Lb):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,up[h]={selectedProperty:g,selectedDirection:v},up),s("store state in memory",h,up[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var _,C;e(5,y=void 0);var S=null===(_=g)||void 0===_?void 0:_.value,M=null===(C=v)||void 0===C?void 0:C.value,$=Fle(l,c,S,M);u({operations:$,rootPath:c,itemPath:S,direction:M}),d()}catch(G){e(5,y=G.toString())}},a,l,u,up,r,function(_){e(1,g=_),e(3,o),e(13,r),e(4,i)},function(_){e(2,v=_)}]}var cKe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,lKe,sKe,Ei,{id:9,json:10,rootPath:0,onSort:11},oKe),r}return Se(e)}();function dh(){}function sS(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function uKe(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function dKe(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,_=n.canTransform,C=n.onRenderMenu;return t.$$set=function(S){"readOnly"in S&&e(1,s=S.readOnly),"onFormat"in S&&e(2,a=S.onFormat),"onCompact"in S&&e(3,l=S.onCompact),"onSort"in S&&e(4,c=S.onSort),"onTransform"in S&&e(5,u=S.onTransform),"onToggleSearch"in S&&e(6,d=S.onToggleSearch),"onUndo"in S&&e(7,h=S.onUndo),"onRedo"in S&&e(8,f=S.onRedo),"canUndo"in S&&e(9,p=S.canUndo),"canRedo"in S&&e(10,m=S.canRedo),"canFormat"in S&&e(11,g=S.canFormat),"canCompact"in S&&e(12,v=S.canCompact),"canSort"in S&&e(13,y=S.canSort),"canTransform"in S&&e(14,_=S.canTransform),"onRenderMenu"in S&&e(15,C=S.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:m4,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:UYe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!_},{type:"button",icon:KO,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=C(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,r]}var hKe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,dKe,uKe,Ei,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Se(e)}(),fo=function(){function t(){ke(this,t)}return Se(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),aS.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),aS.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new t_(this),o=new t_(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new t_(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new dce(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new hce(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new id(n):aS.from(id.split(n,[])):t.empty}}]),t}(),id=function(t){wt(e,fo);var n=Ct(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function fKe(t){var n,e=-1,i=Re(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return ke(this,e),(r=n.call(this)).text=i,r.length=o,r}return Se(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new pKe(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(uce(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=lS(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return pr(qi(e.prototype),"replace",this).call(this,i,r,o);var s=lS(this.text,lS(o.text,uce(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):aS.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=Re(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),aS=function(t){wt(e,fo);var n=Ct(e);function e(i,r){var o;ke(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=Re(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Se(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return pr(qi(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return pr(qi(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Un(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(R,z){return R+z.length+1},-1),s=0,a=Re(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(R){a.e(R)}finally{a.f()}if(s<32){var c,u=[],d=Re(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(R){d.e(R)}finally{d.f()}return new id(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,_=[];function C(R){var z;if(R.lines>p&&R instanceof e){var U,q=Re(R.children);try{for(q.s();!(U=q.n()).done;)C(U.value)}catch(re){q.e(re)}finally{q.f()}}else R.lines>m&&(v>m||!v)?(S(),g.push(R)):R instanceof id&&v&&(z=_[_.length-1])instanceof id&&R.lines+z.lines<=32?(v+=R.lines,y+=R.length+1,_[_.length-1]=new id(z.text.concat(R.text),z.length+1+R.length)):(v+R.lines>f&&S(),v+=R.lines,y+=R.length+1,_.push(R))}function S(){0!=v&&(g.push(1==_.length?_[0]:e.from(_,y)),y=-1,v=_.length=0)}var M,$=Re(i);try{for($.s();!(M=$.n()).done;)C(M.value)}catch(R){$.e(R)}finally{$.f()}return S(),1==g.length?g[0]:new e(g,o)}}]),e}();function lS(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;ke(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof id?n.text.length:n.children.length)<<1]}return Se(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof id?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof id){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof id?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),dce=function(){function t(n,e,i){ke(this,t),this.value="",this.done=!1,this.cursor=new t_(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Se(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),hce=function(){function t(n){ke(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Se(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(fo.prototype[Symbol.iterator]=function(){return this.iter()},t_.prototype[Symbol.iterator]=dce.prototype[Symbol.iterator]=hce.prototype[Symbol.iterator]=function(){return this});for(var pKe=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Se(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),w0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),cS=1;cSt)return w0[n-1]<=t;return!1}function fce(t){return t>=127462&&t<=127487}function Pl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?gKe:pce)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function pce(t,n,e){if(n==t.length)return n;n&&mce(t.charCodeAt(n))&&gce(t.charCodeAt(n-1))&&n--;var i=Ba(t,n);for(n+=Sc(i);n=0&&fce(Ba(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function gKe(t,n,e){for(;n>0;){var i=pce(t,n-2,e);if(i=56320&&t<57344}function gce(t){return t>=55296&&t<56320}function Ba(t,n){var e=t.charCodeAt(n);if(!gce(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return mce(i)?i-56320+(e-55296<<10)+65536:e}function S4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Sc(t){return t<65536?1:2}var D4=/\r\n?|\n/,Ll=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Ll||(Ll={})),C0=function(){function t(n){ke(this,t),this.sections=n}return Se(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ll.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Ll.Simple&&c>=n&&(i==Ll.TrackDel&&rn||i==Ll.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),rd=function(t){wt(e,C0);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this,i)).inserted=r,o}return Se(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return T4(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return E4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){T4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return C0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new n_(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&dp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var _=y?"string"==typeof y?fo.of(y.split(o||D4)):y:fo.empty,C=_.length;if(m==v&&0==C)return;ml&&dl(s,m-l,-1),dl(s,v-m,C),dp(a,s,_),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function dp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function E4(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new n_(t),a=new n_(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);dl(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?rd.createSet(r,o):C0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new n_(t),s=new n_(n),a=!1;;){if(o.done&&s.done)return r?rd.createSet(i,r):C0.create(i);if(0==o.ins)dl(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;dl(i,l,u,a),r&&u&&dp(r,i,s.text)}else-1==s.ins?(dl(i,o.off?0:o.len,l,a),r&&dp(r,i,o.textBit(l))):(dl(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&dp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else dl(i,0,s.ins,a),r&&dp(r,i,s.text),s.next()}}var n_=function(){function t(n){ke(this,t),this.set=n,this.i=0,this.next()}return Se(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?fo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?fo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),uS=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.flags=i}return Se(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return en.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return en.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return en.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),en=function(){function t(n,e){ke(this,t),this.ranges=n,this.mainIndex=e}return Se(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return uS.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return uS.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function yce(t,n){var e,i=Re(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var A4=0,Qn=function(){function t(n,e,i,r,o){ke(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=A4++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Se(t,[{key:"of",value:function(n){return new dS([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new dS(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new dS(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:M4),!!n.static,n.enables)}}]),t}();function M4(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var dS=function(){function t(n,e,i,r){ke(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=A4++}return Se(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=Re(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||I4(m,h)){var v=o(m);if(c?!bce(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var _=hS(g,y);if(r.dependencies.every(function(C){return C instanceof Qn?g.facet(C)===m.facet(C):!(C instanceof Va)||g.field(C,!1)==m.field(C,!1)})||(c?bce(v=o(m),_,s):s(v=o(m),_)))return m.values[l]=_,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function bce(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,_ce.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(A4++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function i_(t){return function(n){return new xce(n,t)}}var k0={highest:i_(0),high:i_(1),default:i_(2),low:i_(3),lowest:i_(4)},xce=Se(function t(n,e){ke(this,t),this.inner=n,this.prec=e}),hp=function(){function t(){ke(this,t)}return Se(t,[{key:"of",value:function(n){return new N4(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),N4=Se(function t(n,e){ke(this,t),this.compartment=n,this.inner=e}),wce=function(){function t(n,e,i,r,o,s){for(ke(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,C,S,M,$,G,o=[],s=Object.create(null),a=new Map,l=Re((C=n,S=e,M=a,$=[[],[],[],[],[]],G=new Map,function R(z,U){var q=G.get(z);if(null!=q){if(q<=U)return;var re=$[q].indexOf(z);re>-1&&$[q].splice(re,1),z instanceof N4&&M.delete(z.compartment)}if(G.set(z,U),Array.isArray(z)){var L,X=Re(z);try{for(X.s();!(L=X.n()).done;)R(L.value,U)}catch(he){X.e(he)}finally{X.f()}}else if(z instanceof N4){if(M.has(z.compartment))throw new RangeError("Duplicate use of compartment in extensions");var Z=S.get(z.compartment)||z.inner;M.set(z.compartment,Z),R(Z,U)}else if(z instanceof xce)R(z.inner,z.prec);else if(z instanceof Va)$[U].push(z),z.provides&&R(z.provides,U);else if(z instanceof dS)$[U].push(z),z.facet.extensions&&R(z.facet.extensions,2);else{var H=z.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(z,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));R(H,U)}}(C,2),$.reduce(function(z,U){return z.concat(U)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof Va?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(C){l.e(C)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var C=m[p];u[C.id]=h.length<<1,h.push(function(S){return C.slot(S)})},p=0,m=o;p>1;function F(N){for(var Y=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function hS(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var Cce=Qn.define(),kce=Qn.define({combine:function(t){return t.some(function(n){return n})},static:!0}),Sce=Qn.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),Dce=Qn.define(),Tce=Qn.define(),Ece=Qn.define(),Ace=Qn.define({combine:function(t){return!!t.length&&t[0]}}),fp=function(){function t(n,e){ke(this,t),this.type=n,this.value=e}return Se(t,null,[{key:"define",value:function(){return new _Ke}}]),t}(),_Ke=function(){function t(){ke(this,t)}return Se(t,[{key:"of",value:function(n){return new fp(this,n)}}]),t}(),xKe=function(){function t(n){ke(this,t),this.map=n}return Se(t,[{key:"of",value:function(n){return new hr(this,n)}}]),t}(),hr=function(){function t(n,e){ke(this,t),this.type=n,this.value=e}return Se(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new xKe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=Re(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();hr.reconfigure=hr.define(),hr.appendConfig=hr.define();var Ql=function(){function t(n,e,i,r,o,s){ke(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&yce(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Se(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=Re(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function wKe(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=Mce(u,O4(l,h,a.changes.newLength),!0))}return u==a?a:Ql.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=Re(c.facet(Dce));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:wKe(u,h))}}catch(_){d.e(_)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=rd.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=Ql.create(c,f,a.selection&&a.selection.map(p),hr.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Tce),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof Ql?y:Array.isArray(y)&&1==y.length&&y[0]instanceof Ql?y[0]:Ice(c,S0(y),!1)}return a}(s):s)}Ql.time=fp.define(),Ql.userEvent=fp.define(),Ql.addToHistory=fp.define(),Ql.remote=fp.define();var CKe=[];function S0(t){return null==t?CKe:Array.isArray(t)?t:[t]}var j4,cs=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(cs||(cs={})),kKe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{j4=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var No=function(){function t(n,e,i,r,o,s){ke(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return r_(this,i),hS(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof rd?n:rd.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return fo.of(n.split(this.facet(t.lineSeparator)||D4))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(r_(this,e),hS(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof Va&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Ace)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=Re(this.facet(Cce));try{for(s.s();!(i=s.n()).done;){var a,c=Re((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function SKe(t){return function(n){if(!/\S/.test(n))return cs.Space;if(function(i){if(j4)return j4.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||kKe.test(o)))return!0}return!1}(n))return cs.Word;for(var e=0;e-1)return cs.Word;return cs.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=Pl(i,a,!1);if(s(i.slice(c,a))!=cs.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:en.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=wce.resolve(n.extensions||[],new Map),i=n.doc instanceof fo?n.doc:fo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||D4)),r=n.selection?n.selection instanceof en?n.selection:en.single(n.selection.anchor,n.selection.head):en.single(0);return yce(r,i.length),e.staticFacet(kce)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function su(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=Re(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();Um.prototype.startSide=Um.prototype.endSide=0,Um.prototype.point=!1,Um.prototype.mapMode=Ll.TrackDel;var P4=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.value=i}return Se(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function L4(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var DKe=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),Go=function(){function t(n,e,i,r){ke(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=Re(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(L4)),this.isEmpty)return i.length?t.of(i):this;for(var d=new Nce(this,null,-1).goto(0),h=0,f=[],p=new Gm;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return R4.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return R4.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Fce(s,a,i),c=new o_(s,l,o),u=new o_(a,l,o);i.iterGaps(function(d,h,f){return Oce(c,d,u,h,f,r)}),i.empty&&0==i.length&&Oce(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Fce(o,s),l=new o_(o,a,0).goto(i),c=new o_(s,a,0).goto(i);;){if(l.to!=c.to||!B4(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new o_(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Gm,o=Re(n instanceof P4?[n]:i?function TKe(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(L4);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();Go.empty=new Go([],[],null,-1),Go.empty.nextLayer=Go.empty;var Gm=function(){function t(){ke(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Se(t,[{key:"finishChunk",value:function(n){this.chunks.push(new DKe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(Go.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=Go.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Fce(t,n,e){var i,r=new Map,o=Re(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;ke(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Se(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=Re(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)$4(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=Re(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)$4(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),$4(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new Nce(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function $4(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var o_=function(){function t(n,e,i){ke(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=R4.from(n,e,i)}return Se(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){fS(this.active,n),fS(this.activeTo,n),fS(this.activeRank,n),this.minActive=jce(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&fS(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Oce(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&B4(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!B4(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function B4(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function jce(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=Pl(t,r)}return!0===i?-1:t.length}for(var Pce=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),H4=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Lce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},pp=function(){function t(n,e){ke(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==bn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Se(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Lce[Pce]||1;return Lce[Pce]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[H4]||new EKe(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),mS=null,EKe=function(){function t(n){if(ke(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(mS)return n.adoptedStyleSheets=[mS.sheet].concat(n.adoptedStyleSheets),n[H4]=mS;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),mS=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[H4]=this}return Se(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Rce=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),AKe=typeof navigator<"u"&&/Mac/.test(navigator.platform),MKe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),IKe=AKe||Rce&&+Rce[1]<57,Ha=0;Ha<10;Ha++)mp[48+Ha]=mp[96+Ha]=String(Ha);for(Ha=1;Ha<=24;Ha++)mp[Ha+111]="F"+Ha;for(Ha=65;Ha<=90;Ha++)mp[Ha]=String.fromCharCode(Ha+32),a_[Ha]=String.fromCharCode(Ha);for(var z4 in mp)a_.hasOwnProperty(z4)||(a_[z4]=mp[z4]);function gS(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function D0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function vS(t,n){if(!n.anchorNode)return!1;try{return D0(t,n.anchorNode)}catch{return!1}}function l_(t){return 3==t.nodeType?E0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function yS(t,n,e,i){return!!e&&($ce(t,n,e,i,-1)||$ce(t,n,e,i,1))}function bS(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function $ce(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:c_(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=bS(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?c_(t):0}}}function c_(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var Bce={left:0,right:0,top:0,bottom:0};function U4(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function FKe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var Vce,NKe=function(){function t(){ke(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Se(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),T0=null;function Hce(t){if(t.setActive)return t.setActive();if(T0)return t.focus(T0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==T0?{get preventScroll(){return T0={preventScroll:!0},!0}}:void 0),!T0){T0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=Vce||(Vce=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function A0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function zce(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Dc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];ke(this,t),this.node=n,this.offset=e,this.precise=i}return Se(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,bS(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,bS(n)+1,e)}}]),t}(),G4=[],ws=function(){function t(){ke(this,t),this.parent=null,this.dom=null,this.dirty=2}return Se(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=Re(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=Re(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=Uce(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=Uce(i)}else if(1&this.dirty){var u,d=Re(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==c_(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G4;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function Uce(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}ws.prototype.breakAfter=0;var Gce=function(){function t(n,e,i){ke(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Se(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function Wce(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),Zn={mac:Qce||/Mac/.test(Tc.platform),windows:/Win/.test(Tc.platform),linux:/Linux|X11/.test(Tc.platform),ie:_S,ie_version:Xce?W4.documentMode||6:X4?+X4[1]:q4?+q4[1]:0,gecko:Yce,gecko_version:Yce?+(/Firefox\/(\d+)/.exec(Tc.userAgent)||[0,0])[1]:0,chrome:!!Y4,chrome_version:Y4?+Y4[1]:0,ios:Qce,android:/Android\b/.test(Tc.userAgent),webkit:Jce,safari:Kce,webkit_version:Jce?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=W4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},u_=function(t){wt(e,ws);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).text=i,r}return Se(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Dc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return J4(this.dom,i,r)}}]),e}(),Wm=function(t){wt(e,ws);var n=Ct(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;ke(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=Re(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(An(r))}catch(u){l.e(u)}finally{l.f()}return r}return Se(e,[{key:"setAttrs",value:function(i){if(zce(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),pr(qi(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}}]),e}();function J4(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?Zn.chrome||Zn.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return Zn.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?U4(l,s<0):l||null}var K4=function(t){wt(e,ws);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Se(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:U4(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){pr(qi(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),Zce=function(t){wt(e,K4);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?Q4(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Dc(s,Math.min(a,s.nodeValue.length))}):new Dc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?eue(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?Q4(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return J4(a,l,c)}):J4(a,i,r)}},{key:"destroy",value:function(){var i;pr(qi(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function Q4(t,n,e,i,r,o){if(e instanceof Wm){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=ws.get(s);if(!a)return o(t,n);var l=D0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return fo.empty}}]),e}();function tue(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof Wm&&r.length&&(i=r[r.length-1])instanceof Wm&&i.mark.eq(n.mark)?nue(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function iue(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new rue(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new d_(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=oue(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new d_(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new ij(i)}},{key:"set",value:function(i){return Go.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();yi.none=Go.empty;var rue=function(t){wt(e,yi);var n=Ct(e);function e(i){var r;ke(this,e);var o=oue(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Se(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&tj(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();rue.prototype.point=!1;var ij=function(t){wt(e,yi);var n=Ct(e);function e(i){return ke(this,e),n.call(this,-2e8,-2e8,null,i)}return Se(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&tj(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();ij.prototype.mapMode=Ll.TrackBefore,ij.prototype.point=!0;var d_=function(t){wt(e,yi);var n=Ct(e);function e(i,r,o,s,a,l){var c;return ke(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Ll.TrackBefore:Ll.TrackAfter:Ll.TrackDel,c}return Se(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();function oue(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function rj(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}d_.prototype.point=!0;var od=function(t){wt(e,ws);var n=Ct(e);function e(){var i;return ke(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),qce(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){tj(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){nue(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=ej(r,this.attrs||{})),o&&(this.attrs=ej({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(zce(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(nj(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),pr(qi(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&ws.get(s)instanceof Wm;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=ws.get(s))||void 0===o?void 0:o.isEditable)||Zn.ios&&this.children.some(function(l){return l instanceof u_})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof u_)||/[^ -~]/.test(s.text))return null;var a=l_(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return _o.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),oj=function(t){wt(e,ws);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(xS(new Z4(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(xS(new u_(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof d_){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof d_)if(i.block){var l=i.type;l!=_o.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new oj(i.widget||new sue("div"),a,l))}else{var c=K4.create(i.widget||new sue("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(xS(new Z4(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(xS(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=Go.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function xS(t,n){var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)t=new Wm(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var sue=function(t){wt(e,gp);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).tag=i,r}return Se(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),aue=Qn.define(),lue=Qn.define(),cue=Qn.define(),uue=Qn.define(),sj=Qn.define(),due=Qn.define(),hue=Qn.define(),fue=Qn.define({combine:function(t){return t.some(function(n){return n})}}),pue=Qn.define({combine:function(t){return t.some(function(n){return n})}}),mue=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;ke(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Se(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),gue=hr.define({map:function(t,n){return t.map(n)}});function Ec(t,n,e){var i=t.facet(uue);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var wS=Qn.define({combine:function(t){return!t.length||t[0]}}),PKe=0,h_=Qn.define(),ka=function(){function t(n,e,i,r){ke(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Se(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(PKe++,n,i.eventHandlers,function(a){var l=[h_.of(a)];return s&&l.push(f_.of(function(c){var u=c.plugin(a);return u?s(u):yi.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),aj=function(){function t(n){ke(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Se(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Ec(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){Ec(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){Ec(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),vue=Qn.define(),lj=Qn.define(),f_=Qn.define(),yue=Qn.define(),bue=Qn.define(),p_=Qn.define(),M0=function(){function t(n,e,i,r){ke(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Se(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),_ue=function(){function t(n,e,i){ke(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=rd.empty(this.startState.doc.length);var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new M0(l,c,u,d))}),this.changedRanges=a}return Se(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),us=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(us||(us={})),cj=us.LTR,LKe=us.RTL;function xue(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),ds=[];function Due(t){return[new I0(0,t,0)]}var Tue="";function HKe(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=I0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=Pl(t.text,s,u);if(Tue=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return en.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=Re(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=ws.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Aue(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Mue=Se(function t(n,e){ke(this,t),this.node=n,this.offset=e,this.pos=-1}),Iue=function(t){wt(e,ws);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).view=i,r.compositionDeco=yi.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new od],r.children[0].setParent(An(r)),r.updateDeco(),r.updateInner([new M0(0,0,0,i.state.doc.length)],0),r}return Se(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=yi.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=Nue(a);if(!c)return yi.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new Eue([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=jKe.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,_=v.off,C=o.findPos(l,-1);Wce(this,C.i,C.off,y,_,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(Zn.gecko&&a.empty&&function zKe(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Dc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&yS(l.node,l.offset,d.anchorNode,d.anchorOffset)&&yS(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){Zn.android&&Zn.chrome&&i.dom.contains(d.focusNode)&&function qKe(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=gS(i.view.root);if(h)if(a.empty){if(Zn.gecko){var f=function GKe(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Dc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Dc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=gS(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=od.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||vS(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=ws.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=_o.WidgetBefore&&a.type!=_o.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==_o.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==us.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?l_(g):[];if(v.length){var y=v[v.length-1],_=u?y.right-m.left:m.right-y.left;_>c&&(c=_,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?us.RTL:us.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof od){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=l_(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new Gce(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(yi.replace({widget:new Fue(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return yi.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(f_).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=Re(this.view.state.facet(bue).map(function(C){return C(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(C){f.e(C)}finally{f.f()}!function(C,S,M,$,G,R,z,U){for(var q=C.ownerDocument,re=q.defaultView||window,L=C;L;)if(1==L.nodeType){var X=void 0,Z=L==q.body;if(Z)X=FKe(re);else{if(L.scrollHeight<=L.clientHeight&&L.scrollWidth<=L.clientWidth){L=L.assignedSlot||L.parentNode;continue}var H=L.getBoundingClientRect();X={left:H.left,right:H.left+L.clientWidth,top:H.top,bottom:H.top+L.clientHeight}}var he=0,E=0;if("nearest"==G)S.top0&&S.bottom>X.bottom+E&&(E=S.bottom-X.bottom+E+z)):S.bottom>X.bottom&&(E=S.bottom-X.bottom+z,M<0&&S.top-E0&&S.right>X.right+he&&(he=S.right-X.right+he+R)):S.right>X.right&&(he=S.right-X.right+R,M<0&&S.left0&&e<=0)n=c_(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var WKe=function(){function t(){ke(this,t),this.changes=[]}return Se(t,[{key:"compareRange",value:function(n,e){rj(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){rj(n,e,this.changes)}}]),t}();function XKe(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function YKe(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function hj(t,n){return t.topn.top+1}function jue(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function fj(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=l_(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&hj(c,m)?c=Pue(c,m.bottom):u&&hj(u,m)&&(u=jue(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var _=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Lue(i,_,e):d&&"false"!=i.contentEditable?fj(i,_,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Lue(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((Zn.chrome||Zn.gecko)&&E0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Rue(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=_o.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:$ue(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,_=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var C=m.caretPositionFromPoint(c,u);C&&(y=C.offsetNode,_=C.offset)}else if(m.caretRangeFromPoint){var S=m.caretRangeFromPoint(c,u);S&&(_=S.startOffset,(!t.contentDOM.contains(y=S.startContainer)||Zn.safari&&function JKe(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return E0(t,i-1,i).getBoundingClientRect().left>e}(y,_,c)||Zn.chrome&&function KKe(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():E0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,_,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var M=od.find(t.docView,p);if(!M)return d>r.top+r.height/2?r.to:r.from;var $=fj(M.dom,c,u);y=$.node,_=$.offset}var G=t.docView.nearest(y);if(!G)return null;if(G.isWidget){var R=G.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+V4(s,o,t.state.tabSize)}function Bue(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=HKe(r,o,s,a,e),u=Tue;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=en.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function pj(t,n,e){for(var i=t.state.facet(yue).map(function(a){return a(t)});;){var r,o=!1,s=Re(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?en.cursor(a,1):en.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var ZKe=function(){function t(n){var e=this;ke(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=la[s];n.contentDOM.addEventListener(s,function(l){zue(n,l)&&i(a,l)},mj[s]),e.registeredEvents.push(s)};for(var o in la)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(la.mousedown,s)}),Zn.chrome&&102==Zn.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,Zn.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Se(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=Re(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){zue(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=Re(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){Ec(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=Re(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){Ec(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,A0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(Zn.safari&&!Zn.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),Vue=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],eQe="dthko",Hue=[16,17,18,20,91,92,224,225];function CS(t){return.7*t+8}var tQe=function(){function t(n,e,i,r){ke(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(No.allowMultipleSelections)&&(a=e,(l=n.state.facet(aue)).length?l[0](a):Zn.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(lue);return l.length?l[0](a):Zn.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=gS(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=Zue(e))&&null}return Se(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-CS(o.left-n.clientX):n.clientX>=o.right&&(i=CS(n.clientX-o.right)),n.clientY<=o.top?r=-CS(o.top-n.clientY):n.clientY>=o.bottom&&(r=CS(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function zue(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=ws.get(i))&&e.ignoreEvent(n))return!1;return!0}var la=Object.create(null),mj=Object.create(null),Uue=Zn.ie&&Zn.ie_version<15||Zn.ios&&Zn.webkit_version<604;function Gue(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=gj&&i.selection.ranges.every(function(c){return c.empty})&&gj==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:en.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:en.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function Wue(t,n,e,i){if(1==i)return en.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return en.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=Pl(h.text,f,!1):m=Pl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=Pl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=Re(t.state.facet(cue));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=Yue(s=t,a=n),c=Zue(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=Yue(s,d),m=Wue(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=Wue(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(_){return _.eq(m)})?function(_,C){for(var S=0;;S++)if(_.ranges[S].eq(C))return en.create(_.ranges.slice(0,S).concat(_.ranges.slice(S+1)),_.mainIndex==S?0:_.mainIndex-(_.mainIndex>S?1:0))}(u,m):f?u.addRange(m):en.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new tQe(t,n,i,o)),o&&t.observer.ignore(function(){return Hce(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var que=function(t,n){return t>=n.top&&t<=n.bottom},Xue=function(t,n,e){return que(n,e)&&t>=e.left&&t<=e.right};function nQe(t,n,e,i){var r=od.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&Xue(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&Xue(e,i,a)?1:s&&que(i,s)?-1:1}function Yue(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:nQe(t,e,n.clientX,n.clientY)}}var iQe=Zn.ie&&Zn.ie_version<=11,Jue=null,Kue=0,Que=0;function Zue(t){if(!iQe)return t.detail;var n=Jue,e=Que;return Jue=t,Que=Date.now(),Kue=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(Kue+1)%3:1}function ede(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}la.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},la.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&ede(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(_){g.e(_)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){gj=o?i:null;var s=Uue?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var tde=fp.define();function nde(t,n){var e,i=[],r=Re(t.facet(hue));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:tde.of(!0)}):null}function ide(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=nde(t.state,n);e?t.dispatch(e):t.update([])}},10)}la.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),ide(t)},la.blur=function(t){t.observer.clearSelectionRange(),ide(t)},la.compositionstart=la.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},la.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,Zn.chrome&&Zn.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},la.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},la.beforeinput=function(t,n){var e,i;if(Zn.chrome&&Zn.android&&(i=Vue.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var rde=["pre-wrap","normal","pre-line","break-spaces"],rQe=function(){function t(n){ke(this,t),this.lineWrapping=n,this.doc=fo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Se(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return rde.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;ke(this,t),this.length=n,this.height=e,this.flags=i}return Se(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Wo.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Wo.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),fh=function(t){wt(e,ode);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this,i,r,_o.Text)).collapsed=0,o.widgetHeight=0,o}return Se(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof F0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof F0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):sd.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),F0=function(t){wt(e,sd);var n=Ct(e);function e(i){return ke(this,e),n.call(this,i,0)}return Se(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new qm(f.from,f.length,m,p,_o.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new qm(v.from,v.length,o+u*g,u,_o.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Wo.ByHeight)return this.blockAt(i,o,s,a);if(r==Wo.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new qm(c,l.to-c,0,0,_o.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new qm(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,_o.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new qm(m.from,m.length,p,v,_o.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return sd.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new fh(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=sd.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),sQe=function(t){wt(e,sd);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Se(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Wo.ByPosNoHeight?Wo.ByPosNoHeight:Wo.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Wo.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=Re(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&sde(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?sd.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function sde(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof F0&&(i=t[n+1])instanceof F0&&t.splice(n-1,3,new F0(e.length+1+i.length))}var aQe=function(){function t(n,e){ke(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Se(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof fh?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new fh(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new fh(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new F0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof fh)return n;var e=new fh(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=_o.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=_o.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof fh||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function dQe(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var vj=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.size=i}return Se(t,[{key:"draw",value:function(n){return yi.replace({widget:new hQe(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new kS(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?lde:new pQe(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:m_(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(f_).filter(function(c){return"function"!=typeof c});var o=M0.extendWithRanges(n.changedRanges,function lQe(t,n,e){var i=new cQe;return Go.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:rd.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(pue)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?us.RTL:us.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?dQe:uQe)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var _=n.docView.measureTextSize(),C=_.lineHeight,S=_.charWidth;(s=C>0&&r.refresh(o,C,S,v/S,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var M,$=Re(this.viewports);try{for($.s();!(M=$.n()).done;){var G=M.value,R=G.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(G);this.heightMap=(s?sd.empty().applyChanges(this.stateDeco,fo.empty,this.heightOracle,[new M0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new oQe(G.from,R))}}catch(U){$.e(U)}finally{$.f()}r.heightChanged&&(c|=2)}var z=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return z&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||z)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new kS(r.lineAt(this.visibleTop-1e3*i,Wo.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Wo.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Wo.ByPos,o,0,0);l=new kS(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Wo.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Wo.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=us.LTR&&!r)return[];var l,c=[],u=function q(re,L,X,Z){if(!(L-rere&&N=X.from&&oe.to<=X.to&&Math.abs(oe.from-re)fe})});if(!Y){if(L=L})){var V=e.moveToLineBoundary(en.cursor(L),!1,!0).head;V>re&&(L=V)}Y=new vj(re,L,i.gapSize(X,re,L,Z))}c.push(Y)}},d=Re(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||m_(this.heightMap.lineAt(n,Wo.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return m_(this.heightMap.lineAt(this.scaler.fromDOM(n),Wo.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return m_(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),kS=Se(function t(n,e){ke(this,t),this.from=n,this.to=e});function fQe(t,n,e){var i=[],r=t,o=0;return Go.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function DS(t,n){var e,i=0,r=Re(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var lde={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},pQe=function(){function t(n,e,i){ke(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Wo.ByPos,n,0,0).top,p=e.lineAt(h,Wo.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=Re(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Se(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),bj=pp.newName(),cde=pp.newName(),ude=pp.newName(),dde={"&light":"."+cde,"&dark":"."+ude};function _j(t,n,e){return new pp(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var mQe=_j("."+bj,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},dde),gQe=Se(function t(n,e,i,r){ke(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,_=m.focusOffset;return g&&(p.push(new Mue(g,v)),y==g&&_==v||p.push(new Mue(y,_))),p}(n),c=new Eue(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?en.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!D0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!D0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=en.single(h,d)}});function hde(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||Zn.android&&n.text.length0&&Z>0&&R.charCodeAt(X-1)==z.charCodeAt(Z-1);)X--,Z--;return"end"==q&&(U-=X+Math.max(0,L-Math.min(X,Z))-L),X=X?L-U:0)+(Z-X),X=L):Z=Z?L-U:0)+(X-Z),Z=L),{from:L,toA:X,toB:Z}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(Zn.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:fo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(wS)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(Zn.mac||Zn.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=en.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:fo.of([" "])}):Zn.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=en.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:fo.of([" "])}),e){var d=t.state;if(Zn.ios&&t.inputState.flushIOSKey(t)||Zn.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&A0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&A0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&A0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(due).some(function(R){return R(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),_=Nue(t)||t.state.doc.lineAt(r.head),C=r.to-e.to,S=r.to-r.from;h=d.changeByRange(function(R){if(R.from==r.from&&R.to==r.to)return{changes:g,range:v||R.map(g)};var z=R.to-C,U=z-y.length;if(R.to-R.from!=S||t.state.sliceDoc(U,z)!=y||_&&R.to>=_.from&&R.from<=_.to)return{range:R};var q=d.changes({from:U,to:z,insert:e.insert}),re=R.to-r.to;return{changes:q,range:v?en.range(Math.max(0,v.anchor+re),Math.max(0,v.head+re)):R.map(q)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var M="input.type";return t.composing&&(M+=".compose",t.inputState.compositionFirstChange&&(M+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:M}),!0}if(i&&!i.main.eq(r)){var $=!1,G="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&($=!0),G=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:$,userEvent:G}),!0}return!1}var vQe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},xj=Zn.ie&&Zn.ie_version<=11,yQe=function(){function t(n){var e=this;ke(this,t),this.view=n,this.active=!1,this.selectionRange=new NKe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(Zn.ie&&Zn.ie_version<=11||Zn.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),xj&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Se(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(wS)?i.root.activeElement==this.dom:vS(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(Zn.ie&&Zn.ie_version<=11||Zn.android&&Zn.chrome)&&!i.state.selection.main.empty&&r.focusNode&&yS(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=Zn.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(yS(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||gS(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=vS(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=Re(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=Re(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&vS(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new gQe(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=hde(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=fde(e,n.previousSibling||n.target.previousSibling,-1),r=fde(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=Re(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function fde(t,n,e){for(;n;){var i=ws.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Wn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function OKe(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new ade(e.state||No.create(e)),this.plugins=this.state.facet(h_).map(function(s){return new aj(s)});var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new yQe(this),this.inputState=new ZKe(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Iue(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Se(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof Ql?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=Re(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(R){l.e(R)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(R){return R.annotation(tde)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=nde(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(No.phrases)!=this.state.facet(No.phrases))return this.setState(a);(i=_ue.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=Re(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var _=y.state.selection.main;m=new mue(_.empty?_:en.cursor(_.head,_.head>_.anchor?-1:1))}var C,S=Re(y.effects);try{for(S.s();!(C=S.n()).done;){var M=C.value;M.is(gue)&&(m=M.value)}}catch(R){S.e(R)}finally{S.f()}}}catch(R){v.e(R)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=mde.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(p_)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(R){return R.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(TS)!=i.state.facet(TS)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var $,G=Re(this.state.facet(sj));try{for(G.s();!($=G.n()).done;)(0,$.value)(i)}catch(R){G.e(R)}finally{G.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!hde(e,p)&&f.force&&A0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new ade(n),this.plugins=n.facet(h_).map(function(a){return new aj(a)}),this.pluginMap.clear();var o,s=Re(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Iue(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(h_),i=n.state.facet(h_);if(e!=i){var r,o=[],s=Re(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new aj(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=Re(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=Re(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(R){try{return R.read(n)}catch(z){return Ec(n.state,z),pde}}),g=_ue.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var _=0;_1||S<-1)&&(this.scrollDOM.scrollTop+=S,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var M,$=Re(this.state.facet(sj));try{for($.s();!(M=$.n()).done;)(0,M.value)(i)}catch(R){$.e(R)}finally{$.f()}}}}},{key:"themeClasses",get:function(){return bj+" "+(this.state.facet(yj)?ude:cde)+" "+this.state.facet(TS)}},{key:"updateAttrs",value:function(){var n=this,e=gde(this,vue,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(wS)?"true":"false",class:"cm-content",style:"".concat(Zn.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),gde(this,lj,i);var r=this.observer.ignore(function(){var o=nj(n.contentDOM,n.contentAttrs,i),s=nj(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=Re(n);try{for(r.s();!(e=r.n()).done;){var o,s=Re(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(p_),pp.mount(this.root,this.styleModules.concat(mQe).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==us.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return en.cursor(l,e?-1:1)}var c=od.find(t.docView,n.head);return en.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return pj(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return en.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var _=u+(v+y)*c,C=Rue(r,{x:g,y:_},!1,c);if(_h.bottom||(c<0?Cl))return en.cursor(C,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Rue(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return U4(i,o[I0.find(o,n-r.from,-1,e)].dir==us.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(fue)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>bQe)return Due(n.length);var e,i=this.textDirectionAt(n.from),r=Re(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==cj?1:2,d=l==cj?2:1;if(!a||1==u&&!VKe.test(a))return Due(c);for(var h=0,f=u,p=u;h=0;re-=3)if(hh[re+1]==-G){var L=hh[re+2],X=2&L?u:4&L?1&L?d:u:0;X&&(ds[z]=ds[hh[re]]=X),U=re;break}}else{if(189==hh.length)break;hh[U++]=z,hh[U++]=$,hh[U++]=q}else if(2==(R=ds[z])||1==R){var Z=R==u;q=Z?0:1;for(var H=U-3;H>=0;H-=3){var he=hh[H+2];if(2&he)break;if(Z)hh[H+2]|=2;else{if(4&he)break;hh[H+2]|=4}}}for(var E=0;EFe;){for(var ze=tt,ot=2!=ds[--tt];tt>Fe&&ot==(2!=ds[tt-1]);)tt--;oe.push(new I0(tt,ze,ot?2:1))}else oe.push(new I0(Fe,fe,0))}else for(var B=0;BDate.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){Hce(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=Re(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return gue.of(new mue("number"==typeof n?en.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return ka.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=pp.newName(),r=[TS.of(i),p_.of(_j(".".concat(i),n))];return e&&e.dark&&r.push(yj.of(!0)),r}},{key:"baseTheme",value:function(n){return k0.lowest(p_.of(_j("."+bj,n,dde)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&ws.get(i)||ws.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Wn.styleModule=p_,Wn.inputHandler=due,Wn.focusChangeEffect=hue,Wn.perLineTextDirection=fue,Wn.exceptionSink=uue,Wn.updateListener=sj,Wn.editable=wS,Wn.mouseSelectionStyle=cue,Wn.dragMovesSelection=lue,Wn.clickAddsSelectionRange=aue,Wn.decorations=f_,Wn.atomicRanges=yue,Wn.scrollMargins=bue,Wn.darkTheme=yj,Wn.contentAttributes=lj,Wn.editorAttributes=vue,Wn.lineWrapping=Wn.contentAttributes.of({class:"cm-lineWrapping"}),Wn.announce=hr.define();var bQe=4096,pde={},mde=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Se(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:us.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&ej(s,e)}return e}var _Qe=Zn.mac?"mac":Zn.windows?"win":Zn.linux?"linux":"key";function ES(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var wQe=k0.default(Wn.domEventHandlers({keydown:function(t,n){return bde(yde(n.state),t,n,"editor")}})),AS=Qn.define({enables:wQe}),vde=new WeakMap;function yde(t){var n=t.facet(AS),e=vde.get(n);return e||vde.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_Qe,s=Object.create(null),a=Object.create(null),l=function(M,$){var G=a[M];if(null==G)a[M]=$;else if(G!=$)throw new Error("Key binding "+M+" is used both as a regular binding and as a multi-stroke prefix")},c=function(M,$,G,R){for(var z,U,q=s[M]||(s[M]=Object.create(null)),re=$.split(/ (?!$)/).map(function(he){return function xQe(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==us.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=_de(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=wde(t,i),f=wde(t,r),p=h.type==_o.Text?h:null,m=f.type==_o.Text?f:null;if(t.lineWrapping&&(p&&(p=xde(t,i,p)),m&&(m=xde(t,r,m))),p&&m&&p.from==m.from)return C(S(e.from,e.to,p));var g=p?S(e.from,null,p):M(h,!1),v=m?S(null,e.to,m):M(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(_(u,g.bottom,d,v.top)):g.bottomX&&he.from=F)break;Fe>E&&re(Math.max(fe,E),null==$&&fe<=X,Math.min(Fe,F),null==G&&Fe>=Z,oe.dir)}}catch(xe){V.e(xe)}finally{V.f()}if((E=Y.to+1)>=F)break}}}catch(xe){H.e(xe)}finally{H.f()}return 0==q.length&&re(X,null==$,Z,null==G,t.textDirection),{top:z,bottom:U,horizontal:q}}function M($,G){var R=a.top+(G?$.top:$.bottom);return{top:R,bottom:R,horizontal:[]}}}(n,e,i)}}]),t}();function _de(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==us.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function xde(t,n,e){var i=en.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:_o.Text}}function wde(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=Re(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==_o.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var kQe=function(){function t(n,e){ke(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Se(t,[{key:"update",value:function(n){n.startState.facet(MS)!=n.state.facet(MS)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(MS);e0&&void 0!==arguments[0]?arguments[0]:{}),DQe,TQe,EQe,pue.of(!0)]}function Sde(t){return t.startState.facet(g_)!=t.state.facet(g_)}var DQe=Cde({above:!0,markers:function(t){var n,e=t.state,i=e.facet(g_),r=[],o=Re(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||kde:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:en.cursor(s.head,s.head>s.anchor?-1:1),d=Re(wj.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=Sde(t);return e&&Dde(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){Dde(n.state,t)},class:"cm-cursorLayer"});function Dde(t,n){n.style.animationDuration=t.facet(g_).cursorBlinkRate+"ms"}var TQe=Cde({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:wj.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||Sde(t)},class:"cm-selectionLayer"}),Tde={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};kde&&(Tde[".cm-line"].caretColor="transparent !important");var EQe=k0.highest(Wn.theme(Tde)),Ede=hr.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),v_=Va.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Ede)?i.value:e},t)}}),AQe=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Se(t,[{key:"update",value:function(n){var e,i=n.state.field(v_);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(v_)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field(v_),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field(v_)!=n&&this.view.dispatch({effects:Ede.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Ade(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var MQe=function(){function t(n){ke(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Se(t,[{key:"createDeco",value:function(n){var e,i=this,r=new Gm,o=r.add.bind(r),s=Re(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=Re(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(_){m.e(_)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Ade(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=Re(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),Cj=null!=/x/.unicode?"gu":"g",IQe=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",Cj),FQe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},kj=null,IS=Qn.define({combine:function(t){var n=su(t,{render:null,specialChars:IQe,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==kj&&typeof document<"u"&&document.body){var i=document.body.style;kj=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return kj||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,Cj)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,Cj)),n}});function NQe(){return[IS.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Mde||(Mde=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.decorations=yi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(IS)),this.decorations=this.decorator.createDeco(n)}return Se(t,[{key:"makeDecorator",value:function(n){var e=this;return new MQe({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Ba(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=s_(l.text,c,o-l.from);return yi.replace({widget:new PQe((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=yi.replace({widget:new jQe(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(IS);n.startState.facet(IS)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var Mde=null,jQe=function(t){wt(e,gp);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this)).options=i,o.code=r,o}return Se(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(FQe[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),PQe=function(t){wt(e,gp);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).width=i,r}return Se(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),LQe=yi.line({class:"cm-activeLine"}),RQe=ka.fromClass(function(){function t(n){ke(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=Re(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(LQe.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return yi.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ide(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):s_(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function BQe(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Wn.mouseSelectionStyle.of(function(e,i){return n(i)?function $Qe(t,n){var e=Ide(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ide(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(en.range(y.from+m,y.to+g))}else for(var _=Math.min(u.col,d.col),C=Math.max(u.col,d.col),S=h;S<=f;S++){var M=c.doc.line(S),$=V4(M.text,_,c.tabSize,!0);if($<0)p.push(en.cursor(M.to));else{var G=V4(M.text,C,c.tabSize);p.push(en.range(M.from+$,M.from+G))}}return p}(t.state,e,a);return l.length?en.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var VQe={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},HQe={style:"cursor: crosshair"};function zQe(){var n=Un(VQe[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=ka.fromClass(function(){function o(s){ke(this,o),this.view=s,this.isDown=!1}return Se(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Wn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?HQe:null})]}var Fde=function(){function t(n,e,i){ke(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Se(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=Re(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Se(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(Sj);if(r.position!=this.position){this.position=r.position;var o,s=Re(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=Re(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=Re(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(Sj).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=Nde.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||WQe,v=this.view.textDirection==us.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),_=!!a.above;!a.strictSide&&(_?u.top-(d.bottom-d.top)-g.yr.bottom)&&_==r.bottom-u.bottom>u.top-r.top&&(_=!_);var C=(_?u.top-r.top:r.bottom-u.bottom)-f;if(Cy&&R.topS&&(S=_?R.top-m-2-f:R.bottom+f+2)}}catch(z){G.e(z)}finally{G.f()}}"absolute"==this.position?(c.style.top=S-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=S+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:S,right:M,bottom:S+m}),c.classList.toggle("cm-tooltip-above",_),c.classList.toggle("cm-tooltip-below",!_),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),GQe=Wn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),WQe={x:0,y:0},FS=Qn.define({enables:[Ode,GQe]}),NS=Qn.define(),qQe=function(){function t(n){var e=this;ke(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Fde(n,NS,function(i){return e.createHostedView(i)})}return Se(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),XQe=FS.compute([NS],function(t){var n=t.facet(NS).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,si(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,si(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:qQe.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),YQe=function(){function t(n,e,i,r,o){ke(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Se(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==us.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=hr.define(),i=Va.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Ll.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=Re(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(QQe)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return NS.from(r)}});return[i,ka.define(function(r){return new YQe(r,t,i,e,n.hoverTime||300)}),XQe]}var QQe=hr.define(),Pde=Qn.define({combine:function(t){var n,e,i,r=Re(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function y_(t,n){var e=t.plugin(Lde),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Lde=ka.fromClass(function(){function t(n){ke(this,t),this.input=n.state.facet(b_),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Pde);this.top=new OS(n,!0,e.topContainer),this.bottom=new OS(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=Re(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Se(t,[{key:"update",value:function(n){var e=n.state.facet(Pde);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new OS(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new OS(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(b_);if(i!=this.input){var r,o=i.filter(function(C){return C}),s=[],a=[],l=[],c=[],u=Re(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(C){u.e(C)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),zde=function(){function t(n,e){var i=this;ke(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=Vde(e.markers(n)),e.initialSpacer&&(this.spacer=new Ude(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Se(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=Vde(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!Go.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=Re(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),Ude=function(){function t(n,e,i,r){ke(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Se(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Bde(),iZe]}function Gde(t){for(var n=9;ni&&(i=s,e.push(oZe.range(s)))}}catch(a){r.e(a)}finally{r.f()}return Go.of(e)}),aZe=0,Aj=Se(function t(n,e){ke(this,t),this.from=n,this.to=e}),gr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,t),this.id=aZe++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Se(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=au.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();gr.closedBy=new gr({deserialize:function(t){return t.split(" ")}}),gr.openedBy=new gr({deserialize:function(t){return t.split(" ")}}),gr.group=new gr({deserialize:function(t){return t.split(" ")}}),gr.contextHash=new gr({perNode:!0}),gr.lookAhead=new gr({perNode:!0}),gr.mounted=new gr({perNode:!0});var lZe=Object.create(null),au=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;ke(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Se(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(gr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):lZe,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=Re(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=Re(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(gr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();au.none=new au("",Object.create(null),0,8);var za,cZe=function(){function t(n){ke(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=PS.get(this)||this.topNode,r=new $S(i);return r.moveTo(n,e),PS.set(this,r._tree),r}},{key:"topNode",get:function(){return new w_(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=O0(PS.get(this)||this.topNode,n,e,!1);return PS.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=O0(Wde.get(this)||this.topNode,n,e,!0);return Wde.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|za.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:Fj(au.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(au.none,i,r,o)})}}],[{key:"build",value:function(n){return function hZe(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new uZe(e,e.length):e,d=i.types,h=0,f=0;function p(S,M,$,G,R){for(var z=u.id,U=u.start,q=u.end,re=u.size,L=f;re<0;){if(u.next(),-1==re)return $.push(a[z]),void G.push(U-S);if(-3==re)return void(h=z);if(-4==re)return void(f=z);throw new RangeError("Unrecognized record size: ".concat(re))}var Z,H,ot,he=d[z],E=U-S;if(q-U<=o&&(H=function(ot,B){var ne=u.fork(),ie=0,Ie=0,Ye=0,Le=ne.end-o,_t={size:0,start:0,skip:0};e:for(var At=ne.pos-ot;ne.pos>At;){var _n=ne.size;if(ne.id==B&&_n>=0)_t.size=ie,_t.start=Ie,_t.skip=Ye,Ye+=4,ie+=4,ne.next();else{var ci=ne.pos-_n;if(_n<0||ci=c?4:0,Fi=ne.start;for(ne.next();ne.pos>ci;){if(ne.size<0){if(-3!=ne.size)break e;on+=4}else ne.id>=c&&(on+=4);ne.next()}Ie=Fi,ie+=_n,Ye+=on}}return(B<0||ie==ot)&&(_t.size=ie,_t.start=Ie,_t.skip=Ye),_t.size>4?_t:void 0}(u.pos-M,R))){for(var F=new Uint16Array(H.size-H.skip),N=u.pos-H.size,Y=F.length;u.pos>N;)Y=v(H.start,F,Y);Z=new x_(F,q-H.start,i),E=H.start-S}else{var V=u.pos-re;u.next();for(var oe=[],fe=[],Fe=z>=c?z:-1,xe=0,tt=q;u.pos>V;)Fe>=0&&u.id==Fe&&u.size>=0?(u.end<=tt-o&&(m(oe,fe,U,xe,u.end,tt,Fe,L),xe=oe.length,tt=u.end),u.next()):p(U,V,oe,fe,Fe);if(Fe>=0&&xe>0&&xe-1&&xe>0){var ze=(ot=he,function(B,ne,ie){var Ie,Ye,Le=0,_t=B.length-1;if(_t>=0&&(Ie=B[_t])instanceof Ua){if(!_t&&Ie.type==ot&&Ie.length==ie)return Ie;(Ye=Ie.prop(gr.lookAhead))&&(Le=ne[_t]+Ie.length+Ye)}return g(ot,B,ne,ie,Le)});Z=Fj(he,oe,fe,0,oe.length,0,q-U,ze,ze)}else Z=g(he,oe,fe,q-U,L-q)}$.push(Z),G.push(E)}function m(S,M,$,G,R,z,U,q){for(var re=[],L=[];S.length>G;)re.push(S.pop()),L.push(M.pop()+$-R);S.push(g(i.types[U],re,L,z-R,q-z)),M.push(R-$)}function g(S,M,$,G){var R=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,z=arguments.length>5?arguments[5]:void 0;if(h){var U=[gr.contextHash,h];z=z?[U].concat(z):[U]}if(R>25){var q=[gr.lookAhead,R];z=z?[q].concat(z):[q]}return new Ua(S,M,$,G,z)}function v(S,M,$){var G=u.id,R=u.start,z=u.end,U=u.size;if(u.next(),U>=0&&G4)for(var re=u.pos-(U-4);u.pos>re;)$=v(S,M,$);M[--$]=q,M[--$]=z-S,M[--$]=R-S,M[--$]=G}else-3==U?h=G:-4==U&&(f=G);return $}for(var y=[],_=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,_,-1);var C=null!==(n=t.length)&&void 0!==n?n:y.length?_[0]+y[0].length:0;return new Ua(d[t.topID],y.reverse(),_.reverse(),C)}(n)}}]),t}();Ua.empty=new Ua(au.none,[],[],0);var uZe=function(){function t(n,e){ke(this,t),this.buffer=n,this.index=e}return Se(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),x_=function(){function t(n,e,i){ke(this,t),this.buffer=n,this.length=e,this.set=i}return Se(t,[{key:"type",get:function(){return au.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function Xde(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function O0(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(qde(r,i,h,h+d.length))if(d instanceof x_){if(o&za.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new Mj(new dZe(s,d,n,h),null,f)}else if(o&za.IncludeAnonymous||!d.type.isAnonymous||Ij(d)){var p=void 0;if(!(o&za.IgnoreMounts)&&d.props&&(p=d.prop(gr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&za.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&za.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&za.IgnoreOverlays)&&(i=this._tree.prop(gr.mounted))&&i.overlay){var o,s=n-this.from,a=Re(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new $S(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xde(this,n)}},{key:"getChild",value:function(n){var r=LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return RS(this,n)}}]),t}();function LS(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function RS(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var dZe=Se(function t(n,e,i,r){ke(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),Mj=function(){function t(n,e,i){ke(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&za.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new $S(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new Ua(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xde(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return RS(this,n)}}]),t}(),$S=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(ke(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof w_)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof w_?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&za.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&za.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&za.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&za.IncludeAnonymous||u instanceof x_||!u.type.isAnonymous||Ij(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return RS(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function Ij(t){return t.children.some(function(n){return n instanceof x_||!n.type.isAnonymous||Ij(n)})}var Yde=new WeakMap;function BS(t,n){if(!t.isAnonymous||n instanceof x_||n.type!=t)return 1;var e=Yde.get(n);if(null==e){e=1;var i,r=Re(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof Ua)){e=1;break}e+=BS(t,o)}}catch(s){r.e(s)}finally{r.f()}Yde.set(n,e)}return e}function Fj(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;$+=G}if(C==S+1){if($>d){var R=m[S];p(R.children,R.positions,0,R.children.length,g[S]+_);continue}h.push(m[S])}else h.push(Fj(t,m,g,S,C,M,g[C-1]+m[C-1].length-M,null,l));f.push(M+_-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var VS=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];ke(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Se(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=Re(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:Kde.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),mZe=0,Kde=function(){function t(){ke(this,t),this.instances=[],this.id=mZe++}return Se(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,_){return y==v[_]});var g,v});if(i)return i;var r,o=[],s=new yp(o,n,e),a=Re(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=Qde(e),u=Re(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=Re(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function Qde(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new gZe(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return ehe.add(n)}var ehe=new gr,gZe=function(){function t(n,e,i,r){ke(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Se(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new bZe(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var Nj,bZe=function(){function t(n,e,i){ke(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Se(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function($){return!$.scope||$.scope(s)}));for(var c=r,u=s.prop(ehe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=vZe(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(gr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function($){return!$.scope||$.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var _=v=C)&&n.nextSibling()););if(!_||C>i)break;(y=_.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,_.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),kn=yp.define,HS=kn(),bp=kn(),nhe=kn(bp),ihe=kn(bp),_p=kn(),zS=kn(_p),Oj=kn(_p),mh=kn(),Xm=kn(mh),gh=kn(),vh=kn(),jj=kn(),C_=kn(jj),US=kn(),fn={comment:HS,lineComment:kn(HS),blockComment:kn(HS),docComment:kn(HS),name:bp,variableName:kn(bp),typeName:nhe,tagName:kn(nhe),propertyName:ihe,attributeName:kn(ihe),className:kn(bp),labelName:kn(bp),namespace:kn(bp),macroName:kn(bp),literal:_p,string:zS,docString:kn(zS),character:kn(zS),attributeValue:kn(zS),number:Oj,integer:kn(Oj),float:kn(Oj),bool:kn(_p),regexp:kn(_p),escape:kn(_p),color:kn(_p),url:kn(_p),keyword:gh,self:kn(gh),null:kn(gh),atom:kn(gh),unit:kn(gh),modifier:kn(gh),operatorKeyword:kn(gh),controlKeyword:kn(gh),definitionKeyword:kn(gh),moduleKeyword:kn(gh),operator:vh,derefOperator:kn(vh),arithmeticOperator:kn(vh),logicOperator:kn(vh),bitwiseOperator:kn(vh),compareOperator:kn(vh),updateOperator:kn(vh),definitionOperator:kn(vh),typeOperator:kn(vh),controlOperator:kn(vh),punctuation:jj,separator:kn(jj),bracket:C_,angleBracket:kn(C_),squareBracket:kn(C_),paren:kn(C_),brace:kn(C_),content:mh,heading:Xm,heading1:kn(Xm),heading2:kn(Xm),heading3:kn(Xm),heading4:kn(Xm),heading5:kn(Xm),heading6:kn(Xm),contentSeparator:kn(mh),list:kn(mh),quote:kn(mh),emphasis:kn(mh),strong:kn(mh),link:kn(mh),monospace:kn(mh),strikethrough:kn(mh),inserted:kn(),deleted:kn(),changed:kn(),invalid:kn(),meta:US,documentMeta:kn(US),annotation:kn(US),processingInstruction:kn(US),definition:yp.defineModifier(),constant:yp.defineModifier(),function:yp.defineModifier(),standard:yp.defineModifier(),local:yp.defineModifier(),special:yp.defineModifier()};the([{tag:fn.link,class:"tok-link"},{tag:fn.heading,class:"tok-heading"},{tag:fn.emphasis,class:"tok-emphasis"},{tag:fn.strong,class:"tok-strong"},{tag:fn.keyword,class:"tok-keyword"},{tag:fn.atom,class:"tok-atom"},{tag:fn.bool,class:"tok-bool"},{tag:fn.url,class:"tok-url"},{tag:fn.labelName,class:"tok-labelName"},{tag:fn.inserted,class:"tok-inserted"},{tag:fn.deleted,class:"tok-deleted"},{tag:fn.literal,class:"tok-literal"},{tag:fn.string,class:"tok-string"},{tag:fn.number,class:"tok-number"},{tag:[fn.regexp,fn.escape,fn.special(fn.string)],class:"tok-string2"},{tag:fn.variableName,class:"tok-variableName"},{tag:fn.local(fn.variableName),class:"tok-variableName tok-local"},{tag:fn.definition(fn.variableName),class:"tok-variableName tok-definition"},{tag:fn.special(fn.variableName),class:"tok-variableName2"},{tag:fn.definition(fn.propertyName),class:"tok-propertyName tok-definition"},{tag:fn.typeName,class:"tok-typeName"},{tag:fn.namespace,class:"tok-namespace"},{tag:fn.className,class:"tok-className"},{tag:fn.macroName,class:"tok-macroName"},{tag:fn.propertyName,class:"tok-propertyName"},{tag:fn.operator,class:"tok-operator"},{tag:fn.comment,class:"tok-comment"},{tag:fn.meta,class:"tok-meta"},{tag:fn.invalid,class:"tok-invalid"},{tag:fn.punctuation,class:"tok-punctuation"}]);var j0=new gr,_Ze=new gr,ad=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";ke(this,t),this.data=n,this.name=r,No.prototype.hasOwnProperty("tree")||Object.defineProperty(No.prototype,"tree",{get:function(){return hl(this)}}),this.parser=e,this.extension=[xp.of(this),No.languageData.of(function(o,s,a){var l=rhe(o,s,a),c=l.type.prop(j0);if(!c)return[];var u=o.facet(c),d=l.type.prop(_Ze);if(d){var h,f=l.resolve(s-l.from,a),p=Re(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Se(t,[{key:"isActiveAt",value:function(n,e){return rhe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(j0)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(xp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(j0)!=e.data){var l=s.prop(gr.mounted);if(l){if(l.tree.prop(j0)==e.data){if(l.overlay){var c,u=Re(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),k_=null,CZe=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;ke(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Se(t,[{key:"startParse",value:function(){return this.parser.startParse(new wZe(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Ua.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(VS.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=k_;k_=this;try{return n()}finally{k_=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=ohe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=VS.applyChanges(i,l),r=Ua.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=Re(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=ohe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],Ua.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){wt(r,Jde);var i=Ct(r);function r(){return ke(this,r),i.apply(this,arguments)}return Se(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=k_;if(u){var d,h=Re(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new Ua(au.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return k_}}]),t}();function ohe(t,n,e){return VS.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var Pj=function(){function t(n){ke(this,t),this.context=n,this.tree=n.tree}return Se(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=CZe.create(n.facet(xp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();ad.state=Va.define({create:Pj.init,update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(ad.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(xp)!=n.state.facet(xp)?Pj.init(n.state):t.apply(n)}});var she=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(she=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var Lj=typeof navigator<"u"&&null!==(Nj=navigator.scheduling)&&void 0!==Nj&&Nj.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,kZe=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Se(t,[{key:"update",value:function(n){var e=this.view.state.field(ad.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(ad.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=she(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return Lj&&Lj()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:ad.setState.of(new Pj(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return Ec(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),xp=Qn.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[ad.state,kZe,Wn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),SZe=Se(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ke(this,t),this.language=n,this.support=e,this.extension=[n,e]}),DZe=Qn.define(),GS=Qn.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function P0(t){var n=t.facet(GS);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function S_(t,n){var e="",i=t.tabSize,r=t.facet(GS)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};ke(this,t),this.state=n,this.options=e,this.unit=P0(n)}return Se(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return s_(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),ahe=new gr;function TZe(t){var n=t.type.prop(ahe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(gr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),_=v.lastChild;if(!y)return null;for(var C=g.options.simulateBreak,S=g.state.doc.lineAt(y.from),M=null==C||C<=S.from?S.to:Math.min(S.to,C),$=y.to;;){var G=v.childAfter($);if(!G||G==_)return null;if(!G.type.isSkipped)return G.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var IZe=Qn.define(),uhe=new gr;function qS(t,n,e){var i,r=Re(t.facet(IZe));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=hl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function dhe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var XS=hr.define({map:dhe}),D_=hr.define({map:dhe});function hhe(t){var n,e=[],i=Re(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var Ym=Va.define({create:function(){return yi.none},update:function(t,n){t=t.map(n.changes);var e,i=Re(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(XS)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[vhe.range(a.value.from,a.value.to)]}):a.is(D_)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Wn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function fhe(t,n){return t.field(Ym,!1)?n:n.concat(hr.appendConfig.of(ghe()))}function phe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Wn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var FZe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=Re(hhe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=qS(t.state,i.from,i.to);if(r)return t.dispatch({effects:fhe(t.state,[XS.of(r),phe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(Ym,!1))return!1;var n,e=[],i=Re(hhe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=YS(t.state,r.from,r.to);o&&e.push(D_.of(o),phe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},OZe),t),e=new $j(n,!0),i=new $j(n,!1),r=ka.fromClass(function(){function s(a){ke(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Se(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(xp)!=a.state.facet(xp)||a.startState.field(Ym,!1)!=a.state.field(Ym,!1)||hl(a.startState)!=hl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new Gm,u=Re(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=YS(a.state,d.from,d.to)?i:qS(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,$de({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||Go.empty},initialSpacer:function(){return new $j(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=YS(s.state,a.from,a.to);if(c)return s.dispatch({effects:D_.of(c)}),!0;var u=qS(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:XS.of(u)}),!0)}})}),ghe()]}var PZe=Wn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),Bj=function(){function t(n,e){var i;function r(a){var l=pp.newName();return(i||(i=Object.create(null)))["."+l]=a,l}ke(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof ad?function(a){return a.prop(j0)==s.data}:s?function(a){return a==s}:void 0,this.style=the(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new pp(i):null,this.themeType=e.themeType}return Se(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),Vj=Qn.define(),yhe=Qn.define({combine:function(t){return t.length?[t[0]]:null}});function Hj(t){var n=t.facet(Vj);return n.length?n:t.facet(yhe)}function bhe(t,n){var e,i=[RZe];return t instanceof Bj&&(t.module&&i.push(Wn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?yhe.of(t):e?Vj.computeN([Wn.darkTheme],function(r){return r.facet(Wn.darkTheme)==("dark"==e)?[t]:[]}):Vj.of(t)),i}var LZe=function(){function t(n){ke(this,t),this.markCache=Object.create(null),this.tree=hl(n.state),this.decorations=this.buildDeco(n,Hj(n.state))}return Se(t,[{key:"update",value:function(n){var e=hl(n.state),i=Hj(n.state),r=i!=Hj(n.startState);e.length0&&yh(n.state,s.head-1,1,r)||r.afterCursor&&(yh(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),GZe]}var qZe=new gr;function zj(t,n,e){var i=t.prop(n<0?gr.openedBy:gr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function Uj(t){var n=t.type.prop(qZe);return n?n(t.node):t}function yh(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=hl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=zj(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return XZe(0,0,e,l,u,c,o)}}return function YZe(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function XZe(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(whe.push(t),console.warn(n))}function eet(t,n){var e,i=null,r=Re(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||fn[o];s?"function"==typeof s?i?i=s(i):Wj(o,"Modifier ".concat(o," used at start of tag")):i?Wj(o,"Tag ".concat(o," used as modifier")):i=s:Wj(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=au.define({id:xhe.length,name:a,props:[Zde(ql({},a,i))]});return xhe.push(l),l.id}function qj(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var tet=qj(function oet(t,n){var e,r=[],o=-1,s=Re(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=Xj(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var re,L=[],X=Re(r);try{for(X.s();!(re=X.n()).done;){var Z=re.value,H=Z.line,he=Z.comment;if(he>=0){var F=H.from+he,N=F+Z.token.length;" "==H.text[N-H.from]&&N++,L.push({from:F,to:N})}}}catch(Y){X.e(Y)}finally{X.f()}return{changes:L}}return null},0),net=qj(She,0),iet=qj(function(t,n){return She(t,n,function(e){var i,r=[],o=Re(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function Xj(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function She(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return Xj(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function ret(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Wn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?Kj:"historyRedo"==n.inputType?KS:null;return!!i&&(n.preventDefault(),i(e))}})]}function JS(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(Jj,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var Kj=JS(0,!1),KS=JS(1,!1),uet=JS(0,!0),det=JS(1,!0);function The(t){return function(n){var e=n.field(Jj,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var het=The(0),fet=The(1),df=function(){function t(n,e,i,r,o){ke(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Se(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&rd.fromJSON(n.changes),[],n.mapped&&C0.fromJSON(n.mapped),n.startSelection&&en.fromJSON(n.startSelection),n.selectionsAfter.map(en.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=lu,o=Re(n.startState.facet(aet));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,lu)}},{key:"selection",value:function(n){return new t(void 0,lu,void 0,void 0,n)}}]),t}();function QS(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Ehe(t,n){return t.length?n.length?t.concat(n):t:n}var lu=[];function Ahe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),QS(t,t.length-1,1e9,e.setSelAfter(i)))}return[df.selection([n])]}function pet(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function Qj(t,n){if(!t.length)return t;for(var e=t.length,i=lu;e;){var r=met(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[df.selection(i)]:lu}function met(t,n,e){var i=Ehe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):lu,e);if(!t.changes)return df.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new df(r,hr.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var get=/^(input\.type|delete)($|\.)/,T_=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;ke(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Se(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||get.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?QS(s,s.length-1,r.minDepth,new df(n.changes.compose(a.changes),Ehe(n.effects,a.effects),a.mapped,a.startSelection,lu)):QS(s,s.length,r.minDepth,n),lu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:lu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function eD(t,n,e){for(var i=hl(t).resolveInner(n.head),r=e?gr.closedBy:gr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;yet(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?yh(t,i.from,1):yh(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,en.cursor(l,e?-1:1)}function Ohe(t,n){return ld(t,function(e){if(!e.empty)return ZS(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var jhe=function(t){return Ohe(t,!1)},Phe=function(t){return Ohe(t,!0)};function Lhe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=nD(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=nD(t,s,!1),a=nD(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:en.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Wn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function nD(t,n,e){if(t instanceof Wn){var i,r=Re(t.state.facet(Wn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var efe=function(t,n){return tD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function ofe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=Re(iD(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=Re(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(en.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=Re(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(en.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:en.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function sfe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=Re(iD(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var bet=afe(!1),_et=afe(!0);function afe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=hl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(gr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new WS(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=Rj(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:en.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var lfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(tP(n,function(i,r){r.push({from:i.from,insert:n.facet(GS)})}),{userEvent:"input.indent"})),!0)},cfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(tP(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=s_(o,n.tabSize),a=0,l=S_(n,Math.max(0,s-P0(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:rfe}].concat(xet.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),Cet=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return ld(t,function(n){return eD(t.state,n,!fl(t))})},shift:function(t){return cu(t,function(n){return eD(t.state,n,!fl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return ld(t,function(n){return eD(t.state,n,fl(t))})},shift:function(t){return cu(t,function(n){return eD(t.state,n,fl(t))})}},{key:"Alt-ArrowUp",run:function(t){return ofe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return sfe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return ofe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return sfe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=en.create([i.main]):i.main.empty||(r=en.create([en.cursor(i.main.head)])),!!r&&(e(bh(n,r)),!0)}},{key:"Mod-Enter",run:_et},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=iD(n).map(function(r){return en.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:en.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=L0(n.selection,function(r){for(var o,s=hl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return en.range(s.to,s.from)});return e(bh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:cfe},{key:"Mod-]",run:lfe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new WS(n,{overrideIndentation:function(s){return i[s]??-1}}),o=tP(n,function(s,a,l){var c=Rj(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=S_(n,c);(u!=d||l.from0?o--:s0&&yh(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;ke(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(dfe(a))}:dfe,this.query=this.normalize(e)}return Se(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ba(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=S4(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Sc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(ke(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=hfe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new mfe(n,e,i,r,o);this.re=new RegExp(e,nP+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=rD(n,r),this.getLine(this.curLineStart)}return Se(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=rD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return iP.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=rD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pfe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function rD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function rP(t){var n=Oo("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Un(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:oD.of(!1),selection:en.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Oo("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:oD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Oo("label",t.state.phrase("Go to line"),": ",n)," ",Oo("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(ffe.prototype[Symbol.iterator]=mfe.prototype[Symbol.iterator]=function(){return this});var oD=hr.define(),gfe=Va.define({create:function(){return!0},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(oD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return b_.from(t,function(n){return n?rP:null})}}),Det=Wn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Tet={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},vfe=Qn.define({combine:function(t){return su(t,Tet,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Eet=yi.mark({class:"cm-selectionMatch"}),Aet=yi.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function yfe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==cs.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==cs.Word)}var Met=ka.fromClass(function(){function t(n){ke(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(vfe),i=n.state,r=i.selection;if(r.ranges.length>1)return yi.none;var o,y,_,C,S,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return yi.none;var l=i.wordAt(s.head);if(!l)return yi.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return yi.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!yfe(a=i.charCategorizer(s.head),i,s.from,s.to)||(S=s.to,(y=a)((_=i).sliceDoc(C=s.from,C+1))!=cs.Word||y(_.sliceDoc(S-1,S))!=cs.Word))return yi.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return yi.none}var u,d=[],h=Re(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new R0(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||yfe(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Aet.range(g,v)):(g>=s.to||v<=s.from)&&d.push(Eet.range(g,v)),d.length>e.maxMatches))return yi.none}}catch(y){h.e(y)}finally{h.f()}return yi.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),Iet=Wn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),sD=Qn.define({combine:function(t){return su(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new Vet(n)}})}});function Fet(t){return t?[sD.of(t),hP]:hP}var bfe=function(){function t(n){ke(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,nP),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Se(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new Oet(this):new Net(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:No.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?B0(this,r,e,i):$0(this,r,e,i)}}]),t}(),_fe=Se(function t(n){ke(this,t),this.spec=n});function $0(t,n,e,i){return new R0(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=$0(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function B0(t,n,e,i){return new ffe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(aD(a.input,a.index))!=cs.Word||r(lD(a.input,a.index))!=cs.Word)&&(r(lD(a.input,a.index+a[0].length))!=cs.Word||r(aD(a.input,a.index+a[0].length))!=cs.Word)}):void 0},e,i);var r}function aD(t,n){return t.slice(Pl(t,n,!1),n)}function lD(t,n){return t.slice(n,Pl(t,n))}var Oet=function(t){wt(e,_fe);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e,[{key:"nextMatch",value:function(i,r,o){var s=B0(this.spec,i,o,i.doc.length).next();return s.done&&(s=B0(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=B0(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=B0(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),E_=hr.define(),oP=hr.define(),Cp=Va.define({create:function(t){return new sP(lP(t).create(),null)},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(E_)?t=new sP(r.value.create(),t.panel):r.is(oP)&&(t=new sP(t.query,r.value?aP:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return b_.from(t,function(n){return n.panel})}}),sP=Se(function t(n,e){ke(this,t),this.query=n,this.panel=e}),jet=yi.mark({class:"cm-searchMatch"}),Pet=yi.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Let=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Cp))}return Se(t,[{key:"update",value:function(n){var e=n.state.field(Cp);(e!=n.startState.field(Cp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return yi.none;for(var i=this.view,r=new Gm,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Pet:jet)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function A_(t){return function(n){var e=n.state.field(Cp,!1);return e&&e.query.spec.valid?t(n,e):cP(n)}}var cD=A_(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:dP(t,r),userEvent:"select.search"}),!0)}),uD=A_(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:dP(t,o),userEvent:"select.search"}),!0)}),Ret=A_(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:en.create(e.map(function(i){return en.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),xfe=A_(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Wn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(dP(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),$et=A_(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Wn.announce.of(r),userEvent:"input.replace.all"}),!0});function aP(t){return t.state.facet(sD).createPanel(t)}function lP(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(sD);return new bfe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var cP=function(t){var n=t.state.field(Cp,!1);if(n&&n.panel){var e=y_(t,aP);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=lP(t.state,n.query.spec);r.valid&&t.dispatch({effects:E_.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[oP.of(!0),n?E_.of(lP(t.state,n.query.spec)):hr.appendConfig.of(hP)]});return!0},uP=function(t){var n=t.state.field(Cp,!1);if(!n||!n.panel)return!1;var e=y_(t,aP);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:oP.of(!1)}),!0},Bet=[{key:"Mod-f",run:cP,scope:"editor search-panel"},{key:"F3",run:cD,shift:uD,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:cD,shift:uD,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:uP,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new R0(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(en.range(c.value.from,c.value.to))}return e(n.update({selection:en.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=y_(t,rP);if(!n){var e=[oD.of(!0)];null==t.state.field(gfe,!1)&&e.push(hr.appendConfig.of([gfe,Det])),t.dispatch({effects:e}),n=y_(t,rP)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=en.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||en.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(C){return C.from==y.value.from}))return m=y,p=v,"continue";if(h){var _=s.wordAt(y.value.from);if(!_||_.from!=y.value.from||_.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new R0(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new R0(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===bn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(en.range(o.from,o.to),!1),effects:Wn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],Vet=function(){function t(n){var e=this;ke(this,t),this.view=n;var i=this.query=n.state.field(Cp).query.spec;function r(o,s,a){return Oo("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Oo("input",{value:i.search,placeholder:Ac(n,"Find"),"aria-label":Ac(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Oo("input",{value:i.replace,placeholder:Ac(n,"Replace"),"aria-label":Ac(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Oo("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Oo("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Oo("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Oo("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return cD(n)},[Ac(n,"next")]),r("prev",function(){return uD(n)},[Ac(n,"previous")]),r("select",function(){return Ret(n)},[Ac(n,"all")]),Oo("label",null,[this.caseField,Ac(n,"match case")]),Oo("label",null,[this.reField,Ac(n,"regexp")]),Oo("label",null,[this.wordField,Ac(n,"by word")])].concat(si(n.state.readOnly?[]:[Oo("br"),this.replaceField,r("replace",function(){return xfe(n)},[Ac(n,"replace")]),r("replaceAll",function(){return $et(n)},[Ac(n,"replace all")])]),[Oo("button",{name:"close",onclick:function(){return uP(n)},"aria-label":Ac(n,"close"),type:"button"},["\xd7"])]))}return Se(t,[{key:"commit",value:function(){var n=new bfe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:E_.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return bde(yde(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?uD:cD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),xfe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=Re(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=Re(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(E_)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(sD).top}}]),t}();function Ac(t,n){return t.state.phrase(n)}var dD=/[\s\.,:;?!]/;function dP(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!dD.test(l[c+1])&&dD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!dD.test(l[u-1])&&dD.test(l[u])){l=l.slice(0,u);break}return Wn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var Het=Wn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),hP=[Cp,k0.lowest(Let),Het],wfe=function(){function t(n,e,i){ke(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Se(t,[{key:"tokenBefore",value:function(n){for(var e=hl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(Sfe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function Cfe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var kfe=Se(function t(n,e,i){ke(this,t),this.completion=n,this.source=e,this.match=i});function kp(t){return t.selection.main.head}function Sfe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function Dfe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:en.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:en.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Tfe=new WeakMap;function Uet(t){if(!Array.isArray(t))return t;var n=Tfe.get(t);return n||Tfe.set(t,n=function zet(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Un(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=Re(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&R<=57||R>=97&&R<=122?2:R>=65&&R<=90?1:0:(z=S4(R))!=z.toLowerCase()?1:z!=z.toUpperCase()?2:0;(!M||1==U&&C||0==G&&0!=U)&&(e[m]==R||i[m]==R&&(g=!0)?s[m++]=M:s.length&&(S=!1)),G=U,M+=Sc(R)}return m==c&&0==s[0]&&S?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,_]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,_]:m==c?this.result((g?-200:0)-100-700+(S?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=Re(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Sc(Ba(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),_h=Qn.define({combine:function(t){return su(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Efe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var Wet=function(){function t(n,e){var i=this;ke(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(_h);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,si(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var C=p.appendChild(document.createElement("span"));C.appendChild(document.createTextNode(m.slice(y,_))),C.className="cm-completionMatchedText",g=_}return g=this.range.to)&&(this.range=Efe(i.options.length,i.selected,this.view.state.facet(_h).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return Ec(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,Mfe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=Re(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,_=v.result.getMatch,C=Re(v.result.options);try{for(C.s();!(y=C.n()).done;){var S=y.value,M=[1e9-m++];if(_){var $,G=Re(_(S));try{for(G.s();!($=G.n()).done;)M.push($.value)}catch(N){G.e(N)}finally{G.f()}}p.push(new kfe(S,v,M))}}catch(N){C.e(N)}finally{C.f()}}else{var z,U=new Get(h.sliceDoc(v.from,v.to)),q=void 0,re=Re(v.result.options);try{for(re.s();!(z=re.n()).done;){var L=z.value;(q=U.match(L.label))&&(null!=L.boost&&(q[0]+=L.boost),p.push(new kfe(L,v,q)))}}catch(N){re.e(N)}finally{re.f()}}}}catch(N){g.e(N)}finally{g.f()}var X,Z=[],H=null,he=h.facet(_h).compareCompletions,E=Re(p.sort(function(N,Y){return Y.match[0]-N.match[0]||he(N.completion,Y.completion)}));try{for(E.s();!(X=E.n()).done;){var F=X.value;!H||H.label!=F.completion.label||H.detail!=F.completion.detail||null!=H.type&&null!=F.completion.type&&H.type!=F.completion.type||H.apply!=F.completion.apply?Z.push(F):Afe(F.completion)>Afe(H)&&(Z[Z.length-1]=F),H=F.completion}}catch(N){E.e(N)}finally{E.f()}return Z}(n,e);if(!s.length)return null;var a,l=e.facet(_h).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var Jet=[];function fP(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var Jm=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;ke(this,t),this.source=n,this.state=e,this.explicitPos=i}return Se(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=fP(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(pP))r=new t(r.source,1,a.value?kp(n.state):-1);else if(a.is(hD))r=new t(r.source,0);else if(a.is(Ife)){var l,c=Re(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(kp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),Ket=function(t){wt(e,Jm);var n=Ct(e);function e(i,r,o,s,a){var l;return ke(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Se(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=kp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&kp(i.startState)==this.from)return new Jm(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):Sfe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new wfe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:kp(i.state)):new Jm(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new Jm(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),pP=hr.define(),hD=hr.define(),Ife=hr.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Ffe=hr.define(),uu=Va.define({create:function(){return Xet.start()},update:function(t,n){return t.update(n)},provide:function(t){return[FS.from(t,function(n){return n.tooltip}),Wn.contentAttributes.from(t,function(n){return n.attrs})]}});function fD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(uu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function KQe(t,n){var e=t.plugin(Ode);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Ffe.of(a)}),!0}}var Qet=Se(function t(n,e){ke(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),Zet=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=Re(n.state.field(uu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Se(t,[{key:"update",value:function(n){var e=this,i=n.state.field(uu);if(n.selectionSet||n.docChanged||n.startState.field(uu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!fP(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=Re(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){Ec(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,si(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=Re(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==fP(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=Re(this.view.state.field(uu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=kp(i),o=new wfe(i,r,n.explicitPos==r),s=new Qet(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:hD.of(null)}),Ec(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(_h),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new Ket(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:kp(l.updates.length?l.updates[0].startState:e.view.state)),d=Re(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(uu).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new Jm(l.active.source,0),g=Re(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),pD={brackets:["(","[","{","'",'"'],before:")]}:;>"},Km=hr.define({map:function(t,n){return n.mapPos(t,-1,Ll.TrackAfter)??void 0}}),mP=hr.define({map:function(t,n){return n.mapPos(t)}}),gP=new(function(t){wt(e,Um);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e)}());gP.startSide=1,gP.endSide=-1;var Nfe=Va.define({create:function(){return Go.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=Go.empty)}t=t.map(n.changes);var r,o=Re(n.effects);try{var s=function(){var a=r.value;a.is(Km)?t=t.update({add:[gP.range(a.value,a.value+1)]}):a.is(mP)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ofe(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return S4(t<128?t:t+1)}function jfe(t,n){return t.languageDataAt("closeBrackets",n)[0]||pD}var ttt="object"==(typeof navigator>"u"?"undefined":bn(navigator))&&/Android\b/.test(navigator.userAgent),ntt=Wn.inputHandler.of(function(t,n,e,i){if((ttt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Sc(Ba(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=jfe(s,s.selection.main.head),u=c.brackets||pD.brackets,d=Re(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Ofe(Ba(h,0));if(a==h)return f==h?stt(s,h,u.indexOf(h+h+h)>-1):rtt(s,h,f,c.before||pD.before);if(a==f&&Pfe(s,s.selection.main.from))return ott(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),itt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=jfe(n,n.selection.main.head).brackets||pD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Sc(Ba(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=Re(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&mD(n.doc,s.head)==Ofe(Ba(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:en.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Pfe(t,n){var e=!1;return t.field(Nfe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function mD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Sc(Ba(e,0)))}function rtt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:Km.of(s.to+n.length),range:en.range(s.anchor+n.length,s.head+n.length)};var a=mD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:Km.of(s.head+n.length),range:en.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function ott(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&mD(t.doc,o.head)==e?en.cursor(o.head+e.length):i=o});return i?null:t.update({selection:en.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return mP.of(o.from)})})}function stt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:Km.of(o.to+n.length),range:en.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=mD(t.doc,s);if(a==n){if(Lfe(t,s))return{changes:{insert:n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)};if(Pfe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:en.cursor(s+n.length*(l?3:1)),effects:mP.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Lfe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=cs.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=cs.Word&&!function(u,d,h){for(var f=hl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Lfe(t,n){var e=hl(t).resolveInner(n+1);return e.parent&&e.from==n}function att(){return[uu,_h.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Zet,ltt,ett]}var Rfe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(uu,!1)&&(t.dispatch({effects:pP.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(uu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:hD.of(null)}),0))}},{key:"ArrowDown",run:fD(!0)},{key:"ArrowUp",run:fD(!1)},{key:"PageDown",run:fD(!0,"page")},{key:"PageUp",run:fD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(uu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||(Dfe(t,n.open.options[n.open.selected]),0))}}],ltt=k0.highest(AS.computeN([_h],function(t){return t.facet(_h).defaultKeymap?[Rfe]:[]})),ctt=Se(function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.diagnostic=i}),M_=function(){function t(n,e,i){ke(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Se(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(Qm).markerFilter;o&&(r=o(r));var s=yi.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?yi.widget({widget:new ptt(a),diagnostic:a}).range(a.from):yi.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,V0(s))}}]),t}();function V0(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new ctt(r,o,a.diagnostic),!1}),i}function $fe(t,n){return!(!t.effects.some(function(e){return e.is(gD)})&&!t.changes.touchesRange(n.pos))}function Bfe(t,n){return t.field(Mc,!1)?n:n.concat(hr.appendConfig.of([Mc,Wn.decorations.compute([Mc],function(e){var i=e.field(Mc),r=i.selected;return r&&i.panel&&r.from!=r.to?yi.set([utt.range(r.from,r.to)]):yi.none}),JQe(dtt,{hideOn:$fe}),mtt]))}var gD=hr.define(),vP=hr.define(),Vfe=hr.define(),Mc=Va.define({create:function(){return new M_(yi.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=V0(e,t.selected.diagnostic,r)||V0(e,null,r)}t=new M_(e,t.panel,i)}var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(gD)?t=M_.init(a.value,t.panel,n.state):a.is(vP)?t=new M_(t.diagnostics,a.value?qfe.open:null,t.selected):a.is(Vfe)&&(t=new M_(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[b_.from(t,function(n){return n.panel}),Wn.decorations.from(t,function(n){return n.diagnostics})]}}),utt=yi.mark({class:"cm-lintRange cm-lintRange-active"});function dtt(t,n,e){var i=t.state.field(Mc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=Ufe(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=Re(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=V0(this.view.state.field(Mc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Vfe.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function vD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function yP(t){return vD(''),'width="6" height="3"')}var mtt=Wn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:yP("#d11")},".cm-lintRange-warning":{backgroundImage:yP("orange")},".cm-lintRange-info":{backgroundImage:yP("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),gtt=function(t){wt(e,ph);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Se(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(yD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:bP.of({pos:f.from,above:!1,create:function(){return{dom:Hfe(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var _=m.getBoundingClientRect();if(!(y.clientX>_.left-10&&y.clientX<_.right+10&&y.clientY>_.top-10&&y.clientY<_.bottom+10)){for(var C=y.target;C;C=C.parentNode)if(1==C.nodeType&&C.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",v),p.state.field(Yfe)&&p.dispatch({effects:bP.of(null)})}})}var d=a.state.facet(yD).hoverTime,h=setTimeout(u,d);l.onmouseout=function(){clearTimeout(h),l.onmouseout=l.onmousemove=null},l.onmousemove=function(){clearTimeout(h),h=setTimeout(u,d)}}(i,r,o)}),r}}]),e}();function vtt(t,n){var e,i=Object.create(null),r=Re(n);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t.lineAt(o.from);(i[s.from]||(i[s.from]=[])).push(o)}}catch(c){r.e(c)}finally{r.f()}var a=[];for(var l in i)a.push(new gtt(i[l]).range(+l));return Go.of(a,!0)}var ytt=$de({class:"cm-gutter-lint",markers:function(t){return t.state.field(Xfe)}}),Xfe=Va.define({create:function(){return Go.empty},update:function(t,n){t=t.map(n.changes);var e,i=n.state.facet(yD).markerFilter,r=Re(n.effects);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.is(gD)){var s=o.value;i&&(s=i(s||[])),t=vtt(n.state.doc,s.slice(0))}}}catch(a){r.e(a)}finally{r.f()}return t}}),bP=hr.define(),Yfe=Va.define({create:function(){return null},update:function(t,n){return t&&n.docChanged&&(t=$fe(n,t)?null:Object.assign(Object.assign({},t),{pos:n.changes.mapPos(t.pos)})),n.effects.reduce(function(e,i){return i.is(bP)?i.value:e},t)},provide:function(t){return FS.from(t)}}),btt=Wn.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:vD('')},".cm-lint-marker-warning":{content:vD('')},".cm-lint-marker-error":{content:vD('')}}),yD=Qn.define({combine:function(t){return su(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function _tt(){return[yD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Xfe,ytt,btt,Yfe]}var Jfe,xtt=function(){return[rZe(),sZe,NQe(),cet(),jZe(),SQe(),[v_,AQe],No.allowMultipleSelections.of(!0),No.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=Re(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=Rj(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=S_(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),bhe($Ze,{fallback:!0}),WZe(),[ntt,Nfe],att(),BQe(),zQe(),RQe,(n=[Iet,Met],n),AS.of([].concat(itt,si(Cet),Bet,vet,FZe,Rfe,htt))];var n}(),wtt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;ke(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Se(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Ctt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new Kfe(r,r.start):null,0,null)}}]),t}(),Kfe=Se(function t(n,e){ke(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(Jfe||(Jfe={}));var Ctt=function(){function t(n){ke(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Se(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),ktt=function(){function t(n,e,i){ke(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Se(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),bD=Se(function t(){ke(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),Qfe=new bD,Stt=function(){function t(n,e){ke(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Qfe,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Se(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=Qfe,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=Re(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),_D=function(){function t(n,e){ke(this,t),this.data=n,this.id=e}return Se(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function xD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}_D.prototype.contextual=_D.prototype.fallback=_D.prototype.extend=!1;var Zfe,cd=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),_P=null;function epe(t,n,e){var i=t.cursor(za.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(Zfe||(Zfe={}));var tpe,Dtt=function(){function t(n,e){ke(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Se(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?epe(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?epe(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof Ua){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),Ttt=function(){function t(n,e){ke(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new bD})}return Se(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new bD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new bD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Dtt(i,n.nodeSet):null}return Se(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,_=null,C=Re(v);try{for(C.s();!(y=C.n()).done;){var S=y.value,M=S.p.stoppedAt;(S.pos==S.p.stream.end||null!=M&&S.pos>M)&&S.p.parser.stateFlag(S.state,2)&&(!_||_.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(gr.contextHash)||0)==l))return n.useNode(c,u),cd&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof Ua)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof Ua&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),cd&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(_):i.push(_)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return npe(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),cd&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(cd&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)cd&&(h=this.stackID(d)+" -> ");var p,m=Re(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;cd&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),cd&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),npe(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],_=-v;_>0;_--)d(p[g++],m,y);g++}}}}catch(M){f.e(M)}finally{f.f()}}o.nodeSet=new cZe(s.map(function(M,$){return au.define({name:$>=o.minRepeatTerm?void 0:M,id:$,props:c[$],top:l.indexOf($)>-1,error:0==$,skipped:i.skippedNodes&&i.skippedNodes.indexOf($)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,si(i.propSources))),o.strict=!1,o.bufferLength=1024;var C=xD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var S=0;S2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=hf(this.data,o+2)}if(r==hf(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=hf(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=ipe(this.data,this.tokenPrecTable,r);return o<0||ipe(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=Re(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&ape(t);return{c:function(){n=be("div"),r&&r.c(),e=it(),o&&o.c(),i=it(),s&&s.c(),P(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){Pe(a,n,l),r&&r.m(n,null),de(n,e),o&&o.m(n,null),de(n,i),s&&s.m(n,null)},p:function(a,l){var c=Un(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=ope(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=spe(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=ape(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:Lt,o:Lt,d:function(a){a&&je(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Ptt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Ltt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Ptt,jtt,ys,{editorState:3},Ott),r}return Se(e)}(),xP=Bj.define([{tag:fn.propertyName,color:"var(--jse-key-color)"},{tag:fn.number,color:"var(--jse-value-color-number)"},{tag:fn.bool,color:"var(--jse-value-color-boolean)"},{tag:fn.string,color:"var(--jse-value-color-string)"},{tag:fn.keyword,color:"var(--jse-value-color-null)"}]),Rtt=bhe(xP),$tt=xP.style;function wP(t){return t.doc.lineAt(t.selection.main.head)}function lpe(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=lpe(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=lpe(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=wP(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=Re(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,_=g.from;_<=y;){var C=f.doc.lineAt(_);p.has(C)||p.add(C),_=C.to+1}}catch(S){m.e(S)}finally{m.f()}return p}(this.view,n),o=new Btt(r,n,this.unitWidth),s=n.facet(wD).hideFirstIndent,a=Re(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=Htt(c,this.unitWidth,s);i.add(l.from,l.from,yi.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function Utt(){return[wD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,ka.fromClass(ztt,{decorations:function(n){return n.decorations}})]}function Gtt(t){pi(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function CP(t){var n=t.slice();return n[93]=0===n[10].length,n}function cpe(t){var n,e;return n=new hKe({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Wtt(t){var n;return{c:function(){(n=be("div")).innerHTML='
    \n
    loading...
    ',P(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function qtt(t){var n,e,i,r,o,s=t[92]&&upe(t),a=!t[92]&&dpe(t);return{c:function(){n=be("div"),e=it(),s&&s.c(),i=it(),a&&a.c(),r=_r(),P(n,"class","jse-contents svelte-1yqirn0"),Mt(n,"jse-hidden",t[92])},m:function(l,c){Pe(l,n,c),t[50](n),Pe(l,e,c),s&&s.m(l,c),Pe(l,i,c),a&&a.m(l,c),Pe(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&Mt(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&Q(s,1)):((s=upe(l)).c(),Q(s,1),s.m(i.parentNode,i)):s&&($t(),ce(s,1,1,function(){s=null}),Bt()),l[92]?a&&($t(),ce(a,1,1,function(){a=null}),Bt()):a?(a.p(l,c),1152&c[0]&&Q(a,1)):((a=dpe(l)).c(),Q(a,1),a.m(r.parentNode,r))},i:function(l){o||(Q(s),Q(a),o=!0)},o:function(l){ce(s),ce(a),o=!1},d:function(l){l&&je(n),t[50](null),l&&je(e),s&&s.d(l),l&&je(i),a&&a.d(l),l&&je(r)}}}function upe(t){var n,e,i,r,o,s=oh(t[10]||"",2e4)+"";return n=new nd({props:{icon:$m,type:"error",message:"The JSON document is larger than ".concat(sS(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(sS(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){mt(n.$$.fragment),e=it(),i=be("div"),r=tn(s),P(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){ft(n,a,l),Pe(a,e,l),Pe(a,i,l),de(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(sS(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(sS(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=oh(a[10]||"",2e4)+"")&&qn(r,s)},i:function(a){o||(Q(n.$$.fragment,a),o=!0)},o:function(a){ce(n.$$.fragment,a),o=!1},d:function(a){pt(n,a),a&&je(e),a&&je(i)}}}function dpe(t){var n,e,i,r,o,s=!t[13]&&t[8]&&hoe(t[10]),a=t[2]&&hpe(t),l=t[13]&&fpe(t),c=s&&ppe(t);return r=new l4({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=it(),l&&l.c(),e=it(),c&&c.c(),i=it(),mt(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),Pe(u,n,d),l&&l.m(u,d),Pe(u,e,d),c&&c.m(u,d),Pe(u,i,d),ft(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&Q(a,1)):((a=hpe(u)).c(),Q(a,1),a.m(n.parentNode,n)):a&&($t(),ce(a,1,1,function(){a=null}),Bt()),u[13]?l?(l.p(u,d),8192&d[0]&&Q(l,1)):((l=fpe(u)).c(),Q(l,1),l.m(e.parentNode,e)):l&&($t(),ce(l,1,1,function(){l=null}),Bt()),9472&d[0]&&(s=!u[13]&&u[8]&&hoe(u[10])),s?c?(c.p(u,d),9472&d[0]&&Q(c,1)):((c=ppe(u)).c(),Q(c,1),c.m(i.parentNode,i)):c&&($t(),ce(c,1,1,function(){c=null}),Bt());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(Q(a),Q(l),Q(c),Q(r.$$.fragment,u),o=!0)},o:function(u){ce(a),ce(l),ce(c),ce(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&je(n),l&&l.d(u),u&&je(e),c&&c.d(u),u&&je(i),pt(r,u)}}}function hpe(t){var n,e;return n=new Ltt({props:{editorState:t[6]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function fpe(t){var n,e;return n=new nd({props:{type:"error",icon:$m,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ppe(t){var n,e;return n=new nd({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:m4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:p0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:m4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:p0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Xtt(t){var n,e,i,r,o,s=t[1]&&cpe(CP(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[qtt,Wtt][i](c(t,i)),{c:function(){n=be("div"),s&&s.c(),e=it(),r.c(),P(n,"class","jse-text-mode svelte-1yqirn0"),Mt(n,"no-main-menu",!t[1])},m:function(u,d){Pe(u,n,d),s&&s.m(n,null),de(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(CP(u),d),2&d[0]&&Q(s,1)):((s=cpe(CP(u))).c(),Q(s,1),s.m(n,e)):s&&($t(),ce(s,1,1,function(){s=null}),Bt()),r.p(c(u,i),d),(!o||2&d[0])&&Mt(n,"no-main-menu",!u[1])},i:function(u){o||(Q(s),Q(r),o=!0)},o:function(u){ce(s),ce(r),o=!1},d:function(u){u&&je(n),s&&s.d(),l[i].d(),t[52](null)}}}function mpe(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function Ytt(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,_=n.onChange,C=n.onChangeMode,S=n.onError,M=n.onFocus,$=n.onBlur,G=n.onRenderMenu,R=n.onSortModal,z=n.onTransformModal,U=wa("jsoneditor:TextMode"),q={key:"Mod-i",run:ie,shift:Ie,preventDefault:!0},re=typeof window>"u";U("isSSR:",re);var L=!1,X=!0,Z=[],H=new hp,he=new hp,E=new hp,F=new hp,N=new hp,Y=new hp,V=h,oe=Nk(V,f,g),fe=m;Wc(Zi(vn().mark(function gt(){return vn().wrap(function(On){for(;;)switch(On.prev=On.next){case 0:if(!re){On.next=2;break}return On.abrupt("return");case 2:try{s=ci({target:o,initialText:jo(oe,L)?"":i.escapeValue(oe),readOnly:c,indentation:f})}catch(ai){console.error(ai)}case 3:case"end":return On.stop()}},gt)}))),Hu(function(){s&&(U("Destroy CodeMirror editor"),s.destroy())});var Fe=!1,xe=!1,tt=ep(),ze=ep();function ot(){s&&(U("focus"),s.focus())}var B=!1;function ne(gt){U("patch",gt);var On=g.parse(oe),ai=Yu(On,gt),bi=FQ(On,gt);return Nr({text:g.stringify(ai,null,f)}),{json:ai,previousJson:On,undo:bi,redo:gt}}function ie(){if(U("format"),c)return!1;try{var gt=g.parse(oe);return Nr({text:g.stringify(gt,null,f)}),e(8,X=!0),!0}catch(On){S(On)}return!1}function Ie(){if(U("compact"),c)return!1;try{var gt=g.parse(oe);return Nr({text:g.stringify(gt)}),e(8,X=!1),!0}catch(On){S(On)}return!1}function Ye(){if(U("repair"),!c)try{Nr({text:Yd(oe)}),e(49,Nn="valid"),e(13,xt=null)}catch(gt){S(gt)}}function Le(gt){var On=gt.id,ai=gt.rootPath,bi=gt.onTransform,Er=gt.onClose;try{var qr=g.parse(oe);B=!0,z({id:On||ze,json:qr,rootPath:ai||[],onTransform:function(ao){bi?bi({operations:ao,json:qr,transformedJson:Yu(qr,ao)}):(U("onTransform",ao),ne(ao))},onClose:function(){B=!1,ot(),Er&&Er()}})}catch(ao){S(ao)}}function _t(gt,On){U("setSelection",{anchor:gt,head:On}),s&&s.dispatch(s.state.update({selection:{anchor:gt,head:On},scrollIntoView:!0}))}function At(gt,On){if(1===On.state.selection.ranges.length){var ai=On.state.selection.ranges[0],bi=oe.slice(ai.from,ai.to);if("{"===bi||"["===bi){var Er=O2.parse(oe),qr=Object.keys(Er.pointers).find(function(Js){var vr;return(null===(vr=Er.pointers[Js].value)||void 0===vr?void 0:vr.pos)===ai.from}),ao=Er.pointers[qr];qr&&ao&&ao.value&&ao.valueEnd&&(U("pointer found, selecting inner contents of path:",qr,ao),_t(ao.value.pos+1,ao.valueEnd.pos-1))}}}function _n(){return function(gt){return Qm.of({source:gt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(ui,{delay:300})}function ci(gt){var On=gt.target,ai=gt.initialText,bi=gt.readOnly,Er=gt.indentation;U("Create CodeMirror editor",{readOnly:bi,indentation:Er});var qr=No.create({doc:ai,extensions:[AS.of([ket,q]),H.of(_n()),_tt(),xtt,Rtt,Utt({hideFirstIndent:!0}),Wn.domEventHandlers({dblclick:At}),Wn.updateListener.of(function(ao){e(6,l=ao.state),ao.docChanged&&Ai()}),new SZe(Ntt),Fet({top:!0}),E.of(No.readOnly.of(bi)),he.of(Wn.editable.of(!bi)),N.of(No.tabSize.of(p)),F.of(wr(Er)),Y.of(Wn.theme({},{dark:on()})),Wn.lineWrapping]});return s=new Wn({state:qr,parent:On})}function on(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Fi(gt){var On=gt.path,ai=gt.message,bi=function(Er,qr){try{var ao=O2.parse(Er),Js=ln(qr),vr=ao.pointers[Js];if(vr)return{path:qr,line:vr.key?vr.key.line:vr.value?vr.value.line:0,column:vr.key?vr.key.column:vr.value?vr.value.column:0,from:vr.key?vr.key.pos:vr.value?vr.value.pos:0,to:vr.keyEnd?vr.keyEnd.pos:vr.valueEnd?vr.valueEnd.pos:0}}catch(Ks){console.error(Ks)}return null}(i.escapeValue(oe),On);return{path:On,line:bi.line,column:bi.column,from:bi.from,to:bi.to,message:ai,severity:Xd.warning,actions:[]}}function pn(gt,On){var Er=gt.position;return{path:[],line:gt.line,column:gt.column,from:Er,to:Er,severity:Xd.error,message:gt.message,actions:On&&!c?[{name:"Auto repair",apply:function(){return Ye()}}]:null}}function Nr(gt){var On=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ai=Nk(gt,f,g),bi=!or(gt,V),Er=V;V=gt,e(10,oe=ai),U("setCodeMirrorContent",{isChanged:bi,forceUpdate:On}),s&&(bi||On)&&(jo(oe,L)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(oe)}}),Or(),bi&&Wr(V,Er))}function $r(){if(s){var gt=s?i.unescapeValue(s.state.doc.toString()):"",On=gt!==oe;if(U("onChangeCodeMirrorValue",{isChanged:On}),On){var ai=V;e(10,oe=gt),V={text:oe},Or(),Wr(V,ai)}}}function wr(gt){return GS.of("number"==typeof gt?" ".repeat(gt):gt)}function Or(){e(11,Fe=het(s.state)>0),e(12,xe=fet(s.state)>0),U({canUndo:Fe,canRedo:xe})}a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(a)},hasFocus:function(){return B&&document.hasFocus()||jk(a)},onFocus:M,onBlur:$});var Ai=Gv($r,300);function Wr(gt,On){_&&_(gt,On,{contentErrors:Ni(),patchResult:null})}function jo(gt,On){return!!gt&>.length>10485760&&!On}var Nn="valid",xt=null;function ui(){if(jo(oe,L))return[];var gt=Ni();return Dae(gt)?[mpe(pn(gt.parseError,gt.isRepairable))]:function Jqe(t){return Io(t)&&Array.isArray(t.validationErrors)}(gt)?gt.validationErrors.map(Fi).map(mpe):[]}function Ni(){U("validate:start"),Ai.flush();var gt=Cr(i.escapeValue(oe),v,g,y);return Dae(gt)?(e(49,Nn=gt.isRepairable?"repairable":"invalid"),e(13,xt=gt.parseError),e(9,Z=[])):(e(49,Nn="valid"),e(13,xt=null),e(9,Z=gt?.validationErrors||[])),U("validate:end"),gt}var Cr=Zb(Oqe);function xo(){xt&&function(gt){U("select parse error",gt);var On=pn(gt,!1);_t(On.from,On.to),ot()}(xt)}var Qo={icon:xWe,text:"Show me",title:"Move to the parse error location",onClick:xo};return t.$$set=function(gt){"readOnly"in gt&&e(0,c=gt.readOnly),"mainMenuBar"in gt&&e(1,u=gt.mainMenuBar),"statusBar"in gt&&e(2,d=gt.statusBar),"externalContent"in gt&&e(29,h=gt.externalContent),"indentation"in gt&&e(30,f=gt.indentation),"tabSize"in gt&&e(31,p=gt.tabSize),"escapeUnicodeCharacters"in gt&&e(32,m=gt.escapeUnicodeCharacters),"parser"in gt&&e(33,g=gt.parser),"validator"in gt&&e(34,v=gt.validator),"validationParser"in gt&&e(35,y=gt.validationParser),"onChange"in gt&&e(36,_=gt.onChange),"onChangeMode"in gt&&e(37,C=gt.onChangeMode),"onError"in gt&&e(38,S=gt.onError),"onFocus"in gt&&e(39,M=gt.onFocus),"onBlur"in gt&&e(40,$=gt.onBlur),"onRenderMenu"in gt&&e(3,G=gt.onRenderMenu),"onSortModal"in gt&&e(41,R=gt.onSortModal),"onTransformModal"in gt&&e(42,z=gt.onTransformModal)},t.$$.update=function(){var gt;2&t.$$.dirty[1]&&(i=TO({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&Nr(h),8&t.$$.dirty[1]&&(U("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(_n())})),1073741824&t.$$.dirty[0]&&(gt=f,s&&(U("updateIndentation",gt),s.dispatch({effects:F.reconfigure(wr(gt))}))),1&t.$$.dirty[1]&&function(gt){s&&(U("updateTabSize",gt),s.dispatch({effects:N.reconfigure(No.tabSize.of(gt))}))}(p),1&t.$$.dirty[0]&&function(gt){s&&(U("updateReadOnly",gt),s.dispatch({effects:[E.reconfigure(No.readOnly.of(gt)),he.reconfigure(Wn.editable.of(!gt))]}))}(c),131074&t.$$.dirty[1]&&fe!==m&&(e(48,fe=m),U("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(oe)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Nn||c?[Qo]:[{icon:zk,text:"Auto repair",title:"Automatically repair JSON",onClick:Ye},Qo])},[c,u,d,G,o,a,l,L,X,Z,oe,Fe,xe,xt,r,re,ie,Ie,function(){var gt;if(!c)try{var On=g.parse(oe);B=!0,R({id:tt,json:On,rootPath:[],onSort:(gt=Zi(vn().mark(function ai(bi){var Er;return vn().wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:U("onSort",Er=bi.operations),ne(Er);case 3:case"end":return qr.stop()}},ai)})),function(ai){return gt.apply(this,arguments)}),onClose:function(){B=!1,ot()}})}catch(ai){S(ai)}},function(){c||Le({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?uP(s):cP(s))},function(){c||s&&(Kj(s),ot())},function(){c||s&&(KS(s),ot())},function(){e(7,L=!0),Nr(h,!0)},function(){C(Jo.tree)},function(){$r()},function(gt){U("select validation error",gt);var On=Fi(gt);_t(On.from,On.to),ot()},jo,xo,h,f,p,m,g,v,y,_,C,S,M,$,R,z,ot,ne,Le,function(){U("refresh"),Xl().then(function(){if(s){var gt=on();U("updateTheme",{dark:gt}),s.dispatch({effects:[Y.reconfigure(Wn.theme({},{dark:gt}))]})}})},Ni,fe,Nn,function(gt){Vi[gt?"unshift":"push"](function(){e(4,o=gt)})},function(){return e(8,X=!1)},function(gt){Vi[gt?"unshift":"push"](function(){e(5,a=gt)})}]}var Jtt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Ytt,Xtt,Ei,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},Gtt,[-1,-1,-1,-1]),r}return Se(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function Ktt(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Qtt(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:bse,title:xF,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var Ztt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Qtt,Ktt,Ei,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Se(e)}();function gpe(t,n,e){var i=t.slice();return i[9]=n[e],i}function vpe(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],_=Xi(v);_.length>0&&!Xc(m,_);)y.unshift({op:"add",path:ln(_),value:{}}),_=Xi(_);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&Yi(c)&&ip(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var nnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,tnt,ent,Ei,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Se(e)}();function int(t){pi(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function rnt(t){var n,e,i,r,o=oh(t[2].stringify(t[1]),50)+"";return{c:function(){n=be("button"),e=tn(o),P(n,"type","button"),P(n,"class","jse-inline-value svelte-l28mqd"),Mt(n,"jse-selected",t[3])},m:function(s,a){Pe(s,n,a),de(n,e),i||(r=Nt(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Un(a,1)[0];6&l&&o!==(o=oh(s[2].stringify(s[1]),50)+"")&&qn(e,o),8&l&&Mt(n,"jse-selected",s[3])},i:Lt,o:Lt,d:function(s){s&&je(n),i=!1,r()}}}function ont(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=oo(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var snt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,ont,rnt,Ei,{path:0,value:1,parser:2,isSelected:3,onEdit:4},int),r}return Se(e)}();function ant(t){pi(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function ype(t){var n,e,i,r;return e=new sr({props:{data:t[1]===qc.asc?ru:yse}}),{c:function(){n=be("span"),mt(e.$$.fragment),P(n,"class","jse-column-sort-icon svelte-h4fort"),P(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){Pe(o,n,s),ft(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===qc.asc?ru:yse),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&P(n,"title",i)},i:function(o){r||(Q(e.$$.fragment,o),r=!0)},o:function(o){ce(e.$$.fragment,o),r=!1},d:function(o){o&&je(n),pt(e)}}}function lnt(t){var n,e,i,r,o,s,a,l,c=oh(t[3],50)+"",u=void 0!==t[1]&&ype(t);return{c:function(){n=be("button"),e=be("span"),i=tn(c),r=it(),u&&u.c(),P(e,"class","jse-column-name"),P(n,"type","button"),P(n,"class","jse-column-header svelte-h4fort"),P(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),Mt(n,"jse-readonly",t[0])},m:function(d,h){Pe(d,n,h),de(n,e),de(e,i),de(n,r),u&&u.m(n,null),s=!0,a||(l=Nt(n,"click",t[4]),a=!0)},p:function(d,h){var f=Un(h,1)[0];(!s||8&f)&&c!==(c=oh(d[3],50)+"")&&qn(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&Q(u,1)):((u=ype(d)).c(),Q(u,1),u.m(n,null)):u&&($t(),ce(u,1,1,function(){u=null}),Bt()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&P(n,"title",o),(!s||1&f)&&Mt(n,"jse-readonly",d[0])},i:function(d){s||(Q(u),s=!0)},o:function(d){ce(u),s=!1},d:function(d){d&&je(n),u&&u.d(),a=!1,l()}}}function cnt(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Hi(s)?"values":tu(Kl(s))),96&t.$$.dirty&&e(1,r=or(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=H7e[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===qc.asc?qc.desc:qc.asc})},s,a,c]}var CD,kD,unt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,cnt,lnt,Ei,{path:5,sortedColumn:6,readOnly:0,onSort:7},ant),r}return Se(e)}();function bpe(t,n){return CD||(kD=new WeakMap,CD=new ResizeObserver(function(e){var i,r=Re(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=kD.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),kD.set(t,n),CD.observe(t),{destroy:function(){kD.delete(t),CD.unobserve(t)}}}function dnt(t){var n,e;return n=new Jae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function hnt(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,_=n.onEditValue,C=n.onEditRow,S=n.onToggleEnforceString,M=n.onCut,$=n.onCopy,G=n.onPaste,R=n.onRemove,z=n.onDuplicateRow,U=n.onInsertBeforeRow,q=n.onInsertAfterRow,re=n.onRemoveRow;function L(){y(),_()}function X(){y(),C()}function Z(){y(),S()}function H(){y(),M(!0)}function he(){y(),M(!1)}function E(){y(),$(!0)}function F(){y(),$(!1)}function N(){y(),G()}function Y(){y(),R()}function V(){y(),z()}function oe(){y(),U()}function fe(){y(),q()}function Fe(){y(),re()}return t.$$set=function(xe){"json"in xe&&e(2,p=xe.json),"documentState"in xe&&e(3,m=xe.documentState),"parser"in xe&&e(4,g=xe.parser),"showTip"in xe&&e(0,v=xe.showTip),"onCloseContextMenu"in xe&&e(5,y=xe.onCloseContextMenu),"onEditValue"in xe&&e(6,_=xe.onEditValue),"onEditRow"in xe&&e(7,C=xe.onEditRow),"onToggleEnforceString"in xe&&e(8,S=xe.onToggleEnforceString),"onCut"in xe&&e(9,M=xe.onCut),"onCopy"in xe&&e(10,$=xe.onCopy),"onPaste"in xe&&e(11,G=xe.onPaste),"onRemove"in xe&&e(12,R=xe.onRemove),"onDuplicateRow"in xe&&e(13,z=xe.onDuplicateRow),"onInsertBeforeRow"in xe&&e(14,U=xe.onInsertBeforeRow),"onInsertAfterRow"in xe&&e(15,q=xe.onInsertAfterRow),"onRemoveRow"in xe&&e(16,re=xe.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Hi(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Sn(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Fr(i)||xs(i)||Yi(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Fr(i)||Yi(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&zb(i)&&!s&&Array.isArray(Sn(p,Xi(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&zb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!Ho(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Io(a),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Ho(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&lf(a,m.enforceStringMap,ln(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:L,icon:h0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:h0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:L,disabled:!c},{type:"button",icon:h?$b:Bb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:Z,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:d0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:d0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:d0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:he,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:E,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:E,disabled:!l},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:F,disabled:!l}]},{type:"button",onClick:N,icon:mse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:Y,icon:XO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:X,icon:h0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:wse,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:oe,icon:f0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:fe,icon:f0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:Fe,icon:XO,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,_,C,S,M,$,G,R,z,U,q,re,o,l,u,h,c,i,a,d,r,s]}var fnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,hnt,dnt,Ei,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Se(e)}();function pnt(t){pi(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function _pe(t,n,e){var i=t.slice();i[12]=n[e];var r=Sn(i[0],i[12]).length;return i[13]=r,i}function mnt(t){var n,e;return{c:function(){n=tn(t[5]),e=tn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){Pe(i,n,r),Pe(i,e,r)},p:function(i,r){32&r&&qn(n,i[5])},d:function(i){i&&je(n),i&&je(e)}}}function gnt(t){var n;return{c:function(){n=tn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){Pe(e,n,i)},p:Lt,d:function(e){e&&je(n)}}}function xpe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=tu(Kl(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=be("button"),e=tn(t[6]),i=tn(' "'),r=tn(p),o=tn('"\n '),s=be("span"),a=tn("("),l=tn(m),c=it(),u=tn(g),d=tn(")"),P(s,"class","jse-nested-array-count svelte-1te5h1h"),P(n,"type","button"),P(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,_){Pe(y,n,_),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),de(s,a),de(s,l),de(s,c),de(s,u),de(s,d),h||(f=Nt(n,"click",v),h=!0)},p:function(y,_){t=y,64&_&&qn(e,t[6]),8&_&&p!==(p=tu(Kl(t[12]))+"")&&qn(r,p),9&_&&m!==(m=t[13]+"")&&qn(l,m),9&_&&g!==(g=1!==t[13]?"items":"item")&&qn(u,g)},d:function(y){y&&je(n),h=!1,f()}}}function vnt(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(G,R){return G[4]?gnt:mnt}for(var _=y(t),C=_(t),S=t[3],M=[],$=0;$1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){Mo(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Hi(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Mo(l)?"An object":oo(l)?"An empty array":"A ".concat(VF(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Jo.tree)}]}var bnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,ynt,vnt,Ei,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},pnt),r}return Se(e)}();function _nt(t){pi(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function xnt(t){var n,e,i,r,o,s;return e=new sr({props:{data:TWe}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-column-header svelte-h4fort"),P(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){Pe(a,n,l),ft(e,n,null),r=!0,o||(s=Nt(n,"click",t[3]),o=!0)},p:function(a,l){var c=Un(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&P(n,"title",i)},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){ce(e.$$.fragment,a),r=!1},d:function(a){a&&je(n),pt(e),o=!1,s()}}}function wnt(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Cnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,wnt,xnt,Ei,{count:0,maxSampleCount:1,onRefresh:2},_nt),r}return Se(e)}();function knt(t){pi(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function wpe(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function Cpe(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Sn(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function kpe(t,n,e){var i=t.slice();return i[125]=n[e],i}function Spe(t){var n,e;return n=new Ztt({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Snt(t){var n;return{c:function(){(n=be("div")).innerHTML='
    \n
    loading...
    ',P(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function Dnt(t){var n,e,i,r,o,s,a,l,c,u=[Ant,Ent,Tnt],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=be("label"),e=be("input"),i=it(),o.c(),s=_r(),P(e,"type","text"),e.readOnly="readonly",P(e,"tabindex","-1"),P(e,"class","jse-hidden-input svelte-hs49xj"),P(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){Pe(f,n,p),de(n,e),t[71](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=Nt(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):($t(),ce(d[m],1,1,function(){d[m]=null}),Bt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){ce(o),a=!1},d:function(f){f&&je(n),t[71](null),f&&je(i),d[r].d(f),f&&je(s),l=!1,c()}}}function Tnt(t){var n,e;return n=new bnt({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Ent(t){var n,e,i,r;return n=new nd({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[35]}]}}),i=new tce({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){mt(n.$$.fragment),e=it(),mt(i.$$.fragment)},m:function(o,s){ft(n,o,s),Pe(o,e,s),ft(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){ce(n.$$.fragment,o),ce(i.$$.fragment,o),r=!1},d:function(o){pt(n,o),o&&je(e),pt(i,o)}}}function Ant(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R=!Hi(null===(n=t[21])||void 0===n?void 0:n.root),z=R&&Dpe(t),U=t[9],q=[],re=0;re"u";a("isSSR:",m);var g,v,y,_,C,S,M=n.readOnly,$=n.externalContent,G=n.mainMenuBar,R=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,U=n.flattenColumns,q=n.parser,re=n.parseMemoizeOne,L=n.validator,X=n.validationParser,Z=n.indentation,H=n.onChange,he=n.onChangeMode,E=n.onRenderValue,F=n.onRenderMenu,N=n.onFocus,Y=n.onBlur,V=n.onSortModal,oe=n.onTransformModal,fe=n.onJSONEditorModal;a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(v)},hasFocus:function(){return ot&&document.hasFocus()||jk(v)},onFocus:function(){N&&N()},onBlur:function(){Y&&Y()}});var Fe,xe=void 0,tt=1e4,ze=[],ot=!1,B={},ne=600,ie=0;function Ie(Ee){a("updateSelection",Ee);var St="function"==typeof Ee?Ee(Le.selection):Ee;or(St,Le.selection)||e(10,Le=Ze(Ze({},Le),{},{selection:St}))}function Ye(Ee){void 0!==Le.selection&&void 0!==Ee&&(Le.selection&&Xc(Ee,Le.selection.anchorPath)&&Xc(Ee,Le.selection.focusPath)||(a("clearing selection: path does not exist anymore",Le.selection),e(10,Le=Ze(Ze({},Le),{},{selection:s0(Ee,Le)}))))}var At,Le=Lk(),_t=!1,_n=fae({onChange:function(Ee){e(19,ci=Ee)}}),ci=_n.getState();function Fi(Ee){var St=Ee.previousJson,Ht=Ee.previousState,sn=Ee.previousText,hn=Ee.previousTextIsRepaired;void 0===St&&void 0===sn||(void 0!==C?_n.add(void 0!==St?{undo:{patch:[{op:"replace",path:"",value:St}],state:ul(Ht),json:void 0,text:sn,textIsRepaired:hn},redo:{patch:[{op:"replace",path:"",value:C}],state:ul(Le),json:void 0,text:S,textIsRepaired:_t}}:{undo:{patch:void 0,json:void 0,text:sn,state:ul(Ht),textIsRepaired:hn},redo:{patch:void 0,json:C,state:ul(Le),text:S,textIsRepaired:_t}}):void 0!==St&&_n.add({undo:{patch:void 0,json:St,state:ul(Ht),text:sn,textIsRepaired:hn},redo:{patch:void 0,json:void 0,text:S,textIsRepaired:_t,state:ul(Le)}}))}var pn=[],Nr=Zb(pae);function $r(Ee,St,Ht,sn){g0(function(){var hn;try{hn=Nr(Ee,St,Ht,sn)}catch(ri){hn=[{path:[],message:"Failed to validate: "+ri.message,severity:Xd.warning}]}or(hn,pn)||(a("validationErrors changed:",hn),e(11,pn=hn))},function(hn){return a("validationErrors updated in ".concat(hn," ms"))})}function wr(){return a("validate"),xe?{parseError:xe,isRepairable:!1}:($r(C,L,q,X),Hi(pn)?null:{validationErrors:pn})}function Or(Ee,St){if(a("patch",Ee,St),void 0===C)throw new Error("Cannot apply patch: no JSON");var Ht={json:C},sn=C,hn=Le,ri=_t,Oi=ose(C,Ee),Bn=$oe(C,Le,Ee).json,ei=function MJe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=ou(Xu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return or(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?Ze(Ze({},t),{},{sortedColumn:void 0}):t}(Le,Ee,ze),Yn="function"==typeof St?St(Bn,ei):void 0;e(7,C=Yn&&void 0!==Yn.json?Yn.json:Bn);var br=Yn&&void 0!==Yn.state?Yn.state:ei;e(10,Le=br),e(15,S=void 0),e(18,_t=!1),e(17,Fe=void 0),_n.add({undo:{patch:Oi,json:void 0,text:void 0,state:ul(hn),textIsRepaired:ri},redo:{patch:Ee,json:void 0,state:ul(br),text:void 0,textIsRepaired:_t}});var Ar={json:C,previousJson:sn,undo:Oi,redo:Ee};return Wr(Ht,Ar),Ar}function Ai(Ee,St){if(!M)return Or(Ee,St)}function Wr(Ee,St){(void 0!==Ee.json||void 0!==Ee?.text)&&(void 0!==S?H({text:S,json:void 0},Ee,{contentErrors:wr(),patchResult:St}):void 0!==C&&H({text:void 0,json:C},Ee,{contentErrors:wr(),patchResult:St}))}function jo(Ee){a("handleFind",Ee)}function Nn(Ee){a("pasted json as text",Ee),e(17,Fe=Ee)}function xt(Ee){var St=parseInt(Ee[0]),Ht=[String(St+1)].concat(si(Ee.slice(1)));return Xc(C,Ht)?mr(Ht,!1):mr(Ee,!1)}function ui(){_&&(_.focus(),_.select())}function Ni(){Le.selection||Ie(function(){if(oo(C)&&!Hi(C)&&!Hi(ze))return mr(["0"].concat(si(ze[0])),!1)}())}function Cr(Ee){var St=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ht=b4(Ee,ze,B,18),sn=Ht-ie,hn=gt(Ee);a("scrollTo",{path:Ee,top:Ht,scrollTop:ie,elem:hn});var ri=y.getBoundingClientRect();if(hn&&!St){var Oi=hn.getBoundingClientRect();if(Oi.bottom>ri.top&&Oi.topHt.right&&e(13,y.scrollLeft+=sn.right-Ht.right,y),sn.left(Bn=ie+ri.height-18)&&e(13,y.scrollTop+=hn-Bn,y),sn0&&void 0!==Ht[0])||Ht[0],void 0!==C){sn.next=3;break}return sn.abrupt("return");case 3:return sn.next=5,Kle({json:C,documentState:Le,indentation:St?Z:void 0,parser:q});case 5:case"end":return sn.stop()}},Ee)})),Xa.apply(this,arguments)}function Ic(){Zle({json:C,text:S,documentState:Le,keepSelection:!0,readOnly:M,onChange:H,onPatch:Ai})}function we(){!function IJe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&c0(e.selection)){var s=ou(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;jl("duplicate row",{rowIndex:a});var c=[String(a)];o(nse(n,[c]),function(u,d){var h=mr(zm({rowIndex:a0?a-1:void 0,h=void 0!==d?mr(zm({rowIndex:d,columnIndex:l},i),!1):void 0;return jl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:Ze(Ze({},u),{},{selection:h})}})}}({json:C,documentState:Le,columns:ze,readOnly:M,onPatch:Ai})}function Ue(){return(Ue=Zi(vn().mark(function Ee(St){return vn().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,ece({char:St,selectInside:!1,refJsonEditor:v,json:C,documentState:Le,readOnly:M,parser:q,onPatch:Ai,onReplaceJson:Dn,onSelect:Ie});case 2:case"end":return Ht.stop()}},Ee)}))).apply(this,arguments)}function Dn(Ee,St){var Ht=Le,sn=C,hn=S,ri={json:C,text:S},Oi=_t,Bn=nu(C,Le,[],sh),ei="function"==typeof St?St(Ee,Bn):void 0;e(7,C=ei&&void 0!==ei.json?ei.json:Ee),e(10,Le=ei&&void 0!==ei.state?ei.state:Bn),e(15,S=void 0),e(18,_t=!1),Ye(C),Fi({previousJson:sn,previousState:Ht,previousText:hn,previousTextIsRepaired:Oi}),Wr(ri,null)}function ii(Ee,St){a("handleChangeText");var Ht=Le,sn=C,hn=S,ri={json:C,text:S},Oi=_t;try{e(7,C=re(Ee)),e(10,Le=nu(C,Le,[],sh)),e(15,S=void 0),e(18,_t=!1)}catch{try{e(7,C=re(Yd(Ee))),e(10,Le=nu(C,Le,[],sh)),e(15,S=Ee),e(18,_t=!0)}catch{e(7,C=void 0),e(10,Le=Lk({json:C,expand:sh})),e(15,S=Ee),e(18,_t=!1)}}if("function"==typeof St){var Bn=St(C,Le);e(7,C=Bn&&Bn.json?Bn.json:C),e(10,Le=Bn&&Bn.state?Bn.state:Le)}Ye(C),Fi({previousJson:sn,previousState:Ht,previousText:hn,previousTextIsRepaired:Oi}),Wr(ri,null)}function hi(Ee){var Ht=Ee.rootPath,sn=Ee.onTransform,hn=Ee.onClose;M||void 0===C||(ot=!0,oe({id:Ee.id||p,json:C,rootPath:Ht||[],onTransform:sn?function(ri){sn({operations:ri,json:C,transformedJson:Yu(C,ri)})}:function(ri){a("onTransform",Ht,ri),Ai(ri)},onClose:function(){ot=!1,ui(),hn&&hn()}}))}function di(Ee){a("openJSONEditorModal",{path:Ee}),ot=!0,fe({content:{json:Sn(C,Ee)},path:Ee,onPatch:At.onPatch,onClose:function(){ot=!1,ui()}})}function kr(Ee,St){l(jae,{text:Ee,onParse:Ik,onRepair:soe,onApply:St},Ze(Ze({},Cm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return ui()}})}function Qr(){if(!M&&_n.getState().canUndo){var Ee=_n.undo();if(Ee){var St={json:C,text:S};e(7,C=Ee.undo.patch?Yu(C,Ee.undo.patch):Ee.undo.json),e(10,Le=Ee.undo.state),e(15,S=Ee.undo.text),e(18,_t=Ee.undo.textIsRepaired),a("undo",{item:Ee,json:C}),Wr(St,{json:C,previousJson:St.json,redo:Ee.undo.patch,undo:Ee.redo.patch}),ui(),Le.selection&&Cr(Le.selection.focusPath,!1)}}}function gi(){if(!M&&_n.getState().canRedo){var Ee=_n.redo();if(Ee){var St={json:C,text:S};e(7,C=Ee.redo.patch?Yu(C,Ee.redo.patch):Ee.redo.json),e(10,Le=Ee.redo.state),e(15,S=Ee.redo.text),e(18,_t=Ee.redo.textIsRepaired),a("redo",{item:Ee,json:C}),Wr(St,{json:C,previousJson:St.json,redo:Ee.redo.patch,undo:Ee.undo.patch}),ui(),Le.selection&&Cr(Le.selection.focusPath,!1)}}}function yr(Ee,St){e(68,B[St]=Ee.getBoundingClientRect().height,B)}return t.$$set=function(Ee){"readOnly"in Ee&&e(0,M=Ee.readOnly),"externalContent"in Ee&&e(47,$=Ee.externalContent),"mainMenuBar"in Ee&&e(1,G=Ee.mainMenuBar),"escapeControlCharacters"in Ee&&e(48,R=Ee.escapeControlCharacters),"escapeUnicodeCharacters"in Ee&&e(49,z=Ee.escapeUnicodeCharacters),"flattenColumns"in Ee&&e(50,U=Ee.flattenColumns),"parser"in Ee&&e(2,q=Ee.parser),"parseMemoizeOne"in Ee&&e(51,re=Ee.parseMemoizeOne),"validator"in Ee&&e(52,L=Ee.validator),"validationParser"in Ee&&e(53,X=Ee.validationParser),"indentation"in Ee&&e(3,Z=Ee.indentation),"onChange"in Ee&&e(54,H=Ee.onChange),"onChangeMode"in Ee&&e(4,he=Ee.onChangeMode),"onRenderValue"in Ee&&e(55,E=Ee.onRenderValue),"onRenderMenu"in Ee&&e(5,F=Ee.onRenderMenu),"onFocus"in Ee&&e(56,N=Ee.onFocus),"onBlur"in Ee&&e(57,Y=Ee.onBlur),"onSortModal"in Ee&&e(58,V=Ee.onSortModal),"onTransformModal"in Ee&&e(59,oe=Ee.onTransformModal),"onJSONEditorModal"in Ee&&e(60,fe=Ee.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=TO({escapeControlCharacters:R,escapeUnicodeCharacters:z})),65536&t.$$.dirty[1]&&function on(Ee){var St=C,Ht=Qv(Ee)?Ee.text!==S:!or(St,Ee.json);if(a("update external content",{isChanged:Ht}),Ht){var sn={json:C,text:S},hn=C,ri=Le,Oi=S,Bn=_t;if(Qv(Ee))try{e(7,C=re(Ee.text)),e(15,S=Ee.text),e(18,_t=!1),e(16,xe=void 0)}catch(ei){try{e(7,C=re(Yd(Ee.text))),e(15,S=Ee.text),e(18,_t=!0),e(16,xe=void 0)}catch{e(7,C=void 0),e(15,S=$.text),e(18,_t=!1),e(16,xe=Fk(S,ei.message||ei.toString()))}}else e(7,C=Ee.json),e(15,S=void 0),e(18,_t=!1),e(16,xe=void 0);Ye(C),Le.sortedColumn&&e(10,Le=Ze(Ze({},Le),{},{sortedColumn:void 0})),Fi({previousJson:hn,previousState:ri,previousText:Oi,previousTextIsRepaired:Bn}),Wr(sn,null)}}($),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,ze=oo(C)?function(Ee,St){var Ht,sn=new Set(St.map(ln)),hn=new Set(Ee.map(ln)),ri=Re(sn);try{for(ri.s();!(Ht=ri.n()).done;){var Oi=Ht.value;hn.has(Oi)||sn.delete(Oi)}}catch(br){ri.e(br)}finally{ri.f()}var Bn,ei=Re(hn);try{for(ei.s();!(Bn=ei.n()).done;){var Yn=Bn.value;sn.has(Yn)||sn.add(Yn)}}catch(br){ei.e(br)}finally{ei.f()}return si(sn).map(Xu)}(function(Ee,St){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,sn={};Array.isArray(Ee)&&function LUe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;rtt),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Ee,St,Ht,sn,hn){for(var ri=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,Oi=oo(Ht)?Ht.length:0,Bn=function TJe(t,n){var e=Object.values(t);return Hi(e)?n:e.reduce(function(r,o){return r+o})/e.length}(sn,hn),ei=Ee-ri,Yn=St+2*ri,br=function(gd){return sn[gd]||hn},Ar=0,Po=0;Po0&&(Po-=br(--Ar));for(var ca=Ar,md=0;md0?mr(zm({rowIndex:br.rowIndex,columnIndex:Po-1},ei),!1):Yn;Ie(Ht),Qo(Ht.focusPath)}if("ArrowRight"===St&&(Ee.preventDefault(),Ni(),Le.selection)){var sn=function(ei,Yn){var br=ou(Yn.focusPath,ei),Po=br.columnIndex;return Po0?mr(zm({rowIndex:Ar-1,columnIndex:br.columnIndex},ei),!1):Yn}(ze,Le.selection);Ie(hn),Qo(hn.focusPath)}if("ArrowDown"===St&&(Ee.preventDefault(),Ni(),Le.selection)){var ri=function(ei,Yn,br){var Ar=ou(br.focusPath,Yn),Po=Ar.rowIndex;return Po1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Rpe({props:{mode:Ln(t[18]).mode,content:Ln(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:dh,onBlur:dh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var C=t[19]&&$pe(t),S=t[18].length>1&&Bpe(t);function M(R,z){return R[0]?Vnt:Hnt}var $=M(t),G=$(t);return{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),(o=be("div")).innerHTML='
    Path
    ',s=it(),a=be("input"),l=it(),(c=be("div")).innerHTML='
    Contents
    ',u=it(),d=be("div"),mt(h.$$.fragment),f=it(),p=be("div"),C&&C.c(),m=it(),S&&S.c(),g=it(),G.c(),P(o,"class","jse-label svelte-1hibiw3"),P(a,"class","jse-path svelte-1hibiw3"),P(a,"type","text"),a.readOnly=!0,P(a,"title","Selected path"),a.value=t[21],P(c,"class","jse-label svelte-1hibiw3"),P(d,"class","jse-modal-inline-editor svelte-1hibiw3"),P(p,"class","jse-actions svelte-1hibiw3"),P(r,"class","jse-modal-contents svelte-1hibiw3"),P(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(R,z){Pe(R,n,z),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(r,s),de(r,a),de(r,l),de(r,c),de(r,u),de(r,d),ft(h,d,null),de(r,f),de(r,p),C&&C.m(p,null),de(p,m),S&&S.m(p,null),de(p,g),G.m(p,null),v=!0,y||(_=_a(iS.call(null,n,t[23])),y=!0)},p:function(R,z){var U={};262144&z[0]&&(U.title="Edit nested content "+(R[18].length>1?" (".concat(R[18].length,")"):"")),e.$set(U),(!v||2097152&z[0]&&a.value!==R[21])&&(a.value=R[21]);var q={};262144&z[0]&&(q.mode=Ln(R[18]).mode),262144&z[0]&&(q.content=Ln(R[18]).content),1&z[0]&&(q.readOnly=R[0]),2&z[0]&&(q.indentation=R[1]),4&z[0]&&(q.tabSize=R[2]),32&z[0]&&(q.statusBar=R[5]),8&z[0]&&(q.mainMenuBar=R[3]),16&z[0]&&(q.navigationBar=R[4]),64&z[0]&&(q.escapeControlCharacters=R[6]),128&z[0]&&(q.escapeUnicodeCharacters=R[7]),256&z[0]&&(q.flattenColumns=R[8]),512&z[0]&&(q.parser=R[9]),1048576&z[0]&&(q.parseMemoizeOne=R[20]),1024&z[0]&&(q.validator=R[10]),2048&z[0]&&(q.validationParser=R[11]),4096&z[0]&&(q.pathParser=R[12]),8192&z[0]&&(q.onRenderValue=R[13]),16384&z[0]&&(q.onClassName=R[14]),32768&z[0]&&(q.onRenderMenu=R[15]),65536&z[0]&&(q.onSortModal=R[16]),131072&z[0]&&(q.onTransformModal=R[17]),h.$set(q),R[19]?C?C.p(R,z):((C=$pe(R)).c(),C.m(p,m)):C&&(C.d(1),C=null),R[18].length>1?S?(S.p(R,z),262144&z[0]&&Q(S,1)):((S=Bpe(R)).c(),Q(S,1),S.m(p,g)):S&&($t(),ce(S,1,1,function(){S=null}),Bt()),$===($=M(R))&&G?G.p(R,z):(G.d(1),(G=$(R))&&(G.c(),G.m(p,null)))},i:function(R){v||(Q(e.$$.fragment,R),Q(h.$$.fragment,R),Q(S),v=!0)},o:function(R){ce(e.$$.fragment,R),ce(h.$$.fragment,R),ce(S),v=!1},d:function(R){R&&je(n),pt(e),pt(h),C&&C.d(),S&&S.d(),G.d(),y=!1,_()}}}function Vpe(t){t.focus()}function Unt(t,n,e){var i,r,o,s=wa("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,_=n.parser,C=n.validator,S=n.validationParser,M=n.pathParser,$=n.onRenderValue,G=n.onClassName,R=n.onRenderMenu,z=n.onSortModal,U=n.onTransformModal,q=xa("simple-modal").close,re=[{mode:X(a),content:a,relativePath:l}],L=void 0;function X(H){return DO(H)&&oo(H.json)?Jo.table:Jo.tree}function Z(H){s("handleChange",H);var he=Ze(Ze({},Ln(re)),{},{content:H});e(18,re=[].concat(si(Xi(re)),[he]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,_=H.parser),"validator"in H&&e(10,C=H.validator),"validationParser"in H&&e(11,S=H.validationParser),"pathParser"in H&&e(12,M=H.pathParser),"onRenderValue"in H&&e(13,$=H.onRenderValue),"onClassName"in H&&e(14,G=H.onClassName),"onRenderMenu"in H&&e(15,R=H.onRenderMenu),"onSortModal"in H&&e(16,z=H.onSortModal),"onTransformModal"in H&&e(17,U=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=re.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Hi(i)?"(whole document)":tu(Kl(i))),512&t.$$.dirty[0]&&e(20,o=Zb(_.parse))},[u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,re,L,o,r,function(){if(s("handleApply"),!u)try{e(19,L=void 0);var H=[{op:"replace",path:ln(Ln(re).relativePath),value:loe(Ln(re).content,_).json}];if(re.length>1){var he={json:Yu(loe(re[re.length-2].content,_).json,H)};e(18,re=Xi(re)),Z(he)}else c(H),q()}catch(E){e(19,L=E.toString())}},function(){s("handleClose"),re.length>1?(e(18,re=Xi(re)),e(19,L=void 0)):q()},Z,function(H){s("handleChangeMode",H);var he=Ze(Ze({},Ln(re)),{},{mode:H});e(18,re=[].concat(si(Xi(re)),[he]))},function(H){e(19,L=H.toString()),console.error(H)},function(H){var he=H.content,E=H.path;s("handleJSONEditorModal",{content:he,path:E});var F={mode:X(he),content:he,relativePath:E};e(18,re=[].concat(si(re),[F]))},a,l,c,i]}var Gnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Unt,znt,Ei,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Bnt,[-1,-1]),r}return Se(e)}();function Wnt(t,n,e){var i=xa("simple-modal");return[i.open,i.close]}var qnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Wnt,null,Ei,{open:0,close:1}),r}return Se(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function Xnt(t){pi(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function Hpe(t){var n,e;return n=new Rpe({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){mt(n.$$.fragment)},m:function(r,o){ft(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(Q(n.$$.fragment,r),e=!0)},o:function(r){ce(n.$$.fragment,r),e=!1},d:function(r){t[56](null),pt(n,r)}}}function Ynt(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new qnt({props:l}),Vi.push(function(){return Uu(n,"open",a)});var c=Hpe(t);return{c:function(){mt(n.$$.fragment),i=it(),r=be("div"),c.c(),P(r,"class","jse-main svelte-sxaskb"),Mt(r,"jse-focus",t[20])},m:function(u,d){ft(n,u,d),Pe(u,i,d),Pe(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],zu(function(){return e=!1})),n.$set(h),524288&d[0]&&Ei(s,s=u[19])?($t(),ce(c,1,1,Lt),Bt(),(c=Hpe(u)).c(),Q(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&Mt(r,"jse-focus",u[20])},i:function(u){o||(Q(n.$$.fragment,u),Q(c),o=!0)},o:function(u){ce(n.$$.fragment,u),ce(c),o=!1},d:function(u){pt(n,u),u&&je(i),u&&je(r),c.d(u)}}}function Jnt(t){var n,e;return n=new CQ({props:{closeOnEsc:!1,$$slots:{default:[Ynt]},$$scope:{ctx:t}}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Knt(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},kQ,{closeOnEsc:!1}],o={$$slots:{default:[Jnt]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;ke(this,l),this._names={},this._prefixes=u,this._parent=d}return Se(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){wt(u,l);var c=Ct(u);function u(d,h){var f;return ke(this,u),(f=c.call(this,h)).prefix=d,f}return Se(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(RW||(RW=Ae([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)($W||($W=Ae(["\n"],["\\n"]))),a=function(l){wt(u,l);var c=Ct(u);function u(d){var h;return ke(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=Ze(Ze({},d),{},{_n:d.lines?s:e.nil}),h}return Se(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var _=this._scope[m]||(this._scope[m]=[]),C=_.length;return _[C]=h.ref,p.setValue(h,{property:m,itemIndex:C}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(BW||(BW=Ae(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(_){var C=d[_];if(!C)return"continue";var S=p[_]=p[_]||new Map;C.forEach(function(M){if(!S.has(M)){S.set(M,n.Started);var $=h(M);if($){var G=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(VW||(VW=Ae(["",""," "," = ",";",""])),g,G,M,$,f.opts._n)}else{if(!($=m?.(M)))throw new i(M);g=(0,e._)(HW||(HW=Ae(["","","",""])),g,$,f.opts._n)}S.set(M,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(eme)),eme}function xr(){return Zpe||(Zpe=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=DD(),e=tme(),i=DD();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=tme();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function N(){ke(this,N)}return Se(N,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(Y,V){return this}}]),N}(),s=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe){var xe;return ke(this,V),(xe=Y.call(this)).varKind=oe,xe.name=fe,xe.rhs=Fe,xe}return Se(V,[{key:"render",value:function(oe){var Fe=oe._n,xe=oe.es5?e.varKinds.var:this.varKind,tt=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(xe," ").concat(this.name).concat(tt,";")+Fe}},{key:"optimizeNames",value:function(oe,fe){if(oe[this.name.str])return this.rhs&&(this.rhs=L(this.rhs,oe,fe)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe){var xe;return ke(this,V),(xe=Y.call(this)).lhs=oe,xe.rhs=fe,xe.sideEffects=Fe,xe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+fe}},{key:"optimizeNames",value:function(oe,fe){if(!(this.lhs instanceof n.Name)||oe[this.lhs.str]||this.sideEffects)return this.rhs=L(this.rhs,oe,fe),this}},{key:"names",get:function(){return re(this.lhs instanceof n.Name?{}:Ze({},this.lhs.names),this.rhs)}}]),V}(o),l=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe,xe){var tt;return ke(this,V),(tt=Y.call(this,oe,Fe,xe)).op=fe,tt}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+fe}}]),V}(a),c=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).label=oe,fe.names={},fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.label,":")+fe}}]),V}(o),u=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).label=oe,fe.names={},fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n,Fe=this.label?" ".concat(this.label):"";return"break".concat(Fe,";")+fe}}]),V}(o),d=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).error=oe,fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"throw ".concat(this.error,";")+fe}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).code=oe,fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.code,";")+fe}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(oe,fe){return this.code=L(this.code,oe,fe),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(N){wt(V,N);var Y=Ct(V);function V(){var oe,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return ke(this,V),(oe=Y.call(this)).nodes=fe,oe}return Se(V,[{key:"render",value:function(oe){return this.nodes.reduce(function(fe,Fe){return fe+Fe.render(oe)},"")}},{key:"optimizeNodes",value:function(){for(var oe=this.nodes,fe=oe.length;fe--;){var Fe=oe[fe].optimizeNodes();Array.isArray(Fe)?oe.splice.apply(oe,[fe,1].concat(si(Fe))):Fe?oe[fe]=Fe:oe.splice(fe,1)}return oe.length>0?this:void 0}},{key:"optimizeNames",value:function(oe,fe){for(var Fe=this.nodes,xe=Fe.length;xe--;){var tt=Fe[xe];tt.optimizeNames(oe,fe)||(X(oe,tt.names),Fe.splice(xe,1))}return Fe.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(oe,fe){return q(oe,fe.names)},{})}}]),V}(o),p=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"{"+oe._n+pr(qi(V.prototype),"render",this).call(this,oe)+"}"+oe._n}}]),V}(f),m=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(f),g=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(p);g.kind="else";var v=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe){var Fe;return ke(this,V),(Fe=Y.call(this,fe)).condition=oe,Fe}return Se(V,[{key:"render",value:function(oe){var fe="if(".concat(this.condition,")")+pr(qi(V.prototype),"render",this).call(this,oe);return this.else&&(fe+="else "+this.else.render(oe)),fe}},{key:"optimizeNodes",value:function(){pr(qi(V.prototype),"optimizeNodes",this).call(this);var oe=this.condition;if(!0===oe)return this.nodes;var fe=this.else;if(fe){var Fe=fe.optimizeNodes();fe=this.else=Array.isArray(Fe)?new g(Fe):Fe}return fe?!1===oe?fe instanceof V?fe:fe.nodes:this.nodes.length?this:new V(Z(oe),fe instanceof V?[fe]:fe.nodes):!1!==oe&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(oe,fe){var Fe;if(this.else=null===(Fe=this.else)||void 0===Fe?void 0:Fe.optimizeNames(oe,fe),pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe)||this.else)return this.condition=L(this.condition,oe,fe),this}},{key:"names",get:function(){var oe=pr(qi(V.prototype),"names",this);return re(oe,this.condition),this.else&&q(oe,this.else.names),oe}}]),V}(p);v.kind="if";var y=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(p);y.kind="for";var _=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).iteration=oe,fe}return Se(V,[{key:"render",value:function(oe){return"for(".concat(this.iteration,")")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"optimizeNames",value:function(oe,fe){if(pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe))return this.iteration=L(this.iteration,oe,fe),this}},{key:"names",get:function(){return q(pr(qi(V.prototype),"names",this),this.iteration.names)}}]),V}(y),C=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe,xe){var tt;return ke(this,V),(tt=Y.call(this)).varKind=oe,tt.name=fe,tt.from=Fe,tt.to=xe,tt}return Se(V,[{key:"render",value:function(oe){var Fe=this.name,xe=this.from,tt=this.to;return"for(".concat(oe.es5?e.varKinds.var:this.varKind," ").concat(Fe,"=").concat(xe,"; ").concat(Fe,"<").concat(tt,"; ").concat(Fe,"++)")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"names",get:function(){var oe=re(pr(qi(V.prototype),"names",this),this.from);return re(oe,this.to)}}]),V}(y),S=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe,xe){var tt;return ke(this,V),(tt=Y.call(this)).loop=oe,tt.varKind=fe,tt.name=Fe,tt.iterable=xe,tt}return Se(V,[{key:"render",value:function(oe){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"optimizeNames",value:function(oe,fe){if(pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe))return this.iterable=L(this.iterable,oe,fe),this}},{key:"names",get:function(){return q(pr(qi(V.prototype),"names",this),this.iterable.names)}}]),V}(y),M=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe){var xe;return ke(this,V),(xe=Y.call(this)).name=oe,xe.args=fe,xe.async=Fe,xe}return Se(V,[{key:"render",value:function(oe){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);M.kind="func";var $=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"return "+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(f);$.kind="return";var G=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){var fe="try"+pr(qi(V.prototype),"render",this).call(this,oe);return this.catch&&(fe+=this.catch.render(oe)),this.finally&&(fe+=this.finally.render(oe)),fe}},{key:"optimizeNodes",value:function(){var oe,fe;return pr(qi(V.prototype),"optimizeNodes",this).call(this),null===(oe=this.catch)||void 0===oe||oe.optimizeNodes(),null===(fe=this.finally)||void 0===fe||fe.optimizeNodes(),this}},{key:"optimizeNames",value:function(oe,fe){var Fe,xe;return pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe),null===(Fe=this.catch)||void 0===Fe||Fe.optimizeNames(oe,fe),null===(xe=this.finally)||void 0===xe||xe.optimizeNames(oe,fe),this}},{key:"names",get:function(){var oe=pr(qi(V.prototype),"names",this);return this.catch&&q(oe,this.catch.names),this.finally&&q(oe,this.finally.names),oe}}]),V}(p),R=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).error=oe,fe}return Se(V,[{key:"render",value:function(oe){return"catch(".concat(this.error,")")+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);R.kind="catch";var z=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"finally"+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);z.kind="finally";var U=function(){function N(Y){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ke(this,N),this._values={},this._blockStarts=[],this._constants={},this.opts=Ze(Ze({},V),{},{_n:V.lines?"\n":""}),this._extScope=Y,this._scope=new e.Scope({parent:Y}),this._nodes=[new m]}return Se(N,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(Y){return this._scope.name(Y)}},{key:"scopeName",value:function(Y){return this._extScope.name(Y)}},{key:"scopeValue",value:function(Y,V){var oe=this._extScope.value(Y,V);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}},{key:"getScopeValue",value:function(Y,V){return this._extScope.getValue(Y,V)}},{key:"scopeRefs",value:function(Y){return this._extScope.scopeRefs(Y,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(Y,V,oe,fe){var Fe=this._scope.toName(V);return void 0!==oe&&fe&&(this._constants[Fe.str]=oe),this._leafNode(new s(Y,Fe,oe)),Fe}},{key:"const",value:function(Y,V,oe){return this._def(e.varKinds.const,Y,V,oe)}},{key:"let",value:function(Y,V,oe){return this._def(e.varKinds.let,Y,V,oe)}},{key:"var",value:function(Y,V,oe){return this._def(e.varKinds.var,Y,V,oe)}},{key:"assign",value:function(Y,V,oe){return this._leafNode(new a(Y,V,oe))}},{key:"add",value:function(Y,V){return this._leafNode(new l(Y,t.operators.ADD,V))}},{key:"code",value:function(Y){return"function"==typeof Y?Y():Y!==n.nil&&this._leafNode(new h(Y)),this}},{key:"object",value:function(){for(var Y=["{"],V=arguments.length,oe=new Array(V),fe=0;fe1&&Y.push(","),Y.push(ze),(ze!==ot||this.opts.es5)&&(Y.push(":"),(0,n.addCodeArg)(Y,ot))}return Y.push("}"),new n._Code(Y)}},{key:"if",value:function(Y,V,oe){if(this._blockNode(new v(Y)),V&&oe)this.code(V).else().code(oe).endIf();else if(V)this.code(V).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(Y){return this._elseNode(new v(Y))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(Y,V){return this._blockNode(Y),V&&this.code(V).endFor(),this}},{key:"for",value:function(Y,V){return this._for(new _(Y),V)}},{key:"forRange",value:function(Y,V,oe,fe){var Fe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,xe=this._scope.toName(Y);return this._for(new C(Fe,xe,V,oe),function(){return fe(xe)})}},{key:"forOf",value:function(Y,V,oe){var fe=this,Fe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,xe=this._scope.toName(Y);if(this.opts.es5){var tt=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(zW||(zW=Ae(["",".length"])),tt),function(ze){fe.var(xe,(0,n._)(UW||(UW=Ae(["","[","]"])),tt,ze)),oe(xe)})}return this._for(new S("of",Fe,xe,V),function(){return oe(xe)})}},{key:"forIn",value:function(Y,V,oe){var fe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(Y,(0,n._)(GW||(GW=Ae(["Object.keys(",")"])),V),oe);var Fe=this._scope.toName(Y);return this._for(new S("in",fe,Fe,V),function(){return oe(Fe)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(Y){return this._leafNode(new c(Y))}},{key:"break",value:function(Y){return this._leafNode(new u(Y))}},{key:"return",value:function(Y){var V=new $;if(this._blockNode(V),this.code(Y),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}},{key:"try",value:function(Y,V,oe){if(!V&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');var fe=new G;if(this._blockNode(fe),this.code(Y),V){var Fe=this.name("e");this._currNode=fe.catch=new R(Fe),V(Fe)}return oe&&(this._currNode=fe.finally=new z,this.code(oe)),this._endBlockNode(R,z)}},{key:"throw",value:function(Y){return this._leafNode(new d(Y))}},{key:"block",value:function(Y,V){return this._blockStarts.push(this._nodes.length),Y&&this.code(Y).endBlock(V),this}},{key:"endBlock",value:function(Y){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var oe=this._nodes.length-V;if(oe<0||void 0!==Y&&oe!==Y)throw new Error("CodeGen: wrong number of nodes: ".concat(oe," vs ").concat(Y," expected"));return this._nodes.length=V,this}},{key:"func",value:function(Y){var fe=arguments.length>3?arguments[3]:void 0;return this._blockNode(new M(Y,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),fe&&this.code(fe).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(M)}},{key:"optimize",value:function(){for(var Y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(Y){return this._currNode.nodes.push(Y),this}},{key:"_blockNode",value:function(Y){this._currNode.nodes.push(Y),this._nodes.push(Y)}},{key:"_endBlockNode",value:function(Y,V){var oe=this._currNode;if(oe instanceof Y||V&&oe instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(Y.kind,"/").concat(V.kind):Y.kind,'"'))}},{key:"_elseNode",value:function(Y){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=Y,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var Y=this._nodes;return Y[Y.length-1]},set:function(Y){var V=this._nodes;V[V.length-1]=Y}}]),N}();function q(N,Y){for(var V in Y)N[V]=(N[V]||0)+(Y[V]||0);return N}function re(N,Y){return Y instanceof n._CodeOrName?q(N,Y.names):N}function L(N,Y,V){return N instanceof n.Name?oe(N):(fe=N)instanceof n._Code&&fe._items.some(function(Fe){return Fe instanceof n.Name&&1===Y[Fe.str]&&void 0!==V[Fe.str]})?new n._Code(N._items.reduce(function(fe,Fe){return Fe instanceof n.Name&&(Fe=oe(Fe)),Fe instanceof n._Code?fe.push.apply(fe,si(Fe._items)):fe.push(Fe),fe},[])):N;var fe;function oe(fe){var Fe=V[fe.str];return void 0===Fe||1!==Y[fe.str]?fe:(delete Y[fe.str],Fe)}}function X(N,Y){for(var V in Y)N[V]=(N[V]||0)-(Y[V]||0)}function Z(N){return"boolean"==typeof N||"number"==typeof N||null===N?!N:(0,n._)(WW||(WW=Ae(["!",""])),F(N))}t.CodeGen=U,t.not=Z;var H=E(t.operators.AND);t.and=function(){for(var N=arguments.length,Y=new Array(N),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,_,C,S){var M=void 0===C?_:C instanceof n.Name?(_ instanceof n.Name?p(y,_,C):m(y,_,C),C):_ instanceof n.Name?(m(y,C,_),_):g(_,C);return S!==n.Name||M instanceof n.Name?M:v(y,M)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(aq||(aq=Ae(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(lq||(lq=Ae(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=Re(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(YW||(YW=Ae(["",""])),p)}return(0,n._)(JW||(JW=Ae(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=Re(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(KW||(KW=Ae([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(QW||(QW=Ae([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(ZW||(ZW=Ae([""," || {}"])),m)).code((0,n._)(eq||(eq=Ae(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(tq||(tq=Ae([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(nq||(nq=Ae([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||Ze(Ze({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(iq||(iq=Ae([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(rq||(rq=Ae([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(oq||(oq=Ae([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(sq||(sq=Ae([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?cq||(cq=Ae(['"[" + ',' + "]"'])):uq||(uq=Ae(['"[\'" + ',' + "\']"'])):g?dq||(dq=Ae(['"/" + ',""])):hq||(hq=Ae(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(Hr);var nme,ime,rme,TD={};function Sp(){if(nme)return TD;nme=1,Object.defineProperty(TD,"__esModule",{value:!0});var t=xr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return TD.default=n,TD}function ED(){return ime||(ime=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=xr(),e=Hr,i=Sp();function r(d,h){var f=d.const("err",h);d.if((0,n._)(Dq||(Dq=Ae([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(Tq||(Tq=Ae(["[","]"])),f))},(0,n._)(Eq||(Eq=Ae(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(Aq||(Aq=Ae(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(Mq||(Mq=Ae(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(Iq||(Iq=Ae(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(fq||(fq=Ae(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(pq||(pq=Ae(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(mq||(mq=Ae(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,_=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,_):o(m,(0,n._)(gq||(gq=Ae(["[","]"])),_))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(vq||(vq=Ae([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(yq||(yq=Ae(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(_){h.const(y,(0,n._)(bq||(bq=Ae(["","[","]"])),i.default.vErrors,_)),h.if((0,n._)(_q||(_q=Ae(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(xq||(xq=Ae(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(wq||(wq=Ae(["",".schemaPath"])),y),(0,n.str)(Cq||(Cq=Ae(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(kq||(kq=Ae(["",".schema"])),y),p),h.assign((0,n._)(Sq||(Sq=Ae(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(Fq||(Fq=Ae(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,_=d.it,C=_.opts,S=_.propertyName,M=_.topSchemaRef,$=_.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(Pq||(Pq=Ae(["{}"])))]),C.messages&&f.push([s.message,"function"==typeof m?m(d):m]),C.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(Lq||(Lq=Ae(["","",""])),M,$)],[i.default.data,v]),S&&f.push([s.propertyName,S])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(Nq||(Nq=Ae(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(Oq||(Oq=Ae(["","/",""])),p,f);return m&&(g=(0,n.str)(jq||(jq=Ae(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(Ype)),Ype}var I_={},tg={};Object.defineProperty(tg,"__esModule",{value:!0}),tg.getRules=tg.isJSONType=void 0;var ait=new Set(["string","number","integer","boolean","null","object","array"]);tg.isJSONType=function(t){return"string"==typeof t&&ait.has(t)},tg.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ze(Ze({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var ome,pf={};function sme(){if(ome)return pf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return ome=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.shouldUseRule=pf.shouldUseGroup=pf.schemaHasRulesForType=void 0,pf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},pf.shouldUseGroup=t,pf.shouldUseRule=n,pf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=tg,i=sme(),r=ED(),o=xr(),s=Hr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var M,m=f.gen,g=f.data,v=f.opts,y=(M=v.coerceTypes)?p.filter(function($){return l.has($)||"array"===M&&"array"===$}):[],_=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(_){var C=u(p,g,v.strictNumbers,n.Wrong);m.if(C,function(){y.length?function(S,M,$){var G=S.gen,R=S.data,z=S.opts,U=G.let("dataType",(0,o._)($q||($q=Ae(["typeof ",""])),R)),q=G.let("coerced",(0,o._)(Bq||(Bq=Ae(["undefined"]))));"array"===z.coerceTypes&&G.if((0,o._)(Vq||(Vq=Ae([""," == 'object' && Array.isArray(",") && ",".length == 1"])),U,R,R),function(){return G.assign(R,(0,o._)(Hq||(Hq=Ae(["","[0]"])),R)).assign(U,(0,o._)(zq||(zq=Ae(["typeof ",""])),R)).if(u(M,R,z.strictNumbers),function(){return G.assign(q,R)})}),G.if((0,o._)(Uq||(Uq=Ae([""," !== undefined"])),q));var re,L=Re($);try{for(L.s();!(re=L.n()).done;){var X=re.value;(l.has(X)||"array"===X&&"array"===z.coerceTypes)&&Z(X)}}catch(H){L.e(H)}finally{L.f()}function Z(H){switch(H){case"string":return void G.elseIf((0,o._)(Wq||(Wq=Ae(["",' == "number" || ',' == "boolean"'])),U,U)).assign(q,(0,o._)(qq||(qq=Ae(['"" + ',""])),R)).elseIf((0,o._)(Xq||(Xq=Ae([""," === null"])),R)).assign(q,(0,o._)(Yq||(Yq=Ae(['""']))));case"number":return void G.elseIf((0,o._)(Jq||(Jq=Ae(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),U,R,U,R,R,R)).assign(q,(0,o._)(Kq||(Kq=Ae(["+",""])),R));case"integer":return void G.elseIf((0,o._)(Qq||(Qq=Ae(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),U,R,U,R,R,R,R)).assign(q,(0,o._)(Zq||(Zq=Ae(["+",""])),R));case"boolean":return void G.elseIf((0,o._)(eX||(eX=Ae(["",' === "false" || '," === 0 || "," === null"])),R,R,R)).assign(q,!1).elseIf((0,o._)(tX||(tX=Ae(["",' === "true" || '," === 1"])),R,R)).assign(q,!0);case"null":return G.elseIf((0,o._)(nX||(nX=Ae(["",' === "" || '," === 0 || "," === false"])),R,R,R)),void G.assign(q,null);case"array":G.elseIf((0,o._)(iX||(iX=Ae(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),U,U,U,R)).assign(q,(0,o._)(rX||(rX=Ae(["[","]"])),R))}}G.else(),h(S),G.endIf(),G.if((0,o._)(Gq||(Gq=Ae([""," !== undefined"])),q),function(){var H,he,E,F,N;G.assign(R,q),he=q,F=(H=S).parentData,N=H.parentDataProperty,(E=H.gen).if((0,o._)(oX||(oX=Ae([""," !== undefined"])),F),function(){return E.assign((0,o._)(sX||(sX=Ae(["","[","]"])),F,N),he)})})}(f,p,y):h(f)})}return _};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(aX||(aX=Ae([""," "," null"])),p,y);case"array":g=(0,o._)(lX||(lX=Ae(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(cX||(cX=Ae([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=_((0,o._)(uX||(uX=Ae(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=_();break;default:return(0,o._)(dX||(dX=Ae(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function _(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(hX||(hX=Ae(["typeof ",' == "number"'])),p),C,m?(0,o._)(fX||(fX=Ae(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var _=(0,o._)(pX||(pX=Ae(["typeof ",' != "object"'])),p);v=y.null?_:(0,o._)(mX||(mX=Ae(["!"," || ",""])),p,_),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var C in y.number&&delete y.integer,y)v=(0,o.and)(v,c(C,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(gX||(gX=Ae(["{type: ","}"])),p):(0,o._)(vX||(vX=Ae(["{type: ","}"])),m)}};function h(f){var m,g,v,y,_,p=(g=(m=f).gen,v=m.data,_=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:_,schemaValue:_,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(I_);var ame,lme,cme,F_={},ud={},po={};function dd(){if(lme)return po;lme=1,Object.defineProperty(po,"__esModule",{value:!0}),po.validateUnion=po.validateArray=po.usePattern=po.callValidateCode=po.schemaProperties=po.allSchemaProperties=po.noPropertyInData=po.propertyInData=po.isOwnProperty=po.hasPropFunc=po.reportMissingProp=po.checkMissingProp=po.checkReportMissingProp=void 0;var t=xr(),n=Hr,e=Sp(),i=Hr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(kX||(kX=Ae(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(SX||(SX=Ae(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)(EX||(EX=Ae(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}po.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(wX||(wX=Ae(["",""])),u)},!0),c.error()})},po.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,si(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(CX||(CX=Ae([""," = ",""])),d,m))})))},po.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},po.hasPropFunc=r,po.isOwnProperty=o,po.propertyInData=function(c,u,d,h){var f=(0,t._)(DX||(DX=Ae(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(TX||(TX=Ae([""," && ",""])),f,o(c,u,d)):f},po.noPropertyInData=s,po.allSchemaProperties=a,po.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},po.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,_=m.errorPath,C=c.it,S=h?(0,t._)(AX||(AX=Ae(["",", ",", ","",""])),f,p,v,y):p,M=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,_)],[e.default.parentData,C.parentData],[e.default.parentDataProperty,C.parentDataProperty],[e.default.rootData,e.default.rootData]];C.opts.dynamicRef&&M.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var $=(0,t._)(MX||(MX=Ae(["",", ",""])),S,g.object.apply(g,M));return d!==t.nil?(0,t._)(IX||(IX=Ae(["",".call(",", ",")"])),u,d,$):(0,t._)(FX||(FX=Ae(["","(",")"])),u,$)};var l=(0,t._)(NX||(NX=Ae(["new RegExp"])));return po.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(OX||(OX=Ae(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},po.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(jX||(jX=Ae(["",".length"])),d));u.forRange("i",0,y,function(_){c.subschema({keyword:h,dataProp:_,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},po.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(PX||(PX=Ae([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},po}var ume,mf={},Ga={},dme=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==bn(n)&&"object"==bn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},kP={},cit={get exports(){return kP},set exports(t){kP=t}},Dp=cit.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),AD(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function AD(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==bn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Dp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!SP(t):!!n&&hme(t)<=n)};var pit=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function SP(t){for(var n in t){if(pit.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(SP)||"object"==bn(e)&&SP(e))return!0}return!1}function hme(t){var n=0;for(var e in t)if("$ref"===e||(n++,!fit.has(e)&&("object"==bn(t[e])&&(0,uit.eachItem)(t[e],function(i){return n+=hme(i)}),n===1/0)))return 1/0;return n}function fme(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=z0(n));var i=t.parse(n);return pme(t,i)}function pme(t,n){return t.serialize(n).split("#")[0]+"#"}Ga.getFullPath=fme,Ga._getFullPath=pme;var mit=/#\/?$/;function z0(t){return t?t.replace(mit,""):""}Ga.normalizeId=z0,Ga.resolveUrl=function(t,n,e){return e=z0(e),t.resolve(n,e)};var mme,git=/^[a-z_][-a-z0-9._]*$/i;function MD(){if(mme)return ff;mme=1,Object.defineProperty(ff,"__esModule",{value:!0}),ff.getData=ff.KeywordCxt=ff.validateFunctionCode=void 0;var t=function(){if(rme)return eg;rme=1,Object.defineProperty(eg,"__esModule",{value:!0}),eg.boolOrEmptySchema=eg.topBoolOrEmptySchema=void 0;var L=ED(),X=xr(),Z=Sp(),H={message:"boolean schema is false"};function he(E,F){(0,L.reportError)({gen:E.gen,keyword:"false schema",data:E.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:E},H,void 0,F)}return eg.topBoolOrEmptySchema=function(E){var F=E.gen,N=E.schema,Y=E.validateName;!1===N?he(E,!1):"object"==bn(N)&&!0===N.$async?F.return(Z.default.data):(F.assign((0,X._)(Rq||(Rq=Ae(["",".errors"])),Y),null),F.return(!0))},eg.boolOrEmptySchema=function(E,F){var N=E.gen;!1===E.schema?(N.var(F,!1),he(E)):N.var(F,!0)},eg}(),n=I_,e=sme(),i=I_,r=function(){if(ame)return F_;ame=1,Object.defineProperty(F_,"__esModule",{value:!0}),F_.assignDefaults=void 0;var L=xr(),X=Hr;function Z(H,he,E){var F=H.gen,N=H.compositeRule,Y=H.data,V=H.opts;if(void 0!==E){var oe=(0,L._)(yX||(yX=Ae(["","",""])),Y,(0,L.getProperty)(he));if(N)(0,X.checkStrictMode)(H,"default is ignored for: ".concat(oe));else{var fe=(0,L._)(bX||(bX=Ae([""," === undefined"])),oe);"empty"===V.useDefaults&&(fe=(0,L._)(_X||(_X=Ae([""," || "," === null || ",' === ""'])),fe,oe,oe)),F.if(fe,(0,L._)(xX||(xX=Ae([""," = ",""])),oe,(0,L.stringify)(E)))}}}return F_.assignDefaults=function(H,he){var E=H.schema,F=E.properties,N=E.items;if("object"===he&&F)for(var Y in F)Z(H,Y,F[Y].default);else"array"===he&&Array.isArray(N)&&N.forEach(function(V,oe){return Z(H,oe,V.default)})},F_}(),o=function lit(){if(cme)return ud;cme=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.validateKeywordUsage=ud.validSchemaType=ud.funcKeywordCode=ud.macroKeywordCode=void 0;var t=xr(),n=Sp(),e=dd(),i=ED();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(zX||(zX=Ae(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return ud.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},ud.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(C,S){if(S.async&&!C.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(VX||(VX=Ae(["await "]))):t.nil,S=p.opts.passContext?n.default.this:n.default.self,M=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(HX||(HX=Ae(["","",""])),C,(0,e.callValidateCode)(s,g,S,M)),a.modifying)}function _(C){var S;c.if((0,t.not)(null!==(S=a.valid)&&void 0!==S?S:v),C)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),_(function(){return s.error()});else{var C=a.async?(M=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(LX||(LX=Ae(["await "]))))},function($){return c.assign(v,!1).if((0,t._)(RX||(RX=Ae([""," instanceof ",""])),$,p.ValidationError),function(){return c.assign(M,(0,t._)($X||($X=Ae(["",".errors"])),$))},function(){return c.throw($)})}),M):(S=(0,t._)(BX||(BX=Ae(["",".errors"])),g),c.assign(S,null),y(t.nil),S);a.modifying&&r(s),_(function(){return function(M,$){var G=M.gen;G.if((0,t._)(UX||(UX=Ae(["Array.isArray(",")"])),$),function(){G.assign(n.default.vErrors,(0,t._)(GX||(GX=Ae([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,$,n.default.vErrors,$)).assign(n.default.errors,(0,t._)(WX||(WX=Ae(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(M)},function(){return M.error()})}(s,C)})}var M,S}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},ud.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==bn(s)&&!Array.isArray(s):bn(s)==c||l&&void 0===s})},ud.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},ud}(),s=function(){if(ume)return mf;ume=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.extendSubschemaMode=mf.extendSubschemaData=mf.getSubschema=void 0;var L=xr(),X=Hr;return mf.getSubschema=function(Z,H){var he=H.keyword,E=H.schemaProp,F=H.schema,N=H.schemaPath,Y=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==he&&void 0!==F)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==he){var oe=Z.schema[he];return void 0===E?{schema:oe,schemaPath:(0,L._)(qX||(qX=Ae(["","",""])),Z.schemaPath,(0,L.getProperty)(he)),errSchemaPath:"".concat(Z.errSchemaPath,"/").concat(he)}:{schema:oe[E],schemaPath:(0,L._)(XX||(XX=Ae(["","","",""])),Z.schemaPath,(0,L.getProperty)(he),(0,L.getProperty)(E)),errSchemaPath:"".concat(Z.errSchemaPath,"/").concat(he,"/").concat((0,X.escapeFragment)(E))}}if(void 0!==F){if(void 0===N||void 0===Y||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:F,schemaPath:N,topSchemaRef:V,errSchemaPath:Y}}throw new Error('either "keyword" or "schema" must be passed')},mf.extendSubschemaData=function(Z,H,he){var E=he.dataProp,F=he.dataPropType,N=he.data,Y=he.dataTypes,V=he.propertyName;if(void 0!==N&&void 0!==E)throw new Error('both "data" and "dataProp" passed, only one allowed');var oe=H.gen;if(void 0!==E){var fe=H.errorPath,Fe=H.dataPathArr,xe=H.opts;tt(oe.let("data",(0,L._)(YX||(YX=Ae(["","",""])),H.data,(0,L.getProperty)(E)),!0)),Z.errorPath=(0,L.str)(JX||(JX=Ae(["","",""])),fe,(0,X.getErrorPath)(E,F,xe.jsPropertySyntax)),Z.parentDataProperty=(0,L._)(KX||(KX=Ae(["",""])),E),Z.dataPathArr=[].concat(si(Fe),[Z.parentDataProperty])}function tt(ze){Z.data=ze,Z.dataLevel=H.dataLevel+1,Z.dataTypes=[],H.definedProperties=new Set,Z.parentData=H.data,Z.dataNames=[].concat(si(H.dataNames),[ze])}void 0!==N&&(tt(N instanceof L.Name?N:oe.let("data",N,!0)),void 0!==V&&(Z.propertyName=V)),Y&&(Z.dataTypes=Y)},mf.extendSubschemaMode=function(Z,H){var he=H.jtdDiscriminator,E=H.jtdMetadata,F=H.compositeRule,N=H.createErrors,Y=H.allErrors;void 0!==F&&(Z.compositeRule=F),void 0!==N&&(Z.createErrors=N),void 0!==Y&&(Z.allErrors=Y),Z.jtdDiscriminator=he,Z.jtdMetadata=E},mf}(),a=xr(),l=Sp(),c=Ga,u=Hr,d=ED();function h(L,X){var N,Z=L.gen,H=L.validateName,he=L.schema,E=L.schemaEnv,F=L.opts;F.code.es5?Z.func(H,(0,a._)(QX||(QX=Ae(["",", ",""])),l.default.data,l.default.valCxt),E.$async,function(){var N,Y;Z.code((0,a._)(ZX||(ZX=Ae(['"use strict"; ',""])),f(he,F))),Y=F,(N=Z).if(l.default.valCxt,function(){N.var(l.default.instancePath,(0,a._)(iY||(iY=Ae(["",".",""])),l.default.valCxt,l.default.instancePath)),N.var(l.default.parentData,(0,a._)(rY||(rY=Ae(["",".",""])),l.default.valCxt,l.default.parentData)),N.var(l.default.parentDataProperty,(0,a._)(oY||(oY=Ae(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),N.var(l.default.rootData,(0,a._)(sY||(sY=Ae(["",".",""])),l.default.valCxt,l.default.rootData)),Y.dynamicRef&&N.var(l.default.dynamicAnchors,(0,a._)(aY||(aY=Ae(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){N.var(l.default.instancePath,(0,a._)(lY||(lY=Ae(['""'])))),N.var(l.default.parentData,(0,a._)(cY||(cY=Ae(["undefined"])))),N.var(l.default.parentDataProperty,(0,a._)(uY||(uY=Ae(["undefined"])))),N.var(l.default.rootData,l.default.data),Y.dynamicRef&&N.var(l.default.dynamicAnchors,(0,a._)(dY||(dY=Ae(["{}"]))))}),Z.code(X)}):Z.func(H,(0,a._)(eY||(eY=Ae(["",", ",""])),l.default.data,(N=F,(0,a._)(tY||(tY=Ae(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,N.dynamicRef?(0,a._)(nY||(nY=Ae([", ","={}"])),l.default.dynamicAnchors):a.nil))),E.$async,function(){return Z.code(f(he,F)).code(X)})}function f(L,X){var Z="object"==bn(L)&&L[X.schemaId];return Z&&(X.code.source||X.code.process)?(0,a._)(bY||(bY=Ae(["/*# sourceURL="," */"])),Z):a.nil}function m(L){var X=L.schema,Z=L.self;if("boolean"==typeof X)return!X;for(var H in X)if(Z.RULES.all[H])return!0;return!1}function g(L){return"boolean"!=typeof L.schema}function v(L){var X,Z,H,E;(0,u.checkUnknownRules)(L),H=(X=L).errSchemaPath,E=X.self,(Z=X.schema).$ref&&X.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(Z,E.RULES)&&E.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(L,X){if(L.opts.jtd)return C(L,[],!1,X);var Z=(0,n.getSchemaTypes)(L.schema);C(L,Z,!(0,n.coerceAndCheckDataType)(L,Z),X)}function _(L){var X=L.gen,Z=L.schemaEnv,he=L.errSchemaPath,E=L.opts,F=L.schema.$comment;if(!0===E.$comment)X.code((0,a._)(xY||(xY=Ae(["",".logger.log(",")"])),l.default.self,F));else if("function"==typeof E.$comment){var N=(0,a.str)(wY||(wY=Ae(["","/$comment"])),he),Y=X.scopeValue("root",{ref:Z.root});X.code((0,a._)(CY||(CY=Ae(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,F,N,Y))}}function C(L,X,Z,H){var fe,Fe,xe,tt,he=L.gen,E=L.schema,F=L.data,N=L.allErrors,Y=L.opts,V=L.self.RULES;function oe(fe){(0,e.shouldUseGroup)(E,fe)&&(fe.type?(he.if((0,i.checkDataType)(fe.type,F,Y.strictNumbers)),S(L,fe),1===X.length&&X[0]===fe.type&&Z&&(he.else(),(0,i.reportTypeError)(L)),he.endIf()):S(L,fe),N||he.if((0,a._)(MY||(MY=Ae([""," === ",""])),l.default.errors,H||0)))}!E.$ref||!Y.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(E,V)?(Y.jtd||(Fe=X,(fe=L).schemaEnv.meta||!fe.opts.strictTypes||(function(xe,tt){if(tt.length){if(!xe.dataTypes.length)return void(xe.dataTypes=tt);tt.forEach(function(ze){$(xe.dataTypes,ze)||G(xe,'type "'.concat(ze,'" not allowed by context "').concat(xe.dataTypes.join(","),'"'))}),function(ze,ot){var B,ne=[],ie=Re(ze.dataTypes);try{for(ie.s();!(B=ie.n()).done;){var Ie=B.value;$(ot,Ie)?ne.push(Ie):ot.includes("integer")&&"number"===Ie&&ne.push("integer")}}catch(Ye){ie.e(Ye)}finally{ie.f()}ze.dataTypes=ne}(xe,tt)}}(fe,Fe),fe.opts.allowUnionTypes||(xe=fe,(tt=Fe).length>1&&(2!==tt.length||!tt.includes("null"))&&G(xe,"use allowUnionTypes to allow union type keyword")),function(xe,tt){var ze=xe.self.RULES.all;for(var ot in ze){var B=ze[ot];if("object"==bn(B)&&(0,e.shouldUseRule)(xe.schema,B)){var ne=B.definition.type;ne.length&&!ne.some(function(ie){return M(tt,ie)})&&G(xe,'missing type "'.concat(ne.join(","),'" for keyword "').concat(ot,'"'))}}}(fe,fe.dataTypes))),he.block(function(){var fe,Fe=Re(V.rules);try{for(Fe.s();!(fe=Fe.n()).done;)oe(fe.value)}catch(xe){Fe.e(xe)}finally{Fe.f()}oe(V.post)})):he.block(function(){return z(L,"$ref",V.all.$ref.definition)})}function S(L,X){var Z=L.gen,H=L.schema;L.opts.useDefaults&&(0,r.assignDefaults)(L,X.type),Z.block(function(){var he,E=Re(X.rules);try{for(E.s();!(he=E.n()).done;){var F=he.value;(0,e.shouldUseRule)(H,F)&&z(L,F.keyword,F.definition,X.type)}}catch(N){E.e(N)}finally{E.f()}})}function M(L,X){return L.includes(X)||"number"===X&&L.includes("integer")}function $(L,X){return L.includes(X)||"integer"===X&&L.includes("number")}function G(L,X){X+=' at "'.concat(L.schemaEnv.baseId+L.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(L,X,L.opts.strictTypes)}ff.validateFunctionCode=function(L){var X,Z,H,he;g(L)&&(v(L),m(L))?(Z=(X=L).schema,H=X.opts,he=X.gen,h(X,function(){var E,N;H.$comment&&Z.$comment&&_(X),N=(E=X).opts,void 0!==E.schema.default&&N.useDefaults&&N.strictSchema&&(0,u.checkStrictMode)(E,"default is ignored in the schema root"),he.let(l.default.vErrors,null),he.let(l.default.errors,0),H.unevaluated&&function(E){var F=E.gen,N=E.validateName;E.evaluated=F.const("evaluated",(0,a._)(hY||(hY=Ae(["",".evaluated"])),N)),F.if((0,a._)(fY||(fY=Ae(["",".dynamicProps"])),E.evaluated),function(){return F.assign((0,a._)(pY||(pY=Ae(["",".props"])),E.evaluated),(0,a._)(mY||(mY=Ae(["undefined"]))))}),F.if((0,a._)(gY||(gY=Ae(["",".dynamicItems"])),E.evaluated),function(){return F.assign((0,a._)(vY||(vY=Ae(["",".items"])),E.evaluated),(0,a._)(yY||(yY=Ae(["undefined"]))))})}(X),y(X),function(E){var fe,Fe,xe,tt,ze,F=E.gen,Y=E.validateName,V=E.ValidationError,oe=E.opts;E.schemaEnv.$async?F.if((0,a._)(kY||(kY=Ae([""," === 0"])),l.default.errors),function(){return F.return(l.default.data)},function(){return F.throw((0,a._)(SY||(SY=Ae(["new ","(",")"])),V,l.default.vErrors))}):(F.assign((0,a._)(DY||(DY=Ae(["",".errors"])),Y),l.default.vErrors),oe.unevaluated&&(Fe=(fe=E).gen,xe=fe.evaluated,ze=fe.items,(tt=fe.props)instanceof a.Name&&Fe.assign((0,a._)(EY||(EY=Ae(["",".props"])),xe),tt),ze instanceof a.Name&&Fe.assign((0,a._)(AY||(AY=Ae(["",".items"])),xe),ze)),F.return((0,a._)(TY||(TY=Ae([""," === 0"])),l.default.errors)))}(X)})):h(L,function(){return(0,t.topBoolOrEmptySchema)(L)})};var R=function(){function L(X,Z,H){if(ke(this,L),(0,o.validateKeywordUsage)(X,Z,H),this.gen=X.gen,this.allErrors=X.allErrors,this.keyword=H,this.data=X.data,this.schema=X.schema[H],this.$data=Z.$data&&X.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(X,this.schema,H,this.$data),this.schemaType=Z.schemaType,this.parentSchema=X.schema,this.params={},this.it=X,this.def=Z,this.$data)this.schemaCode=X.gen.const("vSchema",re(this.$data,X));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,Z.schemaType,Z.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(Z.schemaType)));("code"in Z?Z.trackErrors:!1!==Z.errors)&&(this.errsCount=X.gen.const("_errs",l.default.errors))}return Se(L,[{key:"result",value:function(X,Z,H){this.failResult((0,a.not)(X),Z,H)}},{key:"failResult",value:function(X,Z,H){this.gen.if(X),H?H():this.error(),Z?(this.gen.else(),Z(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(X,Z){this.failResult((0,a.not)(X),void 0,Z)}},{key:"fail",value:function(X){if(void 0===X)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(X),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(X){if(!this.$data)return this.fail(X);var Z=this.schemaCode;this.fail((0,a._)(IY||(IY=Ae([""," !== undefined && (",")"])),Z,(0,a.or)(this.invalid$data(),X)))}},{key:"error",value:function(X,Z,H){if(Z)return this.setParams(Z),this._error(X,H),void this.setParams({});this._error(X,H)}},{key:"_error",value:function(X,Z){(X?d.reportExtraError:d.reportError)(this,this.def.error,Z)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(X){this.allErrors||this.gen.if(X)}},{key:"setParams",value:function(X,Z){Z?Object.assign(this.params,X):this.params=X}},{key:"block$data",value:function(X,Z){var H=this,he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(X,he),Z()})}},{key:"check$data",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,he=this.schemaCode,E=this.schemaType,F=this.def;H.if((0,a.or)((0,a._)(FY||(FY=Ae([""," === undefined"])),he),Z)),X!==a.nil&&H.assign(X,!0),(E.length||F.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),X!==a.nil&&H.assign(X,!1)),H.else()}}},{key:"invalid$data",value:function(){var X=this.gen,Z=this.schemaCode,H=this.schemaType,he=this.def,E=this.it;return(0,a.or)(function(){if(H.length){if(!(Z instanceof a.Name))throw new Error("ajv implementation error");var F=Array.isArray(H)?H:[H];return(0,a._)(NY||(NY=Ae(["",""])),(0,i.checkDataTypes)(F,Z,E.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(he.validateSchema){var F=X.scopeValue("validate$data",{ref:he.validateSchema});return(0,a._)(OY||(OY=Ae(["!","(",")"])),F,Z)}return a.nil}())}},{key:"subschema",value:function(X,Z){var H=(0,s.getSubschema)(this.it,X);(0,s.extendSubschemaData)(H,this.it,X),(0,s.extendSubschemaMode)(H,X);var he=Ze(Ze(Ze({},this.it),H),{},{items:void 0,props:void 0});return function p(L,X){g(L)&&(v(L),m(L))?function(Z,H){var N,Y,E=Z.gen;Z.opts.$comment&&Z.schema.$comment&&_(Z),(Y=(N=Z).schema[N.opts.schemaId])&&(N.baseId=(0,c.resolveUrl)(N.opts.uriResolver,N.baseId,Y)),function(N){if(N.schema.$async&&!N.schemaEnv.$async)throw new Error("async schema in sync schema")}(Z);var F=E.const("_errs",l.default.errors);y(Z,F),E.var(H,(0,a._)(_Y||(_Y=Ae([""," === ",""])),F,l.default.errors))}(L,X):(0,t.boolOrEmptySchema)(L,X)}(he,Z),he}},{key:"mergeEvaluated",value:function(X,Z){var H=this.it,he=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==X.props&&(H.props=u.mergeEvaluated.props(he,X.props,H.props,Z)),!0!==H.items&&void 0!==X.items&&(H.items=u.mergeEvaluated.items(he,X.items,H.items,Z)))}},{key:"mergeValidEvaluated",value:function(X,Z){var H=this,he=this.it;if(he.opts.unevaluated&&(!0!==he.props||!0!==he.items))return this.gen.if(Z,function(){return H.mergeEvaluated(X,a.Name)}),!0}}]),L}();function z(L,X,Z,H){var he=new R(L,Z,X);"code"in Z?Z.code(he,H):he.$data&&Z.validate?(0,o.funcKeywordCode)(he,Z):"macro"in Z?(0,o.macroKeywordCode)(he,Z):(Z.compile||Z.validate)&&(0,o.funcKeywordCode)(he,Z)}ff.KeywordCxt=R;var U=/^\/(?:[^~]|~0|~1)*$/,q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(L,X){var Z,H,he=X.dataLevel,E=X.dataNames,F=X.dataPathArr;if(""===L)return l.default.rootData;if("/"===L[0]){if(!U.test(L))throw new Error("Invalid JSON-pointer: ".concat(L));Z=L,H=l.default.rootData}else{var N=q.exec(L);if(!N)throw new Error("Invalid JSON-pointer: ".concat(L));var Y=+N[1];if("#"===(Z=N[2])){if(Y>=he)throw new Error(xe("property/index",Y));return F[he-Y]}if(Y>he)throw new Error(xe("data",Y));if(H=E[he-Y],!Z)return H}var V,oe=H,fe=Re(Z.split("/"));try{for(fe.s();!(V=fe.n()).done;){var Fe=V.value;Fe&&(H=(0,a._)(jY||(jY=Ae(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(Fe))),oe=(0,a._)(PY||(PY=Ae([""," && ",""])),oe,H))}}catch(tt){fe.e(tt)}finally{fe.f()}return oe;function xe(tt,ze){return"Cannot access ".concat(tt," ").concat(ze," levels up, current level is ").concat(he)}}return ff.getData=re,ff}Ga.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=z0(t[r]||n),a={"":s},l=fme(o,s,!1),c={},u=new Set;return hit(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=_.call(e,f[r])),C.call(e,f.$anchor),C.call(e,f.$dynamicAnchor),a[p]=y}function _(S){if(S=z0(y?(0,this.opts.uriResolver.resolve)(y,S):S),u.has(S))throw h(S);u.add(S);var $=this.refs[S];return"string"==typeof $&&($=this.refs[$]),"object"==bn($)?d(f,$.schema,S):S!==z0(v)&&("#"===S[0]?(d(f,c[S],S),c[S]=f):this.refs[S]=v),S}function C(S){if("string"==typeof S){if(!git.test(S))throw new Error('invalid anchor "'.concat(S,'"'));_.call(this,"#".concat(S))}}}),c;function d(f,p,m){if(void 0!==p&&!dit(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var gme,ID={};function DP(){if(gme)return ID;gme=1,Object.defineProperty(ID,"__esModule",{value:!0});var t=function(n){wt(i,lb(Error));var e=Ct(i);function i(r){var o;return ke(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Se(i)}();return ID.default=t,ID}var vme,FD={};function TP(){if(vme)return FD;vme=1,Object.defineProperty(FD,"__esModule",{value:!0});var t=Ga,n=function(e){wt(r,lb(Error));var i=Ct(r);function r(o,s,a,l){var c;return ke(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Se(r)}();return FD.default=n,FD}var Zl={};Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.resolveSchema=Zl.getCompilingSchema=Zl.resolveRef=Zl.compileSchema=Zl.SchemaEnv=void 0;var hd=xr(),vit=DP(),ng=Sp(),fd=Ga,yme=Hr,yit=MD(),ND=Se(function t(n){var e,i;ke(this,t),this.refs={},this.dynamicAnchors={},"object"==bn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,fd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function EP(t){var n=bme.call(this,t);if(n)return n;var e,i=(0,fd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new hd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:vit.default,code:(0,hd._)(LY||(LY=Ae(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:ng.default.data,parentData:ng.default.parentData,parentDataProperty:ng.default.parentDataProperty,dataNames:[ng.default.data],dataPathArr:[hd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,hd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:hd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,hd._)(RY||(RY=Ae(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,yit.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(ng.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(ng.default.self),"".concat(ng.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof hd.Name?void 0:p,items:m instanceof hd.Name?void 0:m,dynamicProps:p instanceof hd.Name,dynamicItems:m instanceof hd.Name},f.source&&(f.source.evaluated=(0,hd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function bit(t){return(0,fd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:EP.call(this,t)}function bme(t){var n,e,i,r=Re(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function _it(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||OD.call(this,t,n)}function OD(t,n){var e=this.opts.uriResolver.parse(n),i=(0,fd._getFullPath)(this.opts.uriResolver,e),r=(0,fd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return AP.call(this,e,t);var o=(0,fd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=OD.call(this,t,s);return"object"!==bn(a?.schema)?void 0:AP.call(this,e,a)}if("object"===bn(s?.schema)){if(s.validate||EP.call(this,s),o===(0,fd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,fd.resolveUrl)(this.opts.uriResolver,r,u)),new ND({schema:l,schemaId:c,root:t,baseId:r})}return AP.call(this,e,s)}}Zl.SchemaEnv=ND,Zl.compileSchema=EP,Zl.resolveRef=function(t,n,e){var i;e=(0,fd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=_it.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new ND({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=bit.call(this,o):void 0},Zl.getCompilingSchema=bme,Zl.resolveSchema=OD;var xit=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function AP(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=Re(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,yme.unescapeFragment)(c)];if(void 0===u)return;var d="object"===bn(r=u)&&r[this.opts.schemaId];!xit.has(c)&&d&&(i=(0,fd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,yme.schemaHasRulesButRef)(r,this.RULES)){var h=(0,fd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=OD.call(this,o,h)}return(a=a||new ND({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var wit={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},MP={},_me={};(function(t){function n(){for(var we=arguments.length,He=Array(we),qe=0;qe1){He[0]=He[0].slice(0,-1);for(var ut=He.length-1,Ue=1;Ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},z=Math.floor,U=String.fromCharCode;function q(we){throw new RangeError(G[we])}function L(we,He){var qe=we.split("@"),ut="";return qe.length>1&&(ut=qe[0]+"@",we=qe[1]),ut+function re(we,He){for(var qe=[],ut=we.length;ut--;)qe[ut]=He(we[ut]);return qe}((we=we.replace($,".")).split("."),He).join(".")}function X(we){for(var He=[],qe=0,ut=we.length;qe=55296&&Ue<=56319&&qe>1,we+=z(we/He);we>455;ut+=f)we=z(we/35);return z(ut+36*we/(we+38))},F=function(we){var He=[],qe=we.length,ut=0,Ue=128,Dn=72,ii=we.lastIndexOf("-");ii<0&&(ii=0);for(var hi=0;hi=128&&q("not-basic"),He.push(we.charCodeAt(hi));for(var di=ii>0?ii+1:0;di=qe&&q("invalid-input");var yr=H(we.charCodeAt(di++));(yr>=f||yr>z((h-ut)/Qr))&&q("overflow"),ut+=yr*Qr;var Ee=gi<=Dn?1:gi>=Dn+26?26:gi-Dn;if(yrz(h/St)&&q("overflow"),Qr*=St}var Ht=He.length+1;Dn=E(ut-kr,Ht,0==kr),z(ut/Ht)>h-Ue&&q("overflow"),Ue+=z(ut/Ht),ut%=Ht,He.splice(ut++,0,Ue)}return String.fromCodePoint.apply(String,He)},N=function(we){var He=[],qe=(we=X(we)).length,ut=128,Ue=0,Dn=72,ii=!0,hi=!1,di=void 0;try{for(var kr,Qr=we[Symbol.iterator]();!(ii=(kr=Qr.next()).done);ii=!0){var gi=kr.value;gi<128&&He.push(U(gi))}}catch(vd){hi=!0,di=vd}finally{try{!ii&&Qr.return&&Qr.return()}finally{if(hi)throw di}}var yr=He.length,Ee=yr;for(yr&&He.push("-");Ee=ut&&Bnz((h-Ue)/ei)&&q("overflow"),Ue+=(St-ut)*ei,ut=St;var Yn=!0,br=!1,Ar=void 0;try{for(var Po,ca=we[Symbol.iterator]();!(Yn=(Po=ca.next()).done);Yn=!0){var md=Po.value;if(mdh&&q("overflow"),md==ut){for(var hu=Ue,ua=f;;ua+=f){var Rl=ua<=Dn?1:ua>=Dn+26?26:ua-Dn;if(hu>6|192).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase():"%"+(He>>12|224).toString(16).toUpperCase()+"%"+(He>>6&63|128).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase()}function xe(we){for(var He="",qe=0,ut=we.length;qe=194&&Ue<224){if(ut-qe>=6){var Dn=parseInt(we.substr(qe+4,2),16);He+=String.fromCharCode((31&Ue)<<6|63&Dn)}else He+=we.substr(qe,6);qe+=6}else if(Ue>=224){if(ut-qe>=9){var ii=parseInt(we.substr(qe+4,2),16),hi=parseInt(we.substr(qe+7,2),16);He+=String.fromCharCode((15&Ue)<<12|(63&ii)<<6|63&hi)}else He+=we.substr(qe,9);qe+=9}else He+=we.substr(qe,3),qe+=3}return He}function tt(we,He){function qe(ut){var Ue=xe(ut);return Ue.match(He.UNRESERVED)?Ue:ut}return we.scheme&&(we.scheme=String(we.scheme).replace(He.PCT_ENCODED,qe).toLowerCase().replace(He.NOT_SCHEME,"")),void 0!==we.userinfo&&(we.userinfo=String(we.userinfo).replace(He.PCT_ENCODED,qe).replace(He.NOT_USERINFO,Fe).replace(He.PCT_ENCODED,r)),void 0!==we.host&&(we.host=String(we.host).replace(He.PCT_ENCODED,qe).toLowerCase().replace(He.NOT_HOST,Fe).replace(He.PCT_ENCODED,r)),void 0!==we.path&&(we.path=String(we.path).replace(He.PCT_ENCODED,qe).replace(we.scheme?He.NOT_PATH:He.NOT_PATH_NOSCHEME,Fe).replace(He.PCT_ENCODED,r)),void 0!==we.query&&(we.query=String(we.query).replace(He.PCT_ENCODED,qe).replace(He.NOT_QUERY,Fe).replace(He.PCT_ENCODED,r)),void 0!==we.fragment&&(we.fragment=String(we.fragment).replace(He.PCT_ENCODED,qe).replace(He.NOT_FRAGMENT,Fe).replace(He.PCT_ENCODED,r)),we}function ze(we){return we.replace(/^0*(.*)/,"$1")||"0"}function ot(we,He){var qe=we.match(He.IPV4ADDRESS)||[],ut=u(qe,2)[1];return ut?ut.split(".").map(ze).join("."):we}function B(we,He){var qe=we.match(He.IPV6ADDRESS)||[],ut=u(qe,3),Ue=ut[1],Dn=ut[2];if(Ue){for(var ii=Ue.toLowerCase().split("::").reverse(),hi=u(ii,2),di=hi[0],kr=hi[1],Qr=kr?kr.split(":").map(ze):[],gi=di.split(":").map(ze),yr=He.IPV4ADDRESS.test(gi[gi.length-1]),Ee=yr?7:8,St=gi.length-Ee,Ht=Array(Ee),sn=0;sn1){var Oi=Ht.slice(0,hn.index),Bn=Ht.slice(hn.index+hn.length);ri=Oi.join(":")+"::"+Bn.join(":")}else ri=Ht.join(":");return Dn&&(ri+="%"+Dn),ri}return we}var ne=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ie=void 0==="".match(/(){0}/)[1];function Ie(we){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qe={},ut=!1!==He.iri?c:l;"suffix"===He.reference&&(we=(He.scheme?He.scheme+":":"")+"//"+we);var Ue=we.match(ne);if(Ue){ie?(qe.scheme=Ue[1],qe.userinfo=Ue[3],qe.host=Ue[4],qe.port=parseInt(Ue[5],10),qe.path=Ue[6]||"",qe.query=Ue[7],qe.fragment=Ue[8],isNaN(qe.port)&&(qe.port=Ue[5])):(qe.scheme=Ue[1]||void 0,qe.userinfo=-1!==we.indexOf("@")?Ue[3]:void 0,qe.host=-1!==we.indexOf("//")?Ue[4]:void 0,qe.port=parseInt(Ue[5],10),qe.path=Ue[6]||"",qe.query=-1!==we.indexOf("?")?Ue[7]:void 0,qe.fragment=-1!==we.indexOf("#")?Ue[8]:void 0,isNaN(qe.port)&&(qe.port=we.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ue[4]:void 0)),qe.host&&(qe.host=B(ot(qe.host,ut),ut)),qe.reference=void 0!==qe.scheme||void 0!==qe.userinfo||void 0!==qe.host||void 0!==qe.port||qe.path||void 0!==qe.query?void 0===qe.scheme?"relative":void 0===qe.fragment?"absolute":"uri":"same-document",He.reference&&"suffix"!==He.reference&&He.reference!==qe.reference&&(qe.error=qe.error||"URI is not a "+He.reference+" reference.");var Dn=fe[(He.scheme||qe.scheme||"").toLowerCase()];if(He.unicodeSupport||Dn&&Dn.unicodeSupport)tt(qe,ut);else{if(qe.host&&(He.domainHost||Dn&&Dn.domainHost))try{qe.host=oe.toASCII(qe.host.replace(ut.PCT_ENCODED,xe).toLowerCase())}catch(ii){qe.error=qe.error||"Host's domain name can not be converted to ASCII via punycode: "+ii}tt(qe,l)}Dn&&Dn.parse&&Dn.parse(qe,He)}else qe.error=qe.error||"URI can not be parsed.";return qe}var Le=/^\.\.?\//,_t=/^\/\.(\/|$)/,At=/^\/\.\.(\/|$)/,_n=/^\/?(?:.|\n)*?(?=\/|$)/;function ci(we){for(var He=[];we.length;)if(we.match(Le))we=we.replace(Le,"");else if(we.match(_t))we=we.replace(_t,"/");else if(we.match(At))we=we.replace(At,"/"),He.pop();else if("."===we||".."===we)we="";else{var qe=we.match(_n);if(!qe)throw new Error("Unexpected dot segment condition");var ut=qe[0];we=we.slice(ut.length),He.push(ut)}return He.join("")}function on(we){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qe=He.iri?c:l,ut=[],Ue=fe[(He.scheme||we.scheme||"").toLowerCase()];if(Ue&&Ue.serialize&&Ue.serialize(we,He),we.host&&!qe.IPV6ADDRESS.test(we.host)&&(He.domainHost||Ue&&Ue.domainHost))try{we.host=He.iri?oe.toUnicode(we.host):oe.toASCII(we.host.replace(qe.PCT_ENCODED,xe).toLowerCase())}catch(hi){we.error=we.error||"Host's domain name can not be converted to "+(He.iri?"Unicode":"ASCII")+" via punycode: "+hi}tt(we,qe),"suffix"!==He.reference&&we.scheme&&(ut.push(we.scheme),ut.push(":"));var Dn=function Ye(we,He){var qe=!1!==He.iri?c:l,ut=[];return void 0!==we.userinfo&&(ut.push(we.userinfo),ut.push("@")),void 0!==we.host&&ut.push(B(ot(String(we.host),qe),qe).replace(qe.IPV6ADDRESS,function(Ue,Dn,ii){return"["+Dn+(ii?"%25"+ii:"")+"]"})),"number"!=typeof we.port&&"string"!=typeof we.port||(ut.push(":"),ut.push(String(we.port))),ut.length?ut.join(""):void 0}(we,He);if(void 0!==Dn&&("suffix"!==He.reference&&ut.push("//"),ut.push(Dn),we.path&&"/"!==we.path.charAt(0)&&ut.push("/")),void 0!==we.path){var ii=we.path;He.absolutePath||Ue&&Ue.absolutePath||(ii=ci(ii)),void 0===Dn&&(ii=ii.replace(/^\/\//,"/%2F")),ut.push(ii)}return void 0!==we.query&&(ut.push("?"),ut.push(we.query)),void 0!==we.fragment&&(ut.push("#"),ut.push(we.fragment)),ut.join("")}function Fi(we,He){var qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ut={};return arguments[3]||(we=Ie(on(we,qe),qe),He=Ie(on(He,qe),qe)),!(qe=qe||{}).tolerant&&He.scheme?(ut.scheme=He.scheme,ut.userinfo=He.userinfo,ut.host=He.host,ut.port=He.port,ut.path=ci(He.path||""),ut.query=He.query):(void 0!==He.userinfo||void 0!==He.host||void 0!==He.port?(ut.userinfo=He.userinfo,ut.host=He.host,ut.port=He.port,ut.path=ci(He.path||""),ut.query=He.query):(He.path?("/"===He.path.charAt(0)?ut.path=ci(He.path):(ut.path=void 0===we.userinfo&&void 0===we.host&&void 0===we.port||we.path?we.path?we.path.slice(0,we.path.lastIndexOf("/")+1)+He.path:He.path:"/"+He.path,ut.path=ci(ut.path)),ut.query=He.query):(ut.path=we.path,ut.query=void 0!==He.query?He.query:we.query),ut.userinfo=we.userinfo,ut.host=we.host,ut.port=we.port),ut.scheme=we.scheme),ut.fragment=He.fragment,ut}function Or(we,He){return we&&we.toString().replace(He&&He.iri?c.PCT_ENCODED:l.PCT_ENCODED,xe)}var Ai={scheme:"http",domainHost:!0,parse:function(we,He){return we.host||(we.error=we.error||"HTTP URIs must have a host."),we},serialize:function(we,He){var qe="https"===String(we.scheme).toLowerCase();return we.port!==(qe?443:80)&&""!==we.port||(we.port=void 0),we.path||(we.path="/"),we}},Wr={scheme:"https",domainHost:Ai.domainHost,parse:Ai.parse,serialize:Ai.serialize};function jo(we){return"boolean"==typeof we.secure?we.secure:"wss"===String(we.scheme).toLowerCase()}var Nn={scheme:"ws",domainHost:!0,parse:function(we,He){var qe=we;return qe.secure=jo(qe),qe.resourceName=(qe.path||"/")+(qe.query?"?"+qe.query:""),qe.path=void 0,qe.query=void 0,qe},serialize:function(we,He){if(we.port!==(jo(we)?443:80)&&""!==we.port||(we.port=void 0),"boolean"==typeof we.secure&&(we.scheme=we.secure?"wss":"ws",we.secure=void 0),we.resourceName){var qe=we.resourceName.split("?"),ut=u(qe,2),Ue=ut[0],Dn=ut[1];we.path=Ue&&"/"!==Ue?Ue:void 0,we.query=Dn,we.resourceName=void 0}return we.fragment=void 0,we}},xt={scheme:"wss",domainHost:Nn.domainHost,parse:Nn.parse,serialize:Nn.serialize},ui={},Ni="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Cr="[0-9A-Fa-f]",xo=e(e("%[EFef]"+Cr+"%"+Cr+Cr+"%"+Cr+Cr)+"|"+e("%[89A-Fa-f]"+Cr+"%"+Cr+Cr)+"|"+e("%"+Cr+Cr)),gt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ai=new RegExp(Ni,"g"),bi=new RegExp(xo,"g"),Er=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',gt),"g"),qr=new RegExp(n("[^]",Ni,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ao=qr;function Js(we){var He=xe(we);return He.match(ai)?He:we}var vr={scheme:"mailto",parse:function(we,He){var qe=we,ut=qe.to=qe.path?qe.path.split(","):[];if(qe.path=void 0,qe.query){for(var Ue=!1,Dn={},ii=qe.query.split("&"),hi=0,di=ii.length;hi string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=function(){function E(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,E),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,F=this.opts=Ze(Ze({},F),function y(E){var F,N,Y,V,oe,fe,Fe,xe,tt,ze,ot,B,ne,ie,Ie,Ye,Le,_t,At,_n,ci,on,Fi,pn,Nr,$r=E.strict,wr=null===(F=E.code)||void 0===F?void 0:F.optimize,Or=!0===wr||void 0===wr?1:wr||0,Ai=null!==(Y=null===(N=E.code)||void 0===N?void 0:N.regExp)&&void 0!==Y?Y:f,Wr=null!==(V=E.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(fe=null!==(oe=E.strictSchema)&&void 0!==oe?oe:$r)||void 0===fe||fe,strictNumbers:null===(xe=null!==(Fe=E.strictNumbers)&&void 0!==Fe?Fe:$r)||void 0===xe||xe,strictTypes:null!==(ze=null!==(tt=E.strictTypes)&&void 0!==tt?tt:$r)&&void 0!==ze?ze:"log",strictTuples:null!==(B=null!==(ot=E.strictTuples)&&void 0!==ot?ot:$r)&&void 0!==B?B:"log",strictRequired:null!==(ie=null!==(ne=E.strictRequired)&&void 0!==ne?ne:$r)&&void 0!==ie&&ie,code:E.code?Ze(Ze({},E.code),{},{optimize:Or,regExp:Ai}):{optimize:Or,regExp:Ai},loopRequired:null!==(Ie=E.loopRequired)&&void 0!==Ie?Ie:200,loopEnum:null!==(Ye=E.loopEnum)&&void 0!==Ye?Ye:200,meta:null===(Le=E.meta)||void 0===Le||Le,messages:null===(_t=E.messages)||void 0===_t||_t,inlineRefs:null===(At=E.inlineRefs)||void 0===At||At,schemaId:null!==(_n=E.schemaId)&&void 0!==_n?_n:"$id",addUsedSchema:null===(ci=E.addUsedSchema)||void 0===ci||ci,validateSchema:null===(on=E.validateSchema)||void 0===on||on,validateFormats:null===(Fi=E.validateFormats)||void 0===Fi||Fi,unicodeRegExp:null===(pn=E.unicodeRegExp)||void 0===pn||pn,int32range:null===(Nr=E.int32range)||void 0===Nr||Nr,uriResolver:Wr}}(F));var N=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:N.es5,lines:N.lines}),this.logger=function U(E){if(!1===E)return z;if(void 0===E)return console;if(E.log&&E.warn&&E.error)return E;throw new Error("logger must implement log, warn and error methods")}(F.logger);var oe=F.validateFormats;F.validateFormats=!1,this.RULES=(0,o.getRules)(),C.call(this,g,F,"NOT SUPPORTED"),C.call(this,v,F,"DEPRECATED","warn"),this._metaOpts=R.call(this),F.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),F.keywords&&G.call(this,F.keywords),"object"==bn(F.meta)&&this.addMetaSchema(F.meta),M.call(this),F.validateFormats=oe}return Se(E,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var F=this.opts,N=F.$data,Y=F.meta,V=F.schemaId,oe=d;"id"===V&&((oe=Ze({},d)).id=oe.$id,delete oe.$id),Y&&N&&this.addMetaSchema(oe,oe[V],!1)}},{key:"defaultMeta",value:function(){var F=this.opts,N=F.meta,Y=F.schemaId;return this.opts.defaultMeta="object"==bn(N)?N[Y]||N:void 0}},{key:"validate",value:function(F,N){var Y;if("string"==typeof F){if(!(Y=this.getSchema(F)))throw new Error('no schema with key or ref "'.concat(F,'"'))}else Y=this.compile(F);var V=Y(N);return"$async"in Y||(this.errors=Y.errors),V}},{key:"compile",value:function(F,N){var Y=this._addSchema(F,N);return Y.validate||this._compileSchemaEnv(Y)}},{key:"compileAsync",value:function(F,N){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var Y=this.opts.loadSchema;return V.call(this,F,N);function V(Ie,Ye){return oe.apply(this,arguments)}function oe(){return(oe=Zi(vn().mark(function Ie(Ye,Le){var _t;return vn().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,fe.call(this,Ye.$schema);case 2:return _t=this._addSchema(Ye,Le),At.abrupt("return",_t.validate||xe.call(this,_t));case 4:case"end":return At.stop()}},Ie,this)}))).apply(this,arguments)}function fe(Ie){return Fe.apply(this,arguments)}function Fe(){return(Fe=Zi(vn().mark(function Ie(Ye){return vn().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!Ye||this.getSchema(Ye)){Le.next=3;break}return Le.next=3,V.call(this,{$ref:Ye},!0);case 3:case"end":return Le.stop()}},Ie,this)}))).apply(this,arguments)}function xe(Ie){return tt.apply(this,arguments)}function tt(){return(tt=Zi(vn().mark(function Ie(Ye){return vn().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.prev=0,Le.abrupt("return",this._compileSchemaEnv(Ye));case 4:if(Le.prev=4,Le.t0=Le.catch(0),Le.t0 instanceof r.default){Le.next=8;break}throw Le.t0;case 8:return ze.call(this,Le.t0),Le.next=11,ot.call(this,Le.t0.missingSchema);case 11:return Le.abrupt("return",xe.call(this,Ye));case 12:case"end":return Le.stop()}},Ie,this,[[0,4]])}))).apply(this,arguments)}function ze(Ie){var Ye=Ie.missingSchema,Le=Ie.missingRef;if(this.refs[Ye])throw new Error("AnySchema ".concat(Ye," is loaded but ").concat(Le," cannot be resolved"))}function ot(Ie){return B.apply(this,arguments)}function B(){return(B=Zi(vn().mark(function Ie(Ye){var Le;return vn().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,ne.call(this,Ye);case 2:if(Le=_t.sent,this.refs[Ye]){_t.next=6;break}return _t.next=6,fe.call(this,Le.$schema);case 6:this.refs[Ye]||this.addSchema(Le,Ye,N);case 7:case"end":return _t.stop()}},Ie,this)}))).apply(this,arguments)}function ne(Ie){return ie.apply(this,arguments)}function ie(){return(ie=Zi(vn().mark(function Ie(Ye){var Le;return vn().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(!(Le=this._loading[Ye])){_t.next=3;break}return _t.abrupt("return",Le);case 3:return _t.prev=3,_t.next=6,this._loading[Ye]=Y(Ye);case 6:return _t.abrupt("return",_t.sent);case 7:return _t.prev=7,delete this._loading[Ye],_t.finish(7);case 10:case"end":return _t.stop()}},Ie,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(F,N,Y){var V,oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(F)){var fe,Fe=Re(F);try{for(Fe.s();!(fe=Fe.n()).done;)this.addSchema(fe.value,void 0,Y,oe)}catch(ze){Fe.e(ze)}finally{Fe.f()}return this}if("object"===bn(F)){var tt=this.opts.schemaId;if(void 0!==(V=F[tt])&&"string"!=typeof V)throw new Error("schema ".concat(tt," must be string"))}return N=(0,l.normalizeId)(N||V),this._checkUnique(N),this.schemas[N]=this._addSchema(F,Y,N,oe,!0),this}},{key:"addMetaSchema",value:function(F,N){return this.addSchema(F,N,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(F,N){if("boolean"==typeof F)return!0;var Y;if(void 0!==(Y=F.$schema)&&"string"!=typeof Y)throw new Error("$schema must be a string");if(!(Y=Y||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(Y,F);if(!V&&N){var oe="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(oe);this.logger.error(oe)}return V}},{key:"getSchema",value:function(F){for(var N;"string"==typeof(N=S.call(this,F));)F=N;if(void 0===N){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(N=s.resolveSchema.call(this,V,F)))return;this.refs[F]=N}return N.validate||this._compileSchemaEnv(N)}},{key:"removeSchema",value:function(F){if(F instanceof RegExp)return this._removeAllSchemas(this.schemas,F),this._removeAllSchemas(this.refs,F),this;switch(bn(F)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var N=S.call(this,F);return"object"==bn(N)&&this._cache.delete(N.schema),delete this.schemas[F],delete this.refs[F],this;case"object":this._cache.delete(F);var V=F[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(F){var N,Y=Re(F);try{for(Y.s();!(N=Y.n()).done;)this.addKeyword(N.value)}catch(oe){Y.e(oe)}finally{Y.f()}return this}},{key:"addKeyword",value:function(F,N){var Y,V=this;if("string"==typeof F)Y=F,"object"==bn(N)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),N.keyword=Y);else{if("object"!=bn(F)||void 0!==N)throw new Error("invalid addKeywords parameters");if(Y=(N=F).keyword,Array.isArray(Y)&&!Y.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(re.call(this,Y,N),!N)return(0,u.eachItem)(Y,function(fe){return L.call(V,fe)}),this;Z.call(this,N);var oe=Ze(Ze({},N),{},{type:(0,c.getJSONTypes)(N.type),schemaType:(0,c.getJSONTypes)(N.schemaType)});return(0,u.eachItem)(Y,0===oe.type.length?function(fe){return L.call(V,fe,oe)}:function(fe){return oe.type.forEach(function(Fe){return L.call(V,fe,oe,Fe)})}),this}},{key:"getKeyword",value:function(F){var N=this.RULES.all[F];return"object"==bn(N)?N.definition:!!N}},{key:"removeKeyword",value:function(F){var N=this.RULES;delete N.keywords[F],delete N.all[F];var Y,V=Re(N.rules);try{for(V.s();!(Y=V.n()).done;){var oe=Y.value,fe=oe.rules.findIndex(function(Fe){return Fe.keyword===F});fe>=0&&oe.rules.splice(fe,1)}}catch(Fe){V.e(Fe)}finally{V.f()}return this}},{key:"addFormat",value:function(F,N){return"string"==typeof N&&(N=new RegExp(N)),this.formats[F]=N,this}},{key:"errorsText",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Y=N.separator,V=void 0===Y?", ":Y,oe=N.dataVar,fe=void 0===oe?"data":oe;return F&&0!==F.length?F.map(function(Fe){return"".concat(fe).concat(Fe.instancePath," ").concat(Fe.message)}).reduce(function(Fe,xe){return Fe+V+xe}):"No errors"}},{key:"$dataMetaSchema",value:function(F,N){var Y=this.RULES.all;F=JSON.parse(JSON.stringify(F));var V,oe=Re(N);try{for(oe.s();!(V=oe.n()).done;){var fe,Fe=V.value.split("/").slice(1),xe=F,tt=Re(Fe);try{for(tt.s();!(fe=tt.n()).done;)xe=xe[fe.value]}catch(ie){tt.e(ie)}finally{tt.f()}for(var ze in Y){var ot=Y[ze];if("object"==bn(ot)){var ne=xe[ze];ot.definition.$data&&ne&&(xe[ze]=he(ne))}}}}catch(ie){oe.e(ie)}finally{oe.f()}return F}},{key:"_removeAllSchemas",value:function(F,N){for(var Y in F){var V=F[Y];N&&!N.test(Y)||("string"==typeof V?delete F[Y]:V&&!V.meta&&(this._cache.delete(V.schema),delete F[Y]))}}},{key:"_addSchema",value:function(F,N,Y){var V,oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,fe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,Fe=this.opts.schemaId;if("object"==bn(F))V=F[Fe];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof F)throw new Error("schema must be object or boolean")}var xe=this._cache.get(F);if(void 0!==xe)return xe;Y=(0,l.normalizeId)(V||Y);var tt=l.getSchemaRefs.call(this,F,Y);return xe=new s.SchemaEnv({schema:F,schemaId:Fe,meta:N,baseId:Y,localRefs:tt}),this._cache.set(xe.schema,xe),fe&&!Y.startsWith("#")&&(Y&&this._checkUnique(Y),this.refs[Y]=xe),oe&&this.validateSchema(F,!0),xe}},{key:"_checkUnique",value:function(F){if(this.schemas[F]||this.refs[F])throw new Error('schema with key or id "'.concat(F,'" already exists'))}},{key:"_compileSchemaEnv",value:function(F){if(F.meta?this._compileMetaSchema(F):s.compileSchema.call(this,F),!F.validate)throw new Error("ajv implementation error");return F.validate}},{key:"_compileMetaSchema",value:function(F){var N=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,F)}finally{this.opts=N}}}]),E}();function C(E,F,N){var Y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in E){var oe=V;oe in F&&this.logger[Y]("".concat(N,": option ").concat(V,". ").concat(E[oe]))}}function S(E){return E=(0,l.normalizeId)(E),this.schemas[E]||this.refs[E]}function M(){var E=this.opts.schemas;if(E)if(Array.isArray(E))this.addSchema(E);else for(var F in E)this.addSchema(E[F],F)}function $(){for(var E in this.opts.formats){var F=this.opts.formats[E];F&&this.addFormat(E,F)}}function G(E){if(Array.isArray(E))this.addVocabulary(E);else for(var F in this.logger.warn("keywords option as map is deprecated, pass array"),E){var N=E[F];N.keyword||(N.keyword=F),this.addKeyword(N)}}function R(){var E,F=Ze({},this.opts),N=Re(p);try{for(N.s();!(E=N.n()).done;)delete F[E.value]}catch(Y){N.e(Y)}finally{N.f()}return F}t.default=_,_.ValidationError=i.default,_.MissingRefError=r.default;var z={log:function(){},warn:function(){},error:function(){}},q=/^[a-z_$][a-z0-9_$:-]*$/i;function re(E,F){var N=this.RULES;if((0,u.eachItem)(E,function(Y){if(N.keywords[Y])throw new Error("Keyword ".concat(Y," is already defined"));if(!q.test(Y))throw new Error("Keyword ".concat(Y," has invalid name"))}),F&&F.$data&&!("code"in F)&&!("validate"in F))throw new Error('$data keyword must have "code" or "validate" function')}function L(E,F,N){var Y,V=this,oe=F?.post;if(N&&oe)throw new Error('keyword with "post" flag cannot have "type"');var fe=this.RULES,Fe=oe?fe.post:fe.rules.find(function(tt){return tt.type===N});if(Fe||fe.rules.push(Fe={type:N,rules:[]}),fe.keywords[E]=!0,F){var xe={keyword:E,definition:Ze(Ze({},F),{},{type:(0,c.getJSONTypes)(F.type),schemaType:(0,c.getJSONTypes)(F.schemaType)})};F.before?X.call(this,Fe,xe,F.before):Fe.rules.push(xe),fe.all[E]=xe,null===(Y=F.implements)||void 0===Y||Y.forEach(function(tt){return V.addKeyword(tt)})}}function X(E,F,N){var Y=E.rules.findIndex(function(V){return V.keyword===N});Y>=0?E.rules.splice(Y,0,F):(E.rules.push(F),this.logger.warn("rule ".concat(N," is not defined")))}function Z(E){var F=E.metaSchema;void 0!==F&&(E.$data&&this.opts.$data&&(F=he(F)),E.validateSchema=this.compile(F,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function he(E){return{anyOf:[E,H]}}}(Xpe);var IP={},FP={},NP={};Object.defineProperty(NP,"__esModule",{value:!0}),NP.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.callRef=ig.getValidate=void 0;var kit=TP(),wme=dd(),ec=xr(),U0=Sp(),Cme=Zl,jD=Hr,Sit={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return PD(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return PD(t,(0,ec._)($Y||($Y=Ae(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=Cme.resolveRef.call(l,c,r,e);if(void 0===p)throw new kit.default(i.opts.uriResolver,r,e);return p instanceof Cme.SchemaEnv?(g=kme(t,m=p),void PD(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,ec.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:ec.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function kme(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,ec._)(BY||(BY=Ae(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function PD(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?U0.default.this:ec.nil;function c(d){var h=(0,ec._)(zY||(zY=Ae(["",".errors"])),d);r.assign(U0.default.vErrors,(0,ec._)(UY||(UY=Ae([""," === null ? "," : ",".concat(",")"])),U0.default.vErrors,h,U0.default.vErrors,h)),r.assign(U0.default.errors,(0,ec._)(GY||(GY=Ae(["",".length"])),U0.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=jD.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,ec._)(WY||(WY=Ae(["",".evaluated.props"])),d));o.props=jD.mergeEvaluated.props(r,p,o.props,ec.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=jD.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,ec._)(qY||(qY=Ae(["",".evaluated.items"])),d));o.items=jD.mergeEvaluated.items(r,m,o.items,ec.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,ec._)(VY||(VY=Ae(["await ",""])),(0,wme.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,ec._)(HY||(HY=Ae(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,wme.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}ig.getValidate=kme,ig.callRef=PD,ig.default=Sit,Object.defineProperty(FP,"__esModule",{value:!0}),FP.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",NP.default,ig.default];var OP={},jP={};Object.defineProperty(jP,"__esModule",{value:!0});var LD=xr(),Tp=LD.operators,RD={maximum:{okStr:"<=",ok:Tp.LTE,fail:Tp.GT},minimum:{okStr:">=",ok:Tp.GTE,fail:Tp.LT},exclusiveMaximum:{okStr:"<",ok:Tp.LT,fail:Tp.GTE},exclusiveMinimum:{okStr:">",ok:Tp.GT,fail:Tp.LTE}},Eit={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,LD.str)(XY||(XY=Ae(["must be "," ",""])),RD[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,LD._)(YY||(YY=Ae(["{comparison: ",", limit: ","}"])),RD[n].okStr,e)}},Ait={keyword:Object.keys(RD),type:"number",schemaType:"number",$data:!0,error:Eit,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,LD._)(JY||(JY=Ae([""," "," "," || isNaN(",")"])),e,RD[n].fail,i,e))}};jP.default=Ait;var PP={};Object.defineProperty(PP,"__esModule",{value:!0});var N_=xr(),Mit={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,N_.str)(KY||(KY=Ae(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,N_._)(QY||(QY=Ae(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,N_._)(ZY||(ZY=Ae(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,N_._)(eJ||(eJ=Ae([""," !== parseInt(",")"])),o,o);t.fail$data((0,N_._)(tJ||(tJ=Ae(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};PP.default=Mit;var LP={},RP={};function Sme(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(P_.nil,g);else{var v,y=Re(e);try{for(y.s();!(v=y.n()).done;)(0,j_.checkReportMissingProp)(t,v.value)}catch(C){y.e(C)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return C=y,t.setParams({missingProperty:_=v}),void n.forOf(_,i,function(){n.assign(C,(0,j_.propertyInData)(n,r,_,a.ownProperties)),n.if((0,P_.not)(C),function(){t.error(),n.break()})},P_.nil);var _,C}),t.ok(y)}else n.if((0,j_.checkMissingProp)(t,e,v)),(0,j_.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=Re(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,$it.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,j_.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};VP.default=Bit;var HP={};Object.defineProperty(HP,"__esModule",{value:!0});var L_=xr(),Vit={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,L_.str)(gJ||(gJ=Ae(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,L_._)(vJ||(vJ=Ae(["{limit: ","}"])),n)}},Hit={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Vit,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?L_.operators.GT:L_.operators.LT;t.fail$data((0,L_._)(yJ||(yJ=Ae(["",".length "," ",""])),e,r,i))}};HP.default=Hit;var zP={},R_={};Object.defineProperty(R_,"__esModule",{value:!0});var Dme=dme;Dme.code='require("ajv/dist/runtime/equal").default',R_.default=Dme,Object.defineProperty(zP,"__esModule",{value:!0});var UP=I_,Wa=xr(),zit=Hr,Uit=R_,Git={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Wa.str)(bJ||(bJ=Ae(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Wa._)(_J||(_J=Ae(["{i: ",", j: ","}"])),e,i)}},Wit={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Git,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,UP.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Wa._)(wJ||(wJ=Ae(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Wa._)(CJ||(CJ=Ae([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Wa._)(xJ||(xJ=Ae([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,UP.checkDataTypes)(c,p,a.opts.strictNumbers,UP.DataType.Wrong),g=n.const("indices",(0,Wa._)(kJ||(kJ=Ae(["{}"]))));n.for((0,Wa._)(SJ||(SJ=Ae([";","--;"])),h),function(){n.let(p,(0,Wa._)(DJ||(DJ=Ae(["","[","]"])),e,h)),n.if(m,(0,Wa._)(TJ||(TJ=Ae(["continue"])))),c.length>1&&n.if((0,Wa._)(EJ||(EJ=Ae(["typeof ",' == "string"'])),p),(0,Wa._)(AJ||(AJ=Ae(["",' += "_"'])),p)),n.if((0,Wa._)(MJ||(MJ=Ae(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Wa._)(IJ||(IJ=Ae(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Wa._)(FJ||(FJ=Ae(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,zit.useFunc)(n,Uit.default),m=n.name("outer");n.label(m).for((0,Wa._)(NJ||(NJ=Ae([";","--;"])),h),function(){return n.for((0,Wa._)(OJ||(OJ=Ae([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Wa._)(jJ||(jJ=Ae(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};zP.default=Wit;var GP={};Object.defineProperty(GP,"__esModule",{value:!0});var WP=xr(),qit=Hr,Xit=R_,Yit={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,WP._)(PJ||(PJ=Ae(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==bn(o)?t.fail$data((0,WP._)(LJ||(LJ=Ae(["!","(",", ",")"])),(0,qit.useFunc)(n,Xit.default),e,r)):t.fail((0,WP._)(RJ||(RJ=Ae([""," !== ",""])),o,e))}};GP.default=Yit;var qP={};Object.defineProperty(qP,"__esModule",{value:!0});var $_=xr(),Jit=Hr,Kit=R_,Qit={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,$_._)($J||($J=Ae(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,Jit.useFunc)(n,Kit.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,$_._)(BJ||(BJ=Ae(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=$_.or.apply(void 0,si(r.map(function(h,f){return p=d,"object"===bn(g=r[m=f])&&null!==g?(0,$_._)(VJ||(VJ=Ae(["","(",", ","[","])"])),u(),e,p,m):(0,$_._)(HJ||(HJ=Ae([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};qP.default=Qit,Object.defineProperty(OP,"__esModule",{value:!0}),OP.default=[jP.default,PP.default,LP.default,$P.default,BP.default,VP.default,HP.default,zP.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},GP.default,qP.default];var XP={},G0={};Object.defineProperty(G0,"__esModule",{value:!0}),G0.validateAdditionalItems=void 0;var og=xr(),YP=Hr,crt={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,og.str)(zJ||(zJ=Ae(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,og._)(UJ||(UJ=Ae(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Tme(t,i):(0,YP.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Tme(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,og._)(GJ||(GJ=Ae(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,og._)(WJ||(WJ=Ae([""," <= ",""])),a,n.length));else if("object"==bn(i)&&!(0,YP.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,og._)(qJ||(qJ=Ae([""," <= ",""])),a,n.length));e.if((0,og.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:YP.Type.Num},c),s.allErrors||e.if((0,og.not)(c),function(){return e.break()})});var c}),t.ok(l)}}G0.validateAdditionalItems=Tme,G0.default=crt;var JP={},W0={};Object.defineProperty(W0,"__esModule",{value:!0}),W0.validateTuple=void 0;var Eme=xr(),BD=Hr,urt=dd(),drt={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Ame(t,"additionalItems",n);e.items=!0,(0,BD.alwaysValidSchema)(e,n)||t.ok((0,urt.validateArray)(t))}};function Ame(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,BD.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=BD.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Eme._)(XJ||(XJ=Ae(["",".length"])),o));e.forEach(function(d,h){(0,BD.alwaysValidSchema)(a,d)||(i.if((0,Eme._)(YJ||(YJ=Ae([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}W0.validateTuple=Ame,W0.default=drt,Object.defineProperty(JP,"__esModule",{value:!0});var hrt=W0,frt={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,hrt.validateTuple)(t,"items")}};JP.default=frt;var KP={};Object.defineProperty(KP,"__esModule",{value:!0});var Mme=xr(),prt=Hr,mrt=dd(),grt=G0,vrt={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Mme.str)(JJ||(JJ=Ae(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Mme._)(KJ||(KJ=Ae(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,prt.alwaysValidSchema)(i,n)||(r?(0,grt.validateAdditionalItems)(t,r):t.ok((0,mrt.validateArray)(t)))}};KP.default=vrt;var QP={};Object.defineProperty(QP,"__esModule",{value:!0});var du=xr(),VD=Hr,yrt={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,du.str)(QJ||(QJ=Ae(["must contain at least "," valid item(s)"])),e):(0,du.str)(ZJ||(ZJ=Ae(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,du._)(eK||(eK=Ae(["{minContains: ","}"])),e):(0,du._)(tK||(tK=Ae(["{minContains: ",", maxContains: ","}"])),e,i)}},brt={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:yrt,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,du._)(nK||(nK=Ae(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,VD.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,VD.alwaysValidSchema)(a,r)){var d=(0,du._)(iK||(iK=Ae([""," >= ",""])),u,n);return void 0!==e&&(d=(0,du._)(rK||(rK=Ae([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,du._)(oK||(oK=Ae(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,VD.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,du._)(sK||(sK=Ae(["","++"])),v)),void(void 0===e?i.if((0,du._)(aK||(aK=Ae([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,du._)(lK||(lK=Ae([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,du._)(cK||(cK=Ae([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:VD.Type.Num,compositeRule:!0},m),g()})}}};QP.default=brt;var Ime={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=xr(),e=Hr,i=dd();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(uK||(uK=Ae(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(dK||(dK=Ae(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Un(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,_=Re(g);try{for(_.s();!(y=_.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(S){_.e(S)}finally{_.f()}}):(c.if((0,n._)(hK||(hK=Ae([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Ime);var ZP={};Object.defineProperty(ZP,"__esModule",{value:!0});var Fme=xr(),_rt=Hr,xrt={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Fme._)(fK||(fK=Ae(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,_rt.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Fme.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};ZP.default=xrt;var HD={};Object.defineProperty(HD,"__esModule",{value:!0});var zD=dd(),pd=xr(),wrt=Sp(),UD=Hr,Crt={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,pd._)(pK||(pK=Ae(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,UD.alwaysValidSchema)(s,e)){var c=(0,zD.allSchemaProperties)(i.properties),u=(0,zD.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,UD.schemaRefOrVal)(s,i.properties,"properties");g=(0,zD.isOwnProperty)(n,v,m)}else g=c.length?pd.or.apply(void 0,si(c.map(function(y){return(0,pd._)(gK||(gK=Ae([""," === ",""])),m,y)}))):pd.nil;return u.length&&(g=pd.or.apply(void 0,[g].concat(si(u.map(function(y){return(0,pd._)(vK||(vK=Ae(["",".test(",")"])),(0,zD.usePattern)(t,y),m)}))))),(0,pd.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,pd._)(mK||(mK=Ae([""," === ",""])),o,wrt.default.errors))}function d(p){n.code((0,pd._)(yK||(yK=Ae(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==bn(e)&&!(0,UD.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,pd.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,pd.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:UD.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};HD.default=Crt;var eL={};Object.defineProperty(eL,"__esModule",{value:!0});var krt=MD(),Nme=dd(),tL=Hr,Ome=HD,Srt={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Ome.default.code(new krt.KeywordCxt(o,Ome.default,"additionalProperties"));var s,a=(0,Nme.allSchemaProperties)(e),l=Re(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=tL.mergeEvaluated.props(n,(0,tL.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,tL.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=Re(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,Nme.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};eL.default=Srt;var nL={};Object.defineProperty(nL,"__esModule",{value:!0});var jme=dd(),GD=xr(),Pme=Hr,Lme=Hr,Drt={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,jme.allSchemaProperties)(e),l=a.filter(function(p){return(0,Pme.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof GD.Name||(o.props=(0,Lme.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=Re(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,Pme.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,GD._)(bK||(bK=Ae(["",".test(",")"])),(0,jme.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Lme.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,GD._)(_K||(_K=Ae(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,GD.not)(u),function(){return n.break()})})})}}};nL.default=Drt;var iL={};Object.defineProperty(iL,"__esModule",{value:!0});var Trt=Hr,Ert={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,Trt.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};iL.default=Ert;var rL={};Object.defineProperty(rL,"__esModule",{value:!0});var Art={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dd().validateUnion,error:{message:"must match a schema in anyOf"}};rL.default=Art;var oL={};Object.defineProperty(oL,"__esModule",{value:!0});var WD=xr(),Mrt=Hr,Irt={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,WD._)(xK||(xK=Ae(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Mrt.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,WD._)(wK||(wK=Ae([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,WD._)(CK||(CK=Ae(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,WD.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};oL.default=Irt;var sL={};Object.defineProperty(sL,"__esModule",{value:!0});var Frt=Hr,Nrt={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Frt.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};sL.default=Nrt;var aL={};Object.defineProperty(aL,"__esModule",{value:!0});var qD=xr(),Rme=Hr,Ort={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,qD.str)(kK||(kK=Ae(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,qD._)(SK||(SK=Ae(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Rme.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=$me(i,"then"),o=$me(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,qD.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,qD._)(DK||(DK=Ae(["",""])),d)):t.setParams({ifClause:d})}}}};function $me(t,n){var e=t.schema[n];return void 0!==e&&!(0,Rme.alwaysValidSchema)(t,e)}aL.default=Ort;var lL={};Object.defineProperty(lL,"__esModule",{value:!0});var jrt=Hr,Prt={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,jrt.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};lL.default=Prt,Object.defineProperty(XP,"__esModule",{value:!0});var Lrt=G0,Rrt=JP,$rt=W0,Brt=KP,Vrt=QP,Hrt=Ime,zrt=ZP,Urt=HD,Grt=eL,Wrt=nL,qrt=iL,Xrt=rL,Yrt=oL,Jrt=sL,Krt=aL,Qrt=lL;XP.default=function(){var n=[qrt.default,Xrt.default,Yrt.default,Jrt.default,Krt.default,Qrt.default,zrt.default,Urt.default,Hrt.default,Grt.default,Wrt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Rrt.default,Brt.default):n.push(Lrt.default,$rt.default),n.push(Vrt.default),n};var cL={},uL={};Object.defineProperty(uL,"__esModule",{value:!0});var js=xr(),Zrt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,js.str)(TK||(TK=Ae(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,js._)(EK||(EK=Ae(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,js._)(AK||(AK=Ae(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,js._)(MK||(MK=Ae(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,js._)(IK||(IK=Ae(["",'.type || "string"'])),f)).assign(m,(0,js._)(FK||(FK=Ae(["",".validate"])),f))},function(){return e.assign(p,(0,js._)(NK||(NK=Ae(['"string"'])))).assign(m,f)}),t.fail$data((0,js.or)(!1===l.strictSchema?js.nil:(0,js._)(OK||(OK=Ae([""," && !",""])),s,m),(g=u.$async?(0,js._)(jK||(jK=Ae(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,js._)(PK||(PK=Ae(["","(",")"])),m,i),v=(0,js._)(LK||(LK=Ae(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,js._)(RK||(RK=Ae([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Un(function(v){var y=v instanceof RegExp?(0,js.regexpCode)(v):l.code.formats?(0,js._)($K||($K=Ae(["","",""])),l.code.formats,(0,js.getProperty)(o)):void 0,_=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=bn(v)||v instanceof RegExp?["string",v,_]:[v.type||"string",v.validate,(0,js._)(BK||(BK=Ae(["",".validate"])),_)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==bn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,js._)(VK||(VK=Ae(["await ","(",")"])),g,i)}return(0,js._)("function"==typeof m?HK||(HK=Ae(["","(",")"])):zK||(zK=Ae(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};uL.default=Zrt,Object.defineProperty(cL,"__esModule",{value:!0}),cL.default=[uL.default];var q0={};Object.defineProperty(q0,"__esModule",{value:!0}),q0.contentVocabulary=q0.metadataVocabulary=void 0,q0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],q0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(IP,"__esModule",{value:!0});var iot=cL,Bme=q0,rot=[FP.default,OP.default,(0,XP.default)(),iot.default,Bme.metadataVocabulary,Bme.contentVocabulary];IP.default=rot;var dL={},Vme={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(Vme),Object.defineProperty(dL,"__esModule",{value:!0});var X0=xr(),hL=Vme,Hme=Zl,oot=Hr,sot={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===hL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,X0._)(UK||(UK=Ae(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,X0._)(GK||(GK=Ae(["","",""])),e,(0,X0.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,X0.Name),h}n.if((0,X0._)(WK||(WK=Ae(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=C(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",_="Expref",C="Pipe",$="EQ",G="GT",R="LT",z="GTE",U="LTE",q="NE",re="Flatten",L="Star",X="Filter",Z="Dot",he="Lbrace",E="Lbracket",F="Lparen",N="Literal",Y={".":Z,"*":L,",":p,":":m,"{":he,"}":g,"]":h,"(":F,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},oe={" ":!0,"\t":!0,"\n":!0};function fe(B){return B>="0"&&B<="9"||"-"===B}function Fe(){}Fe.prototype={tokenize:function(B){var ne,ie,Ie,Ye,Le=[];for(this._current=0;this._current="a"&&Ye<="z"||Ye>="A"&&Ye<="Z"||"_"===Ye)ne=this._current,ie=this._consumeUnquotedIdentifier(B),Le.push({type:u,value:ie,start:ne});else if(void 0!==Y[B[this._current]])Le.push({type:Y[B[this._current]],value:B[this._current],start:this._current}),this._current++;else if(fe(B[this._current]))Ie=this._consumeNumber(B),Le.push(Ie);else if("["===B[this._current])Ie=this._consumeLBracket(B),Le.push(Ie);else if('"'===B[this._current])ne=this._current,ie=this._consumeQuotedIdentifier(B),Le.push({type:d,value:ie,start:ne});else if("'"===B[this._current])ne=this._current,ie=this._consumeRawStringLiteral(B),Le.push({type:N,value:ie,start:ne});else if("`"===B[this._current]){ne=this._current;var _t=this._consumeLiteral(B);Le.push({type:N,value:_t,start:ne})}else if(void 0!==V[B[this._current]])Le.push(this._consumeOperator(B));else if(void 0!==oe[B[this._current]])this._current++;else if("&"===B[this._current])ne=this._current,this._current++,"&"===B[this._current]?(this._current++,Le.push({type:"And",value:"&&",start:ne})):Le.push({type:_,value:"&",start:ne});else{if("|"!==B[this._current]){var At=new Error("Unknown character:"+B[this._current]);throw At.name="LexerError",At}ne=this._current,this._current++,"|"===B[this._current]?(this._current++,Le.push({type:"Or",value:"||",start:ne})):Le.push({type:C,value:"|",start:ne})}return Le},_consumeUnquotedIdentifier:function(B){var ne,ie=this._current;for(this._current++;this._current="a"&&ne<="z"||ne>="A"&&ne<="Z"||ne>="0"&&ne<="9"||"_"===ne);)this._current++;return B.slice(ie,this._current)},_consumeQuotedIdentifier:function(B){var ne=this._current;this._current++;for(var ie=B.length;'"'!==B[this._current]&&this._current"===ie?"="===B[this._current]?(this._current++,{type:z,value:">=",start:ne}):{type:G,value:">",start:ne}:"="===ie&&"="===B[this._current]?(this._current++,{type:$,value:"==",start:ne}):void 0},_consumeLiteral:function(B){this._current++;for(var ne,ie=this._current,Ie=B.length;"`"!==B[this._current]&&this._current=0||["true","false","null"].indexOf(B)>=0)return!0;if(!("-0123456789".indexOf(B[0])>=0))return!1;try{return JSON.parse(B),!0}catch{return!1}}};var xe={};function tt(){}function ze(B){this.runtime=B}function ot(B){this._interpreter=B,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}xe.EOF=0,xe.UnquotedIdentifier=0,xe.QuotedIdentifier=0,xe.Rbracket=0,xe.Rparen=0,xe.Comma=0,xe.Rbrace=0,xe.Number=0,xe.Current=0,xe.Expref=0,xe.Pipe=1,xe.Or=2,xe.And=3,xe.EQ=5,xe.GT=5,xe.LT=5,xe.GTE=5,xe.LTE=5,xe.NE=5,xe.Flatten=9,xe.Star=20,xe.Filter=21,xe.Dot=40,xe.Not=45,xe.Lbrace=50,xe.Lbracket=55,xe.Lparen=60,tt.prototype={parse:function(B){this._loadTokens(B),this.index=0;var ne=this.expression(0);if("EOF"!==this._lookahead(0)){var ie=this._lookaheadToken(0),Ie=new Error("Unexpected token type: "+ie.type+", value: "+ie.value);throw Ie.name="ParserError",Ie}return ne},_loadTokens:function(B){var ne=(new Fe).tokenize(B);ne.push({type:"EOF",value:"",start:B.length}),this.tokens=ne},expression:function(B){var ne=this._lookaheadToken(0);this._advance();for(var ie=this.nud(ne),Ie=this._lookahead(0);B=0?this.expression(B):ne===E?(this._match(E),this._parseMultiselectList()):ne===he?(this._match(he),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(B){var ne;if(xe[this._lookahead(0)]<10)ne={type:"Identity"};else if(this._lookahead(0)===E)ne=this.expression(B);else if(this._lookahead(0)===X)ne=this.expression(B);else{if(this._lookahead(0)!==Z){var ie=this._lookaheadToken(0),Ie=new Error("Sytanx error, unexpected token: "+ie.value+"("+ie.type+")");throw Ie.name="ParserError",Ie}this._match(Z),ne=this._parseDotRHS(B)}return ne},_parseMultiselectList:function(){for(var B=[];this._lookahead(0)!==h;){var ne=this.expression(0);if(B.push(ne),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:B}},_parseMultiselectHash:function(){for(var B,ne,ie,Ie=[],Ye=[u,d];;){if(B=this._lookaheadToken(0),Ye.indexOf(B.type)<0)throw new Error("Expecting an identifier token, got: "+B.type);if(ne=B.value,this._advance(),this._match(m),ie={type:"KeyValuePair",name:ne,value:this.expression(0)},Ie.push(ie),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Ie}}},ze.prototype={search:function(B,ne){return this.visit(B,ne)},visit:function(B,ne){var ie,Ie,Ye,Le,_t,At,_n,ci,on;switch(B.type){case"Field":return null!==ne&&e(ne)?void 0===(At=ne[B.name])?null:At:null;case"Subexpression":for(Ye=this.visit(B.children[0],ne),on=1;on0)for(on=$r;onwr;on+=Or)Ye.push(ne[on]);return Ye;case"Projection":var Ai=this.visit(B.children[0],ne);if(!n(Ai))return null;for(ci=[],on=0;on_t;break;case z:Ye=Le>=_t;break;case R:Ye=Le<_t;break;case U:Ye=Le<=_t;break;default:throw new Error("Unknown comparator: "+B.name)}return Ye;case re:var ui=this.visit(B.children[0],ne);if(!n(ui))return null;var Ni=[];for(on=0;on=B&&(ne=ie<0?B-1:B),ne}},ot.prototype={callFunction:function(B,ne){var ie=this.functionTable[B];if(void 0===ie)throw new Error("Unknown function: "+B+"()");return this._validateArgs(B,ne,ie._signature),ie._func.call(this,ne)},_validateArgs:function(B,ne,ie){var Ie,Ye,Le,_t;if(ie[ie.length-1].variadic){if(ne.length=0;Ie--)ie+=ne[Ie];return ie}var Ye=B[0].slice(0);return Ye.reverse(),Ye},_functionAbs:function(B){return Math.abs(B[0])},_functionCeil:function(B){return Math.ceil(B[0])},_functionAvg:function(B){for(var ne=0,ie=B[0],Ie=0;Ie=0},_functionFloor:function(B){return Math.floor(B[0])},_functionLength:function(B){return e(B[0])?Object.keys(B[0]).length:B[0].length},_functionMap:function(B){for(var ne=[],ie=this._interpreter,Ie=B[0],Ye=B[1],Le=0;Le0){if(this._getTypeName(B[0][0])===s)return Math.max.apply(Math,B[0]);for(var ne=B[0],ie=ne[0],Ie=1;Ie0){if(this._getTypeName(B[0][0])===s)return Math.min.apply(Math,B[0]);for(var ne=B[0],ie=ne[0],Ie=1;Iepn?1:Fi_t&&(_t=ie,ne=Ye[At]);return ne},_functionMinBy:function(B){for(var ne,ie,Ye=B[0],Le=this.createKeyFunction(B[1],[s,a]),_t=1/0,At=0;At1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var dot=function(){function t(n,e,i,r){fL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=XD(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=XD(p,4),_=m[3];void 0===_&&(_=1),o.rgba=[m[0],m[1],m[2],_]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return pL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return Gme(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return Gme(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=uot[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=XD(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),hot=function(){function t(){fL(this,t),this._events=[]}return pL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function mL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function xh(t,n){return(n||document).querySelector(t)}function Wme(t){t.preventDefault(),t.stopPropagation()}function gL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&Wme(o),i(o))})}var qme=function(){function t(n){fL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new hot,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return pL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),gL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(Wme(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new dot(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=xh(".picker_hue",o),this._domSL=xh(".picker_sl",o),this._domA=xh(".picker_alpha",o),this._domEdit=xh(".picker_editor input",o),this._domSample=xh(".picker_sample",o),this._domOkay=xh(".picker_done button",o),this._domCancel=xh(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),mL(r,this._domH,function(l,c){return e._setHSLA(l)}),mL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&mL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),gL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),gL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=xh(".picker_selector",this._domH),d=xh(".picker_selector",l),h=xh(".picker_selector",c);_(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,_(0,d,i[1]),C(0,d,1-i[2]),l.style.color=o,C(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function _(S,M,$){M.style.left=100*$+"%"}function C(S,M,$){M.style.top=100*$+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),vL=document.createElement("style");vL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(vL),qme.StyleElement=vL;var fot=Object.freeze({__proto__:null,default:qme});const pot=["editor"];function mot(t,n){if(1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",39),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while modifying storage object: ",e.error,"")}}function got(t,n){1&t&&(b(0,"ngb-alert",40),ge(1,"img",41),b(2,"h6",39),I(3,"Storage object was modified successfully."),x()()),2&t&&k("dismissible",!1)}function vot(t,n){1&t&&(b(0,"span"),I(1,"Save as a copy"),x())}function yot(t,n){1&t&&I(0,"Save")}function bot(t,n){if(1&t&&(b(0,"button",42),J(1,vot,2,0,"span",43),J(2,yot,1,0,"ng-template",null,44,Ur),x()),2&t){const e=uo(3),i=j();k("disabled",i.updating),w(1),k("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const yL=function(){return["/storage"]},_ot=function(t){return{collection:t}},xot=function(t,n){return{collection:t,key:n}},wot=function(t,n,e){return{collection:t,key:n,user_id:e}},bL=function(t){return{"is-invalid":t}};let Cot=(()=>{class t{ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",Do.required],keyname:["",Do.required],user_id:["",Do.required],permission_read:[0,Do.required],permission_write:[0,Do.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"object",void 0),K(this,"objectForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(pot,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:88,vars:50,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["ngbRadioGroup","","id","permission_read","name","permission_read","formControlName","permission_read",1,"btn-group","btn-group-toggle"],["ngbButtonLabel","",1,"btn-outline-secondary"],["ngbButton","","type","radio",3,"disabled","value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["ngbRadioGroup","","id","permission_write","name","permission_write","formControlName","permission_write",1,"btn-group","btn-group-toggle"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Storage Object"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),I(6,"Storage"),x(),b(7,"li",4)(8,"a",5),I(9),x()(),b(10,"li",4)(11,"a",5),I(12),x()(),b(13,"li",4)(14,"a",5),I(15),x()()()()(),J(16,mot,4,2,"ngb-alert",6),J(17,got,4,1,"ngb-alert",7),b(18,"form",8),ye("ngSubmit",function(){return i.updateObject()}),b(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),I(23,"Collection"),x()(),ge(24,"input",13),b(25,"div",14),I(26,"Collection is required"),x()(),b(27,"div",10)(28,"div",11)(29,"label",15),I(30,"Key"),x()(),ge(31,"input",16),b(32,"div",14),I(33,"Key is required"),x()()(),b(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),I(38,"User ID"),x()(),ge(39,"input",18),b(40,"div",14),I(41,"User ID is required"),x()(),b(42,"div",19)(43,"div",11)(44,"label",20),I(45,"Read Permission"),x()(),b(46,"div",21)(47,"label",22),ge(48,"input",23),I(49," No Read "),x(),b(50,"label",22),ge(51,"input",23),I(52," Owner Read "),x(),b(53,"label",22),ge(54,"input",23),I(55," Public Read "),x()()()(),b(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),I(60,"Version"),x()(),ge(61,"input",25),x(),b(62,"div",19)(63,"div",11)(64,"label",26),I(65,"Write Permission"),x()(),b(66,"div",27)(67,"label",22),ge(68,"input",23),I(69," No Write "),x(),b(70,"label",22),ge(71,"input",23),I(72," Owner Write "),x()()()(),b(73,"div",28)(74,"div",10)(75,"div",11)(76,"label",29),I(77,"Create Time"),x()(),ge(78,"input",30),x(),b(79,"div",10)(80,"div",11)(81,"label",31),I(82,"Update Time"),x()(),ge(83,"input",32),x()(),b(84,"div",33),ge(85,"div",34,35),x(),J(87,bot,4,3,"button",36),x()),2&e&&(w(8),k("routerLink",wl(32,yL))("queryParams",lr(33,_ot,i.object.collection)),w(1),Dt(i.object.collection),w(2),k("routerLink",wl(35,yL))("queryParams",Sr(36,xot,i.object.collection,i.object.key)),w(1),Dt(i.object.key),w(2),k("routerLink",wl(39,yL))("queryParams",Ug(40,wot,i.object.collection,i.object.key,i.object.user_id)),w(1),Dt(i.object.user_id),w(1),k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.objectForm),w(6),k("ngClass",lr(44,bL,i.f.collection.dirty&&i.f.collection.errors)),w(1),k("hidden",i.f.collection.disabled||i.f.collection.valid||i.f.collection.pristine),w(6),k("ngClass",lr(46,bL,i.f.keyname.dirty&&i.f.keyname.errors)),w(1),k("hidden",i.f.keyname.disabled||i.f.keyname.valid||i.f.keyname.pristine),w(7),k("ngClass",lr(48,bL,i.f.user_id.dirty&&i.f.user_id.errors)),w(1),k("hidden",i.f.user_id.disabled||i.f.user_id.valid||i.f.user_id.pristine),w(8),k("disabled",!i.updateAllowed())("value",0),w(3),k("disabled",!i.updateAllowed())("value",1),w(3),k("disabled",!i.updateAllowed())("value",2),w(7),k("value",i.object.version),w(7),k("disabled",!i.updateAllowed())("value",0),w(3),k("disabled",!i.updateAllowed())("value",1),w(7),k("value",i.object.create_time),w(5),k("value",i.object.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Fu,Rh,gn,To,AC,F3,IH,sl,Na,rl,ol,Ff,fa,ja],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),kot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Sot(t,n){if(1&t&&(b(0,"ngb-alert",18),ge(1,"img",19),b(2,"h6",20),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function Dot(t,n){1&t&&(b(0,"th",21),I(1,"Remove"),x())}function Tot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"Yes"),x()}}function Eot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"No"),x()}}function Aot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"Yes"),x()}}function Mot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"No"),x()}}function Iot(t,n){if(1&t){const e=vt();b(0,"td",26)(1,"button",27),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteLeaderboard(r,s,a))}),I(2,"Delete"),x()()}}function Fot(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(2),x(),b(3,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(4),x(),b(5,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(6),x(),b(7,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(8),x(),J(9,Tot,2,0,"td",23),J(10,Eot,2,0,"td",23),J(11,Aot,2,0,"td",23),J(12,Mot,2,0,"td",23),J(13,Iot,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(i.orderString[e.sort_order]),w(2),Dt(i.operatorString[e.operator]),w(2),Dt(""===e.reset_schedule?"-":e.reset_schedule),w(1),k("ngIf",e.authoritative),w(1),k("ngIf",!e.authoritative),w(1),k("ngIf",e.tournament),w(1),k("ngIf",!e.tournament),w(1),k("ngIf",i.deleteAllowed())}}function Not(t,n){1&t&&(b(0,"tr")(1,"td",28),I(2,"No leaderboards were found."),x()())}let Oot=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"authService",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"leaderboards",[]),K(this,"nextCursor",""),K(this,"leaderboardsCount",0),K(this,"orderString",{0:"Ascending",1:"Descending"}),K(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),this.route=e,this.router=i,this.authService=r,this.consoleService=o}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(Xo),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),I(4,"Leaderboards"),x(),b(5,"h6",4),I(6),x()(),b(7,"div",5)(8,"div",6)(9,"button",7),ye("click",function(){return i.search(0)}),ge(10,"img",8),x(),b(11,"button",7),ye("click",function(){return i.search(1)}),ge(12,"img",9),x()()()()(),J(13,Sot,4,2,"ngb-alert",10),b(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),I(18,"Leaderboard ID"),x(),b(19,"th",13),I(20,"Sort Order"),x(),b(21,"th",13),I(22,"Operator"),x(),b(23,"th",13),I(24,"Reset Schedule"),x(),b(25,"th",14),I(26,"Authoritative"),x(),b(27,"th",14),I(28,"Tournament"),x(),J(29,Dot,2,0,"th",15),x()(),b(30,"tbody"),J(31,Fot,14,9,"tr",16),J(32,Not,3,0,"tr",17),x()()),2&e&&(w(6),xn("",i.leaderboardsCount," leaderboards found."),w(3),k("disabled",0===i.leaderboards.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(16),k("ngIf",i.deleteAllowed()),w(2),k("ngForOf",i.leaderboards),w(1),k("ngIf",0===i.leaderboards.length))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),jot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Pot(t,n){if(1&t&&(b(0,"ngb-alert",31),ge(1,"img",32),b(2,"h6",33),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying accounts: ",e.error,"")}}function Lot(t,n){1&t&&(b(0,"th",34),I(1,"Remove"),x())}function Rot(t,n){1&t&&(b(0,"tr")(1,"td",35),I(2,"No users found - change the filter criteria or add new user accounts."),x()())}function $ot(t,n){1&t&&ge(0,"td")}function Bot(t,n){if(1&t){const e=vt();b(0,"td",38)(1,"button",39),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteAccount(r,s,a))}),I(2,"Delete"),x()()}}function Vot(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(6),x(),b(7,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(8),x(),J(9,$ot,1,0,"td",29),J(10,Bot,3,0,"td",37),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(e.username),w(2),Dt(e.display_name),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),k("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Hot=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"accountsCount",0),K(this,"accounts",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"})},o=>{this.error=o})}deleteAccount(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:45,vars:9,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Accounts"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"span",9),ye("click",function(){return i.f.filter.setValue(i.systemUserId)}),ge(12,"img",10),x()(),b(13,"div",8)(14,"div",11)(15,"button",12),ye("click",function(){return i.f.filter_type.setValue(0),i.search(0)}),I(16,"Search"),x(),b(17,"div",13),ge(18,"button",14),b(19,"div",15)(20,"button",16),ye("click",function(){return i.f.filter_type.setValue(1),i.search(0)}),I(21,"Tombstones"),x()()()()()()()(),b(22,"div",17)(23,"div",18)(24,"button",19),ye("click",function(){return i.search(0)}),ge(25,"img",20),x(),b(26,"button",19),ye("click",function(){return i.search(1)}),ge(27,"img",21),x()()()()(),J(28,Pot,4,2,"ngb-alert",22),b(29,"div",23)(30,"table",24)(31,"thead",25)(32,"tr")(33,"th",26),I(34,"User ID"),x(),b(35,"th"),I(36,"Username"),x(),b(37,"th"),I(38,"Display Name"),x(),b(39,"th",27),I(40,"Last Update"),x(),J(41,Lot,2,0,"th",28),x()(),b(42,"tbody"),J(43,Rot,3,0,"tr",29),J(44,Vot,11,6,"tr",30),x()()()),2&e&&(w(3),xn("",i.accountsCount," accounts found."),w(4),k("formGroup",i.searchForm),w(11),k("disabled",!i.f.filter.value||""===i.f.filter.value),w(6),k("disabled",0===i.accounts.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.accounts.length),w(1),k("ngForOf",i.accounts))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Na,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),zot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Uot(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().exportAccount(r))}),ge(1,"img",16),I(2,"Export"),x()}}function Got(t,n){1&t&&(b(0,"span"),I(1,"Unban"),x())}function Wot(t,n){1&t&&(b(0,"span"),I(1,"Ban"),x())}function qot(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().banUnbanAccount(r))}),ge(1,"img",17),J(2,Got,2,0,"span",18),J(3,Wot,2,0,"span",18),x()}if(2&t){const e=j();w(2),k("ngIf",e.account.disable_time),w(1),k("ngIf",!e.account.disable_time)}}function Xot(t,n){if(1&t){const e=vt();b(0,"button",19),ye("click",function(r){return $e(e),Be(j().deleteAccount(r,!1))}),ge(1,"img",20),I(2,"Delete"),x()}}function Yot(t,n){if(1&t){const e=vt();b(0,"button",19),ye("click",function(r){return $e(e),Be(j().deleteAccount(r,!0))}),ge(1,"img",21),I(2,"Recorded delete"),x()}}function Jot(t,n){if(1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const Kot=function(t,n){return["/accounts",t,n]};function Qot(t,n){if(1&t&&(b(0,"div"),ta(1,25),b(2,"a",26),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,Kot,i.account.user.id,e.path)),w(1),Dt(e.label)}}const Zot=function(){return["/accounts"]},est=function(){return["/storage"]},tst=function(t){return{user_id:t}};let nst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"account",void 0),K(this,"error",""),K(this,"views",[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,rF.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Account"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Account"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,Uot,3,0,"button",7),J(12,qot,4,2,"button",7),J(13,Xot,3,0,"button",8),J(14,Yot,3,0,"button",8),x()(),J(15,Jot,4,2,"ngb-alert",9),b(16,"nav",10,11),J(18,Qot,4,6,"div",12),b(19,"div"),ta(20,13),b(21,"a",14),I(22," Storage "),x(),na(),x()(),ge(23,"router-outlet")),2&e&&(w(6),k("routerLink",wl(10,Zot)),w(3),Dt(i.account.user.id),w(2),k("ngIf",i.exportAllowed()),w(1),k("ngIf",i.banAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views),w(3),k("routerLink",wl(11,est))("queryParams",lr(12,tst,i.account.user.id)))},dependencies:[Jp,Fu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),ist=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const rst=["editor"];function ost(t,n){if(1&t&&(b(0,"ngb-alert",29),ge(1,"img",30),b(2,"h6",31),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function sst(t,n){1&t&&(b(0,"ngb-alert",32),ge(1,"img",33),b(2,"h6",31),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function ast(t,n){1&t&&(b(0,"button",34),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}const lst=function(t){return{"is-invalid":t}};let cst=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"accountForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",Do.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(rst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,ost,4,2,"ngb-alert",0),J(1,sst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"User ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),I(12,"Username"),x()(),ge(13,"input",9),b(14,"div",10),I(15,"Username is required"),x()()(),b(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),I(20,"Display Name"),x()(),ge(21,"input",12),x(),b(22,"div",13)(23,"div",5)(24,"label",14),I(25,"Avatar URL"),x()(),ge(26,"input",15),x()(),b(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),I(31,"Location"),x()(),ge(32,"input",17),x(),b(33,"div",13)(34,"div",5)(35,"label",18),I(36,"Timezone"),x()(),ge(37,"input",19),x()(),b(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),I(42,"Create Time"),x()(),ge(43,"input",22),x(),b(44,"div",4)(45,"div",5)(46,"label",23),I(47,"Update Time"),x()(),ge(48,"input",24),x()(),b(49,"div",25),ge(50,"div",26,27),x(),J(52,ast,2,1,"button",28),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.accountForm),w(6),k("value",i.account.user.id),w(5),k("ngClass",lr(9,lst,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(29),k("value",i.account.user.create_time),w(5),k("value",i.account.user.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Rh,gn,To,sl,Na,rl,ol,Ff,fa,ja]})),t})();function ust(t,n){if(1&t&&(b(0,"ngb-alert",36),ge(1,"img",37),b(2,"h6",38),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function dst(t,n){1&t&&(b(0,"ngb-alert",39),ge(1,"img",40),b(2,"h6",38),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function hst(t,n){if(1&t&&(b(0,"option",41),I(1),x()),2&t){const e=n.$implicit,i=n.index;Nh("value",i),k("selected",0===i),w(1),Dt(e.id)}}function fst(t,n){1&t&&(b(0,"button",42),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}let pst=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"accountForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,ust,4,2,"ngb-alert",0),J(1,dst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"Device IDs"),x()(),b(8,"div",7)(9,"button",8),ye("click",function(){return i.copyDeviceIdToClipboard(i.f.selected_device_id_index.value)}),ge(10,"img",9),I(11," Copy "),x(),b(12,"select",10),J(13,hst,2,3,"option",11),x(),b(14,"div",12)(15,"button",13),ye("click",function(o){return i.unlinkDeviceId(o)}),I(16,"Unlink"),x()()()(),b(17,"div",4)(18,"div",5)(19,"label",14),I(20,"Custom ID"),x()(),b(21,"div",7),ge(22,"input",15),b(23,"div",12)(24,"button",13),ye("click",function(o){return i.unlinkCustomID(o)}),I(25,"Unlink"),x()()()()(),b(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),I(30,"Facebook ID"),x()(),b(31,"div",7),ge(32,"input",17),b(33,"div",12)(34,"button",13),ye("click",function(o){return i.unlinkFacebook(o)}),I(35,"Unlink"),x()()()(),b(36,"div",18)(37,"div",5)(38,"label",19),I(39,"FB Instant Game ID"),x()(),b(40,"div",7),ge(41,"input",20),b(42,"div",12)(43,"button",13),ye("click",function(o){return i.unlinkFacebookInstantGames(o)}),I(44,"Unlink"),x()()()()(),b(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),I(49,"Apple ID"),x()(),b(50,"div",7),ge(51,"input",22),b(52,"div",12)(53,"button",13),ye("click",function(o){return i.unlinkApple(o)}),I(54,"Unlink"),x()()()(),b(55,"div",18)(56,"div",5)(57,"label",23),I(58,"GameCenter ID"),x()(),b(59,"div",7),ge(60,"input",24),b(61,"div",12)(62,"button",13),ye("click",function(o){return i.unlinkGameCenter(o)}),I(63,"Unlink"),x()()()()(),b(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),I(68,"Google ID"),x()(),b(69,"div",7),ge(70,"input",26),b(71,"div",12)(72,"button",13),ye("click",function(o){return i.unlinkGoogle(o)}),I(73,"Unlink"),x()()()(),b(74,"div",4)(75,"div",5)(76,"label",27),I(77,"Steam ID"),x()(),b(78,"div",7),ge(79,"input",28),b(80,"div",12)(81,"button",13),ye("click",function(o){return i.unlinkSteam(o)}),I(82,"Unlink"),x()()()()(),b(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),I(87,"Email"),x(),ge(88,"br"),x(),ge(89,"input",30),x(),b(90,"div",4)(91,"div",5)(92,"label",31),I(93,"Password"),x()(),ge(94,"input",32),x()(),b(95,"div",33)(96,"div",4),ge(97,"div",5),b(98,"span",34),I(99),x()(),ge(100,"div",4),x(),J(101,fst,2,1,"button",35),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.accountForm),w(11),k("ngForOf",i.account.devices),w(2),k("disabled",!i.updateAllowed()||0===i.account.devices.length),w(7),k("value",i.account.custom_id),w(2),k("disabled",!i.updateAllowed()||!i.account.custom_id||""===i.account.custom_id),w(8),k("value",i.account.user.facebook_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.facebook_id||""===i.account.user.facebook_id),w(7),k("value",i.account.user.facebook_instant_game_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.facebook_instant_game_id||""===i.account.user.facebook_instant_game_id),w(8),k("value",i.account.user.apple_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.apple_id||""===i.account.user.apple_id),w(7),k("value",i.account.user.gamecenter_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.gamecenter_id||""===i.account.user.gamecenter_id),w(8),k("value",i.account.user.google_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.google_id||""===i.account.user.google_id),w(7),k("value",i.account.user.steam_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.steam_id||""===i.account.user.steam_id),w(18),xn("Verification Status: ",null===i.account.verify_time?"Not Verified":"Verified",""),w(2),k("ngIf",i.updateAllowed()))},dependencies:[jn,gn,To,sl,xy,wy,Na,ov,rl,ol,fa,ja],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})),t})();const mst=["editor"];function gst(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function vst(t,n){1&t&&(b(0,"ngb-alert",27),ge(1,"img",28),b(2,"h6",26),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function yst(t,n){if(1&t){const e=vt();b(0,"button",29),ye("click",function(){return $e(e),Be(j().updateWallet())}),I(1,"Save"),x()}2&t&&k("disabled",j().updating)}function bst(t,n){1&t&&(b(0,"th",30),I(1,"Remove"),x())}function _st(t,n){1&t&&(b(0,"tr")(1,"td",31),I(2,"No wallet ledger items found."),x()())}function xst(t,n){1&t&&ge(0,"div",37)}function wst(t,n){1&t&&ge(0,"div",38)}function Cst(t,n){if(1&t){const e=vt();b(0,"td")(1,"button",39),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteLedgerItem(r,s,a))}),I(2,"Delete"),x()()}}function kst(t,n){if(1&t&&(b(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),I(4),x()()()()),2&t){const e=j().$implicit;w(4),Dt(e.metadata)}}function Sst(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",32),ye("click",function(){const o=$e(e).index,s=j();return Be(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),J(3,xst,1,0,"div",33),J(4,wst,1,0,"div",34),x(),I(5),x(),b(6,"td",35)(7,"pre",36),I(8),x()(),b(9,"td"),I(10),x(),J(11,Cst,3,0,"td",22),x(),J(12,kst,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.walletLedgerMetadataOpen[e]),w(1),k("ngIf",r.walletLedgerMetadataOpen[e]),w(1),xn(" ",i.id," "),w(3),Dt(i.changeset),w(2),Dt(i.update_time),w(1),k("ngIf",r.deleteAllowed()),w(1),k("ngIf",r.walletLedgerMetadataOpen[e])}}let Dst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"walletLedger",[]),K(this,"walletLedgerMetadataOpen",[]),K(this,"updating",!1),K(this,"updated",!1),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"limit",100),K(this,"userID",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(mst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(J(0,gst,4,2,"ngb-alert",0),J(1,vst,4,1,"ngb-alert",1),b(2,"div",2),ge(3,"div",3,4),x(),J(5,yst,2,1,"button",5),ge(6,"hr",6),b(7,"div",7)(8,"div",8),ge(9,"div",9),b(10,"div",10)(11,"div",11)(12,"button",12),ye("click",function(){return i.loadData("")}),ge(13,"img",13),x(),b(14,"button",12),ye("click",function(){return i.loadData(i.prevCursor)}),ge(15,"img",14),x(),b(16,"button",12),ye("click",function(){return i.loadData(i.nextCursor)}),ge(17,"img",15),x()()()()(),b(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),I(23,"ID"),x(),b(24,"th"),I(25,"Changeset"),x(),b(26,"th",20),I(27,"Update Time"),x(),J(28,bst,2,0,"th",21),x()(),b(29,"tbody"),J(30,_st,3,0,"tr",22),J(31,Sst,13,7,"ng-template",23),x()()()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(4),k("ngIf",i.updateAllowed()),w(7),k("disabled",0===i.walletLedger.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(12),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.walletLedger.length),w(1),k("ngForOf",i.walletLedger))},dependencies:[jn,gn,To],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})),t})(),Tst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Est(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Ast(t,n){1&t&&(b(0,"th",13),I(1,"Remove"),x())}function Mst(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No friends found."),x()())}function Ist(t,n){1&t&&(b(0,"span"),I(1,"Friend (0)"),x())}function Fst(t,n){1&t&&(b(0,"span"),I(1,"Invite Sent (1)"),x())}function Nst(t,n){1&t&&(b(0,"span"),I(1,"Invite Received (2)"),x())}function Ost(t,n){1&t&&(b(0,"span"),I(1,"Blocked (3)"),x())}function jst(t,n){if(1&t){const e=vt();b(0,"td",16)(1,"button",17),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteFriend(r,s,a))}),I(2,"Delete"),x()()}}function Pst(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td"),J(6,Ist,2,0,"span",8),J(7,Fst,2,0,"span",8),J(8,Nst,2,0,"span",8),J(9,Ost,2,0,"span",8),x(),b(10,"td"),I(11),x(),J(12,jst,3,0,"td",15),x()),2&t){const e=n.$implicit,i=j();w(2),Dt(e.user.id),w(2),Dt(e.user.username),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed())}}let Lst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"friends",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,Est,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),I(6,"User ID"),x(),b(7,"th"),I(8,"Username"),x(),b(9,"th",5),I(10,"State"),x(),b(11,"th",6),I(12,"Update Time"),x(),J(13,Ast,2,0,"th",7),x()(),b(14,"tbody"),J(15,Mst,3,0,"tr",8),J(16,Pst,13,8,"tr",9),x()()()),2&e&&(k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.friends.length),w(1),k("ngForOf",i.friends))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Rst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function $st(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Bst(t,n){1&t&&(b(0,"th",13),I(1,"Remove"),x())}function Vst(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No group membership found."),x()())}function Hst(t,n){1&t&&(b(0,"span"),I(1,"Superadmin (0)"),x())}function zst(t,n){1&t&&(b(0,"span"),I(1,"Admin (1)"),x())}function Ust(t,n){1&t&&(b(0,"span"),I(1,"Member (2)"),x())}function Gst(t,n){1&t&&(b(0,"span"),I(1,"Join Request (3)"),x())}function Wst(t,n){1&t&&(b(0,"span"),I(1,"Banned (4)"),x())}function qst(t,n){if(1&t){const e=vt();b(0,"td")(1,"button",16),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroupUser(r,s,a))}),I(2,"Delete"),x()()}}function Xst(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),J(6,Hst,2,0,"span",8),J(7,zst,2,0,"span",8),J(8,Ust,2,0,"span",8),J(9,Gst,2,0,"span",8),J(10,Wst,2,0,"span",8),x(),b(11,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(12),x(),J(13,qst,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.group.id),w(2),Dt(e.group.name),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(1),k("ngIf",4===e.state),w(2),Dt(e.group.update_time),w(1),k("ngIf",i.deleteAllowed())}}let Yst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"groups",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,$st,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),I(6,"Group ID"),x(),b(7,"th"),I(8,"Name"),x(),b(9,"th",5),I(10,"State"),x(),b(11,"th",6),I(12,"Update Time"),x(),J(13,Bst,2,0,"th",7),x()(),b(14,"tbody"),J(15,Vst,3,0,"tr",8),J(16,Xst,14,9,"tr",9),x()()()),2&e&&(k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.groups.length),w(1),k("ngForOf",i.groups))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Jst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Kst=["editor"];function Qst(t,n){if(1&t&&(b(0,"ngb-alert",34),ge(1,"img",35),b(2,"h6",36),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Zst(t,n){1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",36),I(3,"Group was modified successfully."),x()()),2&t&&k("dismissible",!1)}function eat(t,n){1&t&&(b(0,"button",39),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}const tat=function(t){return["/accounts",t]},nat=function(t){return{"is-invalid":t}};let iat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"group",void 0),K(this,"groupForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",Do.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(Kst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,Qst,4,2,"ngb-alert",0),J(1,Zst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateGroup()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"Group ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),I(12,"Creator ID"),x()(),b(13,"a",9),ge(14,"input",10),x()()(),b(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),I(19,"Name"),x()(),ge(20,"input",12),b(21,"div",13),I(22,"Name is required"),x()(),b(23,"div",4)(24,"div",5)(25,"label",14),I(26,"Description"),x()(),ge(27,"input",15),x()(),b(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),I(32,"Avatar URL"),x()(),ge(33,"input",18),x(),b(34,"div",4)(35,"div",5)(36,"label",19),I(37,"Language"),x()(),ge(38,"input",20),x()(),b(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),I(43,"Members"),x()(),ge(44,"input",21),x(),b(45,"div",16)(46,"div",5)(47,"label",22),I(48,"Max Count"),x()(),ge(49,"input",23),x()(),b(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),I(54,"Open"),x()(),ge(55,"input",24),x()(),b(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),I(60,"Create Time"),x()(),ge(61,"input",27),x(),b(62,"div",4)(63,"div",5)(64,"label",28),I(65,"Update Time"),x()(),ge(66,"input",29),x()(),b(67,"div",30),ge(68,"div",31,32),x(),J(70,eat,2,1,"button",33),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.groupForm),w(6),k("value",i.group.id),w(5),k("routerLink",lr(12,tat,i.group.creator_id)),w(1),k("value",i.group.creator_id),w(6),k("ngClass",lr(14,nat,i.f.name.dirty&&i.f.name.errors)),w(1),k("hidden",i.f.name.disabled||i.f.name.valid||i.f.name.pristine),w(23),k("value",i.group.edge_count),w(17),k("value",i.group.create_time),w(5),k("value",i.group.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Fu,Rh,gn,To,sl,Na,aC,rl,ol,Ff,fa,ja]})),t})();function rat(t,n){if(1&t&&(b(0,"ngb-alert",13),ge(1,"img",14),b(2,"h6",15),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function oat(t,n){1&t&&(b(0,"span"),I(1,"Add by membership state"),x())}function sat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j(2);w(1),Dt(e.activeState)}}function aat(t,n){if(1&t){const e=vt();b(0,"button",20),ye("click",function(){const o=$e(e).$implicit;return Be(j(2).activeState=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function lat(t,n){if(1&t&&(b(0,"div",16)(1,"button",17),J(2,oat,2,0,"span",11),J(3,sat,2,1,"span",11),x(),b(4,"div",18),J(5,aat,2,1,"button",19),x()()),2&t){const e=j();w(2),k("ngIf",!e.activeState||""===e.activeState),w(1),k("ngIf",e.activeState&&""!==e.activeState),w(2),k("ngForOf",e.states)}}function cat(t,n){if(1&t){const e=vt();b(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),ge(5,"input",26),b(6,"div",27)(7,"div",28)(8,"button",29),ye("click",function(){return $e(e),Be(j().add())}),I(9,"Add"),x()()()()()()()()}if(2&t){const e=j();w(3),k("formGroup",e.addForm)}}function uat(t,n){1&t&&(b(0,"th",30),I(1,"Demote"),x())}function dat(t,n){1&t&&(b(0,"th",30),I(1,"Promote"),x())}function hat(t,n){1&t&&(b(0,"th",31),I(1,"Remove"),x())}function fat(t,n){1&t&&(b(0,"tr")(1,"td",32),I(2,"No group membership found."),x()())}function pat(t,n){1&t&&(b(0,"span"),I(1,"Superadmin (0)"),x())}function mat(t,n){1&t&&(b(0,"span"),I(1,"Admin (1)"),x())}function gat(t,n){1&t&&(b(0,"span"),I(1,"Member (2)"),x())}function vat(t,n){1&t&&(b(0,"span"),I(1,"Join Request (3)"),x())}function yat(t,n){1&t&&(b(0,"span"),I(1,"Banned (4)"),x())}function bat(t,n){if(1&t){const e=vt();b(0,"td",36)(1,"button",37),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().demoteGroupUser(r,s,a))}),at(),b(2,"svg",38),ge(3,"path",39),x()()()}}function _at(t,n){if(1&t){const e=vt();b(0,"td",36)(1,"button",37),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().promoteGroupUser(r,s,a))}),at(),b(2,"svg",40),ge(3,"path",41),x()()()}}function xat(t,n){if(1&t){const e=vt();b(0,"td",42)(1,"button",43),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroupUser(r,s,a))}),I(2,"Delete"),x()()}}function wat(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),J(6,pat,2,0,"span",11),J(7,mat,2,0,"span",11),J(8,gat,2,0,"span",11),J(9,vat,2,0,"span",11),J(10,yat,2,0,"span",11),x(),b(11,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(12),x(),J(13,bat,4,0,"td",34),J(14,_at,4,0,"td",34),J(15,xat,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.user.id),w(2),Dt(e.user.username),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(1),k("ngIf",4===e.state),w(2),Dt(e.user.update_time),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed())}}let Cat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"group",void 0),K(this,"members",[]),K(this,"activeState","Add Member"),K(this,"states",["Add Member","Join"]),K(this,"addForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Tl),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,rat,4,2,"ngb-alert",0),J(1,lat,6,3,"div",1),J(2,cat,10,1,"div",2),b(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),I(8,"User ID"),x(),b(9,"th"),I(10,"Name"),x(),b(11,"th",7),I(12,"State"),x(),b(13,"th",8),I(14,"Update Time"),x(),J(15,uat,2,0,"th",9),J(16,dat,2,0,"th",9),J(17,hat,2,0,"th",10),x()(),b(18,"tbody"),J(19,fat,3,0,"tr",11),J(20,wat,16,11,"tr",12),x()()()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",!i.group.open&&i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(13),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(2),k("ngIf",0===i.members.length),w(1),k("ngForOf",i.members))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Na,rl,ol,fa,ja],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),kat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Sat(t,n){if(1&t&&(b(0,"ngb-alert",28),ge(1,"img",29),b(2,"h6",30),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Dat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeType)}}function Tat(t,n){if(1&t){const e=vt();b(0,"button",31),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeType=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function Eat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeNode)}}function Aat(t,n){if(1&t){const e=vt();b(0,"button",31),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeNode=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function Mat(t,n){1&t&&(b(0,"tr")(1,"td",32),I(2,"No realtime matches were found."),x()())}function Iat(t,n){1&t&&ge(0,"div",40)}function Fat(t,n){1&t&&ge(0,"div",41)}function Nat(t,n){if(1&t){const e=vt();b(0,"div",37),ye("click",function(){$e(e);const r=j(),o=r.index,s=r.$implicit,a=j();return a.getMatchState(o,s),Be(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),J(1,Iat,1,0,"div",38),J(2,Fat,1,0,"div",39),x()}if(2&t){const e=j().index,i=j();w(1),k("ngIf",!i.matchStatesOpen[e]),w(1),k("ngIf",i.matchStatesOpen[e])}}function Oat(t,n){1&t&&ge(0,"div",42)}function jat(t,n){1&t&&(b(0,"span"),I(1,"Yes"),x())}function Pat(t,n){1&t&&(b(0,"span"),I(1,"No"),x())}function Lat(t,n){1&t&&ge(0,"img",51)}function Rat(t,n){if(1&t&&(b(0,"div")(1,"small")(2,"b"),I(3,"Current Tick"),x()(),b(4,"pre",47)(5,"small"),I(6),x()(),b(7,"small")(8,"b"),I(9,"Match State"),x()(),b(10,"pre",47)(11,"small"),I(12),x()()()),2&t){const e=j(2).index,i=j();w(6),Dt(i.matchStates[e].tick),w(6),Dt(i.matchStates[e].state)}}function $at(t,n){1&t&&ge(0,"img",51)}function Bat(t,n){if(1&t&&(b(0,"pre",47)(1,"small"),I(2),x()()),2&t){const e=j(2).index,i=j();w(2),Dt(i.getMatchPresencesString(i.matchStates[e].presences))}}function Vat(t,n){if(1&t&&(b(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),I(6,"Match Label"),x()(),b(7,"pre",47)(8,"small"),I(9),x()()(),b(10,"div",48),J(11,Lat,1,0,"img",49),J(12,Rat,13,2,"div",7),x(),b(13,"div",48)(14,"small")(15,"b"),I(16,"Match Presences"),x()(),J(17,$at,1,0,"img",49),J(18,Bat,3,1,"pre",50),x()()()()),2&t){const e=j(),i=e.$implicit,r=e.index,o=j();w(9),Dt(i.api_match.label),w(2),k("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),k("ngIf",null!==o.matchStates[r]),w(5),k("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),k("ngIf",null!==o.matchStates[r])}}function Hat(t,n){if(1&t&&(b(0,"tr")(1,"td"),J(2,Nat,3,2,"div",33),J(3,Oat,1,0,"div",34),I(4),x(),b(5,"td"),I(6),x(),b(7,"td",35),J(8,jat,2,0,"span",7),J(9,Pat,2,0,"span",7),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x(),b(14,"td"),I(15),x()(),J(16,Vat,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=j();w(2),k("ngIf",i.api_match.authoritative),w(1),k("ngIf",!i.api_match.authoritative),w(1),xn(" ",i.api_match.match_id," "),w(2),Dt(i.api_match.size),w(2),k("ngIf",i.api_match.authoritative),w(1),k("ngIf",!i.api_match.authoritative),w(2),Dt(i.node),w(2),Dt(i.api_match.handler_name),w(2),Dt(i.api_match.authoritative?i.api_match.tick_rate:"-"),w(1),k("ngIf",r.matchStatesOpen[e])}}let zat=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"formBuilder",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"matches",[]),K(this,"matchStates",[]),K(this,"matchStatesOpen",[]),K(this,"updated",!1),K(this,"searchForm1",void 0),K(this,"searchForm2",void 0),K(this,"searchForm3",void 0),K(this,"type",void 0),K(this,"activeType","All"),K(this,"types",["All","Authoritative","Relayed"]),K(this,"activeNode","All Nodes"),K(this,"nodes",["All Nodes"]),this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));let i=e.get("type");this.type=Number(i);let r=e.get("node");if(this.route.data.subscribe(o=>{console.log(o),o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1==this.type||2==this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,Xme(this.consoleService,e,0==e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(Tl),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Active Matches"),x(),b(2,"h6",1),I(3),x(),J(4,Sat,4,2,"ngb-alert",2),b(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),J(9,Dat,2,1,"span",7),x(),b(10,"div",8),J(11,Tat,2,1,"button",9),x()()(),b(12,"div",10)(13,"button",11),ye("click",function(){return i.search()}),I(14,"Search"),x()()(),b(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),ye("ngSubmit",function(){return i.search()}),b(19,"div",16),ge(20,"input",17),x()(),b(21,"form",15),ye("ngSubmit",function(){return i.search()}),b(22,"div",16),ge(23,"input",17),x()(),b(24,"form",15),ye("ngSubmit",function(){return i.search()}),b(25,"div",16),ge(26,"input",18),b(27,"div",10)(28,"div",5)(29,"button",19),J(30,Eat,2,1,"span",7),x(),b(31,"div",8),J(32,Aat,2,1,"button",9),x()()()()()()()(),b(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),I(39,"Match ID"),x()(),b(40,"th",23),I(41,"Presence Count"),x(),b(42,"th",24),I(43,"Authoritative"),x(),b(44,"th",24),I(45,"Node"),x(),b(46,"th",25),I(47,"Handler Name"),x(),b(48,"th",26),I(49,"Tick Rate"),x()()(),b(50,"tbody"),J(51,Mat,3,0,"tr",7),J(52,Hat,17,10,"ng-template",27),x()()()),2&e&&(w(3),xn("",i.matches.length," running matches found."),w(1),k("ngIf",i.error),w(5),k("ngIf",i.activeType&&""!==i.activeType),w(2),k("ngForOf",i.types),w(7),k("hidden","All"!==i.activeType)("formGroup",i.searchForm1),w(3),k("hidden","Relayed"!==i.activeType)("formGroup",i.searchForm2),w(3),k("hidden","Authoritative"!==i.activeType)("formGroup",i.searchForm3),w(6),k("ngIf",i.activeNode&&""!==i.activeNode),w(2),k("ngForOf",i.nodes),w(6),Mn("pl-3",i.matches.length>0),w(13),k("ngIf",0===i.matches.length),w(1),k("ngForOf",i.matches))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Na,rl,ol,fa,ja],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),Uat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));return Xme(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Xme(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return $n(null)}let Gat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(nt(r=>$n(r.nodes.map(o=>o.name)))).pipe(Ul(r=>(e.data={...e.data,error:r},$n([]))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Wat(t,n){if(1&t&&(b(0,"ngb-alert",25),ge(1,"img",26),b(2,"h6",27),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying groups: ",e.error,"")}}function qat(t,n){1&t&&(b(0,"th",28),I(1,"Remove"),x())}function Xat(t,n){1&t&&(b(0,"tr")(1,"td",29),I(2,"No groups found - change the filter criteria or add new user groups."),x()())}function Yat(t,n){1&t&&ge(0,"td")}function Jat(t,n){if(1&t){const e=vt();b(0,"td",32)(1,"button",33),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroup(r,s,a))}),I(2,"Delete"),x()()}}function Kat(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(2),x(),b(3,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(4),x(),b(5,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(6),x(),J(7,Yat,1,0,"td",23),J(8,Jat,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(e.name),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),k("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Qat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"groupsCount",0),K(this,"groups",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Groups"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"div",9)(12,"button",10),ye("click",function(){return i.search(0)}),I(13,"Search"),x()()()()()(),b(14,"div",11)(15,"div",12)(16,"button",13),ye("click",function(){return i.search(0)}),ge(17,"img",14),x(),b(18,"button",13),ye("click",function(){return i.search(1)}),ge(19,"img",15),x()()()()(),J(20,Wat,4,2,"ngb-alert",16),b(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),I(26,"Group ID"),x(),b(27,"th"),I(28,"Name"),x(),b(29,"th",21),I(30,"Last Update"),x(),J(31,qat,2,0,"th",22),x()(),b(32,"tbody"),J(33,Xat,3,0,"tr",23),J(34,Kat,9,5,"tr",24),x()()()),2&e&&(w(3),xn("",i.groupsCount," groups found."),w(4),k("formGroup",i.searchForm),w(9),k("disabled",0===i.groups.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(11),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.groups.length),w(1),k("ngForOf",i.groups))},dependencies:[jn,gn,To,sl,Na,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Zat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function elt(t,n){if(1&t){const e=vt();b(0,"button",13),ye("click",function(r){return $e(e),Be(j().exportGroup(r))}),ge(1,"img",14),I(2,"Export"),x()}}function tlt(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().deleteGroup(r,!1))}),ge(1,"img",16),I(2,"Delete"),x()}}function nlt(t,n){if(1&t&&(b(0,"ngb-alert",17),ge(1,"img",18),b(2,"h6",19),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const ilt=function(t,n){return["/groups",t,n]};function rlt(t,n){if(1&t&&(b(0,"div"),ta(1,20),b(2,"a",21),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,ilt,i.group.id,e.path)),w(1),Dt(e.label)}}const olt=function(){return["/groups"]};let slt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"group",void 0),K(this,"error",""),K(this,"views",[{label:"Details",path:"details"},{label:"Members",path:"members"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,rF.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Group"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Group"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,elt,3,0,"button",7),J(12,tlt,3,0,"button",8),x()(),J(13,nlt,4,2,"ngb-alert",9),b(14,"nav",10,11),J(16,rlt,4,6,"div",12),x(),ge(17,"router-outlet")),2&e&&(w(6),k("routerLink",wl(6,olt)),w(3),Dt(i.group.id),w(2),k("ngIf",i.exportAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views))},dependencies:[Jp,Fu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),alt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function llt(t,n){if(1&t){const e=vt();b(0,"button",12),ye("click",function(r){return $e(e),Be(j().deleteLeaderboard(r))}),ge(1,"img",13),I(2,"Delete Leaderboard"),x()}}function clt(t,n){if(1&t&&(b(0,"ngb-alert",14),ge(1,"img",15),b(2,"h6",16),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const ult=function(t,n){return["/leaderboards",t,n]};function dlt(t,n){if(1&t&&(b(0,"div"),ta(1,17),b(2,"a",18),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,ult,i.leaderboard.id,e.path)),w(1),Dt(e.label)}}const hlt=function(){return["/leaderboards"]};let flt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"leaderboard",void 0),K(this,"error",""),K(this,"views",[{label:"Details",path:"details"},{label:"Records",path:"records"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Leaderboard"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Leaderboards"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,llt,3,0,"button",7),x()(),J(12,clt,4,2,"ngb-alert",8),b(13,"nav",9,10),J(15,dlt,4,6,"div",11),x(),ge(16,"router-outlet")),2&e&&(w(6),k("routerLink",wl(5,hlt)),w(3),Dt(i.leaderboard.id),w(2),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views))},dependencies:[Jp,Fu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),plt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const mlt=["editor"];function glt(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function vlt(t,n){if(1&t&&(b(0,"div",27)(1,"h6"),I(2,"Tournament"),x(),ge(3,"hr",28),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),I(8,"Title"),x()(),ge(9,"input",30),x(),b(10,"div",3)(11,"div",4)(12,"label",31),I(13,"Description"),x()(),ge(14,"input",32),x()(),b(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),I(19,"Category"),x()(),ge(20,"input",34),x(),b(21,"div",3)(22,"div",4)(23,"label",35),I(24,"Max Num Score"),x()(),ge(25,"input",36),x()(),b(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),I(30,"Size"),x()(),ge(31,"input",38),x(),b(32,"div",3)(33,"div",4)(34,"label",39),I(35,"Max Size"),x()(),ge(36,"input",40),x()(),b(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),I(41,"Duration"),x()(),ge(42,"input",42),x(),b(43,"div",3)(44,"div",4)(45,"label",43),I(46,"Join Required"),x()(),ge(47,"input",44),x()(),b(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),I(52,"Start Time"),x()(),ge(53,"input",46),x(),b(54,"div",3)(55,"div",4)(56,"label",47),I(57,"End Time"),x()(),ge(58,"input",48),x()(),b(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),I(63,"Start Active"),x()(),ge(64,"input",50),x(),b(65,"div",3)(66,"div",4)(67,"label",51),I(68,"End Active"),x()(),ge(69,"input",52),x()()()),2&t){const e=j();w(9),k("value",e.leaderboard.title),w(5),k("value",e.leaderboard.description),w(6),k("value",e.leaderboard.category),w(5),k("value",e.leaderboard.max_num_score),w(6),k("value",e.leaderboard.size),w(5),k("value",e.leaderboard.max_size),w(6),k("value",e.leaderboard.duration),w(5),k("value",e.leaderboard.join_required),w(6),k("value",e.leaderboard.start_time),w(5),k("value",e.leaderboard.end_time),w(6),k("value",e.leaderboard.start_active),w(5),k("value",e.leaderboard.end_active)}}let ylt=(()=>{class t{constructor(e){K(this,"route",void 0),K(this,"editor",void 0),K(this,"orderString",{0:"Ascending",1:"Descending"}),K(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),K(this,"jsonEditor",void 0),K(this,"leaderboard",void 0),K(this,"error",""),this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(mlt,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(e,i){1&e&&(J(0,glt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),I(6,"ID"),x()(),ge(7,"input",6),x(),b(8,"div",3)(9,"div",4)(10,"label",7),I(11,"Authoritative"),x()(),ge(12,"input",8),x()(),b(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),I(17,"Sort Order"),x()(),ge(18,"input",10),x(),b(19,"div",3)(20,"div",4)(21,"label",11),I(22,"Operator"),x()(),ge(23,"input",12),x()(),b(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),I(28,"Reset Schedule"),x()(),ge(29,"input",14),x(),b(30,"div",3)(31,"div",4)(32,"label",15),I(33,"Create Time"),x()(),ge(34,"input",16),x()(),b(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),I(39,"Prev Reset"),x()(),ge(40,"input",18),x(),b(41,"div",3)(42,"div",4)(43,"label",15),I(44,"Next Reset"),x()(),ge(45,"input",19),x()()(),J(46,vlt,70,12,"div",20),b(47,"div",21),ge(48,"div",22,23),x()),2&e&&(k("ngIf",i.error),w(7),k("value",i.leaderboard.id),w(5),k("value",i.leaderboard.authoritative),w(6),k("value",i.orderString[i.leaderboard.sort_order]),w(5),k("value",i.operatorString[i.leaderboard.operator]),w(6),k("value",i.leaderboard.reset_schedule),w(5),k("value",i.leaderboard.create_time),w(6),k("value",i.leaderboard.prev_reset),w(5),k("value",i.leaderboard.next_reset),w(1),k("ngIf",i.leaderboard.tournament))},dependencies:[gn,To],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})();function blt(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function _lt(t,n){1&t&&(b(0,"th",22),I(1,"Remove"),x())}function xlt(t,n){1&t&&(b(0,"tr")(1,"td",23),I(2,"No records found."),x()())}function wlt(t,n){1&t&&ge(0,"div",28)}function Clt(t,n){1&t&&ge(0,"div",29)}function klt(t,n){if(1&t){const e=vt();b(0,"td",30)(1,"button",31),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteRecord(r,s,a))}),I(2,"Delete"),x()()}}function Slt(t,n){if(1&t&&(b(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),I(4),x()()()()),2&t){const e=j().$implicit;w(4),Dt(e.metadata)}}function Dlt(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",24),ye("click",function(){const o=$e(e).index,s=j();return Be(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),J(3,wlt,1,0,"div",25),J(4,Clt,1,0,"div",26),x(),I(5),x(),b(6,"td"),I(7),x(),b(8,"td"),I(9),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x(),b(14,"td"),I(15),x(),b(16,"td"),I(17),x(),J(18,klt,3,0,"td",27),x(),J(19,Slt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.recordsMetadataOpen[e]),w(1),k("ngIf",r.recordsMetadataOpen[e]),w(1),xn(" ",i.owner_id," "),w(2),Dt(i.username),w(2),Dt(i.score),w(2),Dt(i.subscore),w(2),Dt(i.rank),w(2),Dt(i.num_score),w(2),Dt(i.expiry_time?i.expiry_time:"-"),w(1),k("ngIf",r.deleteAllowed()),w(1),k("ngIf",r.recordsMetadataOpen[e])}}let Tlt=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"leaderboard",void 0),K(this,"records",[]),K(this,"recordsMetadataOpen",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),this.route=e,this.consoleService=i,this.authService=r}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(J(0,blt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadRecords(0)}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadRecords(-1)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadRecords(1)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),I(17,"Owner ID"),x(),b(18,"th"),I(19,"Username"),x(),b(20,"th",14),I(21,"Score"),x(),b(22,"th",14),I(23,"Subscore"),x(),b(24,"th",14),I(25,"Rank"),x(),b(26,"th",14),I(27,"No. of scores"),x(),b(28,"th",15),I(29,"Expiry Time"),x(),J(30,_lt,2,0,"th",16),x()(),b(31,"tbody"),J(32,xlt,3,0,"tr",17),J(33,Dlt,20,11,"ng-template",18),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.records.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(20),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.records.length),w(1),k("ngForOf",i.records))},dependencies:[jn,gn,To]})),t})(),Elt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Alt=["editor"],Mlt=["editorResponse"];function Ilt(t,n){if(1&t&&(b(0,"ngb-alert",23),ge(1,"img",24),b(2,"h6",25),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error whilst making RPC call: ",e.error,"")}}function Flt(t,n){if(1&t&&(b(0,"option",26),I(1),x()),2&t){const e=n.$implicit;Nh("value",e.method),w(1),Dt(e.method)}}function Nlt(t,n){if(1&t&&(b(0,"option",26),I(1),x()),2&t){const e=n.$implicit;Nh("value",e.method),w(1),Dt(e.method)}}let Olt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"editorResponse",void 0),K(this,"jsonEditor",void 0),K(this,"jsonEditorResponse",void 0),K(this,"error",""),K(this,"rpcEndpoints",[]),K(this,"endpoints",[]),K(this,"endpointCallForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",Do.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!0}}),this.jsonEditorResponse=new Zm({target:this.editorResponse.nativeElement,props:{mode:Jo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=Zv(this.jsonEditor.get()).text}catch(o){return void(this.error=o)}const i={user_id:this.f.user_id.value,body:e};let r=null;r=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,i):this.consoleService.callApiEndpoint("",this.f.method.value,i),r.subscribe(o=>{if(o.error_message&&""!==o.error_message)this.jsonEditorResponse.set({json:o.error_message});else{e="";try{e=JSON.stringify(JSON.parse(o.body),null,2)}catch(s){return void(this.error=s)}this.jsonEditorResponse.set({text:e})}},o=>{this.jsonEditorResponse.set({text:""}),this.error=o})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditor){if(!e||""===e)return this.jsonEditor.set({text:""}),void this.jsonEditor.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditor.set({text:i}),this.jsonEditor.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}else console.log("problem?")}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}get f(){return this.endpointCallForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&(io(Alt,5),io(Mlt,5)),2&e){let r;cn(r=un())&&(i.editor=r.first),cn(r=un())&&(i.editorResponse=r.first)}},decls:35,vars:6,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"d-flex"],[1,"w-50","py-3"],[1,"mb-4"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","500px"],["editor",""],[1,"w-50","pl-3","py-3"],["editorResponse",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"API Explorer"),x(),J(2,Ilt,4,2,"ngb-alert",1),b(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),ye("ngSubmit",function(){return i.sendRequest()}),b(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),I(11,"Select Endpoint"),x(),J(12,Flt,2,2,"option",10),b(13,"option",11),I(14,"----"),x(),J(15,Nlt,2,2,"option",10),x()(),ge(16,"input",12),b(17,"div",13)(18,"button",14),I(19,"Send Request"),x()()()()()()(),b(20,"div",15)(21,"div",16)(22,"h5"),I(23,"Request Body"),x(),ge(24,"hr",17),b(25,"div",18),ge(26,"div",19,20),x()(),b(28,"div",21)(29,"h5"),I(30,"Response"),x(),ge(31,"hr",17),b(32,"div",18),ge(33,"div",19,22),x()()()),2&e&&(w(2),k("ngIf",i.error),w(4),k("formGroup",i.endpointCallForm),w(4),k("value",""),w(2),k("ngForOf",i.rpcEndpoints),w(3),k("ngForOf",i.endpoints),w(3),k("disabled",i.f.method.invalid))},dependencies:[jn,gn,To,sl,xy,wy,Na,ov,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})),t})(),jlt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Plt(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function Llt(t,n){1&t&&ge(0,"div",23)}function Rlt(t,n){1&t&&ge(0,"div",24)}function $lt(t,n){if(1&t&&(b(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),I(6,"Provider Response"),x()()(),b(7,"div")(8,"pre",28)(9,"small"),I(10),x()()()()()()),2&t){const e=j().$implicit;w(10),Dt(e.provider_response)}}function Blt(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",19),ye("click",function(){const o=$e(e).index,s=j();return Be(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),J(3,Llt,1,0,"div",20),J(4,Rlt,1,0,"div",21),x(),I(5),x(),b(6,"td"),I(7),x(),b(8,"td"),I(9),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x()(),J(14,$lt,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.purchasesRowsOpen[e]),w(1),k("ngIf",r.purchasesRowsOpen[e]),w(1),xn(" ",i.product_id," "),w(2),Dt(i.transaction_id),w(2),Dt(r.getStoreText(i.store)),w(2),Dt(i.purchase_time),w(2),Dt(i.create_time),w(1),k("ngIf",r.purchasesRowsOpen[e])}}function Vlt(t,n){1&t&&(b(0,"tr")(1,"td",29),I(2,"No purchases were found."),x()())}let Hlt=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"purchases",[]),K(this,"purchasesRowsOpen",[]),K(this,"error",""),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"userID",void 0),K(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.purchases=e[0].validated_purchases,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listPurchases("",this.userID,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Sy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-purchases"]],decls:29,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","5",1,"text-muted"]],template:function(e,i){1&e&&(J(0,Plt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadData(i.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadData(i.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),I(17,"Product ID"),x(),b(18,"th"),I(19,"Transaction ID"),x(),b(20,"th"),I(21,"Store"),x(),b(22,"th",13),I(23,"Purchase Time"),x(),b(24,"th",13),I(25,"Create Time"),x()()(),b(26,"tbody"),J(27,Blt,15,8,"ng-template",14),J(28,Vlt,3,0,"tr",15),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.purchases.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(17),k("ngForOf",i.purchases),w(1),k("ngIf",0===i.purchases.length))},dependencies:[jn,gn,To]})),t})(),zlt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listPurchases("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Ult(t,n){1&t&&(b(0,"span"),I(1,"Filter by type"),x())}function Glt(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeFilter)}}function Wlt(t,n){if(1&t){const e=vt();b(0,"button",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeFilter=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function qlt(t,n){if(1&t&&(b(0,"h6"),I(1),x()),2&t){const e=j();w(1),xn("Showing results for chat room label: ",e.f1.label.value,"")}}const Xlt=function(t){return["/groups",t]};function Ylt(t,n){if(1&t&&(b(0,"h6"),I(1,"Showing results for group ID: "),b(2,"a",41),I(3),x()()),2&t){const e=j();w(2),k("routerLink",lr(2,Xlt,e.route.snapshot.queryParamMap.get("group_id"))),w(1),Dt(e.f2.group_id.value)}}const Yme=function(t){return["/accounts",t]};function Jlt(t,n){if(1&t&&(b(0,"h6"),I(1,"Showing results for user IDs: "),b(2,"a",41),I(3),x(),I(4,", "),b(5,"a",41),I(6),x()()),2&t){const e=j();w(2),k("routerLink",lr(4,Yme,e.route.snapshot.queryParamMap.get("user_id_one"))),w(1),Dt(e.f3.user_id_one.value),w(2),k("routerLink",lr(6,Yme,e.route.snapshot.queryParamMap.get("user_id_two"))),w(1),Dt(e.f3.user_id_two.value)}}function Klt(t,n){if(1&t&&(b(0,"ngb-alert",42),ge(1,"img",43),b(2,"h6",44),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying messages: ",e.error,"")}}function Qlt(t,n){1&t&&(b(0,"th",45),I(1,"Remove"),x())}function Zlt(t,n){if(1&t&&(b(0,"tr")(1,"td",46),I(2,"No messages found."),x()()),2&t){const e=j();w(1),ht("colspan",e.deleteAllowed()?6:5)}}function ect(t,n){1&t&&ge(0,"div",55)}function tct(t,n){1&t&&ge(0,"div",56)}function nct(t,n){1&t&&ge(0,"td")}function ict(t,n){if(1&t){const e=vt();b(0,"td",57)(1,"button",58),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteMessage(r,s,a))}),I(2,"Delete"),x()()}}function rct(t,n){if(1&t&&(b(0,"tr",59)(1,"td"),I(2),x()()),2&t){const e=j().$implicit,i=j();w(1),ht("colspan",i.deleteAllowed()?6:5),w(1),xn(" ",e.content," ")}}function oct(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td"),I(2),x(),b(3,"td",47),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",48),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(6),x(),b(7,"td",49)(8,"div",50),ye("click",function(){const o=$e(e).index,s=j();return Be(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),J(9,ect,1,0,"div",51),J(10,tct,1,0,"div",52),x(),I(11),x(),b(12,"td"),I(13),x(),J(14,nct,1,0,"td",3),J(15,ict,3,0,"td",53),x(),J(16,rct,3,2,"tr",54)}if(2&t){const e=n.$implicit,i=n.index,r=j();w(2),Dt(e.code),w(2),Dt(e.sender_id),w(2),Dt(e.username),w(3),k("ngIf",!r.messageStatesOpen[i]),w(1),k("ngIf",r.messageStatesOpen[i]),w(1),xn(" ",e.content," "),w(2),Dt(e.create_time),w(1),k("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),w(1),k("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),w(1),k("ngIf",r.messageStatesOpen[i])}}function sct(t,n){if(1&t&&(b(0,"ngb-alert",60),ge(1,"img",43),b(2,"h6",44),I(3,"Failed to delete data."),x(),b(4,"p",61),I(5),x()()),2&t){const e=j();k("dismissible",!1),w(5),Dt(e.deleteError)}}function act(t,n){if(1&t){const e=vt();b(0,"ngb-alert",62),ye("close",function(){return $e(e),Be(j().deleteSuccess=!1)}),ge(1,"img",63),b(2,"h6",44),I(3),x()()}if(2&t){const e=j();k("dismissible",!0),w(3),Ld("",e.total_deleted," messages ",e.total_deleted>0?"successfully":""," deleted.")}}const lct=function(t){return{"is-invalid":t}};function cct(t,n){if(1&t){const e=vt();b(0,"div",64)(1,"h5",65),I(2,"Delete messages"),x(),b(3,"button",66),ye("click",function(){return Be($e(e).$implicit.dismiss())}),b(4,"span",67),I(5,"\xd7"),x()()(),b(6,"div",68)(7,"div",69)(8,"form",70)(9,"div",71)(10,"p")(11,"b"),I(12,"Choose how many days to retain: "),x(),ge(13,"input",72),x()(),ge(14,"input",73),x()()(),b(15,"div",74)(16,"button",75),ye("click",function(){return Be($e(e).$implicit.dismiss())}),I(17,"Cancel"),x(),b(18,"button",76),ye("click",function(){return Be($e(e).$implicit.close())}),I(19,"DELETE"),x()()}if(2&t){const e=j();w(8),k("formGroup",e.confirmDeleteForm),w(6),k("ngClass",lr(3,lct,e.f.delete.touched&&e.f.delete.invalid)),w(4),k("disabled",e.f.delete.invalid)}}function uct(t,n){if(1&t){const e=vt();b(0,"button",76),ye("click",function(){$e(e);const r=j(),o=uo(68);return Be(r.openDeleteDataModal(o))}),I(1,"Delete messages"),x()}2&t&&k("disabled",j().deleting)}let dct=(()=>{class t{constructor(e,i,r,o,s,a){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"modalService",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"messages",[]),K(this,"nextCursor",""),K(this,"searchForm1",void 0),K(this,"searchForm2",void 0),K(this,"searchForm3",void 0),K(this,"type",void 0),K(this,"confirmDeleteForm",void 0),K(this,"deleteError",""),K(this,"deleteSuccess",!1),K(this,"deleting",!1),K(this,"total_deleted",0),K(this,"activeFilter",""),K(this,"filters",["Chat Room","Group Chat","Direct Chat"]),K(this,"messageStatesOpen",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Do.compose([Do.required,Do.pattern("DELETE")])],days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");let i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2==this.type||3==this.type||4==this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}deleteData(){this.deleteError="",this.deleting=!0;let e=new Date;e.setDate(e.getDate()-this.f.days.value),this.consoleService.deleteChannelMessages("",e.toISOString(),null).subscribe(i=>{this.total_deleted=Number(i.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const r=this.route.snapshot.queryParamMap;let o=r.get("type"),s=r.get("label");s||(s="0");let a=r.get("group_id"),l=r.get("user_id_one"),c=r.get("user_id_two"),u=r.get("cursor");u||(u=""),o&&this.updateMessages(Number(o),s,a,l,c,u)},i=>{this.deleting=!1,this.deleteError=i})}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl),le(H3))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:70,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["confirmDelete",""],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],[1,"mt-2"],["type","number","value","30","min","0","formControlName","days",2,"width","80px"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Chat Messages"),x(),b(2,"div",1)(3,"button",2),J(4,Ult,2,0,"span",3),J(5,Glt,2,1,"span",3),x(),b(6,"div",4),J(7,Wlt,2,1,"button",5),x()(),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),ge(13,"input",11),b(14,"div",12)(15,"div",13)(16,"button",14),ye("click",function(){return i.type=2,i.search(0)}),I(17,"Search"),x()()()()(),b(18,"form",9)(19,"div",10),ge(20,"input",15),b(21,"div",12)(22,"div",13)(23,"button",14),ye("click",function(){return i.type=3,i.search(0)}),I(24,"Search "),x()()()()(),b(25,"form",9)(26,"div",10),ge(27,"input",16),b(28,"div",12)(29,"span",17),ye("click",function(){return i.f3.user_id_one.setValue(i.systemUserId)}),ge(30,"img",18),x()(),ge(31,"input",19),b(32,"div",12)(33,"div",13)(34,"button",14),ye("click",function(){return i.type=4,i.search(0)}),I(35,"Search "),x()()()()()(),b(36,"div",20)(37,"div",21)(38,"button",22),ye("click",function(){return i.search(0)}),ge(39,"img",23),x(),b(40,"button",22),ye("click",function(){return i.search(1)}),ge(41,"img",24),x()()()()(),J(42,qlt,2,1,"h6",3),J(43,Ylt,4,4,"h6",3),J(44,Jlt,7,8,"h6",3),J(45,Klt,4,2,"ngb-alert",25),b(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),I(51,"Code"),x(),b(52,"th",30),I(53,"Sender ID"),x(),b(54,"th",31),I(55,"Username"),x(),b(56,"th"),I(57,"Content"),x(),b(58,"th",32),I(59,"Create Time"),x(),J(60,Qlt,2,0,"th",33),x()(),b(61,"tbody"),J(62,Zlt,3,1,"tr",3),J(63,oct,17,10,"ng-template",34),x()()(),J(64,sct,6,2,"ngb-alert",35),J(65,act,4,3,"ngb-alert",36),b(66,"div",37),J(67,cct,20,5,"ng-template",null,38,Ur),J(69,uct,2,1,"button",39),x()),2&e&&(w(4),k("ngIf",!i.activeFilter||""===i.activeFilter),w(1),k("ngIf",i.activeFilter&&""!==i.activeFilter),w(2),k("ngForOf",i.filters),w(4),k("hidden","Chat Room"!==i.activeFilter)("formGroup",i.searchForm1),w(7),k("hidden","Group Chat"!==i.activeFilter)("formGroup",i.searchForm2),w(7),k("hidden","Direct Chat"!==i.activeFilter)("formGroup",i.searchForm3),w(13),k("disabled",0===i.messages.length),w(2),k("disabled",""===i.nextCursor||null===i.nextCursor),w(2),k("ngIf",0!=i.messages.length&&""===i.error&&2==i.type),w(1),k("ngIf",0!=i.messages.length&&""===i.error&&3==i.type),w(1),k("ngIf",0!=i.messages.length&&""===i.error&&4==i.type),w(1),k("ngIf",i.error),w(15),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.messages.length),w(1),k("ngForOf",i.messages),w(1),k("ngIf",i.deleteError),w(1),k("ngIf",i.deleteSuccess),w(4),k("ngIf",i.deleteMessagesAllowed()))},dependencies:[Fu,Rh,jn,gn,To,Pu,rm,Pf,jf,sl,Na,c3,rl,ol,p3,fa,ja],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})),t})(),hct=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));default:return $n(null)}}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function fct(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function pct(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td"),I(6),x(),b(7,"td"),I(8),x(),b(9,"td"),I(10),x(),b(11,"td"),I(12),x()()),2&t){const e=n.$implicit,i=j();w(2),Dt(e.product_id),w(2),Dt(e.original_transaction_id),w(2),Dt(i.getStoreText(e.store)),w(2),Dt(e.purchase_time),w(2),Dt(e.expiry_time),w(2),Dt(e.create_time)}}function mct(t,n){1&t&&(b(0,"tr")(1,"td",19),I(2,"No purchases were found."),x()())}const gct=[{path:"",component:yNe,canActivate:[tMe],canActivateChild:[bNe],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:rBe,resolve:[oBe]},{path:"config",component:OBe,resolve:[jBe]},{path:"users",component:BBe,resolve:[VBe]},{path:"modules",component:t7e,resolve:[n7e]},{path:"storage",component:d7e,resolve:[h7e,f7e],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Cot,resolve:[kot],pathMatch:"full"},{path:"leaderboards",component:Oot,resolve:[jot]},{path:"leaderboards/:id",component:flt,resolve:[plt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:ylt,resolve:[]},{path:"records",component:Tlt,resolve:[Elt]}]},{path:"matches",component:zat,resolve:[Uat,Gat]},{path:"groups",component:Qat,resolve:[Zat]},{path:"groups/:id",component:slt,resolve:[alt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:iat,resolve:[]},{path:"members",component:Cat,resolve:[kat],runGuardsAndResolvers:"always"}]},{path:"accounts",component:Hot,resolve:[zot]},{path:"accounts/:id",component:nst,resolve:[ist],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:cst,resolve:[]},{path:"authentication",component:pst,resolve:[]},{path:"wallet",component:Dst,resolve:[Tst]},{path:"friends",component:Lst,resolve:[Rst]},{path:"groups",component:Yst,resolve:[Jst]},{path:"purchases",component:Hlt,resolve:[zlt]},{path:"subscriptions",component:(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"subscriptions",[]),K(this,"error",""),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"userID",void 0),K(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.subscriptions=e[0].validated_subscriptions,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listSubscriptions("",this.userID,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Sy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-subscriptions"]],decls:31,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["colspan","6",1,"text-muted"]],template:function(e,i){1&e&&(J(0,fct,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadData(i.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadData(i.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),I(17,"Product ID"),x(),b(18,"th"),I(19,"Original Transaction ID"),x(),b(20,"th"),I(21,"Store"),x(),b(22,"th",13),I(23,"Purchase Time"),x(),b(24,"th",13),I(25,"Expiry Time"),x(),b(26,"th",13),I(27,"Create Time"),x()()(),b(28,"tbody"),J(29,pct,13,6,"ng-template",14),J(30,mct,3,0,"tr",15),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.subscriptions.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(19),k("ngForOf",i.subscriptions),w(1),k("ngIf",0===i.subscriptions.length))},dependencies:[jn,gn,To]})),t})(),resolve:[(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listSubscriptions("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})()]}]},{path:"apiexplorer",component:Olt,resolve:[jlt]},{path:"chat",component:dct,resolve:[hct]}]},{path:"login",component:ZAe,canActivate:[eMe]},{path:"**",redirectTo:""}];let vct=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275mod",Di({type:t})),K(t,"\u0275inj",Ci({imports:[J9.forRoot(gct,{useHash:!0}),J9]})),t})(),yct=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[Jp]})),t})();new class kct extends Hd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Dct=1;const Tct=Promise.resolve(),YD={};function Jme(t){return t in YD&&(delete YD[t],!0)}const Kme={setImmediate(t){const n=Dct++;return YD[n]=!0,Tct.then(()=>Jme(n)&&t()),n},clearImmediate(t){Jme(t)}};new class Act extends Hd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=Kme.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(Kme.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Cs={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};Cs[Cs.Tab]="Tab",Cs[Cs.Enter]="Enter",Cs[Cs.Esc]="Esc",Cs[Cs.Space]="Space",Cs[Cs.ArrowUp]="ArrowUp",Cs[Cs.ArrowDown]="ArrowDown",Cs[Cs.Backspace]="Backspace";const ige=new zn("ng-select-selection-model");class jut{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}const Put=function Out(){return new jut};let Lut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[{provide:ige,useValue:Put}],imports:[Vs]}),t})(),Rut=(()=>{class t{constructor(e){K(this,"authenticationService",void 0),this.authenticationService=e}intercept(e,i){const r=this.authenticationService.currentSessionValue;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac})),t})(),$ut=(()=>{class t{constructor(e,i){K(this,"authenticationService",void 0),K(this,"router",void 0),this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Ul(r=>(401===r.status?this.authenticationService.logout().subscribe({next:()=>{e.url.includes("/v3/auth")||this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}}):r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`),qp(r.error.message||r.statusText))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo),ct(cr))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac})),t})(),But=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275mod",Di({type:t,bootstrap:[yct]})),K(t,"\u0275inj",Ci({providers:[JAe,Iz,{provide:C3,useValue:{host:document.location.origin,timeout:15e3}},{provide:x3,useClass:Rut,multi:!0},{provide:x3,useClass:$ut,multi:!0}],imports:[pBe,vct,qA,SSe,qAe,cNe,L$e,SAe.forRoot({apiKey:"dHl7FTjJ9icepBjEdOCcyMFQYL1BBiQO",debug:!1,loadOnInitialization:!0}),DSe,wAe,ZV,Lut]})),t})();g2e().bootstrapModule(But).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},343:(Yt,Tn)=>{"use strict";Tn.byteLength=function Ve(T){var O=et(T),Me=O[1];return 3*(O[0]+Me)/4-Me},Tn.toByteArray=function se(T){var O,wn,te=et(T),Me=te[0],Je=te[1],kt=new Oe(function ve(T,O,te){return 3*(O+te)/4-te}(0,Me,Je)),jt=0,Wt=Je>0?Me-4:Me;for(wn=0;wn>16&255,kt[jt++]=O>>8&255,kt[jt++]=255&O;return 2===Je&&(O=rt[T.charCodeAt(wn)]<<2|rt[T.charCodeAt(wn+1)]>>4,kt[jt++]=255&O),1===Je&&(O=rt[T.charCodeAt(wn)]<<10|rt[T.charCodeAt(wn+1)]<<4|rt[T.charCodeAt(wn+2)]>>2,kt[jt++]=O>>8&255,kt[jt++]=255&O),kt},Tn.fromByteArray=function D(T){for(var O,te=T.length,Me=te%3,Je=[],jt=0,Wt=te-Me;jtWt?Wt:jt+16383));return 1===Me?Je.push(De[(O=T[te-1])>>2]+De[O<<4&63]+"=="):2===Me&&Je.push(De[(O=(T[te-2]<<8)+T[te-1])>>10]+De[O>>4&63]+De[O<<2&63]+"="),Je.join("")};for(var De=[],rt=[],Oe=typeof Uint8Array<"u"?Uint8Array:Array,dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ge=0,_e=dt.length;Ge<_e;++Ge)De[Ge]=dt[Ge],rt[dt.charCodeAt(Ge)]=Ge;function et(T){var O=T.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var te=T.indexOf("=");return-1===te&&(te=O),[te,te===O?0:4-te%4]}function ue(T){return De[T>>18&63]+De[T>>12&63]+De[T>>6&63]+De[63&T]}function ae(T,O,te){for(var Je=[],kt=O;kt{"use strict";var Oe=De(343),dt=De(461),Ge="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Tn.lW=ve,Tn.h2=50;var _e=2147483647;function Ve(Te){if(Te>_e)throw new RangeError('The value "'+Te+'" is invalid for option "size"');var W=new Uint8Array(Te);return Object.setPrototypeOf(W,ve.prototype),W}function ve(Te,W,ee){if("number"==typeof Te){if("string"==typeof W)throw new TypeError('The "string" argument must be of type string. Received type number');return D(Te)}return se(Te,W,ee)}function se(Te,W,ee){if("string"==typeof Te)return function T(Te,W){if(("string"!=typeof W||""===W)&&(W="utf8"),!ve.isEncoding(W))throw new TypeError("Unknown encoding: "+W);var ee=0|Wt(Te,W),Ne=Ve(ee),nt=Ne.write(Te,W);return nt!==ee&&(Ne=Ne.slice(0,nt)),Ne}(Te,W);if(ArrayBuffer.isView(Te))return function te(Te){if(da(Te,Uint8Array)){var W=new Uint8Array(Te);return Me(W.buffer,W.byteOffset,W.byteLength)}return O(Te)}(Te);if(null==Te)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Te);if(da(Te,ArrayBuffer)||Te&&da(Te.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(da(Te,SharedArrayBuffer)||Te&&da(Te.buffer,SharedArrayBuffer)))return Me(Te,W,ee);if("number"==typeof Te)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ne=Te.valueOf&&Te.valueOf();if(null!=Ne&&Ne!==Te)return ve.from(Ne,W,ee);var nt=function Je(Te){if(ve.isBuffer(Te)){var W=0|kt(Te.length),ee=Ve(W);return 0===ee.length||Te.copy(ee,0,0,W),ee}return void 0!==Te.length?"number"!=typeof Te.length||co(Te.length)?Ve(0):O(Te):"Buffer"===Te.type&&Array.isArray(Te.data)?O(Te.data):void 0}(Te);if(nt)return nt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Te[Symbol.toPrimitive])return ve.from(Te[Symbol.toPrimitive]("string"),W,ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Te)}function ue(Te){if("number"!=typeof Te)throw new TypeError('"size" argument must be of type number');if(Te<0)throw new RangeError('The value "'+Te+'" is invalid for option "size"')}function D(Te){return ue(Te),Ve(Te<0?0:0|kt(Te))}function O(Te){for(var W=Te.length<0?0:0|kt(Te.length),ee=Ve(W),Ne=0;Ne=_e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e.toString(16)+" bytes");return 0|Te}function Wt(Te,W){if(ve.isBuffer(Te))return Te.length;if(ArrayBuffer.isView(Te)||da(Te,ArrayBuffer))return Te.byteLength;if("string"!=typeof Te)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Te);var ee=Te.length,Ne=arguments.length>2&&!0===arguments[2];if(!Ne&&0===ee)return 0;for(var nt=!1;;)switch(W){case"ascii":case"latin1":case"binary":return ee;case"utf8":case"utf-8":return Nc(Te).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ee;case"hex":return ee>>>1;case"base64":return vu(Te).length;default:if(nt)return Ne?-1:Nc(Te).length;W=(""+W).toLowerCase(),nt=!0}}function wn(Te,W,ee){var Ne=!1;if((void 0===W||W<0)&&(W=0),W>this.length||((void 0===ee||ee>this.length)&&(ee=this.length),ee<=0)||(ee>>>=0)<=(W>>>=0))return"";for(Te||(Te="utf8");;)switch(Te){case"hex":return gu(this,W,ee);case"utf8":case"utf-8":return yn(this,W,ee);case"ascii":return Kn(this,W,ee);case"latin1":case"binary":return Fc(this,W,ee);case"base64":return Sa(this,W,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ro(this,W,ee);default:if(Ne)throw new TypeError("Unknown encoding: "+Te);Te=(Te+"").toLowerCase(),Ne=!0}}function rn(Te,W,ee){var Ne=Te[W];Te[W]=Te[ee],Te[ee]=Ne}function Mi(Te,W,ee,Ne,nt){if(0===Te.length)return-1;if("string"==typeof ee?(Ne=ee,ee=0):ee>2147483647?ee=2147483647:ee<-2147483648&&(ee=-2147483648),co(ee=+ee)&&(ee=nt?0:Te.length-1),ee<0&&(ee=Te.length+ee),ee>=Te.length){if(nt)return-1;ee=Te.length-1}else if(ee<0){if(!nt)return-1;ee=0}if("string"==typeof W&&(W=ve.from(W,Ne)),ve.isBuffer(W))return 0===W.length?-1:zr(Te,W,ee,Ne,nt);if("number"==typeof W)return W&=255,"function"==typeof Uint8Array.prototype.indexOf?nt?Uint8Array.prototype.indexOf.call(Te,W,ee):Uint8Array.prototype.lastIndexOf.call(Te,W,ee):zr(Te,[W],ee,Ne,nt);throw new TypeError("val must be string, number or Buffer")}function zr(Te,W,ee,Ne,nt){var st,zt=1,Qt=Te.length,nr=W.length;if(void 0!==Ne&&("ucs2"===(Ne=String(Ne).toLowerCase())||"ucs-2"===Ne||"utf16le"===Ne||"utf-16le"===Ne)){if(Te.length<2||W.length<2)return-1;zt=2,Qt/=2,nr/=2,ee/=2}function A(mn,pe){return 1===zt?mn[pe]:mn.readUInt16BE(pe*zt)}if(nt){var Tt=-1;for(st=ee;stQt&&(ee=Qt-nr),st=ee;st>=0;st--){for(var Ut=!0,Vt=0;Vtnt&&(Ne=nt):Ne=nt;var zt=W.length;Ne>zt/2&&(Ne=zt/2);for(var Qt=0;Qt>8,zt.push(ee%256),zt.push(Ne);return zt}(W,Te.length-ee),Te,ee,Ne)}function Sa(Te,W,ee){return Oe.fromByteArray(0===W&&ee===Te.length?Te:Te.slice(W,ee))}function yn(Te,W,ee){ee=Math.min(Te.length,ee);for(var Ne=[],nt=W;nt239?4:zt>223?3:zt>191?2:1;if(nt+nr<=ee)switch(nr){case 1:zt<128&&(Qt=zt);break;case 2:128==(192&(A=Te[nt+1]))&&(Ut=(31&zt)<<6|63&A)>127&&(Qt=Ut);break;case 3:st=Te[nt+2],128==(192&(A=Te[nt+1]))&&128==(192&st)&&(Ut=(15&zt)<<12|(63&A)<<6|63&st)>2047&&(Ut<55296||Ut>57343)&&(Qt=Ut);break;case 4:st=Te[nt+2],Tt=Te[nt+3],128==(192&(A=Te[nt+1]))&&128==(192&st)&&128==(192&Tt)&&(Ut=(15&zt)<<18|(63&A)<<12|(63&st)<<6|63&Tt)>65535&&Ut<1114112&&(Qt=Ut)}null===Qt?(Qt=65533,nr=1):Qt>65535&&(Ne.push((Qt-=65536)>>>10&1023|55296),Qt=56320|1023&Qt),Ne.push(Qt),nt+=nr}return function kd(Te){var W=Te.length;if(W<=Cd)return String.fromCharCode.apply(String,Te);for(var ee="",Ne=0;Nent.length?ve.from(Qt).copy(nt,zt):Uint8Array.prototype.set.call(nt,Qt,zt);else{if(!ve.isBuffer(Qt))throw new TypeError('"list" argument must be an Array of Buffers');Qt.copy(nt,zt)}zt+=Qt.length}return nt},ve.byteLength=Wt,ve.prototype._isBuffer=!0,ve.prototype.swap16=function(){var W=this.length;if(W%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ee=0;eeee&&(W+=" ... "),""},Ge&&(ve.prototype[Ge]=ve.prototype.inspect),ve.prototype.compare=function(W,ee,Ne,nt,zt){if(da(W,Uint8Array)&&(W=ve.from(W,W.offset,W.byteLength)),!ve.isBuffer(W))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof W);if(void 0===ee&&(ee=0),void 0===Ne&&(Ne=W?W.length:0),void 0===nt&&(nt=0),void 0===zt&&(zt=this.length),ee<0||Ne>W.length||nt<0||zt>this.length)throw new RangeError("out of range index");if(nt>=zt&&ee>=Ne)return 0;if(nt>=zt)return-1;if(ee>=Ne)return 1;if(this===W)return 0;for(var Qt=(zt>>>=0)-(nt>>>=0),nr=(Ne>>>=0)-(ee>>>=0),A=Math.min(Qt,nr),st=this.slice(nt,zt),Tt=W.slice(ee,Ne),Ut=0;Ut>>=0,isFinite(Ne)?(Ne>>>=0,void 0===nt&&(nt="utf8")):(nt=Ne,Ne=void 0)}var zt=this.length-ee;if((void 0===Ne||Ne>zt)&&(Ne=zt),W.length>0&&(Ne<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");for(var Qt=!1;;)switch(nt){case"hex":return Xr(this,W,ee,Ne);case"utf8":case"utf-8":return hs(this,W,ee,Ne);case"ascii":case"latin1":case"binary":return Ya(this,W,ee,Ne);case"base64":return tr(this,W,ee,Ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mu(this,W,ee,Ne);default:if(Qt)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),Qt=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Cd=4096;function Kn(Te,W,ee){var Ne="";ee=Math.min(Te.length,ee);for(var nt=W;ntNe)&&(ee=Ne);for(var nt="",zt=W;ztee)throw new RangeError("Trying to access beyond buffer length")}function lo(Te,W,ee,Ne,nt,zt){if(!ve.isBuffer(Te))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>nt||WTe.length)throw new RangeError("Index out of range")}function Da(Te,W,ee,Ne,nt,zt){if(ee+Ne>Te.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("Index out of range")}function Zr(Te,W,ee,Ne,nt){return W=+W,ee>>>=0,nt||Da(Te,0,ee,4),dt.write(Te,W,ee,Ne,23,4),ee+4}function pl(Te,W,ee,Ne,nt){return W=+W,ee>>>=0,nt||Da(Te,0,ee,8),dt.write(Te,W,ee,Ne,52,8),ee+8}ve.prototype.slice=function(W,ee){var Ne=this.length;(W=~~W)<0?(W+=Ne)<0&&(W=0):W>Ne&&(W=Ne),(ee=void 0===ee?Ne:~~ee)<0?(ee+=Ne)<0&&(ee=0):ee>Ne&&(ee=Ne),ee>>=0,ee>>>=0,Ne||Co(W,ee,this.length);for(var nt=this[W],zt=1,Qt=0;++Qt>>=0,ee>>>=0,Ne||Co(W,ee,this.length);for(var nt=this[W+--ee],zt=1;ee>0&&(zt*=256);)nt+=this[W+--ee]*zt;return nt},ve.prototype.readUint8=ve.prototype.readUInt8=function(W,ee){return W>>>=0,ee||Co(W,1,this.length),this[W]},ve.prototype.readUint16LE=ve.prototype.readUInt16LE=function(W,ee){return W>>>=0,ee||Co(W,2,this.length),this[W]|this[W+1]<<8},ve.prototype.readUint16BE=ve.prototype.readUInt16BE=function(W,ee){return W>>>=0,ee||Co(W,2,this.length),this[W]<<8|this[W+1]},ve.prototype.readUint32LE=ve.prototype.readUInt32LE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+16777216*this[W+3]},ve.prototype.readUint32BE=ve.prototype.readUInt32BE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),16777216*this[W]+(this[W+1]<<16|this[W+2]<<8|this[W+3])},ve.prototype.readIntLE=function(W,ee,Ne){W>>>=0,ee>>>=0,Ne||Co(W,ee,this.length);for(var nt=this[W],zt=1,Qt=0;++Qt=(zt*=128)&&(nt-=Math.pow(2,8*ee)),nt},ve.prototype.readIntBE=function(W,ee,Ne){W>>>=0,ee>>>=0,Ne||Co(W,ee,this.length);for(var nt=ee,zt=1,Qt=this[W+--nt];nt>0&&(zt*=256);)Qt+=this[W+--nt]*zt;return Qt>=(zt*=128)&&(Qt-=Math.pow(2,8*ee)),Qt},ve.prototype.readInt8=function(W,ee){return W>>>=0,ee||Co(W,1,this.length),128&this[W]?-1*(255-this[W]+1):this[W]},ve.prototype.readInt16LE=function(W,ee){W>>>=0,ee||Co(W,2,this.length);var Ne=this[W]|this[W+1]<<8;return 32768&Ne?4294901760|Ne:Ne},ve.prototype.readInt16BE=function(W,ee){W>>>=0,ee||Co(W,2,this.length);var Ne=this[W+1]|this[W]<<8;return 32768&Ne?4294901760|Ne:Ne},ve.prototype.readInt32LE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},ve.prototype.readInt32BE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},ve.prototype.readFloatLE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),dt.read(this,W,!0,23,4)},ve.prototype.readFloatBE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),dt.read(this,W,!1,23,4)},ve.prototype.readDoubleLE=function(W,ee){return W>>>=0,ee||Co(W,8,this.length),dt.read(this,W,!0,52,8)},ve.prototype.readDoubleBE=function(W,ee){return W>>>=0,ee||Co(W,8,this.length),dt.read(this,W,!1,52,8)},ve.prototype.writeUintLE=ve.prototype.writeUIntLE=function(W,ee,Ne,nt){W=+W,ee>>>=0,Ne>>>=0,nt||lo(this,W,ee,Ne,Math.pow(2,8*Ne)-1,0);var Qt=1,nr=0;for(this[ee]=255&W;++nr>>=0,Ne>>>=0,nt||lo(this,W,ee,Ne,Math.pow(2,8*Ne)-1,0);var Qt=Ne-1,nr=1;for(this[ee+Qt]=255&W;--Qt>=0&&(nr*=256);)this[ee+Qt]=W/nr&255;return ee+Ne},ve.prototype.writeUint8=ve.prototype.writeUInt8=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,1,255,0),this[ee]=255&W,ee+1},ve.prototype.writeUint16LE=ve.prototype.writeUInt16LE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,2,65535,0),this[ee]=255&W,this[ee+1]=W>>>8,ee+2},ve.prototype.writeUint16BE=ve.prototype.writeUInt16BE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,2,65535,0),this[ee]=W>>>8,this[ee+1]=255&W,ee+2},ve.prototype.writeUint32LE=ve.prototype.writeUInt32LE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,4,4294967295,0),this[ee+3]=W>>>24,this[ee+2]=W>>>16,this[ee+1]=W>>>8,this[ee]=255&W,ee+4},ve.prototype.writeUint32BE=ve.prototype.writeUInt32BE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,4,4294967295,0),this[ee]=W>>>24,this[ee+1]=W>>>16,this[ee+2]=W>>>8,this[ee+3]=255&W,ee+4},ve.prototype.writeIntLE=function(W,ee,Ne,nt){if(W=+W,ee>>>=0,!nt){var zt=Math.pow(2,8*Ne-1);lo(this,W,ee,Ne,zt-1,-zt)}var Qt=0,nr=1,A=0;for(this[ee]=255&W;++Qt>0)-A&255;return ee+Ne},ve.prototype.writeIntBE=function(W,ee,Ne,nt){if(W=+W,ee>>>=0,!nt){var zt=Math.pow(2,8*Ne-1);lo(this,W,ee,Ne,zt-1,-zt)}var Qt=Ne-1,nr=1,A=0;for(this[ee+Qt]=255&W;--Qt>=0&&(nr*=256);)W<0&&0===A&&0!==this[ee+Qt+1]&&(A=1),this[ee+Qt]=(W/nr>>0)-A&255;return ee+Ne},ve.prototype.writeInt8=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,1,127,-128),W<0&&(W=255+W+1),this[ee]=255&W,ee+1},ve.prototype.writeInt16LE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,2,32767,-32768),this[ee]=255&W,this[ee+1]=W>>>8,ee+2},ve.prototype.writeInt16BE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,2,32767,-32768),this[ee]=W>>>8,this[ee+1]=255&W,ee+2},ve.prototype.writeInt32LE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,4,2147483647,-2147483648),this[ee]=255&W,this[ee+1]=W>>>8,this[ee+2]=W>>>16,this[ee+3]=W>>>24,ee+4},ve.prototype.writeInt32BE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),this[ee]=W>>>24,this[ee+1]=W>>>16,this[ee+2]=W>>>8,this[ee+3]=255&W,ee+4},ve.prototype.writeFloatLE=function(W,ee,Ne){return Zr(this,W,ee,!0,Ne)},ve.prototype.writeFloatBE=function(W,ee,Ne){return Zr(this,W,ee,!1,Ne)},ve.prototype.writeDoubleLE=function(W,ee,Ne){return pl(this,W,ee,!0,Ne)},ve.prototype.writeDoubleBE=function(W,ee,Ne){return pl(this,W,ee,!1,Ne)},ve.prototype.copy=function(W,ee,Ne,nt){if(!ve.isBuffer(W))throw new TypeError("argument should be a Buffer");if(Ne||(Ne=0),!nt&&0!==nt&&(nt=this.length),ee>=W.length&&(ee=W.length),ee||(ee=0),nt>0&&nt=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),W.length-ee>>=0,Ne=void 0===Ne?this.length:Ne>>>0,W||(W=0),"number"==typeof W)for(Qt=ee;Qt55295&&ee<57344){if(!nt){if(ee>56319){(W-=3)>-1&&zt.push(239,191,189);continue}if(Qt+1===Ne){(W-=3)>-1&&zt.push(239,191,189);continue}nt=ee;continue}if(ee<56320){(W-=3)>-1&&zt.push(239,191,189),nt=ee;continue}ee=65536+(nt-55296<<10|ee-56320)}else nt&&(W-=3)>-1&&zt.push(239,191,189);if(nt=null,ee<128){if((W-=1)<0)break;zt.push(ee)}else if(ee<2048){if((W-=2)<0)break;zt.push(ee>>6|192,63&ee|128)}else if(ee<65536){if((W-=3)<0)break;zt.push(ee>>12|224,ee>>6&63|128,63&ee|128)}else{if(!(ee<1114112))throw new Error("Invalid code point");if((W-=4)<0)break;zt.push(ee>>18|240,ee>>12&63|128,ee>>6&63|128,63&ee|128)}}return zt}function vu(Te){return Oe.toByteArray(function Sd(Te){if((Te=(Te=Te.split("=")[0]).trim().replace(nc,"")).length<2)return"";for(;Te.length%4!=0;)Te+="=";return Te}(Te))}function Ja(Te,W,ee,Ne){for(var nt=0;nt=W.length||nt>=Te.length);++nt)W[nt+ee]=Te[nt];return nt}function da(Te,W){return Te instanceof W||null!=Te&&null!=Te.constructor&&null!=Te.constructor.name&&Te.constructor.name===W.name}function co(Te){return Te!=Te}var ml=function(){for(var Te="0123456789abcdef",W=new Array(256),ee=0;ee<16;++ee)for(var Ne=16*ee,nt=0;nt<16;++nt)W[Ne+nt]=Te[ee]+Te[nt];return W}()},797:function(Yt){Yt.exports=function(Tn){var De={};function rt(Oe){if(De[Oe])return De[Oe].exports;var dt=De[Oe]={exports:{},id:Oe,loaded:!1};return Tn[Oe].call(dt.exports,dt,dt.exports,rt),dt.loaded=!0,dt.exports}return rt.m=Tn,rt.c=De,rt.p="",rt(0)}([function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(1),dt=rt(3),Ge=rt(8),_e=rt(15);function et(ae,D,T){var O=null,te=function(Mi,zr){T&&T(Mi,zr),O&&O.visit(Mi,zr)},Me="function"==typeof T?te:null,Je=!1;if(D){var kt="boolean"==typeof D.attachComment&&D.attachComment;((Je="boolean"==typeof D.comment&&D.comment)||kt)&&((O=new Oe.CommentHandler).attach=kt,D.comment=!0,Me=te)}var Wt,jt=!1;D&&"string"==typeof D.sourceType&&(jt="module"===D.sourceType),Wt=D&&"boolean"==typeof D.jsx&&D.jsx?new dt.JSXParser(ae,D,Me):new Ge.Parser(ae,D,Me);var rn=jt?Wt.parseModule():Wt.parseScript();return Je&&O&&(rn.comments=O.comments),Wt.config.tokens&&(rn.tokens=Wt.tokens),Wt.config.tolerant&&(rn.errors=Wt.errorHandler.errors),rn}De.parse=et,De.parseModule=function Ve(ae,D,T){var O=D||{};return O.sourceType="module",et(ae,O,T)},De.parseScript=function ve(ae,D,T){var O=D||{};return O.sourceType="script",et(ae,O,T)},De.tokenize=function se(ae,D,T){var te,O=new _e.Tokenizer(ae,D);te=[];try{for(;;){var Me=O.getNextToken();if(!Me)break;T&&(Me=T(Me)),te.push(Me)}}catch(Je){O.errorHandler.tolerate(Je)}return O.errorHandler.tolerant&&(te.errors=O.errors()),te};var ue=rt(2);De.Syntax=ue.Syntax,De.version="4.0.1"},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(2),dt=function(){function Ge(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return Ge.prototype.insertInnerComments=function(_e,et){if(_e.type===Oe.Syntax.BlockStatement&&0===_e.body.length){for(var Ve=[],ve=this.leading.length-1;ve>=0;--ve){var se=this.leading[ve];et.end.offset>=se.start&&(Ve.unshift(se.comment),this.leading.splice(ve,1),this.trailing.splice(ve,1))}Ve.length&&(_e.innerComments=Ve)}},Ge.prototype.findTrailingComments=function(_e){var et=[];if(this.trailing.length>0){for(var Ve=this.trailing.length-1;Ve>=0;--Ve){var ve=this.trailing[Ve];ve.start>=_e.end.offset&&et.unshift(ve.comment)}return this.trailing.length=0,et}var se=this.stack[this.stack.length-1];if(se&&se.node.trailingComments){var ue=se.node.trailingComments[0];ue&&ue.range[0]>=_e.end.offset&&(et=se.node.trailingComments,delete se.node.trailingComments)}return et},Ge.prototype.findLeadingComments=function(_e){for(var Ve,et=[];this.stack.length>0&&(ve=this.stack[this.stack.length-1])&&ve.start>=_e.start.offset;)Ve=ve.node,this.stack.pop();if(Ve){for(var ue=(Ve.leadingComments?Ve.leadingComments.length:0)-1;ue>=0;--ue){var ae=Ve.leadingComments[ue];ae.range[1]<=_e.start.offset&&(et.unshift(ae),Ve.leadingComments.splice(ue,1))}return Ve.leadingComments&&0===Ve.leadingComments.length&&delete Ve.leadingComments,et}for(ue=this.leading.length-1;ue>=0;--ue){var ve;(ve=this.leading[ue]).start<=_e.start.offset&&(et.unshift(ve.comment),this.leading.splice(ue,1))}return et},Ge.prototype.visitNode=function(_e,et){if(!(_e.type===Oe.Syntax.Program&&_e.body.length>0)){this.insertInnerComments(_e,et);var Ve=this.findTrailingComments(et),ve=this.findLeadingComments(et);ve.length>0&&(_e.leadingComments=ve),Ve.length>0&&(_e.trailingComments=Ve),this.stack.push({node:_e,start:et.start.offset})}},Ge.prototype.visitComment=function(_e,et){var Ve="L"===_e.type[0]?"Line":"Block",ve={type:Ve,value:_e.value};if(_e.range&&(ve.range=_e.range),_e.loc&&(ve.loc=_e.loc),this.comments.push(ve),this.attach){var se={comment:{type:Ve,value:_e.value,range:[et.start.offset,et.end.offset]},start:et.start.offset};_e.loc&&(se.comment.loc=_e.loc),_e.type=Ve,this.leading.push(se),this.trailing.push(se)}},Ge.prototype.visit=function(_e,et){"LineComment"===_e.type||"BlockComment"===_e.type?this.visitComment(_e,et):this.attach&&this.visitNode(_e,et)},Ge}();De.CommentHandler=dt},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Tn,De,rt){"use strict";var D,Oe=this&&this.__extends||(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,O){T.__proto__=O}||function(T,O){for(var te in O)O.hasOwnProperty(te)&&(T[te]=O[te])},function(T,O){function te(){this.constructor=T}D(T,O),T.prototype=null===O?Object.create(O):(te.prototype=O.prototype,new te)});Object.defineProperty(De,"__esModule",{value:!0});var dt=rt(4),Ge=rt(5),_e=rt(6),et=rt(7),Ve=rt(8),ve=rt(13),se=rt(14);function ue(D){var T;switch(D.type){case _e.JSXSyntax.JSXIdentifier:T=D.name;break;case _e.JSXSyntax.JSXNamespacedName:var te=D;T=ue(te.namespace)+":"+ue(te.name);break;case _e.JSXSyntax.JSXMemberExpression:var Me=D;T=ue(Me.object)+"."+ue(Me.property)}return T}ve.TokenName[100]="JSXIdentifier",ve.TokenName[101]="JSXText";var ae=function(D){function T(O,te,Me){return D.call(this,O,te,Me)||this}return Oe(T,D),T.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():D.prototype.parsePrimaryExpression.call(this)},T.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},T.prototype.finishJSX=function(){this.nextToken()},T.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},T.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.scanXHTMLEntity=function(O){for(var te="&",Me=!0,Je=!1,kt=!1,jt=!1;!this.scanner.eof()&&Me&&!Je;){var Wt=this.scanner.source[this.scanner.index];if(Wt===O)break;if(Je=";"===Wt,te+=Wt,++this.scanner.index,!Je)switch(te.length){case 2:kt="#"===Wt;break;case 3:kt&&(Me=(jt="x"===Wt)||dt.Character.isDecimalDigit(Wt.charCodeAt(0)),kt=kt&&!jt);break;default:Me=(Me=Me&&!(kt&&!dt.Character.isDecimalDigit(Wt.charCodeAt(0))))&&!(jt&&!dt.Character.isHexDigit(Wt.charCodeAt(0)))}}if(Me&&Je&&te.length>2){var wn=te.substr(1,te.length-2);kt&&wn.length>1?te=String.fromCharCode(parseInt(wn.substr(1),10)):jt&&wn.length>2?te=String.fromCharCode(parseInt("0"+wn.substr(1),16)):!kt&&!jt&&se.XHTMLEntities[wn]&&(te=se.XHTMLEntities[wn])}return te},T.prototype.lexJSX=function(){var O=this.scanner.source.charCodeAt(this.scanner.index);if(60===O||62===O||47===O||58===O||61===O||123===O||125===O)return{type:7,value:te=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===O||39===O){for(var Me=this.scanner.index,Je=this.scanner.source[this.scanner.index++],kt="";!this.scanner.eof()&&(jt=this.scanner.source[this.scanner.index++])!==Je;)kt+="&"===jt?this.scanXHTMLEntity(Je):jt;return{type:8,value:kt,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}if(46===O){var te,Wt=this.scanner.source.charCodeAt(this.scanner.index+1),wn=this.scanner.source.charCodeAt(this.scanner.index+2);return Me=this.scanner.index,this.scanner.index+=(te=46===Wt&&46===wn?"...":".").length,{type:7,value:te,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}if(96===O)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(dt.Character.isIdentifierStart(O)&&92!==O){for(Me=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var jt=this.scanner.source.charCodeAt(this.scanner.index);if(dt.Character.isIdentifierPart(jt)&&92!==jt)++this.scanner.index;else{if(45!==jt)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Me,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}return this.scanner.lex()},T.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var O=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(O)),O},T.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var O=this.scanner.index,te="";!this.scanner.eof();){var Me=this.scanner.source[this.scanner.index];if("{"===Me||"<"===Me)break;++this.scanner.index,te+=Me,dt.Character.isLineTerminator(Me.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Me&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Je={type:101,value:te,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:O,end:this.scanner.index};return te.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Je)),Je},T.prototype.peekJSXToken=function(){var O=this.scanner.saveState();this.scanner.scanComments();var te=this.lexJSX();return this.scanner.restoreState(O),te},T.prototype.expectJSX=function(O){var te=this.nextJSXToken();(7!==te.type||te.value!==O)&&this.throwUnexpectedToken(te)},T.prototype.matchJSX=function(O){var te=this.peekJSXToken();return 7===te.type&&te.value===O},T.prototype.parseJSXIdentifier=function(){var O=this.createJSXNode(),te=this.nextJSXToken();return 100!==te.type&&this.throwUnexpectedToken(te),this.finalize(O,new Ge.JSXIdentifier(te.value))},T.prototype.parseJSXElementName=function(){var O=this.createJSXNode(),te=this.parseJSXIdentifier();if(this.matchJSX(":")){var Me=te;this.expectJSX(":");var Je=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXNamespacedName(Me,Je))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var kt=te;this.expectJSX(".");var jt=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXMemberExpression(kt,jt))}return te},T.prototype.parseJSXAttributeName=function(){var te,O=this.createJSXNode(),Me=this.parseJSXIdentifier();if(this.matchJSX(":")){var Je=Me;this.expectJSX(":");var kt=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXNamespacedName(Je,kt))}else te=Me;return te},T.prototype.parseJSXStringLiteralAttribute=function(){var O=this.createJSXNode(),te=this.nextJSXToken();8!==te.type&&this.throwUnexpectedToken(te);var Me=this.getTokenRaw(te);return this.finalize(O,new et.Literal(te.value,Me))},T.prototype.parseJSXExpressionAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var te=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new Ge.JSXExpressionContainer(te))},T.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},T.prototype.parseJSXNameValueAttribute=function(){var O=this.createJSXNode(),te=this.parseJSXAttributeName(),Me=null;return this.matchJSX("=")&&(this.expectJSX("="),Me=this.parseJSXAttributeValue()),this.finalize(O,new Ge.JSXAttribute(te,Me))},T.prototype.parseJSXSpreadAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var te=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new Ge.JSXSpreadAttribute(te))},T.prototype.parseJSXAttributes=function(){for(var O=[];!this.matchJSX("/")&&!this.matchJSX(">");){var te=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();O.push(te)}return O},T.prototype.parseJSXOpeningElement=function(){var O=this.createJSXNode();this.expectJSX("<");var te=this.parseJSXElementName(),Me=this.parseJSXAttributes(),Je=this.matchJSX("/");return Je&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new Ge.JSXOpeningElement(te,Je,Me))},T.prototype.parseJSXBoundaryElement=function(){var O=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var te=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(O,new Ge.JSXClosingElement(te))}var Me=this.parseJSXElementName(),Je=this.parseJSXAttributes(),kt=this.matchJSX("/");return kt&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new Ge.JSXOpeningElement(Me,kt,Je))},T.prototype.parseJSXEmptyExpression=function(){var O=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(O,new Ge.JSXEmptyExpression)},T.prototype.parseJSXExpressionContainer=function(){var te,O=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(te=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),te=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(O,new Ge.JSXExpressionContainer(te))},T.prototype.parseJSXChildren=function(){for(var O=[];!this.scanner.eof();){var te=this.createJSXChildNode(),Me=this.nextJSXText();if(Me.start0))break;jt=this.finalize(O.node,new Ge.JSXElement(O.opening,O.children,O.closing)),(O=te[te.length-1]).children.push(jt),te.pop()}}return O},T.prototype.parseJSXElement=function(){var O=this.createJSXNode(),te=this.parseJSXOpeningElement(),Me=[],Je=null;if(!te.selfClosing){var kt=this.parseComplexJSXElement({node:O,opening:te,closing:Je,children:Me});Me=kt.children,Je=kt.closing}return this.finalize(O,new Ge.JSXElement(te,Me,Je))},T.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var O=this.parseJSXElement();return this.finishJSX(),O},T.prototype.isStartOfExpression=function(){return D.prototype.isStartOfExpression.call(this)||this.match("<")},T}(Ve.Parser);De.JSXParser=ae},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var rt={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\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\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\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\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\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};De.Character={fromCodePoint:function(Oe){return Oe<65536?String.fromCharCode(Oe):String.fromCharCode(55296+(Oe-65536>>10))+String.fromCharCode(56320+(Oe-65536&1023))},isWhiteSpace:function(Oe){return 32===Oe||9===Oe||11===Oe||12===Oe||160===Oe||Oe>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(Oe)>=0},isLineTerminator:function(Oe){return 10===Oe||13===Oe||8232===Oe||8233===Oe},isIdentifierStart:function(Oe){return 36===Oe||95===Oe||Oe>=65&&Oe<=90||Oe>=97&&Oe<=122||92===Oe||Oe>=128&&rt.NonAsciiIdentifierStart.test(De.Character.fromCodePoint(Oe))},isIdentifierPart:function(Oe){return 36===Oe||95===Oe||Oe>=65&&Oe<=90||Oe>=97&&Oe<=122||Oe>=48&&Oe<=57||92===Oe||Oe>=128&&rt.NonAsciiIdentifierPart.test(De.Character.fromCodePoint(Oe))},isDecimalDigit:function(Oe){return Oe>=48&&Oe<=57},isHexDigit:function(Oe){return Oe>=48&&Oe<=57||Oe>=65&&Oe<=70||Oe>=97&&Oe<=102},isOctalDigit:function(Oe){return Oe>=48&&Oe<=55}}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(6);De.JSXClosingElement=function O(te){this.type=Oe.JSXSyntax.JSXClosingElement,this.name=te},De.JSXElement=function O(te,Me,Je){this.type=Oe.JSXSyntax.JSXElement,this.openingElement=te,this.children=Me,this.closingElement=Je},De.JSXEmptyExpression=function O(){this.type=Oe.JSXSyntax.JSXEmptyExpression},De.JSXExpressionContainer=function O(te){this.type=Oe.JSXSyntax.JSXExpressionContainer,this.expression=te},De.JSXIdentifier=function O(te){this.type=Oe.JSXSyntax.JSXIdentifier,this.name=te},De.JSXMemberExpression=function O(te,Me){this.type=Oe.JSXSyntax.JSXMemberExpression,this.object=te,this.property=Me},De.JSXAttribute=function O(te,Me){this.type=Oe.JSXSyntax.JSXAttribute,this.name=te,this.value=Me},De.JSXNamespacedName=function O(te,Me){this.type=Oe.JSXSyntax.JSXNamespacedName,this.namespace=te,this.name=Me},De.JSXOpeningElement=function O(te,Me,Je){this.type=Oe.JSXSyntax.JSXOpeningElement,this.name=te,this.selfClosing=Me,this.attributes=Je},De.JSXSpreadAttribute=function O(te){this.type=Oe.JSXSyntax.JSXSpreadAttribute,this.argument=te},De.JSXText=function O(te,Me){this.type=Oe.JSXSyntax.JSXText,this.value=te,this.raw=Me}},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(2);De.ArrayExpression=function We(Xe){this.type=Oe.Syntax.ArrayExpression,this.elements=Xe},De.ArrayPattern=function We(Xe){this.type=Oe.Syntax.ArrayPattern,this.elements=Xe},De.ArrowFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ArrowFunctionExpression,this.id=null,this.params=Xe,this.body=bt,this.generator=!1,this.expression=Cn,this.async=!1},De.AssignmentExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.AssignmentExpression,this.operator=Xe,this.left=bt,this.right=Cn},De.AssignmentPattern=function We(Xe,bt){this.type=Oe.Syntax.AssignmentPattern,this.left=Xe,this.right=bt},De.AsyncArrowFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ArrowFunctionExpression,this.id=null,this.params=Xe,this.body=bt,this.generator=!1,this.expression=Cn,this.async=!0},De.AsyncFunctionDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.FunctionDeclaration,this.id=Xe,this.params=bt,this.body=Cn,this.generator=!1,this.expression=!1,this.async=!0},De.AsyncFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.FunctionExpression,this.id=Xe,this.params=bt,this.body=Cn,this.generator=!1,this.expression=!1,this.async=!0},De.AwaitExpression=function We(Xe){this.type=Oe.Syntax.AwaitExpression,this.argument=Xe},De.BinaryExpression=function We(Xe,bt,Cn){this.type="||"===Xe||"&&"===Xe?Oe.Syntax.LogicalExpression:Oe.Syntax.BinaryExpression,this.operator=Xe,this.left=bt,this.right=Cn},De.BlockStatement=function We(Xe){this.type=Oe.Syntax.BlockStatement,this.body=Xe},De.BreakStatement=function We(Xe){this.type=Oe.Syntax.BreakStatement,this.label=Xe},De.CallExpression=function We(Xe,bt){this.type=Oe.Syntax.CallExpression,this.callee=Xe,this.arguments=bt},De.CatchClause=function We(Xe,bt){this.type=Oe.Syntax.CatchClause,this.param=Xe,this.body=bt},De.ClassBody=function We(Xe){this.type=Oe.Syntax.ClassBody,this.body=Xe},De.ClassDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.ClassDeclaration,this.id=Xe,this.superClass=bt,this.body=Cn},De.ClassExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ClassExpression,this.id=Xe,this.superClass=bt,this.body=Cn},De.ComputedMemberExpression=function We(Xe,bt){this.type=Oe.Syntax.MemberExpression,this.computed=!0,this.object=Xe,this.property=bt},De.ConditionalExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ConditionalExpression,this.test=Xe,this.consequent=bt,this.alternate=Cn},De.ContinueStatement=function We(Xe){this.type=Oe.Syntax.ContinueStatement,this.label=Xe},De.DebuggerStatement=function We(){this.type=Oe.Syntax.DebuggerStatement},De.Directive=function We(Xe,bt){this.type=Oe.Syntax.ExpressionStatement,this.expression=Xe,this.directive=bt},De.DoWhileStatement=function We(Xe,bt){this.type=Oe.Syntax.DoWhileStatement,this.body=Xe,this.test=bt},De.EmptyStatement=function We(){this.type=Oe.Syntax.EmptyStatement},De.ExportAllDeclaration=function We(Xe){this.type=Oe.Syntax.ExportAllDeclaration,this.source=Xe},De.ExportDefaultDeclaration=function We(Xe){this.type=Oe.Syntax.ExportDefaultDeclaration,this.declaration=Xe},De.ExportNamedDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.ExportNamedDeclaration,this.declaration=Xe,this.specifiers=bt,this.source=Cn},De.ExportSpecifier=function We(Xe,bt){this.type=Oe.Syntax.ExportSpecifier,this.exported=bt,this.local=Xe},De.ExpressionStatement=function We(Xe){this.type=Oe.Syntax.ExpressionStatement,this.expression=Xe},De.ForInStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.ForInStatement,this.left=Xe,this.right=bt,this.body=Cn,this.each=!1},De.ForOfStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.ForOfStatement,this.left=Xe,this.right=bt,this.body=Cn},De.ForStatement=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.ForStatement,this.init=Xe,this.test=bt,this.update=Cn,this.body=jr},De.FunctionDeclaration=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.FunctionDeclaration,this.id=Xe,this.params=bt,this.body=Cn,this.generator=jr,this.expression=!1,this.async=!1},De.FunctionExpression=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.FunctionExpression,this.id=Xe,this.params=bt,this.body=Cn,this.generator=jr,this.expression=!1,this.async=!1},De.Identifier=function We(Xe){this.type=Oe.Syntax.Identifier,this.name=Xe},De.IfStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.IfStatement,this.test=Xe,this.consequent=bt,this.alternate=Cn},De.ImportDeclaration=function We(Xe,bt){this.type=Oe.Syntax.ImportDeclaration,this.specifiers=Xe,this.source=bt},De.ImportDefaultSpecifier=function We(Xe){this.type=Oe.Syntax.ImportDefaultSpecifier,this.local=Xe},De.ImportNamespaceSpecifier=function We(Xe){this.type=Oe.Syntax.ImportNamespaceSpecifier,this.local=Xe},De.ImportSpecifier=function We(Xe,bt){this.type=Oe.Syntax.ImportSpecifier,this.local=Xe,this.imported=bt},De.LabeledStatement=function We(Xe,bt){this.type=Oe.Syntax.LabeledStatement,this.label=Xe,this.body=bt},De.Literal=function We(Xe,bt){this.type=Oe.Syntax.Literal,this.value=Xe,this.raw=bt},De.MetaProperty=function We(Xe,bt){this.type=Oe.Syntax.MetaProperty,this.meta=Xe,this.property=bt},De.MethodDefinition=function We(Xe,bt,Cn,jr,Y0){this.type=Oe.Syntax.MethodDefinition,this.key=Xe,this.computed=bt,this.value=Cn,this.kind=jr,this.static=Y0},De.Module=function We(Xe){this.type=Oe.Syntax.Program,this.body=Xe,this.sourceType="module"},De.NewExpression=function We(Xe,bt){this.type=Oe.Syntax.NewExpression,this.callee=Xe,this.arguments=bt},De.ObjectExpression=function We(Xe){this.type=Oe.Syntax.ObjectExpression,this.properties=Xe},De.ObjectPattern=function We(Xe){this.type=Oe.Syntax.ObjectPattern,this.properties=Xe},De.Property=function We(Xe,bt,Cn,jr,Y0,Gi){this.type=Oe.Syntax.Property,this.key=bt,this.computed=Cn,this.value=jr,this.kind=Xe,this.method=Y0,this.shorthand=Gi},De.RegexLiteral=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.Literal,this.value=Xe,this.raw=bt,this.regex={pattern:Cn,flags:jr}},De.RestElement=function We(Xe){this.type=Oe.Syntax.RestElement,this.argument=Xe},De.ReturnStatement=function We(Xe){this.type=Oe.Syntax.ReturnStatement,this.argument=Xe},De.Script=function We(Xe){this.type=Oe.Syntax.Program,this.body=Xe,this.sourceType="script"},De.SequenceExpression=function We(Xe){this.type=Oe.Syntax.SequenceExpression,this.expressions=Xe},De.SpreadElement=function We(Xe){this.type=Oe.Syntax.SpreadElement,this.argument=Xe},De.StaticMemberExpression=function We(Xe,bt){this.type=Oe.Syntax.MemberExpression,this.computed=!1,this.object=Xe,this.property=bt},De.Super=function We(){this.type=Oe.Syntax.Super},De.SwitchCase=function We(Xe,bt){this.type=Oe.Syntax.SwitchCase,this.test=Xe,this.consequent=bt},De.SwitchStatement=function We(Xe,bt){this.type=Oe.Syntax.SwitchStatement,this.discriminant=Xe,this.cases=bt},De.TaggedTemplateExpression=function We(Xe,bt){this.type=Oe.Syntax.TaggedTemplateExpression,this.tag=Xe,this.quasi=bt},De.TemplateElement=function We(Xe,bt){this.type=Oe.Syntax.TemplateElement,this.value=Xe,this.tail=bt},De.TemplateLiteral=function We(Xe,bt){this.type=Oe.Syntax.TemplateLiteral,this.quasis=Xe,this.expressions=bt},De.ThisExpression=function We(){this.type=Oe.Syntax.ThisExpression},De.ThrowStatement=function We(Xe){this.type=Oe.Syntax.ThrowStatement,this.argument=Xe},De.TryStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.TryStatement,this.block=Xe,this.handler=bt,this.finalizer=Cn},De.UnaryExpression=function We(Xe,bt){this.type=Oe.Syntax.UnaryExpression,this.operator=Xe,this.argument=bt,this.prefix=!0},De.UpdateExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.UpdateExpression,this.operator=Xe,this.argument=bt,this.prefix=Cn},De.VariableDeclaration=function We(Xe,bt){this.type=Oe.Syntax.VariableDeclaration,this.declarations=Xe,this.kind=bt},De.VariableDeclarator=function We(Xe,bt){this.type=Oe.Syntax.VariableDeclarator,this.id=Xe,this.init=bt},De.WhileStatement=function We(Xe,bt){this.type=Oe.Syntax.WhileStatement,this.test=Xe,this.body=bt},De.WithStatement=function We(Xe,bt){this.type=Oe.Syntax.WithStatement,this.object=Xe,this.body=bt},De.YieldExpression=function We(Xe,bt){this.type=Oe.Syntax.YieldExpression,this.argument=Xe,this.delegate=bt}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(9),dt=rt(10),Ge=rt(11),_e=rt(7),et=rt(12),Ve=rt(2),ve=rt(13),se="ArrowParameterPlaceHolder",ue=function(){function ae(D,T,O){void 0===T&&(T={}),this.config={range:"boolean"==typeof T.range&&T.range,loc:"boolean"==typeof T.loc&&T.loc,source:null,tokens:"boolean"==typeof T.tokens&&T.tokens,comment:"boolean"==typeof T.comment&&T.comment,tolerant:"boolean"==typeof T.tolerant&&T.tolerant},this.config.loc&&T.source&&null!==T.source&&(this.config.source=String(T.source)),this.delegate=O,this.errorHandler=new dt.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new et.Scanner(D,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return ae.prototype.throwError=function(D){for(var T=[],O=1;O0&&this.delegate)for(var T=0;T>="===D||">>>="===D||"&="===D||"^="===D||"|="===D},ae.prototype.isolateCoverGrammar=function(D){var T=this.context.isBindingElement,O=this.context.isAssignmentTarget,te=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Me=D.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=T,this.context.isAssignmentTarget=O,this.context.firstCoverInitializedNameError=te,Me},ae.prototype.inheritCoverGrammar=function(D){var T=this.context.isBindingElement,O=this.context.isAssignmentTarget,te=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Me=D.call(this);return this.context.isBindingElement=this.context.isBindingElement&&T,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&O,this.context.firstCoverInitializedNameError=te||this.context.firstCoverInitializedNameError,Me},ae.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},ae.prototype.parsePrimaryExpression=function(){var T,O,te,D=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),T=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(D,new _e.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal(O.value,te));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal("true"===O.value,te));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal(null,te));break;case 10:T=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,T=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":T=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":T=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,O=this.nextRegexToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.RegexLiteral(O.regex,te,O.pattern,O.flags));break;default:T=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?T=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?T=this.finalize(D,new _e.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?T=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),T=this.finalize(D,new _e.ThisExpression)):T=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:T=this.throwUnexpectedToken(this.nextToken())}return T},ae.prototype.parseSpreadElement=function(){var D=this.createNode();this.expect("...");var T=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(D,new _e.SpreadElement(T))},ae.prototype.parseArrayInitializer=function(){var D=this.createNode(),T=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else if(this.match("...")){var O=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),T.push(O)}else T.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(D,new _e.ArrayExpression(T))},ae.prototype.parsePropertyMethod=function(D){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var T=this.context.strict,O=this.context.allowStrictDirective;this.context.allowStrictDirective=D.simple;var te=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&D.firstRestricted&&this.tolerateUnexpectedToken(D.firstRestricted,D.message),this.context.strict&&D.stricted&&this.tolerateUnexpectedToken(D.stricted,D.message),this.context.strict=T,this.context.allowStrictDirective=O,te},ae.prototype.parsePropertyMethodFunction=function(){var T=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters(),Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(T,new _e.FunctionExpression(null,te.params,Me,!1))},ae.prototype.parsePropertyMethodAsyncFunction=function(){var D=this.createNode(),T=this.context.allowYield,O=this.context.await;this.context.allowYield=!1,this.context.await=!0;var te=this.parseFormalParameters(),Me=this.parsePropertyMethod(te);return this.context.allowYield=T,this.context.await=O,this.finalize(D,new _e.AsyncFunctionExpression(null,te.params,Me))},ae.prototype.parseObjectPropertyKey=function(){var O,D=this.createNode(),T=this.nextToken();switch(T.type){case 8:case 6:this.context.strict&&T.octal&&this.tolerateUnexpectedToken(T,Ge.Messages.StrictOctalLiteral);var te=this.getTokenRaw(T);O=this.finalize(D,new _e.Literal(T.value,te));break;case 3:case 1:case 5:case 4:O=this.finalize(D,new _e.Identifier(T.value));break;case 7:"["===T.value?(O=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):O=this.throwUnexpectedToken(T);break;default:O=this.throwUnexpectedToken(T)}return O},ae.prototype.isPropertyKey=function(D,T){return D.type===Ve.Syntax.Identifier&&D.name===T||D.type===Ve.Syntax.Literal&&D.value===T},ae.prototype.parseObjectProperty=function(D){var te,T=this.createNode(),O=this.lookahead,Me=null,Je=null,kt=!1,jt=!1,Wt=!1,wn=!1;if(3===O.type){var rn=O.value;this.nextToken(),kt=this.match("["),Me=(wn=!(this.hasLineTerminator||"async"!==rn||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(T,new _e.Identifier(rn))}else this.match("*")?this.nextToken():(kt=this.match("["),Me=this.parseObjectPropertyKey());var Mi=this.qualifiedPropertyName(this.lookahead);if(3===O.type&&!wn&&"get"===O.value&&Mi)te="get",kt=this.match("["),Me=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod();else if(3===O.type&&!wn&&"set"===O.value&&Mi)te="set",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseSetterMethod();else if(7===O.type&&"*"===O.value&&Mi)te="init",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),jt=!0;else if(Me||this.throwUnexpectedToken(this.lookahead),te="init",this.match(":")&&!wn)!kt&&this.isPropertyKey(Me,"__proto__")&&(D.value&&this.tolerateError(Ge.Messages.DuplicateProtoProperty),D.value=!0),this.nextToken(),Je=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Je=wn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),jt=!0;else if(3===O.type)if(rn=this.finalize(T,new _e.Identifier(O.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),Wt=!0;var zr=this.isolateCoverGrammar(this.parseAssignmentExpression);Je=this.finalize(T,new _e.AssignmentPattern(rn,zr))}else Wt=!0,Je=rn;else this.throwUnexpectedToken(this.nextToken());return this.finalize(T,new _e.Property(te,Me,kt,Je,jt,Wt))},ae.prototype.parseObjectInitializer=function(){var D=this.createNode();this.expect("{");for(var T=[],O={value:!1};!this.match("}");)T.push(this.parseObjectProperty(O)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(D,new _e.ObjectExpression(T))},ae.prototype.parseTemplateHead=function(){Oe.assert(this.lookahead.head,"Template literal must start with a template head");var D=this.createNode(),T=this.nextToken();return this.finalize(D,new _e.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ae.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var D=this.createNode(),T=this.nextToken();return this.finalize(D,new _e.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ae.prototype.parseTemplateLiteral=function(){var D=this.createNode(),T=[],O=[],te=this.parseTemplateHead();for(O.push(te);!te.tail;)T.push(this.parseExpression()),te=this.parseTemplateElement(),O.push(te);return this.finalize(D,new _e.TemplateLiteral(O,T))},ae.prototype.reinterpretExpressionAsPattern=function(D){switch(D.type){case Ve.Syntax.Identifier:case Ve.Syntax.MemberExpression:case Ve.Syntax.RestElement:case Ve.Syntax.AssignmentPattern:break;case Ve.Syntax.SpreadElement:D.type=Ve.Syntax.RestElement,this.reinterpretExpressionAsPattern(D.argument);break;case Ve.Syntax.ArrayExpression:D.type=Ve.Syntax.ArrayPattern;for(var T=0;T")||this.expect("=>"),D={type:se,params:[],async:!1};else{var T=this.lookahead,O=[];if(this.match("..."))D=this.parseRestElement(O),this.expect(")"),this.match("=>")||this.expect("=>"),D={type:se,params:[D],async:!1};else{var te=!1;if(this.context.isBindingElement=!0,D=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Me=[];for(this.context.isAssignmentTarget=!1,Me.push(D);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Je=0;Je")||this.expect("=>"),this.context.isBindingElement=!1,Je=0;Je")&&(D.type===Ve.Syntax.Identifier&&"yield"===D.name&&(te=!0,D={type:se,params:[D],async:!1}),!te)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),D.type===Ve.Syntax.SequenceExpression)for(Je=0;Je")){for(var jt=0;jt0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Me=[D,this.lookahead],Je=T,kt=this.isolateCoverGrammar(this.parseExponentiationExpression),jt=[Je,O.value,kt],Wt=[te];!((te=this.binaryPrecedence(this.lookahead))<=0);){for(;jt.length>2&&te<=Wt[Wt.length-1];){kt=jt.pop();var wn=jt.pop();Wt.pop(),Je=jt.pop(),Me.pop();var rn=this.startNode(Me[Me.length-1]);jt.push(this.finalize(rn,new _e.BinaryExpression(wn,Je,kt)))}jt.push(this.nextToken().value),Wt.push(te),Me.push(this.lookahead),jt.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Mi=jt.length-1;T=jt[Mi];for(var zr=Me.pop();Mi>1;){var Xr=Me.pop();rn=this.startNode(Xr,zr&&zr.lineStart),T=this.finalize(rn,new _e.BinaryExpression(wn=jt[Mi-1],jt[Mi-2],T)),Mi-=2,zr=Xr}}return T},ae.prototype.parseConditionalExpression=function(){var D=this.lookahead,T=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var O=this.context.allowIn;this.context.allowIn=!0;var te=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=O,this.expect(":");var Me=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(D),new _e.ConditionalExpression(T,te,Me)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return T},ae.prototype.checkPatternParam=function(D,T){switch(T.type){case Ve.Syntax.Identifier:this.validateParam(D,T,T.name);break;case Ve.Syntax.RestElement:this.checkPatternParam(D,T.argument);break;case Ve.Syntax.AssignmentPattern:this.checkPatternParam(D,T.left);break;case Ve.Syntax.ArrayPattern:for(var O=0;O")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Me=D.async,Je=this.reinterpretAsCoverFormalsList(D);if(Je){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var kt=this.context.strict,jt=this.context.allowStrictDirective;this.context.allowStrictDirective=Je.simple;var Wt=this.context.allowYield,wn=this.context.await;this.context.allowYield=!0,this.context.await=Me;var rn=this.startNode(T);this.expect("=>");var Mi=void 0;if(this.match("{")){var zr=this.context.allowIn;this.context.allowIn=!0,Mi=this.parseFunctionSourceElements(),this.context.allowIn=zr}else Mi=this.isolateCoverGrammar(this.parseAssignmentExpression);var Xr=Mi.type!==Ve.Syntax.BlockStatement;this.context.strict&&Je.firstRestricted&&this.throwUnexpectedToken(Je.firstRestricted,Je.message),this.context.strict&&Je.stricted&&this.tolerateUnexpectedToken(Je.stricted,Je.message),D=this.finalize(rn,Me?new _e.AsyncArrowFunctionExpression(Je.params,Mi,Xr):new _e.ArrowFunctionExpression(Je.params,Mi,Xr)),this.context.strict=kt,this.context.allowStrictDirective=jt,this.context.allowYield=Wt,this.context.await=wn}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(Ge.Messages.InvalidLHSInAssignment),this.context.strict&&D.type===Ve.Syntax.Identifier){var hs=D;this.scanner.isRestrictedWord(hs.name)&&this.tolerateUnexpectedToken(O,Ge.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(hs.name)&&this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(D):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var Ya=(O=this.nextToken()).value,tr=this.isolateCoverGrammar(this.parseAssignmentExpression);D=this.finalize(this.startNode(T),new _e.AssignmentExpression(Ya,D,tr)),this.context.firstCoverInitializedNameError=null}}return D},ae.prototype.parseExpression=function(){var D=this.lookahead,T=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var O=[];for(O.push(T);2!==this.lookahead.type&&this.match(",");)this.nextToken(),O.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(D),new _e.SequenceExpression(O))}return T},ae.prototype.parseStatementListItem=function(){var D;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.IllegalExportDeclaration),D=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.IllegalImportDeclaration),D=this.parseImportDeclaration();break;case"const":D=this.parseLexicalDeclaration({inFor:!1});break;case"function":D=this.parseFunctionDeclaration();break;case"class":D=this.parseClassDeclaration();break;case"let":D=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:D=this.parseStatement()}else D=this.parseStatement();return D},ae.prototype.parseBlock=function(){var D=this.createNode();this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseStatementListItem());return this.expect("}"),this.finalize(D,new _e.BlockStatement(T))},ae.prototype.parseLexicalBinding=function(D,T){var O=this.createNode(),Me=this.parsePattern([],D);this.context.strict&&Me.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(Me.name)&&this.tolerateError(Ge.Messages.StrictVarName);var Je=null;return"const"===D?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(Ge.Messages.DeclarationMissingInitializer,"const")):(!T.inFor&&Me.type!==Ve.Syntax.Identifier||this.match("="))&&(this.expect("="),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(O,new _e.VariableDeclarator(Me,Je))},ae.prototype.parseBindingList=function(D,T){for(var O=[this.parseLexicalBinding(D,T)];this.match(",");)this.nextToken(),O.push(this.parseLexicalBinding(D,T));return O},ae.prototype.isLexicalDeclaration=function(){var D=this.scanner.saveState();this.scanner.scanComments();var T=this.scanner.lex();return this.scanner.restoreState(D),3===T.type||7===T.type&&"["===T.value||7===T.type&&"{"===T.value||4===T.type&&"let"===T.value||4===T.type&&"yield"===T.value},ae.prototype.parseLexicalDeclaration=function(D){var T=this.createNode(),O=this.nextToken().value;Oe.assert("let"===O||"const"===O,"Lexical declaration must be either let or const");var te=this.parseBindingList(O,D);return this.consumeSemicolon(),this.finalize(T,new _e.VariableDeclaration(te,O))},ae.prototype.parseBindingRestElement=function(D,T){var O=this.createNode();this.expect("...");var te=this.parsePattern(D,T);return this.finalize(O,new _e.RestElement(te))},ae.prototype.parseArrayPattern=function(D,T){var O=this.createNode();this.expect("[");for(var te=[];!this.match("]");)if(this.match(","))this.nextToken(),te.push(null);else{if(this.match("...")){te.push(this.parseBindingRestElement(D,T));break}te.push(this.parsePatternWithDefault(D,T)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(O,new _e.ArrayPattern(te))},ae.prototype.parsePropertyPattern=function(D,T){var kt,jt,O=this.createNode(),te=!1,Me=!1;if(3===this.lookahead.type){var Wt=this.lookahead;kt=this.parseVariableIdentifier();var wn=this.finalize(O,new _e.Identifier(Wt.value));if(this.match("=")){D.push(Wt),Me=!0,this.nextToken();var rn=this.parseAssignmentExpression();jt=this.finalize(this.startNode(Wt),new _e.AssignmentPattern(wn,rn))}else this.match(":")?(this.expect(":"),jt=this.parsePatternWithDefault(D,T)):(D.push(Wt),Me=!0,jt=wn)}else te=this.match("["),kt=this.parseObjectPropertyKey(),this.expect(":"),jt=this.parsePatternWithDefault(D,T);return this.finalize(O,new _e.Property("init",kt,te,jt,!1,Me))},ae.prototype.parseObjectPattern=function(D,T){var O=this.createNode(),te=[];for(this.expect("{");!this.match("}");)te.push(this.parsePropertyPattern(D,T)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(O,new _e.ObjectPattern(te))},ae.prototype.parsePattern=function(D,T){var O;return this.match("[")?O=this.parseArrayPattern(D,T):this.match("{")?O=this.parseObjectPattern(D,T):(this.matchKeyword("let")&&("const"===T||"let"===T)&&this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.LetInLexicalBinding),D.push(this.lookahead),O=this.parseVariableIdentifier(T)),O},ae.prototype.parsePatternWithDefault=function(D,T){var O=this.lookahead,te=this.parsePattern(D,T);if(this.match("=")){this.nextToken();var Me=this.context.allowYield;this.context.allowYield=!0;var Je=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Me,te=this.finalize(this.startNode(O),new _e.AssignmentPattern(te,Je))}return te},ae.prototype.parseVariableIdentifier=function(D){var T=this.createNode(),O=this.nextToken();return 4===O.type&&"yield"===O.value?this.context.strict?this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(O):3!==O.type?this.context.strict&&4===O.type&&this.scanner.isStrictModeReservedWord(O.value)?this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord):(this.context.strict||"let"!==O.value||"var"!==D)&&this.throwUnexpectedToken(O):(this.context.isModule||this.context.await)&&3===O.type&&"await"===O.value&&this.tolerateUnexpectedToken(O),this.finalize(T,new _e.Identifier(O.value))},ae.prototype.parseVariableDeclaration=function(D){var T=this.createNode(),te=this.parsePattern([],"var");this.context.strict&&te.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(te.name)&&this.tolerateError(Ge.Messages.StrictVarName);var Me=null;return this.match("=")?(this.nextToken(),Me=this.isolateCoverGrammar(this.parseAssignmentExpression)):te.type!==Ve.Syntax.Identifier&&!D.inFor&&this.expect("="),this.finalize(T,new _e.VariableDeclarator(te,Me))},ae.prototype.parseVariableDeclarationList=function(D){var T={inFor:D.inFor},O=[];for(O.push(this.parseVariableDeclaration(T));this.match(",");)this.nextToken(),O.push(this.parseVariableDeclaration(T));return O},ae.prototype.parseVariableStatement=function(){var D=this.createNode();this.expectKeyword("var");var T=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(D,new _e.VariableDeclaration(T,"var"))},ae.prototype.parseEmptyStatement=function(){var D=this.createNode();return this.expect(";"),this.finalize(D,new _e.EmptyStatement)},ae.prototype.parseExpressionStatement=function(){var D=this.createNode(),T=this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ExpressionStatement(T))},ae.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(Ge.Messages.StrictFunction),this.parseStatement()},ae.prototype.parseIfStatement=function(){var T,D=this.createNode(),O=null;this.expectKeyword("if"),this.expect("(");var te=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),T=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),O=this.parseIfClause())),this.finalize(D,new _e.IfStatement(te,T,O))},ae.prototype.parseDoWhileStatement=function(){var D=this.createNode();this.expectKeyword("do");var T=this.context.inIteration;this.context.inIteration=!0;var O=this.parseStatement();this.context.inIteration=T,this.expectKeyword("while"),this.expect("(");var te=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(D,new _e.DoWhileStatement(O,te))},ae.prototype.parseWhileStatement=function(){var T,D=this.createNode();this.expectKeyword("while"),this.expect("(");var O=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var te=this.context.inIteration;this.context.inIteration=!0,T=this.parseStatement(),this.context.inIteration=te}return this.finalize(D,new _e.WhileStatement(O,T))},ae.prototype.parseForStatement=function(){var Me,Je,Xr,D=null,T=null,O=null,te=!0,kt=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){D=this.createNode(),this.nextToken();var jt=this.context.allowIn;this.context.allowIn=!1;var Wt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=jt,1===Wt.length&&this.matchKeyword("in")){var wn=Wt[0];wn.init&&(wn.id.type===Ve.Syntax.ArrayPattern||wn.id.type===Ve.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(Ge.Messages.ForInOfLoopInitializer,"for-in"),D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.nextToken(),Me=D,Je=this.parseExpression(),D=null}else 1===Wt.length&&null===Wt[0].init&&this.matchContextualKeyword("of")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.nextToken(),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1):(D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){D=this.createNode();var rn=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(jt=this.context.allowIn,this.context.allowIn=!1,Wt=this.parseBindingList(rn,{inFor:!0}),this.context.allowIn=jt,1===Wt.length&&null===Wt[0].init&&this.matchKeyword("in")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)),this.nextToken(),Me=D,Je=this.parseExpression(),D=null):1===Wt.length&&null===Wt[0].init&&this.matchContextualKeyword("of")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)),this.nextToken(),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1):(this.consumeSemicolon(),D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)))):(D=this.finalize(D,new _e.Identifier(rn)),this.nextToken(),Me=D,Je=this.parseExpression(),D=null)}else{var Mi=this.lookahead;if(jt=this.context.allowIn,this.context.allowIn=!1,D=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=jt,this.matchKeyword("in"))(!this.context.isAssignmentTarget||D.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(Ge.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(D),Me=D,Je=this.parseExpression(),D=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||D.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(Ge.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(D),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1;else{if(this.match(",")){for(var zr=[D];this.match(",");)this.nextToken(),zr.push(this.isolateCoverGrammar(this.parseAssignmentExpression));D=this.finalize(this.startNode(Mi),new _e.SequenceExpression(zr))}this.expect(";")}}if(typeof Me>"u"&&(this.match(";")||(T=this.parseExpression()),this.expect(";"),this.match(")")||(O=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Xr=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var hs=this.context.inIteration;this.context.inIteration=!0,Xr=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=hs}return this.finalize(kt,typeof Me>"u"?new _e.ForStatement(D,T,O,Xr):te?new _e.ForInStatement(Me,Je,Xr):new _e.ForOfStatement(Me,Je,Xr))},ae.prototype.parseContinueStatement=function(){var D=this.createNode();this.expectKeyword("continue");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var O=this.parseVariableIdentifier();T=O,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+O.name)||this.throwError(Ge.Messages.UnknownLabel,O.name)}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&this.throwError(Ge.Messages.IllegalContinue),this.finalize(D,new _e.ContinueStatement(T))},ae.prototype.parseBreakStatement=function(){var D=this.createNode();this.expectKeyword("break");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var O=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+O.name)||this.throwError(Ge.Messages.UnknownLabel,O.name),T=O}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(Ge.Messages.IllegalBreak),this.finalize(D,new _e.BreakStatement(T))},ae.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(Ge.Messages.IllegalReturn);var D=this.createNode();this.expectKeyword("return");var O=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ReturnStatement(O))},ae.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(Ge.Messages.StrictModeWith);var T,D=this.createNode();this.expectKeyword("with"),this.expect("(");var O=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),T=this.parseStatement()),this.finalize(D,new _e.WithStatement(O,T))},ae.prototype.parseSwitchCase=function(){var T,D=this.createNode();this.matchKeyword("default")?(this.nextToken(),T=null):(this.expectKeyword("case"),T=this.parseExpression()),this.expect(":");for(var O=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)O.push(this.parseStatementListItem());return this.finalize(D,new _e.SwitchCase(T,O))},ae.prototype.parseSwitchStatement=function(){var D=this.createNode();this.expectKeyword("switch"),this.expect("(");var T=this.parseExpression();this.expect(")");var O=this.context.inSwitch;this.context.inSwitch=!0;var te=[],Me=!1;for(this.expect("{");!this.match("}");){var Je=this.parseSwitchCase();null===Je.test&&(Me&&this.throwError(Ge.Messages.MultipleDefaultsInSwitch),Me=!0),te.push(Je)}return this.expect("}"),this.context.inSwitch=O,this.finalize(D,new _e.SwitchStatement(T,te))},ae.prototype.parseLabelledStatement=function(){var O,D=this.createNode(),T=this.parseExpression();if(T.type===Ve.Syntax.Identifier&&this.match(":")){this.nextToken();var te=T,Me="$"+te.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Me)&&this.throwError(Ge.Messages.Redeclaration,"Label",te.name),this.context.labelSet[Me]=!0;var Je=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Je=this.parseClassDeclaration();else if(this.matchKeyword("function")){var kt=this.lookahead,jt=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(kt,Ge.Messages.StrictFunction):jt.generator&&this.tolerateUnexpectedToken(kt,Ge.Messages.GeneratorInLegacyContext),Je=jt}else Je=this.parseStatement();delete this.context.labelSet[Me],O=new _e.LabeledStatement(te,Je)}else this.consumeSemicolon(),O=new _e.ExpressionStatement(T);return this.finalize(D,O)},ae.prototype.parseThrowStatement=function(){var D=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(Ge.Messages.NewlineAfterThrow);var T=this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ThrowStatement(T))},ae.prototype.parseCatchClause=function(){var D=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var T=[],O=this.parsePattern(T),te={},Me=0;Me0&&this.tolerateError(Ge.Messages.BadGetterArity);var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,false))},ae.prototype.parseSetterMethod=function(){var D=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters();1!==te.params.length?this.tolerateError(Ge.Messages.BadSetterArity):te.params[0]instanceof _e.RestElement&&this.tolerateError(Ge.Messages.BadSetterRestParameter);var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,false))},ae.prototype.parseGeneratorMethod=function(){var D=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters();this.context.allowYield=!1;var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,!0))},ae.prototype.isStartOfExpression=function(){var D=!0,T=this.lookahead.value;switch(this.lookahead.type){case 7:D="["===T||"("===T||"{"===T||"+"===T||"-"===T||"!"===T||"~"===T||"++"===T||"--"===T||"/"===T||"/="===T;break;case 4:D="class"===T||"delete"===T||"function"===T||"let"===T||"new"===T||"super"===T||"this"===T||"typeof"===T||"void"===T||"yield"===T}return D},ae.prototype.parseYieldExpression=function(){var D=this.createNode();this.expectKeyword("yield");var T=null,O=!1;if(!this.hasLineTerminator){var te=this.context.allowYield;this.context.allowYield=!1,(O=this.match("*"))?(this.nextToken(),T=this.parseAssignmentExpression()):this.isStartOfExpression()&&(T=this.parseAssignmentExpression()),this.context.allowYield=te}return this.finalize(D,new _e.YieldExpression(T,O))},ae.prototype.parseClassElement=function(D){var T=this.lookahead,O=this.createNode(),te="",Me=null,Je=null,kt=!1,jt=!1,Wt=!1,wn=!1;if(this.match("*"))this.nextToken();else if(kt=this.match("["),"static"===(Me=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(T=this.lookahead,Wt=!0,kt=this.match("["),this.match("*")?this.nextToken():Me=this.parseObjectPropertyKey()),3===T.type&&!this.hasLineTerminator&&"async"===T.value){var Mi=this.lookahead.value;":"!==Mi&&"("!==Mi&&"*"!==Mi&&(wn=!0,T=this.lookahead,Me=this.parseObjectPropertyKey(),3===T.type&&"constructor"===T.value&&this.tolerateUnexpectedToken(T,Ge.Messages.ConstructorIsAsync))}var zr=this.qualifiedPropertyName(this.lookahead);return 3===T.type?"get"===T.value&&zr?(te="get",kt=this.match("["),Me=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod()):"set"===T.value&&zr&&(te="set",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseSetterMethod()):7===T.type&&"*"===T.value&&zr&&(te="init",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),jt=!0),!te&&Me&&this.match("(")&&(te="init",Je=wn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),jt=!0),te||this.throwUnexpectedToken(this.lookahead),"init"===te&&(te="method"),kt||(Wt&&this.isPropertyKey(Me,"prototype")&&this.throwUnexpectedToken(T,Ge.Messages.StaticPrototype),!Wt&&this.isPropertyKey(Me,"constructor")&&(("method"!==te||!jt||Je&&Je.generator)&&this.throwUnexpectedToken(T,Ge.Messages.ConstructorSpecialMethod),D.value?this.throwUnexpectedToken(T,Ge.Messages.DuplicateConstructor):D.value=!0,te="constructor")),this.finalize(O,new _e.MethodDefinition(Me,kt,Je,te,Wt))},ae.prototype.parseClassElementList=function(){var D=[],T={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():D.push(this.parseClassElement(T));return this.expect("}"),D},ae.prototype.parseClassBody=function(){var D=this.createNode(),T=this.parseClassElementList();return this.finalize(D,new _e.ClassBody(T))},ae.prototype.parseClassDeclaration=function(D){var T=this.createNode(),O=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var te=D&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Me=null;this.matchKeyword("extends")&&(this.nextToken(),Me=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Je=this.parseClassBody();return this.context.strict=O,this.finalize(T,new _e.ClassDeclaration(te,Me,Je))},ae.prototype.parseClassExpression=function(){var D=this.createNode(),T=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var O=3===this.lookahead.type?this.parseVariableIdentifier():null,te=null;this.matchKeyword("extends")&&(this.nextToken(),te=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Me=this.parseClassBody();return this.context.strict=T,this.finalize(D,new _e.ClassExpression(O,te,Me))},ae.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var D=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(D,new _e.Module(T))},ae.prototype.parseScript=function(){for(var D=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(D,new _e.Script(T))},ae.prototype.parseModuleSpecifier=function(){var D=this.createNode();8!==this.lookahead.type&&this.throwError(Ge.Messages.InvalidModuleSpecifier);var T=this.nextToken(),O=this.getTokenRaw(T);return this.finalize(D,new _e.Literal(T.value,O))},ae.prototype.parseImportSpecifier=function(){var T,O,D=this.createNode();return 3===this.lookahead.type?(O=T=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseVariableIdentifier())):(O=T=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),O=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(D,new _e.ImportSpecifier(O,T))},ae.prototype.parseNamedImports=function(){this.expect("{");for(var D=[];!this.match("}");)D.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),D},ae.prototype.parseImportDefaultSpecifier=function(){var D=this.createNode(),T=this.parseIdentifierName();return this.finalize(D,new _e.ImportDefaultSpecifier(T))},ae.prototype.parseImportNamespaceSpecifier=function(){var D=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(Ge.Messages.NoAsAfterImportNamespace),this.nextToken();var T=this.parseIdentifierName();return this.finalize(D,new _e.ImportNamespaceSpecifier(T))},ae.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(Ge.Messages.IllegalImportDeclaration);var D=this.createNode();this.expectKeyword("import");var T,O=[];return 8===this.lookahead.type||(this.match("{")?O=O.concat(this.parseNamedImports()):this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(O.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.match("{")?O=O.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),T=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(D,new _e.ImportDeclaration(O,T))},ae.prototype.parseExportSpecifier=function(){var D=this.createNode(),T=this.parseIdentifierName(),O=T;return this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseIdentifierName()),this.finalize(D,new _e.ExportSpecifier(T,O))},ae.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(Ge.Messages.IllegalExportDeclaration);var T,D=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var O=this.parseFunctionDeclaration(!0);T=this.finalize(D,new _e.ExportDefaultDeclaration(O))}else this.matchKeyword("class")?(O=this.parseClassDeclaration(!0),T=this.finalize(D,new _e.ExportDefaultDeclaration(O))):this.matchContextualKeyword("async")?(O=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),T=this.finalize(D,new _e.ExportDefaultDeclaration(O))):(this.matchContextualKeyword("from")&&this.throwError(Ge.Messages.UnexpectedToken,this.lookahead.value),O=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),T=this.finalize(D,new _e.ExportDefaultDeclaration(O)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Me=this.parseModuleSpecifier();this.consumeSemicolon(),T=this.finalize(D,new _e.ExportAllDeclaration(Me))}else if(4===this.lookahead.type){switch(O=void 0,this.lookahead.value){case"let":case"const":O=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":O=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}T=this.finalize(D,new _e.ExportNamedDeclaration(O,[],null))}else if(this.matchAsyncFunction())O=this.parseFunctionDeclaration(),T=this.finalize(D,new _e.ExportNamedDeclaration(O,[],null));else{var Je=[],kt=null,jt=!1;for(this.expect("{");!this.match("}");)jt=jt||this.matchKeyword("default"),Je.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),kt=this.parseModuleSpecifier(),this.consumeSemicolon()):jt?this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),T=this.finalize(D,new _e.ExportNamedDeclaration(null,Je,kt))}return T},ae}();De.Parser=ue},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.assert=function rt(Oe,dt){if(!Oe)throw new Error("ASSERT: "+dt)}},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var rt=function(){function Oe(){this.errors=[],this.tolerant=!1}return Oe.prototype.recordError=function(dt){this.errors.push(dt)},Oe.prototype.tolerate=function(dt){if(!this.tolerant)throw dt;this.recordError(dt)},Oe.prototype.constructError=function(dt,Ge){var _e=new Error(dt);try{throw _e}catch(et){Object.create&&Object.defineProperty&&(_e=Object.create(et),Object.defineProperty(_e,"column",{value:Ge}))}return _e},Oe.prototype.createError=function(dt,Ge,_e,et){var ve=this.constructError("Line "+Ge+": "+et,_e);return ve.index=dt,ve.lineNumber=Ge,ve.description=et,ve},Oe.prototype.throwError=function(dt,Ge,_e,et){throw this.createError(dt,Ge,_e,et)},Oe.prototype.tolerateError=function(dt,Ge,_e,et){var Ve=this.createError(dt,Ge,_e,et);if(!this.tolerant)throw Ve;this.recordError(Ve)},Oe}();De.ErrorHandler=rt},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(9),dt=rt(4),Ge=rt(11);function _e(ve){return"0123456789abcdef".indexOf(ve.toLowerCase())}function et(ve){return"01234567".indexOf(ve)}var Ve=function(){function ve(se,ue){this.source=se,this.errorHandler=ue,this.trackComment=!1,this.isModule=!1,this.length=se.length,this.index=0,this.lineNumber=se.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return ve.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},ve.prototype.restoreState=function(se){this.index=se.index,this.lineNumber=se.lineNumber,this.lineStart=se.lineStart},ve.prototype.eof=function(){return this.index>=this.length},ve.prototype.throwUnexpectedToken=function(se){return void 0===se&&(se=Ge.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,se)},ve.prototype.tolerateUnexpectedToken=function(se){void 0===se&&(se=Ge.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,se)},ve.prototype.skipSingleLineComment=function(se){var ae,D,ue=[];for(this.trackComment&&(ue=[],ae=this.index-se,D={start:{line:this.lineNumber,column:this.index-this.lineStart-se},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(++this.index,dt.Character.isLineTerminator(T))return this.trackComment&&(D.end={line:this.lineNumber,column:this.index-this.lineStart-1},ue.push({multiLine:!1,slice:[ae+se,this.index-1],range:[ae,this.index-1],loc:D})),13===T&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ue}return this.trackComment&&(D.end={line:this.lineNumber,column:this.index-this.lineStart},ue.push({multiLine:!1,slice:[ae+se,this.index],range:[ae,this.index],loc:D})),ue},ve.prototype.skipMultiLineComment=function(){var ue,ae,se=[];for(this.trackComment&&(se=[],ue=this.index-2,ae={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var D=this.source.charCodeAt(this.index);if(dt.Character.isLineTerminator(D))13===D&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===D){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(ae.end={line:this.lineNumber,column:this.index-this.lineStart},se.push({multiLine:!0,slice:[ue+2,this.index-2],range:[ue,this.index],loc:ae})),se;++this.index}else++this.index}return this.trackComment&&(ae.end={line:this.lineNumber,column:this.index-this.lineStart},se.push({multiLine:!0,slice:[ue+2,this.index],range:[ue,this.index],loc:ae})),this.tolerateUnexpectedToken(),se},ve.prototype.scanComments=function(){var se;this.trackComment&&(se=[]);for(var ue=0===this.index;!this.eof();){var ae=this.source.charCodeAt(this.index);if(dt.Character.isWhiteSpace(ae))++this.index;else if(dt.Character.isLineTerminator(ae))++this.index,13===ae&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ue=!0;else if(47===ae)if(47===(ae=this.source.charCodeAt(this.index+1))){this.index+=2;var D=this.skipSingleLineComment(2);this.trackComment&&(se=se.concat(D)),ue=!0}else{if(42!==ae)break;this.index+=2,D=this.skipMultiLineComment(),this.trackComment&&(se=se.concat(D))}else if(ue&&45===ae){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,D=this.skipSingleLineComment(3),this.trackComment&&(se=se.concat(D))}else{if(60!==ae||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,D=this.skipSingleLineComment(4),this.trackComment&&(se=se.concat(D))}}return se},ve.prototype.isFutureReservedWord=function(se){switch(se){case"enum":case"export":case"import":case"super":return!0;default:return!1}},ve.prototype.isStrictModeReservedWord=function(se){switch(se){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},ve.prototype.isRestrictedWord=function(se){return"eval"===se||"arguments"===se},ve.prototype.isKeyword=function(se){switch(se.length){case 2:return"if"===se||"in"===se||"do"===se;case 3:return"var"===se||"for"===se||"new"===se||"try"===se||"let"===se;case 4:return"this"===se||"else"===se||"case"===se||"void"===se||"with"===se||"enum"===se;case 5:return"while"===se||"break"===se||"catch"===se||"throw"===se||"const"===se||"yield"===se||"class"===se||"super"===se;case 6:return"return"===se||"typeof"===se||"delete"===se||"switch"===se||"export"===se||"import"===se;case 7:return"default"===se||"finally"===se||"extends"===se;case 8:return"function"===se||"continue"===se||"debugger"===se;case 10:return"instanceof"===se;default:return!1}},ve.prototype.codePointAt=function(se){var ue=this.source.charCodeAt(se);if(ue>=55296&&ue<=56319){var ae=this.source.charCodeAt(se+1);ae>=56320&&ae<=57343&&(ue=1024*(ue-55296)+ae-56320+65536)}return ue},ve.prototype.scanHexEscape=function(se){for(var ue="u"===se?4:2,ae=0,D=0;D1114111||"}"!==se)&&this.throwUnexpectedToken(),dt.Character.fromCodePoint(ue)},ve.prototype.getIdentifier=function(){for(var se=this.index++;!this.eof();){var ue=this.source.charCodeAt(this.index);if(92===ue)return this.index=se,this.getComplexIdentifier();if(ue>=55296&&ue<57343)return this.index=se,this.getComplexIdentifier();if(!dt.Character.isIdentifierPart(ue))break;++this.index}return this.source.slice(se,this.index)},ve.prototype.getComplexIdentifier=function(){var ae,se=this.codePointAt(this.index),ue=dt.Character.fromCodePoint(se);for(this.index+=ue.length,92===se&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ae=this.scanUnicodeCodePointEscape()):(null===(ae=this.scanHexEscape("u"))||"\\"===ae||!dt.Character.isIdentifierStart(ae.charCodeAt(0)))&&this.throwUnexpectedToken(),ue=ae);!this.eof()&&(se=this.codePointAt(this.index),dt.Character.isIdentifierPart(se));)ue+=ae=dt.Character.fromCodePoint(se),this.index+=ae.length,92===se&&(ue=ue.substr(0,ue.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ae=this.scanUnicodeCodePointEscape()):(null===(ae=this.scanHexEscape("u"))||"\\"===ae||!dt.Character.isIdentifierPart(ae.charCodeAt(0)))&&this.throwUnexpectedToken(),ue+=ae);return ue},ve.prototype.octalToDecimal=function(se){var ue="0"!==se,ae=et(se);return!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ue=!0,ae=8*ae+et(this.source[this.index++]),"0123".indexOf(se)>=0&&!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ae=8*ae+et(this.source[this.index++]))),{code:ae,octal:ue}},ve.prototype.scanIdentifier=function(){var se,ue=this.index,ae=92===this.source.charCodeAt(ue)?this.getComplexIdentifier():this.getIdentifier();if(3!=(se=1===ae.length?3:this.isKeyword(ae)?4:"null"===ae?5:"true"===ae||"false"===ae?1:3)&&ue+ae.length!==this.index){var D=this.index;this.index=ue,this.tolerateUnexpectedToken(Ge.Messages.InvalidEscapedReservedWord),this.index=D}return{type:se,value:ae,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ue,end:this.index}},ve.prototype.scanPunctuator=function(){var se=this.index,ue=this.source[this.index];switch(ue){case"(":case"{":"{"===ue&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,ue="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(ue=this.source.substr(this.index,4))?this.index+=4:"==="===(ue=ue.substr(0,3))||"!=="===ue||">>>"===ue||"<<="===ue||">>="===ue||"**="===ue?this.index+=3:"&&"===(ue=ue.substr(0,2))||"||"===ue||"=="===ue||"!="===ue||"+="===ue||"-="===ue||"*="===ue||"/="===ue||"++"===ue||"--"===ue||"<<"===ue||">>"===ue||"&="===ue||"|="===ue||"^="===ue||"%="===ue||"<="===ue||">="===ue||"=>"===ue||"**"===ue?this.index+=2:"<>=!+-*%&|^/".indexOf(ue=this.source[this.index])>=0&&++this.index}return this.index===se&&this.throwUnexpectedToken(),{type:7,value:ue,lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanHexLiteral=function(se){for(var ue="";!this.eof()&&dt.Character.isHexDigit(this.source.charCodeAt(this.index));)ue+=this.source[this.index++];return 0===ue.length&&this.throwUnexpectedToken(),dt.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+ue,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanBinaryLiteral=function(se){for(var ae,ue="";!this.eof()&&("0"===(ae=this.source[this.index])||"1"===ae);)ue+=this.source[this.index++];return 0===ue.length&&this.throwUnexpectedToken(),this.eof()||(ae=this.source.charCodeAt(this.index),(dt.Character.isIdentifierStart(ae)||dt.Character.isDecimalDigit(ae))&&this.throwUnexpectedToken()),{type:6,value:parseInt(ue,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanOctalLiteral=function(se,ue){var ae="",D=!1;for(dt.Character.isOctalDigit(se.charCodeAt(0))?(D=!0,ae="0"+this.source[this.index++]):++this.index;!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index));)ae+=this.source[this.index++];return!D&&0===ae.length&&this.throwUnexpectedToken(),(dt.Character.isIdentifierStart(this.source.charCodeAt(this.index))||dt.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(ae,8),octal:D,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ue,end:this.index}},ve.prototype.isImplicitOctalLiteral=function(){for(var se=this.index+1;se=0&&(D=D.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(O,te,Me){var Je=parseInt(te||Me,16);return Je>1114111&&T.throwUnexpectedToken(Ge.Messages.InvalidRegExp),Je<=65535?String.fromCharCode(Je):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(D)}catch{this.throwUnexpectedToken(Ge.Messages.InvalidRegExp)}try{return new RegExp(se,ue)}catch{return null}},ve.prototype.scanRegExpBody=function(){var se=this.source[this.index];Oe.assert("/"===se,"Regular expression literal must start with a slash");for(var ue=this.source[this.index++],ae=!1,D=!1;!this.eof();)if(ue+=se=this.source[this.index++],"\\"===se)se=this.source[this.index++],dt.Character.isLineTerminator(se.charCodeAt(0))&&this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp),ue+=se;else if(dt.Character.isLineTerminator(se.charCodeAt(0)))this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp);else if(ae)"]"===se&&(ae=!1);else{if("/"===se){D=!0;break}"["===se&&(ae=!0)}return D||this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp),ue.substr(1,ue.length-2)},ve.prototype.scanRegExpFlags=function(){for(var ue="";!this.eof();){var ae=this.source[this.index];if(!dt.Character.isIdentifierPart(ae.charCodeAt(0)))break;if(++this.index,"\\"!==ae||this.eof())ue+=ae;else if("u"===(ae=this.source[this.index])){++this.index;var D=this.index,T=this.scanHexEscape("u");if(null!==T)for(ue+=T;D=55296&&se<57343&&dt.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},ve}();De.Scanner=Ve},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.TokenName={},De.TokenName[1]="Boolean",De.TokenName[2]="",De.TokenName[3]="Identifier",De.TokenName[4]="Keyword",De.TokenName[5]="Null",De.TokenName[6]="Numeric",De.TokenName[7]="Punctuator",De.TokenName[8]="String",De.TokenName[9]="RegularExpression",De.TokenName[10]="Template"},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(10),dt=rt(12),Ge=rt(13),_e=function(){function Ve(){this.values=[],this.curly=this.paren=-1}return Ve.prototype.beforeFunctionExpression=function(ve){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(ve)>=0},Ve.prototype.isRegexStart=function(){var ve=this.values[this.values.length-1],se=null!==ve;switch(ve){case"this":case"]":se=!1;break;case")":var ue=this.values[this.paren-1];se="if"===ue||"while"===ue||"for"===ue||"with"===ue;break;case"}":if(se=!1,"function"===this.values[this.curly-3])se=!!(ae=this.values[this.curly-4])&&!this.beforeFunctionExpression(ae);else if("function"===this.values[this.curly-4]){var ae;se=!(ae=this.values[this.curly-5])||!this.beforeFunctionExpression(ae)}}return se},Ve.prototype.push=function(ve){7===ve.type||4===ve.type?("{"===ve.value?this.curly=this.values.length:"("===ve.value&&(this.paren=this.values.length),this.values.push(ve.value)):this.values.push(null)},Ve}(),et=function(){function Ve(ve,se){this.errorHandler=new Oe.ErrorHandler,this.errorHandler.tolerant=!!se&&"boolean"==typeof se.tolerant&&se.tolerant,this.scanner=new dt.Scanner(ve,this.errorHandler),this.scanner.trackComment=!!se&&"boolean"==typeof se.comment&&se.comment,this.trackRange=!!se&&"boolean"==typeof se.range&&se.range,this.trackLoc=!!se&&"boolean"==typeof se.loc&&se.loc,this.buffer=[],this.reader=new _e}return Ve.prototype.errors=function(){return this.errorHandler.errors},Ve.prototype.getNextToken=function(){if(0===this.buffer.length){var ve=this.scanner.scanComments();if(this.scanner.trackComment)for(var se=0;se=ae.status}function et(ue){try{ue.dispatchEvent(new MouseEvent("click"))}catch{var ae=document.createEvent("MouseEvents");ae.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ue.dispatchEvent(ae)}}var Ve="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ve=Ve.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),se=Ve.saveAs||("object"!=typeof window||window!==Ve?function(){}:"download"in HTMLAnchorElement.prototype&&!ve?function(ue,ae,D){var T=Ve.URL||Ve.webkitURL,O=document.createElement("a");O.download=ae=ae||ue.name||"download",O.rel="noopener","string"==typeof ue?(O.href=ue,O.origin===location.origin?et(O):_e(O.href)?Ge(ue,ae,D):et(O,O.target="_blank")):(O.href=T.createObjectURL(ue),setTimeout(function(){T.revokeObjectURL(O.href)},4e4),setTimeout(function(){et(O)},0))}:"msSaveOrOpenBlob"in navigator?function(ue,ae,D){if(ae=ae||ue.name||"download","string"!=typeof ue)navigator.msSaveOrOpenBlob(function dt(ue,ae){return typeof ae>"u"?ae={autoBom:!1}:"object"!=typeof ae&&(console.warn("Deprecated: Expected third argument to be a object"),ae={autoBom:!ae}),ae.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ue.type)?new Blob(["\ufeff",ue],{type:ue.type}):ue}(ue,D),ae);else if(_e(ue))Ge(ue,ae,D);else{var T=document.createElement("a");T.href=ue,T.target="_blank",setTimeout(function(){et(T)})}}:function(ue,ae,D,T){if((T=T||open("","_blank"))&&(T.document.title=T.document.body.innerText="downloading..."),"string"==typeof ue)return Ge(ue,ae,D);var O="application/octet-stream"===ue.type,te=/constructor/i.test(Ve.HTMLElement)||Ve.safari,Me=/CriOS\/[\d]+/.test(navigator.userAgent);if((Me||O&&te||ve)&&typeof FileReader<"u"){var Je=new FileReader;Je.onloadend=function(){var Wt=Je.result;Wt=Me?Wt:Wt.replace(/^data:[^;]*;/,"data:attachment/file;"),T?T.location.href=Wt:location=Wt,T=null},Je.readAsDataURL(ue)}else{var kt=Ve.URL||Ve.webkitURL,jt=kt.createObjectURL(ue);T?T.location=jt:location.href=jt,T=null,setTimeout(function(){kt.revokeObjectURL(jt)},4e4)}});Ve.saveAs=se.saveAs=se,Yt.exports=se})?De.apply(Tn,[]):De)&&(Yt.exports=Oe)},461:(Yt,Tn)=>{Tn.read=function(De,rt,Oe,dt,Ge){var _e,et,Ve=8*Ge-dt-1,ve=(1<>1,ue=-7,ae=Oe?Ge-1:0,D=Oe?-1:1,T=De[rt+ae];for(ae+=D,_e=T&(1<<-ue)-1,T>>=-ue,ue+=Ve;ue>0;_e=256*_e+De[rt+ae],ae+=D,ue-=8);for(et=_e&(1<<-ue)-1,_e>>=-ue,ue+=dt;ue>0;et=256*et+De[rt+ae],ae+=D,ue-=8);if(0===_e)_e=1-se;else{if(_e===ve)return et?NaN:1/0*(T?-1:1);et+=Math.pow(2,dt),_e-=se}return(T?-1:1)*et*Math.pow(2,_e-dt)},Tn.write=function(De,rt,Oe,dt,Ge,_e){var et,Ve,ve,se=8*_e-Ge-1,ue=(1<>1,D=23===Ge?Math.pow(2,-24)-Math.pow(2,-77):0,T=dt?0:_e-1,O=dt?1:-1,te=rt<0||0===rt&&1/rt<0?1:0;for(rt=Math.abs(rt),isNaN(rt)||rt===1/0?(Ve=isNaN(rt)?1:0,et=ue):(et=Math.floor(Math.log(rt)/Math.LN2),rt*(ve=Math.pow(2,-et))<1&&(et--,ve*=2),(rt+=et+ae>=1?D/ve:D*Math.pow(2,1-ae))*ve>=2&&(et++,ve/=2),et+ae>=ue?(Ve=0,et=ue):et+ae>=1?(Ve=(rt*ve-1)*Math.pow(2,Ge),et+=ae):(Ve=rt*Math.pow(2,ae-1)*Math.pow(2,Ge),et=0));Ge>=8;De[Oe+T]=255&Ve,T+=O,Ve/=256,Ge-=8);for(et=et<0;De[Oe+T]=255&et,T+=O,et/=256,se-=8);De[Oe+T-O]|=128*te}},870:(Yt,Tn,De)=>{"use strict";var rt=De(133);Yt.exports=rt},133:(Yt,Tn,De)=>{"use strict";var rt=De(840),Oe=De(34);function dt(Ge){return function(){throw new Error("Function "+Ge+" is deprecated and cannot be used.")}}Yt.exports.Type=De(647),Yt.exports.Schema=De(372),Yt.exports.FAILSAFE_SCHEMA=De(746),Yt.exports.JSON_SCHEMA=De(147),Yt.exports.CORE_SCHEMA=De(192),Yt.exports.DEFAULT_SAFE_SCHEMA=De(31),Yt.exports.DEFAULT_FULL_SCHEMA=De(94),Yt.exports.load=rt.load,Yt.exports.loadAll=rt.loadAll,Yt.exports.safeLoad=rt.safeLoad,Yt.exports.safeLoadAll=rt.safeLoadAll,Yt.exports.dump=Oe.dump,Yt.exports.safeDump=Oe.safeDump,Yt.exports.YAMLException=De(314),Yt.exports.MINIMAL_SCHEMA=De(746),Yt.exports.SAFE_SCHEMA=De(31),Yt.exports.DEFAULT_SCHEMA=De(94),Yt.exports.scan=dt("scan"),Yt.exports.parse=dt("parse"),Yt.exports.compose=dt("compose"),Yt.exports.addConstructor=dt("addConstructor")},997:Yt=>{"use strict";function Tn(_e){return typeof _e>"u"||null===_e}Yt.exports.isNothing=Tn,Yt.exports.isObject=function De(_e){return"object"==typeof _e&&null!==_e},Yt.exports.toArray=function rt(_e){return Array.isArray(_e)?_e:Tn(_e)?[]:[_e]},Yt.exports.repeat=function dt(_e,et){var ve,Ve="";for(ve=0;ve{"use strict";var rt=De(997),Oe=De(314),dt=De(94),Ge=De(31),_e=Object.prototype.toString,et=Object.prototype.hasOwnProperty,Ve=9,ve=10,se=13,ue=32,ae=33,D=34,T=35,O=37,te=38,Me=39,Je=42,kt=44,jt=45,Wt=58,wn=61,rn=62,Mi=63,zr=64,Xr=91,hs=93,Ya=96,tr=123,mu=124,Sa=125,yn={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Cd=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Kn(pe){var yt,Ft,Kt;if(yt=pe.toString(16).toUpperCase(),pe<=255)Ft="x",Kt=2;else if(pe<=65535)Ft="u",Kt=4;else{if(!(pe<=4294967295))throw new Oe("code point within a string may not be greater than 0xFFFFFFFF");Ft="U",Kt=8}return"\\"+Ft+rt.repeat("0",Kt-yt.length)+yt}function Fc(pe){this.schema=pe.schema||dt,this.indent=Math.max(1,pe.indent||2),this.noArrayIndent=pe.noArrayIndent||!1,this.skipInvalid=pe.skipInvalid||!1,this.flowLevel=rt.isNothing(pe.flowLevel)?-1:pe.flowLevel,this.styleMap=function kd(pe,yt){var Ft,Kt,Xt,Pt,dn,qt,We;if(null===yt)return{};for(Ft={},Xt=0,Pt=(Kt=Object.keys(yt)).length;Xt0?pe.charCodeAt(Pt-1):null,jr=jr&&pl(dn,qt)}else{for(Pt=0;PtKt&&" "!==pe[Cn+1],Cn=Pt);else if(!Da(dn))return Ja;qt=Pt>0?pe.charCodeAt(Pt-1):null,jr=jr&&pl(dn,qt)}Xe=Xe||bt&&Pt-Cn-1>Kt&&" "!==pe[Cn+1]}return We||Xe?Ft>9&&Sd(pe)?Ja:Xe?vu:Dd:jr&&!Xt(pe)?Nc:Oc}(yt,Kt||pe.flowLevel>-1&&Ft>=pe.flowLevel,pe.indent,Pt,function qt(We){return function Co(pe,yt){var Ft,Kt;for(Ft=0,Kt=pe.implicitTypes.length;Ft"+ml(yt,pe.indent)+Te(gu(function W(pe,yt){for(var Pt,dn,Ft=/(\n+)([^\n]*)/g,Kt=(Xe=void 0,Xe=pe.indexOf("\n"),Ft.lastIndex=Xe=-1!==Xe?Xe:pe.length,ee(pe.slice(0,Xe),yt)),Xt="\n"===pe[0]||" "===pe[0];dn=Ft.exec(pe);){var We=dn[2];Pt=" "===We[0],Kt+=dn[1]+(Xt||Pt||""===We?"":"\n")+ee(We,yt),Xt=Pt}var Xe;return Kt}(yt,Pt),Xt));case Ja:return'"'+function Ne(pe){for(var Ft,Kt,Xt,yt="",Pt=0;Pt=55296&&Ft<=56319&&(Kt=pe.charCodeAt(Pt+1))>=56320&&Kt<=57343?(yt+=Kn(1024*(Ft-55296)+Kt-56320+65536),Pt++):yt+=!(Xt=yn[Ft])&&Da(Ft)?pe[Pt]:Xt||Kn(Ft);return yt}(yt)+'"';default:throw new Oe("impossible error: invalid scalar style")}}()}function ml(pe,yt){var Ft=Sd(pe)?String(yt):"",Kt="\n"===pe[pe.length-1];return Ft+(!Kt||"\n"!==pe[pe.length-2]&&"\n"!==pe?Kt?"":"-":"+")+"\n"}function Te(pe){return"\n"===pe[pe.length-1]?pe.slice(0,-1):pe}function ee(pe,yt){if(""===pe||" "===pe[0])return pe;for(var Kt,Pt,Ft=/ [^ ]/g,Xt=0,dn=0,qt=0,We="";Kt=Ft.exec(pe);)(qt=Kt.index)-Xt>yt&&(We+="\n"+pe.slice(Xt,Pt=dn>Xt?dn:qt),Xt=Pt+1),dn=qt;return We+="\n",(We+=pe.length-Xt>yt&&dn>Xt?pe.slice(Xt,dn)+"\n"+pe.slice(dn+1):pe.slice(Xt)).slice(1)}function A(pe,yt,Ft){var Kt,Xt,Pt,dn,qt,We;for(Pt=0,dn=(Xt=Ft?pe.explicitTypes:pe.implicitTypes).length;Pt tag resolver accepts not "'+We+'" style');Kt=qt.represent[We](yt,We)}pe.dump=Kt}return!0}return!1}function st(pe,yt,Ft,Kt,Xt,Pt){pe.tag=null,pe.dump=Ft,A(pe,Ft,!1)||A(pe,Ft,!0);var dn=_e.call(pe.dump);Kt&&(Kt=pe.flowLevel<0||pe.flowLevel>yt);var We,Xe,qt="[object Object]"===dn||"[object Array]"===dn;if(qt&&(Xe=-1!==(We=pe.duplicates.indexOf(Ft))),(null!==pe.tag&&"?"!==pe.tag||Xe||2!==pe.indent&&yt>0)&&(Xt=!1),Xe&&pe.usedDuplicates[We])pe.dump="*ref_"+We;else{if(qt&&Xe&&!pe.usedDuplicates[We]&&(pe.usedDuplicates[We]=!0),"[object Object]"===dn)Kt&&0!==Object.keys(pe.dump).length?(function nr(pe,yt,Ft,Kt){var qt,We,Xe,bt,Cn,jr,Xt="",Pt=pe.tag,dn=Object.keys(Ft);if(!0===pe.sortKeys)dn.sort();else if("function"==typeof pe.sortKeys)dn.sort(pe.sortKeys);else if(pe.sortKeys)throw new Oe("sortKeys must be a boolean or a function");for(qt=0,We=dn.length;qt1024)&&(pe.dump&&ve===pe.dump.charCodeAt(0)?jr+="?":jr+="? "),jr+=pe.dump,Cn&&(jr+=Ro(pe,yt)),st(pe,yt+1,bt,!0,Cn)&&(pe.dump&&ve===pe.dump.charCodeAt(0)?jr+=":":jr+=": ",Xt+=jr+=pe.dump));pe.tag=Pt,pe.dump=Xt||"{}"}(pe,yt,pe.dump,Xt),Xe&&(pe.dump="&ref_"+We+pe.dump)):(function Qt(pe,yt,Ft){var dn,qt,We,Xe,bt,Kt="",Xt=pe.tag,Pt=Object.keys(Ft);for(dn=0,qt=Pt.length;dn1024&&(bt+="? "),bt+=pe.dump+(pe.condenseFlow?'"':"")+":"+(pe.condenseFlow?"":" "),st(pe,yt,Xe,!1,!1)&&(Kt+=bt+=pe.dump));pe.tag=Xt,pe.dump="{"+Kt+"}"}(pe,yt,pe.dump),Xe&&(pe.dump="&ref_"+We+" "+pe.dump));else if("[object Array]"===dn){var bt=pe.noArrayIndent&&yt>0?yt-1:yt;Kt&&0!==pe.dump.length?(function zt(pe,yt,Ft,Kt){var dn,qt,Xt="",Pt=pe.tag;for(dn=0,qt=Ft.length;dn "+pe.dump)}return!0}function Tt(pe,yt){var Xt,Pt,Ft=[],Kt=[];for(Ut(pe,Ft,Kt),Xt=0,Pt=Kt.length;Xt{"use strict";function Tn(De,rt){Error.call(this),this.name="YAMLException",this.reason=De,this.mark=rt,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Tn.prototype=Object.create(Error.prototype)).constructor=Tn,Tn.prototype.toString=function(rt){var Oe=this.name+": ";return Oe+=this.reason||"(unknown reason)",!rt&&this.mark&&(Oe+=" "+this.mark.toString()),Oe},Yt.exports=Tn},840:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(314),dt=De(48),Ge=De(31),_e=De(94),et=Object.prototype.hasOwnProperty,Ve=1,ve=2,se=3,ue=4,ae=1,D=2,T=3,O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,te=/[\x85\u2028\u2029]/,Me=/[,\[\]\{\}]/,Je=/^(?:!|!!|![a-z\-]+!)$/i,kt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function jt(A){return Object.prototype.toString.call(A)}function Wt(A){return 10===A||13===A}function wn(A){return 9===A||32===A}function rn(A){return 9===A||32===A||10===A||13===A}function Mi(A){return 44===A||91===A||93===A||123===A||125===A}function zr(A){var st;return 48<=A&&A<=57?A-48:97<=(st=32|A)&&st<=102?st-97+10:-1}function Xr(A){return 120===A?2:117===A?4:85===A?8:0}function hs(A){return 48<=A&&A<=57?A-48:-1}function Ya(A){return 48===A?"\0":97===A?"\x07":98===A?"\b":116===A||9===A?"\t":110===A?"\n":118===A?"\v":102===A?"\f":114===A?"\r":101===A?"\x1b":32===A?" ":34===A?'"':47===A?"/":92===A?"\\":78===A?"\x85":95===A?"\xa0":76===A?"\u2028":80===A?"\u2029":""}function tr(A){return A<=65535?String.fromCharCode(A):String.fromCharCode(55296+(A-65536>>10),56320+(A-65536&1023))}for(var mu=new Array(256),Sa=new Array(256),yn=0;yn<256;yn++)mu[yn]=Ya(yn)?1:0,Sa[yn]=Ya(yn);function Cd(A,st){this.input=A,this.filename=st.filename||null,this.schema=st.schema||_e,this.onWarning=st.onWarning||null,this.legacy=st.legacy||!1,this.json=st.json||!1,this.listener=st.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=A.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function kd(A,st){return new Oe(st,new dt(A.filename,A.input,A.position,A.line,A.position-A.lineStart))}function Kn(A,st){throw kd(A,st)}function Fc(A,st){A.onWarning&&A.onWarning.call(null,kd(A,st))}var gu={YAML:function(st,Tt,Ut){var Vt,mn,pe;null!==st.version&&Kn(st,"duplication of %YAML directive"),1!==Ut.length&&Kn(st,"YAML directive accepts exactly one argument"),null===(Vt=/^([0-9]+)\.([0-9]+)$/.exec(Ut[0]))&&Kn(st,"ill-formed argument of the YAML directive"),mn=parseInt(Vt[1],10),pe=parseInt(Vt[2],10),1!==mn&&Kn(st,"unacceptable YAML version of the document"),st.version=Ut[0],st.checkLineBreaks=pe<2,1!==pe&&2!==pe&&Fc(st,"unsupported YAML version of the document")},TAG:function(st,Tt,Ut){var Vt,mn;2!==Ut.length&&Kn(st,"TAG directive accepts exactly two arguments"),mn=Ut[1],Je.test(Vt=Ut[0])||Kn(st,"ill-formed tag handle (first argument) of the TAG directive"),et.call(st.tagMap,Vt)&&Kn(st,'there is a previously declared suffix for "'+Vt+'" tag handle'),kt.test(mn)||Kn(st,"ill-formed tag prefix (second argument) of the TAG directive"),st.tagMap[Vt]=mn}};function Ro(A,st,Tt,Ut){var Vt,mn,pe,yt;if(st1&&(A.result+=rt.repeat("\n",st-1))}function Ja(A,st){var Tt,Ft,Ut=A.tag,Vt=A.anchor,mn=[],yt=!1;for(null!==A.anchor&&(A.anchorMap[A.anchor]=mn),Ft=A.input.charCodeAt(A.position);0!==Ft&&45===Ft&&rn(A.input.charCodeAt(A.position+1));)if(yt=!0,A.position++,Zr(A,!0,-1)&&A.lineIndent<=st)mn.push(null),Ft=A.input.charCodeAt(A.position);else if(Tt=A.line,W(A,st,se,!1,!0),mn.push(A.result),Zr(A,!0,-1),Ft=A.input.charCodeAt(A.position),(A.line===Tt||A.lineIndent>st)&&0!==Ft)Kn(A,"bad indentation of a sequence entry");else if(A.lineIndentst?Ft=1:A.lineIndent===st?Ft=0:A.lineIndentst?Ft=1:A.lineIndent===st?Ft=0:A.lineIndentst)&&(W(A,st,ue,!0,Vt)&&(We?dn=A.result:qt=A.result),We||(lo(A,Kt,Xt,Pt,dn,qt,mn,pe),Pt=dn=qt=null),Zr(A,!0,-1),bt=A.input.charCodeAt(A.position)),A.lineIndent>st&&0!==bt)Kn(A,"bad indentation of a mapping entry");else if(A.lineIndent=0))break;0===Xt?Kn(A,"bad explicit indentation width of a block scalar; it cannot be less than one"):pe?Kn(A,"repeat of an indentation width identifier"):(yt=st+Xt-1,pe=!0)}if(wn(Pt)){do{Pt=A.input.charCodeAt(++A.position)}while(wn(Pt));if(35===Pt)do{Pt=A.input.charCodeAt(++A.position)}while(!Wt(Pt)&&0!==Pt)}for(;0!==Pt;){for(Da(A),A.lineIndent=0,Pt=A.input.charCodeAt(A.position);(!pe||A.lineIndentyt&&(yt=A.lineIndent),Wt(Pt))Ft++;else{if(A.lineIndent0){for(Vt=pe,mn=0;Vt>0;Vt--)(pe=zr(yt=A.input.charCodeAt(++A.position)))>=0?mn=(mn<<4)+pe:Kn(A,"expected hexadecimal character");A.result+=tr(mn),A.position++}else Kn(A,"unknown escape sequence");Tt=Ut=A.position}else Wt(yt)?(Ro(A,Tt,Ut,!0),nc(A,Zr(A,!1,st)),Tt=Ut=A.position):A.position===A.lineStart&&pl(A)?Kn(A,"unexpected end of the document within a double quoted scalar"):(A.position++,Ut=A.position)}Kn(A,"unexpected end of the stream within a double quoted scalar")}(A,We)?Xt=!0:function Te(A){var st,Tt,Ut;if(42!==(Ut=A.input.charCodeAt(A.position)))return!1;for(Ut=A.input.charCodeAt(++A.position),st=A.position;0!==Ut&&!rn(Ut)&&!Mi(Ut);)Ut=A.input.charCodeAt(++A.position);return A.position===st&&Kn(A,"name of an alias node must contain at least one character"),Tt=A.input.slice(st,A.position),A.anchorMap.hasOwnProperty(Tt)||Kn(A,'unidentified alias "'+Tt+'"'),A.result=A.anchorMap[Tt],Zr(A,!0,-1),!0}(A)?(Xt=!0,(null!==A.tag||null!==A.anchor)&&Kn(A,"alias node should not have any properties")):function Sd(A,st,Tt){var Vt,mn,pe,yt,Ft,Kt,Xt,qt,Pt=A.kind,dn=A.result;if(rn(qt=A.input.charCodeAt(A.position))||Mi(qt)||35===qt||38===qt||42===qt||33===qt||124===qt||62===qt||39===qt||34===qt||37===qt||64===qt||96===qt||(63===qt||45===qt)&&(rn(Vt=A.input.charCodeAt(A.position+1))||Tt&&Mi(Vt)))return!1;for(A.kind="scalar",A.result="",mn=pe=A.position,yt=!1;0!==qt;){if(58===qt){if(rn(Vt=A.input.charCodeAt(A.position+1))||Tt&&Mi(Vt))break}else if(35===qt){if(rn(A.input.charCodeAt(A.position-1)))break}else{if(A.position===A.lineStart&&pl(A)||Tt&&Mi(qt))break;if(Wt(qt)){if(Ft=A.line,Kt=A.lineStart,Xt=A.lineIndent,Zr(A,!1,-1),A.lineIndent>=st){yt=!0,qt=A.input.charCodeAt(A.position);continue}A.position=pe,A.line=Ft,A.lineStart=Kt,A.lineIndent=Xt;break}}yt&&(Ro(A,mn,pe,!1),nc(A,A.line-Ft),mn=pe=A.position,yt=!1),wn(qt)||(pe=A.position+1),qt=A.input.charCodeAt(++A.position)}return Ro(A,mn,pe,!1),!!A.result||(A.kind=Pt,A.result=dn,!1)}(A,We,Ve===Tt)&&(Xt=!0,null===A.tag&&(A.tag="?")),null!==A.anchor&&(A.anchorMap[A.anchor]=A.result)):0===Ft&&(Xt=yt&&Ja(A,Xe))),null!==A.tag&&"!"!==A.tag)if("?"===A.tag){for(null!==A.result&&"scalar"!==A.kind&&Kn(A,'unacceptable node kind for ! tag; it should be "scalar", not "'+A.kind+'"'),Pt=0,dn=A.implicitTypes.length;Pt tag; it should be "'+qt.kind+'", not "'+A.kind+'"'),qt.resolve(A.result)?(A.result=qt.construct(A.result),null!==A.anchor&&(A.anchorMap[A.anchor]=A.result)):Kn(A,"cannot resolve a node with !<"+A.tag+"> explicit tag")):Kn(A,"unknown tag !<"+A.tag+">");return null!==A.listener&&A.listener("close",A),null!==A.tag||null!==A.anchor||Xt}function ee(A){var Tt,Ut,Vt,pe,st=A.position,mn=!1;for(A.version=null,A.checkLineBreaks=A.legacy,A.tagMap={},A.anchorMap={};0!==(pe=A.input.charCodeAt(A.position))&&(Zr(A,!0,-1),pe=A.input.charCodeAt(A.position),!(A.lineIndent>0||37!==pe));){for(mn=!0,pe=A.input.charCodeAt(++A.position),Tt=A.position;0!==pe&&!rn(pe);)pe=A.input.charCodeAt(++A.position);for(Vt=[],(Ut=A.input.slice(Tt,A.position)).length<1&&Kn(A,"directive name must not be less than one character in length");0!==pe;){for(;wn(pe);)pe=A.input.charCodeAt(++A.position);if(35===pe){do{pe=A.input.charCodeAt(++A.position)}while(0!==pe&&!Wt(pe));break}if(Wt(pe))break;for(Tt=A.position;0!==pe&&!rn(pe);)pe=A.input.charCodeAt(++A.position);Vt.push(A.input.slice(Tt,A.position))}0!==pe&&Da(A),et.call(gu,Ut)?gu[Ut](A,Ut,Vt):Fc(A,'unknown document directive "'+Ut+'"')}Zr(A,!0,-1),0===A.lineIndent&&45===A.input.charCodeAt(A.position)&&45===A.input.charCodeAt(A.position+1)&&45===A.input.charCodeAt(A.position+2)?(A.position+=3,Zr(A,!0,-1)):mn&&Kn(A,"directives end mark is expected"),W(A,A.lineIndent-1,ue,!1,!0),Zr(A,!0,-1),A.checkLineBreaks&&te.test(A.input.slice(st,A.position))&&Fc(A,"non-ASCII line breaks are interpreted as content"),A.documents.push(A.result),A.position===A.lineStart&&pl(A)?46===A.input.charCodeAt(A.position)&&(A.position+=3,Zr(A,!0,-1)):A.position"u"&&(Tt=st,st=null);var Ut=Ne(A,Tt);if("function"!=typeof st)return Ut;for(var Vt=0,mn=Ut.length;Vt"u"&&(Tt=st,st=null),nt(A,st,rt.extend({schema:Ge},Tt))},Yt.exports.safeLoad=function nr(A,st){return zt(A,rt.extend({schema:Ge},st))}},48:(Yt,Tn,De)=>{"use strict";var rt=De(997);function Oe(dt,Ge,_e,et,Ve){this.name=dt,this.buffer=Ge,this.position=_e,this.line=et,this.column=Ve}Oe.prototype.getSnippet=function(Ge,_e){var et,Ve,ve,se,ue;if(!this.buffer)return null;for(Ge=Ge||4,_e=_e||75,et="",Ve=this.position;Ve>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(Ve-1));)if(this.position-(Ve-=1)>_e/2-1){et=" ... ",Ve+=5;break}for(ve="",se=this.position;se_e/2-1){ve=" ... ",se-=5;break}return ue=this.buffer.slice(Ve,se),rt.repeat(" ",Ge)+et+ue+ve+"\n"+rt.repeat(" ",Ge+this.position-Ve+et.length)+"^"},Oe.prototype.toString=function(Ge){var _e,et="";return this.name&&(et+='in "'+this.name+'" '),et+="at line "+(this.line+1)+", column "+(this.column+1),Ge||(_e=this.getSnippet())&&(et+=":\n"+_e),et},Yt.exports=Oe},372:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(314),dt=De(647);function Ge(Ve,ve,se){var ue=[];return Ve.include.forEach(function(ae){se=Ge(ae,ve,se)}),Ve[ve].forEach(function(ae){se.forEach(function(D,T){D.tag===ae.tag&&D.kind===ae.kind&&ue.push(T)}),se.push(ae)}),se.filter(function(ae,D){return-1===ue.indexOf(D)})}function et(Ve){this.include=Ve.include||[],this.implicit=Ve.implicit||[],this.explicit=Ve.explicit||[],this.implicit.forEach(function(ve){if(ve.loadKind&&"scalar"!==ve.loadKind)throw new Oe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ge(this,"implicit",[]),this.compiledExplicit=Ge(this,"explicit",[]),this.compiledTypeMap=function _e(){var ve,se,Ve={scalar:{},sequence:{},mapping:{},fallback:{}};function ue(ae){Ve[ae.kind][ae.tag]=Ve.fallback[ae.tag]=ae}for(ve=0,se=arguments.length;ve{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(147)]})},94:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=rt.DEFAULT=new rt({include:[De(31)],explicit:[De(771),De(632),De(716)]})},31:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(192)],implicit:[De(934),De(996)],explicit:[De(486),De(166),De(711),De(738)]})},746:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({explicit:[De(464),De(322),De(71)]})},147:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(746)],implicit:[De(568),De(911),De(877),De(615)]})},647:(Yt,Tn,De)=>{"use strict";var rt=De(314),Oe=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],dt=["scalar","sequence","mapping"];Yt.exports=function _e(et,Ve){if(Ve=Ve||{},Object.keys(Ve).forEach(function(ve){if(-1===Oe.indexOf(ve))throw new rt('Unknown option "'+ve+'" is met in definition of "'+et+'" YAML type.')}),this.tag=et,this.kind=Ve.kind||null,this.resolve=Ve.resolve||function(){return!0},this.construct=Ve.construct||function(ve){return ve},this.instanceOf=Ve.instanceOf||null,this.predicate=Ve.predicate||null,this.represent=Ve.represent||null,this.defaultStyle=Ve.defaultStyle||null,this.styleAliases=function Ge(et){var Ve={};return null!==et&&Object.keys(et).forEach(function(ve){et[ve].forEach(function(se){Ve[String(se)]=ve})}),Ve}(Ve.styleAliases||null),-1===dt.indexOf(this.kind))throw new rt('Unknown kind "'+this.kind+'" is specified for "'+et+'" YAML type.')}},486:(Yt,Tn,De)=>{"use strict";var rt;try{rt=De(172).lW}catch{}var dt=De(647),Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Yt.exports=new dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function _e(se){if(null===se)return!1;var ue,ae,D=0,T=se.length,O=Ge;for(ae=0;ae64)){if(ue<0)return!1;D+=6}return D%8==0},construct:function et(se){var ue,ae,D=se.replace(/[\r\n=]/g,""),T=D.length,O=Ge,te=0,Me=[];for(ue=0;ue>16&255),Me.push(te>>8&255),Me.push(255&te)),te=te<<6|O.indexOf(D.charAt(ue));return 0==(ae=T%4*6)?(Me.push(te>>16&255),Me.push(te>>8&255),Me.push(255&te)):18===ae?(Me.push(te>>10&255),Me.push(te>>2&255)):12===ae&&Me.push(te>>4&255),rt?rt.from?rt.from(Me):new rt(Me):Me},predicate:function ve(se){return rt&&rt.isBuffer(se)},represent:function Ve(se){var D,T,ue="",ae=0,O=se.length,te=Ge;for(D=0;D>18&63],ue+=te[ae>>12&63],ue+=te[ae>>6&63],ue+=te[63&ae]),ae=(ae<<8)+se[D];return 0==(T=O%3)?(ue+=te[ae>>18&63],ue+=te[ae>>12&63],ue+=te[ae>>6&63],ue+=te[63&ae]):2===T?(ue+=te[ae>>10&63],ue+=te[ae>>4&63],ue+=te[ae<<2&63],ue+=te[64]):1===T&&(ue+=te[ae>>2&63],ue+=te[ae<<4&63],ue+=te[64],ue+=te[64]),ue}})},911:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function Oe(_e){if(null===_e)return!1;var et=_e.length;return 4===et&&("true"===_e||"True"===_e||"TRUE"===_e)||5===et&&("false"===_e||"False"===_e||"FALSE"===_e)},construct:function dt(_e){return"true"===_e||"True"===_e||"TRUE"===_e},predicate:function Ge(_e){return"[object Boolean]"===Object.prototype.toString.call(_e)},represent:{lowercase:function(_e){return _e?"true":"false"},uppercase:function(_e){return _e?"TRUE":"FALSE"},camelcase:function(_e){return _e?"True":"False"}},defaultStyle:"lowercase"})},615:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(647),dt=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),et=/^[-+]?[0-9]+e/;Yt.exports=new Oe("tag:yaml.org,2002:float",{kind:"scalar",resolve:function Ge(se){return!(null===se||!dt.test(se)||"_"===se[se.length-1])},construct:function _e(se){var ue,ae,D,T;return ae="-"===(ue=se.replace(/_/g,"").toLowerCase())[0]?-1:1,T=[],"+-".indexOf(ue[0])>=0&&(ue=ue.slice(1)),".inf"===ue?1===ae?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===ue?NaN:ue.indexOf(":")>=0?(ue.split(":").forEach(function(O){T.unshift(parseFloat(O,10))}),ue=0,D=1,T.forEach(function(O){ue+=O*D,D*=60}),ae*ue):ae*parseFloat(ue,10)},predicate:function ve(se){return"[object Number]"===Object.prototype.toString.call(se)&&(se%1!=0||rt.isNegativeZero(se))},represent:function Ve(se,ue){var ae;if(isNaN(se))switch(ue){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===se)switch(ue){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===se)switch(ue){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(rt.isNegativeZero(se))return"-0.0";return ae=se.toString(10),et.test(ae)?ae.replace("e",".e"):ae},defaultStyle:"lowercase"})},877:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(647);function dt(se){return 48<=se&&se<=57||65<=se&&se<=70||97<=se&&se<=102}function Ge(se){return 48<=se&&se<=55}function _e(se){return 48<=se&&se<=57}Yt.exports=new Oe("tag:yaml.org,2002:int",{kind:"scalar",resolve:function et(se){if(null===se)return!1;var T,ue=se.length,ae=0,D=!1;if(!ue)return!1;if(("-"===(T=se[ae])||"+"===T)&&(T=se[++ae]),"0"===T){if(ae+1===ue)return!0;if("b"===(T=se[++ae])){for(ae++;ae=0?"0b"+se.toString(2):"-0b"+se.toString(2).slice(1)},octal:function(se){return se>=0?"0"+se.toString(8):"-0"+se.toString(8).slice(1)},decimal:function(se){return se.toString(10)},hexadecimal:function(se){return se>=0?"0x"+se.toString(16).toUpperCase():"-0x"+se.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Yt,Tn,De)=>{"use strict";var rt;try{rt=De(797)}catch{typeof window<"u"&&(rt=window.esprima)}var dt=De(647);Yt.exports=new dt("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function Ge(ve){if(null===ve)return!1;try{var ue=rt.parse("("+ve+")",{range:!0});return!("Program"!==ue.type||1!==ue.body.length||"ExpressionStatement"!==ue.body[0].type||"ArrowFunctionExpression"!==ue.body[0].expression.type&&"FunctionExpression"!==ue.body[0].expression.type)}catch{return!1}},construct:function _e(ve){var D,se="("+ve+")",ue=rt.parse(se,{range:!0}),ae=[];if("Program"!==ue.type||1!==ue.body.length||"ExpressionStatement"!==ue.body[0].type||"ArrowFunctionExpression"!==ue.body[0].expression.type&&"FunctionExpression"!==ue.body[0].expression.type)throw new Error("Failed to resolve function");return ue.body[0].expression.params.forEach(function(T){ae.push(T.name)}),D=ue.body[0].expression.body.range,new Function(ae,"BlockStatement"===ue.body[0].expression.body.type?se.slice(D[0]+1,D[1]-1):"return "+se.slice(D[0],D[1]))},predicate:function Ve(ve){return"[object Function]"===Object.prototype.toString.call(ve)},represent:function et(ve){return ve.toString()}})},632:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function Oe(et){if(null===et||0===et.length)return!1;var Ve=et,ve=/\/([gim]*)$/.exec(et),se="";return!("/"===Ve[0]&&(ve&&(se=ve[1]),se.length>3||"/"!==Ve[Ve.length-se.length-1]))},construct:function dt(et){var Ve=et,ve=/\/([gim]*)$/.exec(et),se="";return"/"===Ve[0]&&(ve&&(se=ve[1]),Ve=Ve.slice(1,Ve.length-se.length-1)),new RegExp(Ve,se)},predicate:function _e(et){return"[object RegExp]"===Object.prototype.toString.call(et)},represent:function Ge(et){var Ve="/"+et.source+"/";return et.global&&(Ve+="g"),et.multiline&&(Ve+="m"),et.ignoreCase&&(Ve+="i"),Ve}})},771:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function Oe(){return!0},construct:function dt(){},predicate:function _e(et){return typeof et>"u"},represent:function Ge(){return""}})},71:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Oe){return null!==Oe?Oe:{}}})},996:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function Oe(dt){return"<<"===dt||null===dt}})},568:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:null",{kind:"scalar",resolve:function Oe(_e){if(null===_e)return!0;var et=_e.length;return 1===et&&"~"===_e||4===et&&("null"===_e||"Null"===_e||"NULL"===_e)},construct:function dt(){return null},predicate:function Ge(_e){return null===_e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},166:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=Object.prototype.hasOwnProperty,dt=Object.prototype.toString;Yt.exports=new rt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function Ge(et){if(null===et)return!0;var ve,se,ue,ae,D,Ve=[],T=et;for(ve=0,se=T.length;ve{"use strict";var rt=De(647),Oe=Object.prototype.toString;Yt.exports=new rt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function dt(_e){if(null===_e)return!0;var et,Ve,ve,se,ue,ae=_e;for(ue=new Array(ae.length),et=0,Ve=ae.length;et{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Oe){return null!==Oe?Oe:[]}})},738:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=Object.prototype.hasOwnProperty;Yt.exports=new rt("tag:yaml.org,2002:set",{kind:"mapping",resolve:function dt(_e){if(null===_e)return!0;var et,Ve=_e;for(et in Ve)if(Oe.call(Ve,et)&&null!==Ve[et])return!1;return!0},construct:function Ge(_e){return null!==_e?_e:{}}})},464:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Oe){return null!==Oe?Oe:""}})},934:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Yt.exports=new rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function Ge(Ve){return null!==Ve&&(null!==Oe.exec(Ve)||null!==dt.exec(Ve))},construct:function _e(Ve){var ve,se,ue,ae,D,T,O,jt,te=0,Me=null;if(null===(ve=Oe.exec(Ve))&&(ve=dt.exec(Ve)),null===ve)throw new Error("Date resolve error");if(se=+ve[1],ue=+ve[2]-1,ae=+ve[3],!ve[4])return new Date(Date.UTC(se,ue,ae));if(D=+ve[4],T=+ve[5],O=+ve[6],ve[7]){for(te=ve[7].slice(0,3);te.length<3;)te+="0";te=+te}return ve[9]&&(Me=6e4*(60*+ve[10]+ +(ve[11]||0)),"-"===ve[9]&&(Me=-Me)),jt=new Date(Date.UTC(se,ue,ae,D,T,O,te)),Me&&jt.setTime(jt.getTime()-Me),jt},instanceOf:Date,represent:function et(Ve){return Ve.toISOString()}})}},Yt=>{Yt(Yt.s=440)}]); \ No newline at end of file diff --git a/console/ui/dist/prod/static/main.cace40330f19a5d5.js b/console/ui/dist/prod/static/main.cace40330f19a5d5.js new file mode 100644 index 0000000000..6fe53f944c --- /dev/null +++ b/console/ui/dist/prod/static/main.cace40330f19a5d5.js @@ -0,0 +1 @@ +(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{191:(Yt,Dn,ke)=>{"use strict";function nt(t){return"function"==typeof t}let Ie=!1;const ct={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Ie&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Ie=t},get useDeprecatedSynchronousErrorHandling(){return Ie}};function ze(t){setTimeout(()=>{throw t},0)}const _e={closed:!0,next(t){},error(t){if(ct.useDeprecatedSynchronousErrorHandling)throw t;ze(t)},complete(){}},Ze=Array.isArray||(t=>t&&"number"==typeof t.length);function Ve(t){return null!==t&&"object"==typeof t}const oe=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class ce{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof ce)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof oe?e.errors:e),[])}ce.EMPTY=((t=new ce).closed=!0,t);const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class F extends ce{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_e;break;case 1:if(!n){this.destination=_e;break}if("object"==typeof n){n instanceof F?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new ee(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new ee(this,n,e,i)}}[T](){return this}static create(n,e,i){const r=new F(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class ee extends F{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;nt(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==_e&&(s=Object.create(e),nt(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;ct.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=ct;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):ze(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;ze(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);ct.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),ct.useDeprecatedSynchronousErrorHandling)throw i;ze(i)}}__tryOrSetError(n,e,i){if(!ct.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return ct.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(ze(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const Ct="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ft(t){return t}function gn(t){return 0===t.length?Ft:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let en=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Je(t,n,e){if(t){if(t instanceof F)return t;if(t[T])return t[T]()}return t||n||e?new F(t,n,e):new F(_e)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||ct.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),ct.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){ct.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Ae(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof F?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Ai(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Ct](){return this}pipe(...e){return 0===e.length?this:gn(e)(this)}toPromise(e){return new(e=Ai(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Ai(t){if(t||(t=ct.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Ur=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class ss extends ce{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class za extends F{constructor(n){super(n),this.destination=n}}let _r=(()=>{class t extends en{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[T](){return new za(this)}lift(e){const i=new gu(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Ur;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew gu(n,e),t})();class gu extends _r{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):ce.EMPTY}}function _a(t){return t&&"function"==typeof t.schedule}function vn(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new wd(t,n))}}class wd{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new Cd(n,this.project,this.thisArg))}}class Cd extends F{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Jn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function ll(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Kl=t=>{if(t&&"function"==typeof t[Ct])return(t=>n=>{const e=t[Ct]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Yr(t))return Jn(t);if(ll(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ze),n))(t);if(t&&"function"==typeof t[No])return(t=>n=>{const e=t[No]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${Ve(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Nc(t,n){return new en(e=>{const i=new ce;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function ro(t,n){return n?function sa(t,n){if(null!=t){if(function yu(t){return t&&"function"==typeof t[Ct]}(t))return function Sd(t,n){return new en(e=>{const i=new ce;return i.add(n.schedule(()=>{const r=t[Ct]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(ll(t))return function Ic(t,n){return new en(e=>{const i=new ce;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Yr(t))return Nc(t,n);if(function Ga(t){return t&&"function"==typeof t[No]}(t)||"string"==typeof t)return function kd(t,n){if(!t)throw new Error("Iterable cannot be null");return new en(e=>{const i=new ce;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[No](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof en?t:new en(Kl(t))}class Ml extends F{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Y extends F{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Ne(t,n){if(n.closed)return;if(t instanceof en)return t.subscribe(n);let e;try{e=Kl(t)(n)}catch(i){n.error(i)}return e}function et(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(et((r,o)=>ro(t(r,o)).pipe(vn((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new Ht(t,e)))}class Ht{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new Kt(n,this.project,this.concurrent))}}class Kt extends Y{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function M(t=Number.POSITIVE_INFINITY){return et(Ft,t)}function ot(t,n){return n?Nc(t,n):new en(Jn(t))}function Dt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return _a(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof en?t[0]:M(n)(ot(t,e))}function Ut(){return function(n){return n.lift(new Bt(n))}}class Bt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new hn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class hn extends F{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class fe extends en{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new ce,n.add(this.source.subscribe(new Ot(this.getSubject(),this))),n.closed&&(this._connection=null,n=ce.EMPTY)),n}refCount(){return Ut()(this)}}const mt=(()=>{const t=fe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Ot extends za{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class cn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function Wt(){return new _r}function Ge(){return t=>Ut()(function Pt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new cn(r,n));const o=Object.create(i,mt);return o.source=i,o.subjectFactory=r,o}}(Wt)(t))}function qe(t){for(let n in t)if(t[n]===qe)return n;throw Error("Could not find renamed property on target object.")}function _t(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function bn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(bn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Nr(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const m1=qe({__forward_ref__:qe});function Mi(t){return t.__forward_ref__=Mi,t.toString=function(){return bn(this())},t}function xi(t){return ST(t)?t():t}function ST(t){return"function"==typeof t&&t.hasOwnProperty(m1)&&t.__forward_ref__===Mi}function kT(t){return t&&!!t.\u0275providers}const hx="https://g.co/ng/security#xss";class Nt extends Error{constructor(n,e){super(fx(n,e)),this.code=n}}function fx(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Li(t){return"string"==typeof t?t:null==t?"":String(t)}function px(t,n){throw new Nt(-201,!1)}function Jr(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}function Et(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function wi(t){return{providers:t.providers||[],imports:t.imports||[]}}function mx(t){return lL(t,gx)||lL(t,uL)}function lL(t,n){return t.hasOwnProperty(n)?t[n]:null}function cL(t){return t&&(t.hasOwnProperty(DT)||t.hasOwnProperty(_ve))?t[DT]:null}const gx=qe({\u0275prov:qe}),DT=qe({\u0275inj:qe}),uL=qe({ngInjectableDef:qe}),_ve=qe({ngInjectorDef:qe});var Ci=(()=>((Ci=Ci||{})[Ci.Default=0]="Default",Ci[Ci.Host=1]="Host",Ci[Ci.Self=2]="Self",Ci[Ci.SkipSelf=4]="SkipSelf",Ci[Ci.Optional=8]="Optional",Ci))();let TT;function Pc(t){const n=TT;return TT=t,n}function dL(t,n,e){const i=mx(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ci.Optional?null:void 0!==n?n:void px(bn(t))}const Fo=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),g1={},ET="__NG_DI_FLAG__",vx="ngTempTokenPath",xve="ngTokenPath",wve=/\n/gm,Cve="\u0275",hL="__source";let v1;function Cg(t){const n=v1;return v1=t,n}function Sve(t,n=Ci.Default){if(void 0===v1)throw new Nt(-203,!1);return null===v1?dL(t,void 0,n):v1.get(t,n&Ci.Optional?null:void 0,n)}function vt(t,n=Ci.Default){return(function bve(){return TT}()||Sve)(xi(t),n)}function Fi(t,n=Ci.Default){return vt(t,yx(n))}function yx(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function AT(t){const n=[];for(let e=0;e((Dd=Dd||{})[Dd.OnPush=0]="OnPush",Dd[Dd.Default=1]="Default",Dd))(),_u=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(_u||(_u={})),_u))();const Dh={},zr=[],_x=qe({\u0275cmp:qe}),MT=qe({\u0275dir:qe}),OT=qe({\u0275pipe:qe}),pL=qe({\u0275mod:qe}),Th=qe({\u0275fac:qe}),_1=qe({__NG_ELEMENT_ID__:qe});let Eve=0;function $t(t){return kh(()=>{const n=gL(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Dd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||_u.Emulated,id:"c"+Eve++,styles:t.styles||zr,_:null,schemas:t.schemas||null,tView:null};vL(e);const i=t.dependencies;return e.directiveDefs=bx(i,!1),e.pipeDefs=bx(i,!0),e})}function Mve(t){return Kr(t)||Wa(t)}function Ove(t){return null!==t}function ki(t){return kh(()=>({type:t.type,bootstrap:t.bootstrap||zr,declarations:t.declarations||zr,imports:t.imports||zr,exports:t.exports||zr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function mL(t,n){if(null==t)return Dh;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}function sn(t){return kh(()=>{const n=gL(t);return vL(n),n})}function cl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Kr(t){return t[_x]||null}function Wa(t){return t[MT]||null}function Ol(t){return t[OT]||null}function Zl(t,n){const e=t[pL]||null;if(!e&&!0===n)throw new Error(`Type ${bn(t)} does not have '\u0275mod' property.`);return e}function gL(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||zr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:mL(t.inputs,n),outputs:mL(t.outputs)}}function vL(t){t.features?.forEach(n=>n(t))}function bx(t,n){if(!t)return null;const e=n?Ol:Mve;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(Ove)}const Eh=0,Pn=1,Xi=2,as=3,bu=4,Bp=5,qa=6,kg=7,_s=8,xx=9,wx=10,er=11,IT=12,b1=13,yL=14,Dg=15,Ya=16,x1=17,Tg=18,Td=19,w1=20,_L=21,Po=22,NT=1,bL=2,Cx=7,Sx=8,Eg=9,ul=10;function ec(t){return Array.isArray(t)&&"object"==typeof t[NT]}function xu(t){return Array.isArray(t)&&!0===t[NT]}function FT(t){return 0!=(4&t.flags)}function C1(t){return t.componentOffset>-1}function kx(t){return 1==(1&t.flags)}function wu(t){return!!t.template}function Nve(t){return 0!=(256&t[Xi])}function Vp(t,n){return t.hasOwnProperty(Th)?t[Th]:null}class jve{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ei(){return CL}function CL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Lve),Rve}function Rve(){const t=kL(this),n=t?.current;if(n){const e=t.previous;if(e===Dh)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Lve(t,n,e,i){const r=this.declaredInputs[e],o=kL(t)||function $ve(t,n){return t[SL]=n}(t,{previous:Dh,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new jve(l&&l.currentValue,n,a===Dh),t[i]=n}ei.ngInherit=!0;const SL="__ngSimpleChanges__";function kL(t){return t[SL]||null}const jc=function(t,n,e){},DL="svg";function xa(t){for(;Array.isArray(t);)t=t[Eh];return t}function Dx(t,n){return xa(n[t])}function tc(t,n){return xa(n[t.index])}function EL(t,n){return t.data[n]}function Ag(t,n){return t[n]}function Il(t,n){const e=n[t];return ec(e)?e:e[Eh]}function Tx(t){return 64==(64&t[Xi])}function xf(t,n){return null==n?null:t[n]}function AL(t){t[Tg]=0}function jT(t,n){t[Bp]+=n;let e=t,i=t[as];for(;null!==i&&(1===n&&1===e[Bp]||-1===n&&0===e[Bp]);)i[Bp]+=n,e=i,i=i[as]}const $i={lFrame:$L(null),bindingsEnabled:!0};function OL(){return $i.bindingsEnabled}function zt(){return $i.lFrame.lView}function Fr(){return $i.lFrame.tView}function $e(t){return $i.lFrame.contextLView=t,t[_s]}function Be(t){return $i.lFrame.contextLView=null,t}function wa(){let t=IL();for(;null!==t&&64===t.type;)t=t.parent;return t}function IL(){return $i.lFrame.currentTNode}function S1(){const t=$i.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function Ed(t,n){const e=$i.lFrame;e.currentTNode=t,e.isParent=n}function RT(){return $i.lFrame.isParent}function LT(){$i.lFrame.isParent=!1}function dl(){const t=$i.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Ah(){return $i.lFrame.bindingIndex}function Mg(){return $i.lFrame.bindingIndex++}function Mh(t){const n=$i.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function PL(t){$i.lFrame.inI18n=t}function Qve(t,n){const e=$i.lFrame;e.bindingIndex=e.bindingRootIndex=t,$T(n)}function $T(t){$i.lFrame.currentDirectiveIndex=t}function jL(){return $i.lFrame.currentQueryIndex}function VT(t){$i.lFrame.currentQueryIndex=t}function e0e(t){const n=t[Pn];return 2===n.type?n.declTNode:1===n.type?t[qa]:null}function RL(t,n,e){if(e&Ci.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Ci.Host||(r=e0e(o),null===r||(o=o[Dg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=$i.lFrame=LL();return i.currentTNode=n,i.lView=t,!0}function HT(t){const n=LL(),e=t[Pn];$i.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function LL(){const t=$i.lFrame,n=null===t?null:t.child;return null===n?$L(t):n}function $L(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function BL(){const t=$i.lFrame;return $i.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const VL=BL;function UT(){const t=BL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function hl(){return $i.lFrame.selectedIndex}function Hp(t){$i.lFrame.selectedIndex=t}function Jo(){const t=$i.lFrame;return EL(t.tView,t.selectedIndex)}function st(){$i.lFrame.currentNamespace=DL}function Up(){!function r0e(){$i.lFrame.currentNamespace=null}()}function Ex(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[Tg]+=65536),(a>11>16&&(3&t[Xi])===n){t[Xi]+=2048,jc(4,a,o);try{o.call(a)}finally{jc(5,a,o)}}}else{jc(4,a,o);try{o.call(a)}finally{jc(5,a,o)}}}const Og=-1;class k1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function WT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[Dg],e--;return i}let qT=!0;function Nx(t){const n=qT;return qT=t,n}const qL=255,YL=5;let h0e=0;const Ad={};function Fx(t,n){const e=XL(t,n);if(-1!==e)return e;const i=n[Pn];i.firstCreatePass&&(t.injectorIndex=n.length,YT(i.data,t),YT(n,null),YT(i.blueprint,null));const r=XT(t,n),o=t.injectorIndex;if(WL(r)){const s=Ox(r),a=Ix(r,n),l=a[Pn].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function YT(t,n){t.push(0,0,0,0,0,0,0,0,n)}function XL(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function XT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=n5(r),null===i)return Og;if(e++,r=r[Dg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Og}function JT(t,n,e){!function f0e(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(_1)&&(i=e[_1]),null==i&&(i=e[_1]=h0e++);const r=i&qL;n.data[t+(r>>YL)]|=1<=0?n&qL:v0e:n}(e);if("function"==typeof o){if(!RL(n,t,i))return i&Ci.Host?JL(r,0,i):KL(n,e,i,r);try{const s=o(i);if(null!=s||i&Ci.Optional)return s;px()}finally{VL()}}else if("number"==typeof o){let s=null,a=XL(t,n),l=Og,c=i&Ci.Host?n[Ya][qa]:null;for((-1===a||i&Ci.SkipSelf)&&(l=-1===a?XT(t,n):n[a+8],l!==Og&&t5(i,!1)?(s=n[Pn],a=Ox(l),n=Ix(l,n)):a=-1);-1!==a;){const u=n[Pn];if(e5(o,a,u.data)){const d=m0e(a,n,e,s,i,c);if(d!==Ad)return d}l=n[a+8],l!==Og&&t5(i,n[Pn].data[a+8]===c)&&e5(o,a,n)?(s=u,a=Ox(l),n=Ix(l,n)):a=-1}}return r}function m0e(t,n,e,i,r,o){const s=n[Pn],a=s.data[t+8],u=Px(a,s,e,null==i?C1(a)&&qT:i!=s&&0!=(3&a.type),r&Ci.Host&&o===a);return null!==u?zp(n,s,u,a):Ad}function Px(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&wu(f)&&f.type===e)return l}return null}function zp(t,n,e,i){let r=t[e];const o=n.data;if(function l0e(t){return t instanceof k1}(r)){const s=r;s.resolving&&function hve(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Nt(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Xr(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Li(t)}(o[e]));const a=Nx(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pc(s.injectImpl):null;RL(t,i,Ci.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function s0e(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=CL(n);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Pc(l),Nx(a),s.resolving=!1,VL()}}return r}function e5(t,n,e){return!!(e[n+(t>>YL)]&1<{const n=t.prototype.constructor,e=n[Th]||KT(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Th]||KT(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function KT(t){return ST(t)?()=>{const n=KT(xi(t));return n&&n()}:Vp(t)}function n5(t){const n=t[Pn],e=n.type;return 2===e?n.declTNode:1===e?t[qa]:null}function wf(t){return function p0e(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function QT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Fg)?l[Fg]:Object.defineProperty(l,Fg,{value:[]})[Fg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Vn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Et({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Gp(t,n){t.forEach(e=>Array.isArray(e)?Gp(e,n):n(e))}function r5(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function jx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function A1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function w0e(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function eE(t,n){const e=Rg(t,n);if(e>=0)return t[1|e]}function Rg(t,n){return function o5(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Nl=Nl||{})[Nl.Important=1]="Important",Nl[Nl.DashCase=2]="DashCase",Nl))();const V0e=/^>|^->||--!>|)/,U0e="\u200b$1\u200b";const sE=new Map;let z0e=0;const lE="__ngContext__";function Xa(t,n){ec(n)?(t[lE]=n[w1],function W0e(t){sE.set(t[w1],t)}(n)):t[lE]=n}let cE;function uE(t,n){return cE(t,n)}function P1(t){const n=t[as];return xu(n)?n[as]:n}function dE(t){return k5(t[b1])}function hE(t){return k5(t[bu])}function k5(t){for(;null!==t&&!xu(t);)t=t[bu];return t}function $g(t,n,e,i,r){if(null!=i){let o,s=!1;xu(i)?o=i:ec(i)&&(s=!0,i=i[Eh]);const a=xa(i);0===t&&null!==e?null==r?O5(n,e,a):Wp(n,e,a,r||null,!0):1===t&&null!==e?Wp(n,e,a,r||null,!0):2===t?_E(n,a,s):3===t&&n.destroyNode(a),null!=o&&function m1e(t,n,e,i,r){const o=e[Cx];o!==xa(e)&&$g(n,t,i,o,r);for(let a=ul;an.replace(H0e,U0e))}(n))}function pE(t,n,e){return t.createElement(n,e)}function T5(t,n){const e=t[Eg],i=e.indexOf(n),r=n[as];512&n[Xi]&&(n[Xi]&=-513,jT(r,-1)),e.splice(i,1)}function mE(t,n){if(t.length<=ul)return;const e=ul+n,i=t[e];if(i){const r=i[x1];null!==r&&r!==t&&T5(r,i),n>0&&(t[e-1][bu]=i[bu]);const o=jx(t,ul+n);!function r1e(t,n){j1(t,n,n[er],2,null,null),n[Eh]=null,n[qa]=null}(i[Pn],i);const s=o[Td];null!==s&&s.detachView(o[Pn]),i[as]=null,i[bu]=null,i[Xi]&=-65}return i}function E5(t,n){if(!(128&n[Xi])){const e=n[er];e.destroyNode&&j1(t,n,e,3,null,null),function a1e(t){let n=t[b1];if(!n)return gE(t[Pn],t);for(;n;){let e=null;if(ec(n))e=n[b1];else{const i=n[ul];i&&(e=i)}if(!e){for(;n&&!n[bu]&&n!==t;)ec(n)&&gE(n[Pn],n),n=n[as];null===n&&(n=t),ec(n)&&gE(n[Pn],n),e=n&&n[bu]}n=e}}(n)}}function gE(t,n){if(!(128&n[Xi])){n[Xi]&=-65,n[Xi]|=128,function d1e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===_u.None||o===_u.Emulated)return null}return tc(i,e)}}function Wp(t,n,e,i,r){t.insertBefore(n,e,i,r)}function O5(t,n,e){t.appendChild(n,e)}function I5(t,n,e,i,r){null!==i?Wp(t,n,e,i,r):O5(t,n,e)}function Bx(t,n){return t.parentNode(n)}function N5(t,n,e){return P5(t,n,e)}function F5(t,n,e){return 40&t.type?tc(t,e):null}let vE,Ux,wE,zx,P5=F5;function j5(t,n){P5=t,vE=n}function Vx(t,n,e,i){const r=A5(t,i,n),o=n[er],a=N5(i.parent||n[qa],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ux}()?.createHTML(t)||t}function V5(){return void 0!==wE?wE:typeof document<"u"?document:void 0}function CE(){if(void 0===zx&&(zx=null,Fo.trustedTypes))try{zx=Fo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return zx}function H5(t){return CE()?.createHTML(t)||t}function z5(t){return CE()?.createScriptURL(t)||t}class qp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${hx})`}}class w1e extends qp{getTypeName(){return"HTML"}}class C1e extends qp{getTypeName(){return"Style"}}class S1e extends qp{getTypeName(){return"Script"}}class k1e extends qp{getTypeName(){return"URL"}}class D1e extends qp{getTypeName(){return"ResourceURL"}}function ic(t){return t instanceof qp?t.changingThisBreaksApplicationSecurity:t}function Md(t,n){const e=function T1e(t){return t instanceof qp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${hx})`)}return e===n}function G5(t){const n=new F1e(t);return function P1e(){try{return!!(new window.DOMParser).parseFromString(Bg(""),"text/html")}catch{return!1}}()?new N1e(n):n}class N1e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Bg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class F1e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Bg(n),e}}const j1e=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gx(t){return(t=String(t)).match(j1e)?t:"unsafe:"+t}function Oh(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function R1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const W5=Oh("area,br,col,hr,img,wbr"),q5=Oh("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Y5=Oh("rp,rt"),SE=R1(W5,R1(q5,Oh("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),R1(Y5,Oh("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),R1(Y5,q5)),kE=Oh("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),X5=R1(kE,Oh("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Oh("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),R1e=Oh("script,style,template");class L1e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!SE.hasOwnProperty(e))return this.sanitizedSomething=!0,!R1e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();SE.hasOwnProperty(e)&&!W5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(J5(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const $1e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,B1e=/([^\#-~ |!])/g;function J5(t){return t.replace(/&/g,"&").replace($1e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(B1e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Wx;function K5(t,n){let e=null;try{Wx=Wx||G5(t);let i=n?String(n):"";e=Wx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Wx.getInertBodyElement(i)}while(i!==o);return Bg((new L1e).sanitizeChildren(DE(e)||e))}finally{if(e){const i=DE(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function DE(t){return"content"in t&&function V1e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var bo=(()=>((bo=bo||{})[bo.NONE=0]="NONE",bo[bo.HTML=1]="HTML",bo[bo.STYLE=2]="STYLE",bo[bo.SCRIPT=3]="SCRIPT",bo[bo.URL=4]="URL",bo[bo.RESOURCE_URL=5]="RESOURCE_URL",bo))();function qx(t){const n=$1();return n?H5(n.sanitize(bo.HTML,t)||""):Md(t,"HTML")?H5(ic(t)):K5(V5(),Li(t))}function L1(t){const n=$1();return n?n.sanitize(bo.URL,t)||"":Md(t,"URL")?ic(t):Gx(Li(t))}function Q5(t){const n=$1();if(n)return z5(n.sanitize(bo.RESOURCE_URL,t)||"");if(Md(t,"ResourceURL"))return z5(ic(t));throw new Nt(904,!1)}function $1(){const t=zt();return t&&t[IT]}const Yx=new Vn("ENVIRONMENT_INITIALIZER"),e8=new Vn("INJECTOR",-1),t8=new Vn("INJECTOR_DEF_TYPES");class n8{get(n,e=g1){if(e===g1){const i=new Error(`NullInjectorError: No provider for ${bn(n)}!`);throw i.name="NullInjectorError",i}return e}}function Y1e(...t){return{\u0275providers:i8(0,t),\u0275fromNgModule:!0}}function i8(t,...n){const e=[],i=new Set;let r;return Gp(n,o=>{const s=o;TE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&r8(r,e),e}function r8(t,n){for(let e=0;e{n.push(o)})}}function TE(t,n,e,i){if(!(t=xi(t)))return!1;let r=null,o=cL(t);const s=!o&&Kr(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=cL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)TE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Gp(o.imports,u=>{TE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&r8(c,n)}if(!a){const c=Vp(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:zr},{provide:t8,useValue:r,multi:!0},{provide:Yx,useValue:()=>vt(r),multi:!0})}const l=o.providers;null==l||a||EE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function EE(t,n){for(let e of t)kT(e)&&(e=e.\u0275providers),Array.isArray(e)?EE(e,n):n(e)}const X1e=qe({provide:String,useValue:qe});function AE(t){return null!==t&&"object"==typeof t&&X1e in t}function Yp(t){return"function"==typeof t}const ME=new Vn("Set Injector scope."),Xx={},K1e={};let OE;function Jx(){return void 0===OE&&(OE=new n8),OE}class Lc{}class a8 extends Lc{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,NE(n,s=>this.processProvider(s)),this.records.set(e8,Vg(void 0,this)),r.has("environment")&&this.records.set(Lc,Vg(void 0,this));const o=this.records.get(ME);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(t8.multi,zr,Ci.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Cg(this),i=Pc(void 0);try{return n()}finally{Cg(e),Pc(i)}}get(n,e=g1,i=Ci.Default){this.assertNotDestroyed(),i=yx(i);const r=Cg(this),o=Pc(void 0);try{if(!(i&Ci.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function nye(t){return"function"==typeof t||"object"==typeof t&&t instanceof Vn}(n)&&mx(n);a=l&&this.injectableDefInScope(l)?Vg(IE(n),Xx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Ci.Self?Jx():this.parent).get(n,e=i&Ci.Optional&&e===g1?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[vx]=s[vx]||[]).unshift(bn(n)),r)throw s;return function Dve(t,n,e,i){const r=t[vx];throw n[hL]&&r.unshift(n[hL]),t.message=function Tve(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Cve?t.slice(2):t;let r=bn(n);if(Array.isArray(n))r=n.map(bn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):bn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(wve,"\n ")}`}("\n"+t.message,r,e,i),t[xve]=r,t[vx]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Pc(o),Cg(r)}}resolveInjectorInitializers(){const n=Cg(this),e=Pc(void 0);try{const i=this.get(Yx.multi,zr,Ci.Self);for(const r of i)r()}finally{Cg(n),Pc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(bn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Nt(205,!1)}processProvider(n){let e=Yp(n=xi(n))?n:xi(n&&n.provide);const i=function Z1e(t){return AE(t)?Vg(void 0,t.useValue):Vg(l8(t),Xx)}(n);if(Yp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Vg(void 0,Xx,!0),r.factory=()=>AT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Xx&&(e.value=K1e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function tye(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=xi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function IE(t){const n=mx(t),e=null!==n?n.factory:Vp(t);if(null!==e)return e;if(t instanceof Vn)throw new Nt(204,!1);if(t instanceof Function)return function Q1e(t){const n=t.length;if(n>0)throw A1(n,"?"),new Nt(204,!1);const e=function yve(t){return t&&(t[gx]||t[uL])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Nt(204,!1)}function l8(t,n,e){let i;if(Yp(t)){const r=xi(t);return Vp(r)||IE(r)}if(AE(t))i=()=>xi(t.useValue);else if(function s8(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...AT(t.deps||[]));else if(function o8(t){return!(!t||!t.useExisting)}(t))i=()=>vt(xi(t.useExisting));else{const r=xi(t&&(t.useClass||t.provide));if(!function eye(t){return!!t.deps}(t))return Vp(r)||IE(r);i=()=>new r(...AT(t.deps))}return i}function Vg(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function NE(t,n){for(const e of t)Array.isArray(e)?NE(e,n):e&&kT(e)?NE(e.\u0275providers,n):n(e)}class iye{}class c8{}class oye{resolveComponentFactory(n){throw function rye(t){const n=Error(`No component factory found for ${bn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Hg=(()=>{class t{}return t.NULL=new oye,t})();function sye(){return Ug(wa(),zt())}function Ug(t,n){return new Si(tc(t,n))}let Si=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=sye,t})();function aye(t){return t instanceof Si?t.nativeElement:t}class zg{}let aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function lye(){const t=zt(),e=Il(wa().index,t);return(ec(e)?e:t)[er]}(),t})(),cye=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>null}),t})();class B1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const uye=new B1("15.2.9"),FE={},PE="ngOriginalError";function jE(t){return t[PE]}class Gg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&jE(n);for(;e&&jE(e);)e=jE(e);return e||null}}function d8(t){return t.ownerDocument.defaultView}function Ih(t){return t instanceof Function?t():t}function f8(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const p8="ng-template";function bye(t,n,e){let i=0,r=!0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==f8(f,c,0)||2&i&&c!==h){if(Cu(i))return!1;s=!0}}}}else{if(!s&&!Cu(i)&&!Cu(l))return!1;if(s&&Cu(l))continue;s=!1,i=l|1&i}}return Cu(i)||s}function Cu(t){return 0==(1&t)}function Cye(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Cu(s)&&(n+=v8(o,r),r=""),i=s,o=o||!Cu(i);e++}return""!==r&&(n+=v8(o,r)),n}const Bi={};function C(t){y8(Fr(),zt(),hl()+t,!1)}function y8(t,n,e,i){if(!i)if(3==(3&n[Xi])){const o=t.preOrderCheckHooks;null!==o&&Ax(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Mx(n,o,0,e)}Hp(e)}function w8(t,n=null,e=null,i){const r=C8(t,n,e,i);return r.resolveInjectorInitializers(),r}function C8(t,n=null,e=null,i,r=new Set){const o=[e||zr,Y1e(t)];return i=i||("object"==typeof t?void 0:bn(t)),new a8(o,n||Jx(),i||null,r)}let la=(()=>{class t{static create(e,i){if(Array.isArray(e))return w8({name:""},i,e,"");{const r=e.name??"";return w8({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=g1,t.NULL=new n8,t.\u0275prov=Et({token:t,providedIn:"any",factory:()=>vt(e8)}),t.__NG_ELEMENT_ID__=-1,t})();function he(t,n=Ci.Default){const e=zt();return null===e?vt(t,n):QL(wa(),e,xi(t),n)}function O8(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;iPo&&y8(t,n,Po,!1),jc(s?2:0,r),e(i,r)}finally{Hp(o),jc(s?3:1,r)}}function UE(t,n,e){if(FT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,V1(t,e,r.hostVars,Bi),r)}function XE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Li(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function m_e(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&JE(e)}}function JE(t){for(let i=dE(t);null!==i;i=hE(i))for(let r=ul;r0&&JE(o)}const e=t[Pn].components;if(null!==e)for(let i=0;i0&&JE(r)}}function b_e(t,n){const e=Il(n,t),i=e[Pn];(function x_e(t,n){for(let e=n.length;e-1&&(mE(n,i),jx(e,i))}this._attachedToViewContainer=!1}E5(this._lView[Pn],this._lView)}onDestroy(n){F8(this._lView[Pn],this._lView,null,n)}markForCheck(){tw(this._cdRefInjectingView||this._lView)}detach(){this._lView[Xi]&=-65}reattach(){this._lView[Xi]|=64}detectChanges(){nw(this._lView[Pn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function s1e(t,n){j1(t,n,n[er],2,null,null)}(this._lView[Pn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Nt(902,!1);this._appRef=n}}class w_e extends H1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;nw(n[Pn],n,n[_s],!1)}checkNoChanges(){}get context(){return null}}class z8 extends Hg{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Kr(n);return new U1(e,this.ngModule)}}function G8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class S_e{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=yx(i);const r=this.injector.get(n,FE,i);return r!==FE||e===FE?r:this.parentInjector.get(n,e,i)}}class U1 extends c8{get inputs(){return G8(this.componentDef.inputs)}get outputs(){return G8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function Aye(t){return t.map(Eye).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Lc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new S_e(n,o):n,a=s.get(zg,null);if(null===a)throw new Nt(407,!1);const l=s.get(cye,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function Zye(t,n,e){return t.selectRootElement(n,e===_u.ShadowDom)}(c,i,this.componentDef.encapsulation):pE(c,u,function C_e(t){const n=t.toLowerCase();return"svg"===n?DL:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=WE(0,null,null,1,0,null,null,null,null,null),p=Qx(null,f,null,h,null,null,a,c,l,s,null);let m,g;HT(p);try{const v=this.componentDef;let y,_=null;v.findHostDirectiveDefs?(y=[],_=new Map,v.findHostDirectiveDefs(v,y,_),y.push(v)):y=[v];const w=function D_e(t,n){const e=t[Pn],i=Po;return t[i]=n,Yg(e,i,2,"#host",null)}(p,d),k=function T_e(t,n,e,i,r,o,s,a){const l=r[Pn];!function E_e(t,n,e,i){for(const r of t)n.mergedAttrs=D1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(iw(n,n.mergedAttrs,!0),null!==e&&B5(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Qx(r,N8(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&YE(l,t,i.length-1),ew(r,u),r[t.index]=u}(w,d,v,y,p,a,c);g=EL(f,Po),d&&function M_e(t,n,e,i){if(i)WT(t,e,["ng-version",uye.full]);else{const{attrs:r,classes:o}=function Mye(t){const n=[],e=[];let i=1,r=2;for(;i0&&$5(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function O_e(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=D1(r.hostAttrs,e=D1(e,r.hostAttrs))}}(i)}function ZE(t){return t===Dh?{}:t===zr?[]:t}function F_e(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function P_e(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function j_e(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function z1(t){return n=>{n.findHostDirectiveDefs=q8,n.hostDirectives=(Array.isArray(t)?t:t()).map(e=>"function"==typeof e?{directive:xi(e),inputs:Dh,outputs:Dh}:{directive:xi(e.directive),inputs:Y8(e.inputs),outputs:Y8(e.outputs)})}}function q8(t,n,e){if(null!==t.hostDirectives)for(const i of t.hostDirectives){const r=Wa(i.directive);B_e(r.declaredInputs,i.inputs),q8(r,n,e),e.set(r,i),n.push(r)}}function Y8(t){if(void 0===t||0===t.length)return Dh;const n={};for(let e=0;es(xa(w[i.index])):i.index;let _=null;if(!s&&a&&(_=function X_e(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==_)(_.__ngLastListenerFn__||_).__ngNextListenerFn__=o,_.__ngLastListenerFn__=o,h=!1;else{o=u6(i,n,u,o,!1);const w=e.listen(g,r,o);d.push(o,w),c&&c.push(r,y,v,v+1)}}else o=u6(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?Il(t.index,n):n);let l=c6(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=c6(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function B(t=1){return function t0e(t){return($i.lFrame.contextLView=function n0e(t,n){for(;t>0;)n=n[Dg],t--;return n}(t,$i.lFrame.contextLView))[_s]}(t)}function J_e(t,n){let e=null;const i=function Sye(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function iA(t){return 2|t}function Kp(t){return(131068&t)>>2}function rA(t,n){return-131069&t|n<<2}function oA(t){return 1|t}function _6(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?Df(o):Kp(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];nbe(t[a],n)&&(l=!0,t[a+1]=i?oA(u):iA(u)),a=i?Df(u):Kp(u)}l&&(t[e+1]=i?iA(o):oA(o))}function nbe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Rg(t,n)>=0}const Ys={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function b6(t){return t.substring(Ys.key,Ys.keyEnd)}function x6(t,n){const e=Ys.textEnd;return e===n?-1:(n=Ys.keyEnd=function sbe(t,n,e){for(;n32;)n++;return n}(t,Ys.key=n,e),rv(t,n,e))}function rv(t,n,e){for(;n=0;e=x6(n,e))nc(t,b6(n),!0)}function Su(t,n,e,i){const r=zt(),o=Fr(),s=Mh(2);o.firstUpdatePass&&T6(o,t,s,i),n!==Bi&&Ja(r,s,n)&&A6(o,o.data[hl()],r,r[er],t,r[s+1]=function vbe(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=bn(ic(t)))),t}(n,e),i,s)}function ku(t,n,e,i){const r=Fr(),o=Mh(2);r.firstUpdatePass&&T6(r,null,o,i);const s=zt();if(e!==Bi&&Ja(s,o,e)){const a=r.data[hl()];if(O6(a,i)&&!D6(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Nr(l,e||"")),tA(r,a,s,e,i)}else!function gbe(t,n,e,i,r,o,s,a){r===Bi&&(r=zr);let l=0,c=0,u=0=t.expandoStartIndex}function T6(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[hl()],s=D6(t,e);O6(o,i)&&null===n&&!s&&(n=!1),n=function ube(t,n,e,i){const r=function BT(t){const n=$i.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=q1(e=sA(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=sA(r,t,n,e,i),null===o){let l=function dbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Kp(i))return t[Df(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=sA(null,t,n,l[1],i),l=q1(l,n.attrs,i),function hbe(t,n,e,i){t[Df(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function fbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=Df(t[a+1]);t[i+1]=aw(h,a),0!==h&&(t[h+1]=rA(t[h+1],i)),t[a+1]=function Q_e(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=aw(a,0),0!==a&&(t[a+1]=rA(t[a+1],i)),a=i;else t[i+1]=aw(l,0),0===a?a=i:t[l+1]=rA(t[l+1],i),l=i;c&&(t[i+1]=iA(t[i+1])),_6(t,u,i,!0),_6(t,u,i,!1),function tbe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Rg(o,n)>=0&&(e[i+1]=oA(e[i+1]))}(n,u,t,i,o),s=aw(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function sA(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Bi&&(h=d?zr:void 0);let f=d?eE(h,i):u===i?h:void 0;if(c&&!lw(f)&&(f=eE(l,i)),lw(f)&&(a=f,s))return a;const p=t[r+1];r=s?Df(p):Kp(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=eE(l,i))}return a}function lw(t){return void 0!==t}function O6(t,n){return 0!=(t.flags&(n?8:16))}function N(t,n=""){const e=zt(),i=Fr(),r=t+Po,o=i.firstCreatePass?Yg(i,r,1,n,null):i.data[r],s=e[r]=fE(e[er],n);Vx(i,e,s,o),Ed(o,!1)}function kt(t){return yn("",t,""),kt}function yn(t,n,e){const i=zt(),r=Jg(i,t,n,e);return r!==Bi&&Nh(i,hl(),r),yn}function Tf(t,n,e,i,r){const o=zt(),s=Kg(o,t,n,e,i,r);return s!==Bi&&Nh(o,hl(),s),Tf}function Pl(t,n,e){const i=zt();return Ja(i,Mg(),n)&&rc(Fr(),Jo(),i,t,n,i[er],e,!0),Pl}const Qp=void 0;var Pbe=["en",[["a","p"],["AM","PM"],Qp],[["AM","PM"],Qp,Qp],[["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"]],Qp,[["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"]],Qp,[["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}",Qp,"{1} 'at' {0}",Qp],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Fbe(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ov={};function fl(t){const n=function jbe(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=Q6(n);if(e)return e;const i=n.split("-")[0];if(e=Q6(i),e)return e;if("en"===i)return Pbe;throw new Nt(701,!1)}function Q6(t){return t in ov||(ov[t]=Fo.ng&&Fo.ng.common&&Fo.ng.common.locales&&Fo.ng.common.locales[t]),ov[t]}var Tn=(()=>((Tn=Tn||{})[Tn.LocaleId=0]="LocaleId",Tn[Tn.DayPeriodsFormat=1]="DayPeriodsFormat",Tn[Tn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Tn[Tn.DaysFormat=3]="DaysFormat",Tn[Tn.DaysStandalone=4]="DaysStandalone",Tn[Tn.MonthsFormat=5]="MonthsFormat",Tn[Tn.MonthsStandalone=6]="MonthsStandalone",Tn[Tn.Eras=7]="Eras",Tn[Tn.FirstDayOfWeek=8]="FirstDayOfWeek",Tn[Tn.WeekendRange=9]="WeekendRange",Tn[Tn.DateFormat=10]="DateFormat",Tn[Tn.TimeFormat=11]="TimeFormat",Tn[Tn.DateTimeFormat=12]="DateTimeFormat",Tn[Tn.NumberSymbols=13]="NumberSymbols",Tn[Tn.NumberFormats=14]="NumberFormats",Tn[Tn.CurrencyCode=15]="CurrencyCode",Tn[Tn.CurrencySymbol=16]="CurrencySymbol",Tn[Tn.CurrencyName=17]="CurrencyName",Tn[Tn.Currencies=18]="Currencies",Tn[Tn.Directionality=19]="Directionality",Tn[Tn.PluralCase=20]="PluralCase",Tn[Tn.ExtraData=21]="ExtraData",Tn))();const Rbe=["zero","one","two","few","many"],sv="en-US",cw={marker:"element"},uw={marker:"ICU"};var ls=(()=>((ls=ls||{})[ls.SHIFT=2]="SHIFT",ls[ls.APPEND_EAGERLY=1]="APPEND_EAGERLY",ls[ls.COMMENT=2]="COMMENT",ls))();let Z6=sv;function e$(t){(function Fc(t,n){null==t&&Jr(n,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(Z6=t.toLowerCase().replace(/_/g,"-"))}function t$(t,n,e){const i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?F5(t,0,e):xa(e[r])}function n$(t,n,e,i,r){const o=n.insertBeforeIndex;if(Array.isArray(o)){let s=i,a=null;if(3&n.type||(a=s,s=r),null!==s&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];r$(i)||Vbe(i,n)&&null===Hbe(i)&&Ube(i,n.index)}}function r$(t){return!(64&t.type)}function Vbe(t,n){return r$(n)||t.index>n.index}function Hbe(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function Ube(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(j5(t$,n$),t.insertBeforeIndex=n)}function Y1(t,n){const e=t.data[n];return null===e||"string"==typeof e?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function Wbe(t,n,e){const i=VE(t,e,64,null,null);return i$(n,i),i}function dw(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}function o$(t){return t>>>17}function s$(t){return(131070&t)>>>1}let X1=0,J1=0;function l$(t,n,e,i){const r=e[er];let s,o=null;for(let a=0;a>>1,e),null,null,f,p,null)}else switch(l){case uw:const c=n[++a],u=n[++a];null===e[u]&&Xa(e[u]=i1e(r,c),e);break;case cw:const d=n[++a],h=n[++a];null===e[h]&&Xa(e[h]=pE(r,d,null),e)}}}function c$(t,n,e,i,r){for(let o=0;o>>2;switch(3&u){case 1:const h=e[++c],f=e[++c],p=t.data[d];"string"==typeof p?XE(n[er],n[d],null,p,h,l,f):rc(t,p,n,h,l,n[er],f,!1);break;case 0:const m=n[d];null!==m&&D5(n[er],m,l);break;case 2:Kbe(t,Y1(t,d),n,l);break;case 3:u$(t,Y1(t,d),i,n)}}}}else{const l=e[o+1];if(l>0&&3==(3&l)){const u=Y1(t,l>>>2);n[u.currentCaseLViewIndex]<0&&u$(t,u,i,n)}}o+=a}}function u$(t,n,e,i){let r=i[n.currentCaseLViewIndex];if(null!==r){let o=X1;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),c$(t,i,n.update[r],e,o)}}function Kbe(t,n,e,i){const r=function Qbe(t,n){let e=t.cases.indexOf(n);if(-1===e)switch(t.type){case 1:{const i=function Lbe(t,n){const e=function K6(t){return fl(t)[Tn.PluralCase]}(n)(parseInt(t,10)),i=Rbe[e];return void 0!==i?i:"other"}(n,function Bbe(){return Z6}());e=t.cases.indexOf(i),-1===e&&"other"!==i&&(e=t.cases.indexOf("other"));break}case 0:e=t.cases.indexOf("other")}return-1===e?null:e}(n,i);if(dw(n,e)!==r&&(d$(t,n,e),e[n.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const s=e[n.anchorIdx];s&&l$(t,n.create[r],e,s)}}function d$(t,n,e){let i=dw(n,e);if(null!==i){const r=n.remove[i];for(let o=0;o0){const a=Dx(s,e);null!==a&&_E(e[er],a)}else d$(t,Y1(t,~s),e)}}}function Zbe(){const t=[];let e,i,n=-1;function o(a,l){n=0;const c=dw(a,l);i=null!==c?a.remove[c]:zr}function s(){if(n0?e[a]:(t.push(n,i),o(e[Pn].data[~a],e),s())}return 0===t.length?null:(i=t.pop(),n=t.pop(),s())}return function r(a,l){for(e=l;t.length;)t.pop();return o(a.value,l),s}}const hw=/\ufffd(\d+):?\d*\ufffd/gi,txe=/\ufffd(\d+)\ufffd/,f$=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,K1="\ufffd",nxe=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,ixe=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,rxe=/\uE500/g;function p$(t,n,e,i,r,o,s){const a=V1(t,i,1,null);let l=a<e.length&&e.push(l)}return{type:i,mainBinding:r,cases:n,values:e}}function aA(t){if(!t)return[];let n=0;const e=[],i=[],r=/[{}]/g;let o;for(r.lastIndex=0;o=r.exec(t);){const a=o.index;if("}"==o[0]){if(e.pop(),0==e.length){const l=t.substring(n,a);f$.test(l)?i.push(hxe(l)):i.push(l),n=a+1}}else{if(0==e.length){const l=t.substring(n,a);i.push(l),n=a+1}e.push("{")}}const s=t.substring(n);return i.push(s),i}function fxe(t,n,e,i,r,o,s,a){const l=[],c=[],u=[];n.cases.push(o),n.create.push(l),n.remove.push(c),n.update.push(u);const h=G5(V5()).getInertBodyElement(s),f=DE(h)||h;return f?y$(t,n,e,i,l,c,u,f,r,a,0):0}function y$(t,n,e,i,r,o,s,a,l,c,u){let d=0,h=a.firstChild;for(;h;){const f=V1(t,e,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,m=p.tagName.toLowerCase();if(SE.hasOwnProperty(m)){lA(r,cw,m,l,f),t.data[f]=m;const _=p.attributes;for(let w=0;w<_.length;w++){const k=_.item(w),D=k.name.toLowerCase();k.value.match(hw)?X5.hasOwnProperty(D)&&Q1(s,k.value,f,k.name,0,kE[D]?Gx:null):vxe(r,f,k)}d=y$(t,n,e,i,r,o,s,h,f,c,u+1)|d,_$(o,f,u)}break;case Node.TEXT_NODE:const g=h.textContent||"",v=g.match(hw);lA(r,null,v?"":g,l,f),_$(o,f,u),v&&(d=Q1(s,g,f,null,0,null)|d);break;case Node.COMMENT_NODE:const y=txe.exec(h.textContent||"");if(y){const w=c[parseInt(y[1],10)];lA(r,uw,"",l,f),v$(t,e,i,l,w,f),pxe(o,f,u)}}h=h.nextSibling}return d}function _$(t,n,e){0===e&&t.push(n)}function pxe(t,n,e){0===e&&(t.push(~n),t.push(n))}function lA(t,n,e,i,r){null!==n&&t.push(n),t.push(e,r,function qbe(t,n,e){return t|n<<17|e<<1}(0,i,r))}function vxe(t,n,e){t.push(n<<1|1,e.name,e.value)}function x$(t,n,e=-1){const i=Fr(),r=zt(),o=Po+t,s=xf(i.consts,n),a=S1();i.firstCreatePass&&function sxe(t,n,e,i,r,o){const s=S1(),a=[],l=[],c=[[]];r=function dxe(t,n){if(function uxe(t){return-1===t}(n))return g$(t);{const e=t.indexOf(`:${n}${K1}`)+2+n.toString().length,i=t.search(new RegExp(`${K1}\\/\\*\\d+:${n}${K1}`));return g$(t.substring(e,i))}}(r,o);const u=function oxe(t){return t.replace(rxe," ")}(r).split(ixe);for(let d=0;d>>ls.SHIFT;let d=t[u];null===d&&(d=t[u]=(s&ls.COMMENT)===ls.COMMENT?r.createComment(a):fE(r,a)),c&&null!==e&&Wp(r,e,d,i,!1)}})(r,l.create,u,a&&8&a.type?r[a.index]:null),PL(!0)}function Ca(t,n,e){x$(t,n,e),function w$(){PL(!1)}()}function av(t){return function Ybe(t){t&&(X1|=1<0){const i=t.data[e];c$(t,n,Array.isArray(i)?i:i.update,Ah()-J1-1,X1)}X1=0,J1=0}(Fr(),zt(),t+Po)}function cA(t,n,e,i,r){if(t=xi(t),Array.isArray(t))for(let o=0;o>20;if(Yp(t)||!t.multi){const f=new k1(l,r,he),p=dA(a,n,r?u:u+h,d);-1===p?(JT(Fx(c,s),o,a),uA(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=dA(a,n,u+h,d),p=dA(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){JT(Fx(c,s),o,a);const v=function Oxe(t,n,e,i,r){const o=new k1(t,e,he);return o.multi=[],o.index=n,o.componentProviders=0,C$(o,r,i&&!e),o}(r?Mxe:Axe,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),uA(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else uA(o,t,f>-1?f:p,C$(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function uA(t,n,e,i){const r=Yp(n),o=function J1e(t){return!!t.useClass}(n);if(r||o){const l=(o?xi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function C$(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function dA(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Exe(t,n,e){const i=Fr();if(i.firstCreatePass){const r=wu(t);cA(e,i.data,i.blueprint,r,!0),cA(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class lv{}class S${}class k$ extends lv{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new z8(this);const i=Zl(n);this._bootstrapComponents=Ih(i.bootstrap),this._r3Injector=C8(n,e,[{provide:lv,useValue:this},{provide:Hg,useValue:this.componentFactoryResolver}],bn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class fA extends S${constructor(n){super(),this.moduleType=n}create(n){return new k$(this.moduleType,n)}}class Nxe extends lv{constructor(n,e,i){super(),this.componentFactoryResolver=new z8(this),this.instance=null;const r=new a8([...n,{provide:lv,useValue:this},{provide:Hg,useValue:this.componentFactoryResolver}],e||Jx(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function fw(t,n,e=null){return new Nxe(t,n,e).injector}let Fxe=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=i8(0,e.type),r=i.length>0?fw([i],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 t.\u0275prov=Et({token:t,providedIn:"environment",factory:()=>new t(vt(Lc))}),t})();function Is(t){t.getStandaloneInjector=n=>n.get(Fxe).getOrCreateStandaloneInjector(t)}function pl(t,n,e){const i=dl()+t,r=zt();return r[i]===Bi?Id(r,i,e?n.call(e):n()):function G1(t,n){return t[n]}(r,i)}function nr(t,n,e,i){return I$(zt(),dl(),t,n,e,i)}function Mr(t,n,e,i,r){return function N$(t,n,e,i,r,o,s){const a=n+e;return Xp(t,a,r,o)?Id(t,a+2,s?i.call(s,r,o):i(r,o)):ty(t,a+2)}(zt(),dl(),t,n,e,i,r)}function ey(t,n,e,i,r,o){return function F$(t,n,e,i,r,o,s,a){const l=n+e;return function sw(t,n,e,i,r){const o=Xp(t,n,e,i);return Ja(t,n+2,r)||o}(t,l,r,o,s)?Id(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):ty(t,l+3)}(zt(),dl(),t,n,e,i,r,o)}function ty(t,n){const e=t[n];return e===Bi?void 0:e}function I$(t,n,e,i,r,o){const s=n+e;return Ja(t,s,r)?Id(t,s+1,o?i.call(o,r):i(r)):ty(t,s+1)}function mA(t,n){const e=Fr();let i;const r=t+Po;e.firstCreatePass?(i=function Xxe(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Vp(i.type)),s=Pc(he);try{const a=Nx(!1),l=o();return Nx(a),function W_e(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,zt(),r,l),l}finally{Pc(s)}}function gA(t,n,e){const i=t+Po,r=zt(),o=Ag(r,i);return function ny(t,n){return t[Pn].data[n].pure}(r,i)?I$(r,dl(),n,o.transform,e,o):o.transform(e)}function vA(t){return n=>{setTimeout(t,void 0,n)}}const it=class ewe extends _r{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=vA(o),r&&(r=vA(r)),s&&(s=vA(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof ce&&n.add(a),a}};function twe(){return this._results[Symbol.iterator]()}class yA{get changes(){return this._changes||(this._changes=new it)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=yA.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=twe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Rc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function b0e(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=rwe,t})();const nwe=oo,iwe=class extends nwe{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Qx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[x1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Td];return null!==s&&(r[Td]=s.createEmbeddedView(i)),HE(i,r,n),new H1(r)}};function rwe(){return pw(wa(),zt())}function pw(t,n){return 4&t.type?new iwe(n,t,Ug(t,n)):null}let jl=(()=>{class t{}return t.__NG_ELEMENT_ID__=owe,t})();function owe(){return $$(wa(),zt())}const swe=jl,R$=class extends swe{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ug(this._hostTNode,this._hostLView)}get injector(){return new Ig(this._hostTNode,this._hostLView)}get parentInjector(){const n=XT(this._hostTNode,this._hostLView);if(WL(n)){const e=Ix(n,this._hostLView),i=Ox(n);return new Ig(e[Pn].data[i+8],e)}return new Ig(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=L$(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-ul}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function E1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new U1(Kr(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Lc,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[Pn];if(function zve(t){return xu(t[as])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[as],h=new R$(d,d[qa],d[as]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function l1e(t,n,e,i){const r=ul+i,o=e.length;i>0&&(e[r-1][bu]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=ul;d{class t{constructor(e){this.appInits=e,this.resolve=gw,this.reject=gw,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(vt(vw,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ry=new Vn("AppId",{providedIn:"root",factory:function lB(){return`${MA()}${MA()}${MA()}`}});function MA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const cB=new Vn("Platform Initializer"),oy=new Vn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),uB=new Vn("AnimationModuleType");let Iwe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ac=new Vn("LocaleId",{providedIn:"root",factory:()=>Fi(ac,Ci.Optional|Ci.SkipSelf)||function Nwe(){return typeof $localize<"u"&&$localize.locale||sv}()});class Pwe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let dB=(()=>{class t{compileModuleSync(e){return new fA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Ih(Zl(e).declarations).reduce((s,a)=>{const l=Kr(a);return l&&s.push(new U1(l)),s},[]);return new Pwe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Lwe=(()=>Promise.resolve(0))();function OA(t){typeof Zone>"u"?Lwe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ir{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new it(!1),this.onMicrotaskEmpty=new it(!1),this.onStable=new it(!1),this.onError=new it(!1),typeof Zone>"u")throw new Nt(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)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function $we(){let t=Fo.requestAnimationFrame,n=Fo.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Hwe(t){const n=()=>{!function Vwe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Fo,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,NA(t),t.isCheckStableRunning=!0,IA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),NA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return pB(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),mB(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return pB(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),mB(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,NA(t),IA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ir.isInAngularZone())throw new Nt(909,!1)}static assertNotInAngularZone(){if(ir.isInAngularZone())throw new Nt(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Bwe,gw,gw);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Bwe={};function IA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function NA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function pB(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function mB(t){t._nesting--,IA(t)}class Uwe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new it,this.onMicrotaskEmpty=new it,this.onStable=new it,this.onError=new it}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const gB=new Vn(""),_w=new Vn("");let jA,FA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,jA||(function zwe(t){jA=t}(r),r.addToWindow(i)),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:()=>{ir.assertNotInAngularZone(),OA(()=>{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())OA(()=>{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(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.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,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(vt(ir),vt(PA),vt(_w))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),PA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return jA?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Fh=!1;let Ef=null;const vB=new Vn("AllowMultipleToken"),RA=new Vn("PlatformDestroyListeners"),yB=new Vn("appBootstrapListener");class _B{constructor(n,e){this.name=n,this.token=e}}function xB(t,n,e=[]){const i=`Platform: ${n}`,r=new Vn(i);return(o=[])=>{let s=LA();if(!s||s.injector.get(vB,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function qwe(t){if(Ef&&!Ef.get(vB,!1))throw new Nt(400,!1);Ef=t;const n=t.get(CB);(function bB(t){const n=t.get(cB,null);n&&n.forEach(e=>e())})(t)}(function wB(t=[],n){return la.create({name:n,providers:[{provide:ME,useValue:"platform"},{provide:RA,useValue:new Set([()=>Ef=null])},...t]})}(a,i))}return function Xwe(t){const n=LA();if(!n)throw new Nt(401,!1);return n}()}}function LA(){return Ef?.get(CB)??null}let CB=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function kB(t,n){let e;return e="noop"===t?new Uwe:("zone.js"===t?void 0:t)||new ir(n),e}(i?.ngZone,function SB(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:ir,useValue:r}];return r.run(()=>{const s=la.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Gg,null);if(!l)throw new Nt(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{bw(this._modules,a),c.unsubscribe()})}),function DB(t,n,e){try{const i=e();return W1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(yw);return c.runInitializers(),c.donePromise.then(()=>(e$(a.injector.get(ac,sv)||sv),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=TB({},i);return function Gwe(t,n,e){const i=new fA(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ph);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Nt(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Nt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(RA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(vt(la))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function TB(t,n){return Array.isArray(n)?n.reduce(TB,t):{...t,...n}}let Ph=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,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 o=new en(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new en(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ir.assertNotInAngularZone(),OA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ir.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Dt(o,s.pipe(Ge()))}bootstrap(e,i){const r=e instanceof c8;if(!this._injector.get(yw).done){!r&&function Sg(t){const n=Kr(t)||Wa(t)||Ol(t);return null!==n&&n.standalone}(e);throw new Nt(405,Fh)}let s;s=r?e:this._injector.get(Hg).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Wwe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(lv),c=s.create(la.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(gB,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),bw(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Nt(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 i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;bw(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(yB,[]);i.push(...this._bootstrapListeners),i.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),()=>bw(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Nt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(vt(ir),vt(Lc),vt(Gg))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function bw(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Ns=(()=>{class t{}return t.__NG_ELEMENT_ID__=Kwe,t})();function Kwe(t){return function Qwe(t,n,e){if(C1(t)&&!e){const i=Il(t.index,n);return new H1(i,i)}return 47&t.type?new H1(n[Ya],n):null}(wa(),zt(),16==(16&t))}class IB{constructor(){}supports(n){return ow(n)}create(n){return new rCe(n)}}const iCe=(t,n)=>n;class rCe{constructor(n){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=n||iCe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new oCe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new NB),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new NB),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class oCe{constructor(n,e){this.item=n,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 sCe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class NB{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new sCe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function FB(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new lCe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class lCe{constructor(n){this.key=n,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 jB(){return new Cw([new IB])}let Cw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||jB()),deps:[[t,new O1,new M1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Nt(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:jB}),t})();function RB(){return new sy([new PB])}let sy=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||RB()),deps:[[t,new O1,new M1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Nt(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:RB}),t})();const dCe=xB(null,"core",[]);let hCe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(vt(Ph))},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();function dv(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function UA(t,n){const e=Kr(t),i=n.elementInjector||Jx();return new U1(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let zA=null;function jh(){return zA}class mCe{}const co=new Vn("DocumentToken");let GA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function gCe(){return vt(LB)}()},providedIn:"platform"}),t})();const vCe=new Vn("Location Initialized");let LB=(()=>{class t extends GA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jh().getBaseHref(this._doc)}onPopState(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){$B()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){$B()?this._history.replaceState(e,i,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 t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:function(){return function yCe(){return new LB(vt(co))}()},providedIn:"platform"}),t})();function $B(){return!!window.history.pushState}function WA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function BB(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Rh(t){return t&&"?"!==t[0]?"?"+t:t}let em=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return Fi(HB)},providedIn:"root"}),t})();const VB=new Vn("appBaseHref");let HB=(()=>{class t extends em{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Fi(co).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 WA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Rh(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Rh(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Rh(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(vt(GA),vt(VB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_Ce=(()=>{class t extends em{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=WA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Rh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Rh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(vt(GA),vt(VB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),qA=(()=>{class t{constructor(e){this._subject=new it,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function wCe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(BB(UB(i))),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,i=""){return this.path()==this.normalize(e+Rh(i))}normalize(e){return t.stripTrailingSlash(function xCe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,UB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Rh(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Rh(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Rh,t.joinWithSlash=WA,t.stripTrailingSlash=BB,t.\u0275fac=function(e){return new(e||t)(vt(em))},t.\u0275prov=Et({token:t,factory:function(){return function bCe(){return new qA(vt(em))}()},providedIn:"root"}),t})();function UB(t){return t.replace(/\/index.html$/,"")}var Rl=(()=>((Rl=Rl||{})[Rl.Decimal=0]="Decimal",Rl[Rl.Percent=1]="Percent",Rl[Rl.Currency=2]="Currency",Rl[Rl.Scientific=3]="Scientific",Rl))(),Ro=(()=>((Ro=Ro||{})[Ro.Format=0]="Format",Ro[Ro.Standalone=1]="Standalone",Ro))(),Vi=(()=>((Vi=Vi||{})[Vi.Narrow=0]="Narrow",Vi[Vi.Abbreviated=1]="Abbreviated",Vi[Vi.Wide=2]="Wide",Vi[Vi.Short=3]="Short",Vi))(),Ko=(()=>((Ko=Ko||{})[Ko.Short=0]="Short",Ko[Ko.Medium=1]="Medium",Ko[Ko.Long=2]="Long",Ko[Ko.Full=3]="Full",Ko))(),_i=(()=>((_i=_i||{})[_i.Decimal=0]="Decimal",_i[_i.Group=1]="Group",_i[_i.List=2]="List",_i[_i.PercentSign=3]="PercentSign",_i[_i.PlusSign=4]="PlusSign",_i[_i.MinusSign=5]="MinusSign",_i[_i.Exponential=6]="Exponential",_i[_i.SuperscriptingExponent=7]="SuperscriptingExponent",_i[_i.PerMille=8]="PerMille",_i[_i.Infinity=9]="Infinity",_i[_i.NaN=10]="NaN",_i[_i.TimeSeparator=11]="TimeSeparator",_i[_i.CurrencyDecimal=12]="CurrencyDecimal",_i[_i.CurrencyGroup=13]="CurrencyGroup",_i))();function GB(t,n,e){const i=fl(t),o=Vc([i[Tn.DayPeriodsFormat],i[Tn.DayPeriodsStandalone]],n);return Vc(o,e)}function WB(t,n,e){const i=fl(t),o=Vc([i[Tn.DaysFormat],i[Tn.DaysStandalone]],n);return Vc(o,e)}function YA(t,n,e){const i=fl(t),o=Vc([i[Tn.MonthsFormat],i[Tn.MonthsStandalone]],n);return Vc(o,e)}function Sw(t,n){return Vc(fl(t)[Tn.DateFormat],n)}function kw(t,n){return Vc(fl(t)[Tn.TimeFormat],n)}function Dw(t,n){return Vc(fl(t)[Tn.DateTimeFormat],n)}function Bc(t,n){const e=fl(t),i=e[Tn.NumberSymbols][n];if(typeof i>"u"){if(n===_i.CurrencyDecimal)return e[Tn.NumberSymbols][_i.Decimal];if(n===_i.CurrencyGroup)return e[Tn.NumberSymbols][_i.Group]}return i}function qB(t){if(!t[Tn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Tn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Vc(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function JA(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const ICe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ay={},NCe=/((?:[^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 Xs=(()=>((Xs=Xs||{})[Xs.Short=0]="Short",Xs[Xs.ShortGMT=1]="ShortGMT",Xs[Xs.Long=2]="Long",Xs[Xs.Extended=3]="Extended",Xs))(),Di=(()=>((Di=Di||{})[Di.FullYear=0]="FullYear",Di[Di.Month=1]="Month",Di[Di.Date=2]="Date",Di[Di.Hours=3]="Hours",Di[Di.Minutes=4]="Minutes",Di[Di.Seconds=5]="Seconds",Di[Di.FractionalSeconds=6]="FractionalSeconds",Di[Di.Day=7]="Day",Di))(),Ji=(()=>((Ji=Ji||{})[Ji.DayPeriods=0]="DayPeriods",Ji[Ji.Days=1]="Days",Ji[Ji.Months=2]="Months",Ji[Ji.Eras=3]="Eras",Ji))();function YB(t,n,e,i){let r=function HCe(t){if(KB(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return Tw(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(ICe))return function UCe(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!KB(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Lh(e,n)||n;let a,s=[];for(;n;){if(a=NCe.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=JB(i,l),r=function VCe(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function BCe(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(JB(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function $Ce(t){if(QA[t])return QA[t];let n;switch(t){case"G":case"GG":case"GGG":n=xo(Ji.Eras,Vi.Abbreviated);break;case"GGGG":n=xo(Ji.Eras,Vi.Wide);break;case"GGGGG":n=xo(Ji.Eras,Vi.Narrow);break;case"y":n=Ps(Di.FullYear,1,0,!1,!0);break;case"yy":n=Ps(Di.FullYear,2,0,!0,!0);break;case"yyy":n=Ps(Di.FullYear,3,0,!1,!0);break;case"yyyy":n=Ps(Di.FullYear,4,0,!1,!0);break;case"Y":n=Ow(1);break;case"YY":n=Ow(2,!0);break;case"YYY":n=Ow(3);break;case"YYYY":n=Ow(4);break;case"M":case"L":n=Ps(Di.Month,1,1);break;case"MM":case"LL":n=Ps(Di.Month,2,1);break;case"MMM":n=xo(Ji.Months,Vi.Abbreviated);break;case"MMMM":n=xo(Ji.Months,Vi.Wide);break;case"MMMMM":n=xo(Ji.Months,Vi.Narrow);break;case"LLL":n=xo(Ji.Months,Vi.Abbreviated,Ro.Standalone);break;case"LLLL":n=xo(Ji.Months,Vi.Wide,Ro.Standalone);break;case"LLLLL":n=xo(Ji.Months,Vi.Narrow,Ro.Standalone);break;case"w":n=KA(1);break;case"ww":n=KA(2);break;case"W":n=KA(1,!0);break;case"d":n=Ps(Di.Date,1);break;case"dd":n=Ps(Di.Date,2);break;case"c":case"cc":n=Ps(Di.Day,1);break;case"ccc":n=xo(Ji.Days,Vi.Abbreviated,Ro.Standalone);break;case"cccc":n=xo(Ji.Days,Vi.Wide,Ro.Standalone);break;case"ccccc":n=xo(Ji.Days,Vi.Narrow,Ro.Standalone);break;case"cccccc":n=xo(Ji.Days,Vi.Short,Ro.Standalone);break;case"E":case"EE":case"EEE":n=xo(Ji.Days,Vi.Abbreviated);break;case"EEEE":n=xo(Ji.Days,Vi.Wide);break;case"EEEEE":n=xo(Ji.Days,Vi.Narrow);break;case"EEEEEE":n=xo(Ji.Days,Vi.Short);break;case"a":case"aa":case"aaa":n=xo(Ji.DayPeriods,Vi.Abbreviated);break;case"aaaa":n=xo(Ji.DayPeriods,Vi.Wide);break;case"aaaaa":n=xo(Ji.DayPeriods,Vi.Narrow);break;case"b":case"bb":case"bbb":n=xo(Ji.DayPeriods,Vi.Abbreviated,Ro.Standalone,!0);break;case"bbbb":n=xo(Ji.DayPeriods,Vi.Wide,Ro.Standalone,!0);break;case"bbbbb":n=xo(Ji.DayPeriods,Vi.Narrow,Ro.Standalone,!0);break;case"B":case"BB":case"BBB":n=xo(Ji.DayPeriods,Vi.Abbreviated,Ro.Format,!0);break;case"BBBB":n=xo(Ji.DayPeriods,Vi.Wide,Ro.Format,!0);break;case"BBBBB":n=xo(Ji.DayPeriods,Vi.Narrow,Ro.Format,!0);break;case"h":n=Ps(Di.Hours,1,-12);break;case"hh":n=Ps(Di.Hours,2,-12);break;case"H":n=Ps(Di.Hours,1);break;case"HH":n=Ps(Di.Hours,2);break;case"m":n=Ps(Di.Minutes,1);break;case"mm":n=Ps(Di.Minutes,2);break;case"s":n=Ps(Di.Seconds,1);break;case"ss":n=Ps(Di.Seconds,2);break;case"S":n=Ps(Di.FractionalSeconds,1);break;case"SS":n=Ps(Di.FractionalSeconds,2);break;case"SSS":n=Ps(Di.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Aw(Xs.Short);break;case"ZZZZZ":n=Aw(Xs.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Aw(Xs.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Aw(Xs.Long);break;default:return null}return QA[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Tw(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Lh(t,n){const e=function CCe(t){return fl(t)[Tn.LocaleId]}(t);if(ay[e]=ay[e]||{},ay[e][n])return ay[e][n];let i="";switch(n){case"shortDate":i=Sw(t,Ko.Short);break;case"mediumDate":i=Sw(t,Ko.Medium);break;case"longDate":i=Sw(t,Ko.Long);break;case"fullDate":i=Sw(t,Ko.Full);break;case"shortTime":i=kw(t,Ko.Short);break;case"mediumTime":i=kw(t,Ko.Medium);break;case"longTime":i=kw(t,Ko.Long);break;case"fullTime":i=kw(t,Ko.Full);break;case"short":const r=Lh(t,"shortTime"),o=Lh(t,"shortDate");i=Ew(Dw(t,Ko.Short),[r,o]);break;case"medium":const s=Lh(t,"mediumTime"),a=Lh(t,"mediumDate");i=Ew(Dw(t,Ko.Medium),[s,a]);break;case"long":const l=Lh(t,"longTime"),c=Lh(t,"longDate");i=Ew(Dw(t,Ko.Long),[l,c]);break;case"full":const u=Lh(t,"fullTime"),d=Lh(t,"fullDate");i=Ew(Dw(t,Ko.Full),[u,d])}return i&&(ay[e][n]=i),i}function Ew(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Tu(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===Di.Hours)0===a&&-12===e&&(a=12);else if(t===Di.FractionalSeconds)return function FCe(t,n){return Tu(t,3).substring(0,n)}(a,n);const l=Bc(s,_i.MinusSign);return Tu(a,n,l,i,r)}}function xo(t,n,e=Ro.Format,i=!1){return function(r,o){return function jCe(t,n,e,i,r,o){switch(e){case Ji.Months:return YA(n,r,i)[t.getMonth()];case Ji.Days:return WB(n,r,i)[t.getDay()];case Ji.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function TCe(t){const n=fl(t);return qB(n),(n[Tn.ExtraData][2]||[]).map(i=>"string"==typeof i?JA(i):[JA(i[0]),JA(i[1])])}(n),u=function ECe(t,n,e){const i=fl(t);qB(i);const o=Vc([i[Tn.ExtraData][0],i[Tn.ExtraData][1]],n)||[];return Vc(o,e)||[]}(n,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,m=s>=f.hours&&a>=f.minutes,g=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Xs.Short:return(r>=0?"+":"")+Tu(s,2,o)+Tu(Math.abs(r%60),2,o);case Xs.ShortGMT:return"GMT"+(r>=0?"+":"")+Tu(s,1,o);case Xs.Long:return"GMT"+(r>=0?"+":"")+Tu(s,2,o)+":"+Tu(Math.abs(r%60),2,o);case Xs.Extended:return 0===i?"Z":(r>=0?"+":"")+Tu(s,2,o)+":"+Tu(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const RCe=0,Mw=4;function XB(t){return Tw(t.getFullYear(),t.getMonth(),t.getDate()+(Mw-t.getDay()))}function KA(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=XB(e),s=function LCe(t){const n=Tw(t,RCe,1).getDay();return Tw(t,0,1+(n<=Mw?Mw:Mw+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Tu(r,t,Bc(i,_i.MinusSign))}}function Ow(t,n=!1){return function(e,i){return Tu(XB(e).getFullYear(),t,Bc(i,_i.MinusSign),n)}}const QA={};function JB(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function KB(t){return t instanceof Date&&!isNaN(t.valueOf())}const zCe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,QB=22,Iw=".",ly="0",GCe=";",WCe=",",ZA="#";function nM(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function t7(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const rM=/\s+/,n7=[];let Af=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=n7,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(rM):n7}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(rM):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(rM).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(he(Cw),he(sy),he(Si),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class n2e{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,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 Ln=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,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 i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new n2e(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),o7(a,r)}});for(let r=0,o=i.length;r{o7(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(he(jl),he(oo),he(Cw))},t.\u0275dir=sn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function o7(t,n){t.context.$implicit=n.item}let _n=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new r2e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){s7("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){s7("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,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(he(jl),he(oo))},t.\u0275dir=sn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class r2e{constructor(){this.$implicit=null,this.ngIf=null}}function s7(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${bn(n)}'.`)}class oM{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Nw=(()=>{class t{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 i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),a7=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new oM(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(he(jl),he(oo),he(Nw,9))},t.\u0275dir=sn({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),c7=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,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,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Nl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(sy),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Eu=(()=>{class t{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 i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(he(jl))},t.\u0275dir=sn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ei]}),t})();let d7=(()=>{class t{constructor(e){this._locale=e}transform(e,i,r){if(!function sM(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function XCe(t,n,e){return function eM(t,n,e,i,r,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function QCe(t){let i,r,o,s,a,n=Math.abs(t)+"",e=0;for((r=n.indexOf(Iw))>-1&&(n=n.replace(Iw,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===ly;o++);if(o===(a=n.length))i=[0],r=1;else{for(a--;n.charAt(a)===ly;)a--;for(r-=o,i=[],s=0;o<=a;o++,s++)i[s]=Number(n.charAt(o))}return r>QB&&(i=i.splice(0,QB-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(t);s&&(c=function KCe(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,h=n.maxFrac;if(o){const y=o.match(zCe);if(null===y)throw new Error(`${o} is not a valid digit info`);const _=y[1],w=y[3],k=y[5];null!=_&&(u=nM(_)),null!=w&&(d=nM(w)),null!=k?h=nM(k):null!=w&&d>h&&(h=d)}!function ZCe(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(n,r),e);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r=c?p.pop():l=!1),h>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,h);let f=c.digits,p=c.integerLen;const m=c.exponent;let g=[];for(l=f.every(y=>!y);p0?g=f.splice(p,f.length):(g=f,f=[0]);const v=[];for(f.length>=n.lgSize&&v.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)v.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(Bc(e,i)),g.length&&(a+=Bc(e,r)+g.join("")),m&&(a+=Bc(e,_i.Exponential)+"+"+m)}else a=Bc(e,_i.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function tM(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(GCe),r=i[0],o=i[1],s=-1!==r.indexOf(Iw)?r.split(Iw):[r.substring(0,r.lastIndexOf(ly)+1),r.substring(r.lastIndexOf(ly)+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf(ZA));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();const h7="browser";function f7(t){return t===h7}let O2e=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>new I2e(vt(co),window)}),t})();class I2e{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function N2e(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=p7(this.window.history)||p7(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function p7(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class m7{}class sSe extends mCe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class uM extends sSe{static makeCurrent(){!function pCe(t){zA||(zA=t)}(new uM)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function aSe(){return uy=uy||document.querySelector("base"),uy?uy.getAttribute("href"):null}();return null==e?null:function lSe(t){jw=jw||document.createElement("a"),jw.setAttribute("href",t);const n=jw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){uy=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return t7(document.cookie,n)}}let jw,uy=null;const b7=new Vn("TRANSITION_ID"),uSe=[{provide:vw,useFactory:function cSe(t,n,e){return()=>{e.get(yw).donePromise.then(()=>{const i=jh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const Rw=new Vn("EventManagerPlugins");let Lw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),dy=(()=>{class t extends w7{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const dM={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/"},hM=/%COMP%/g,k7=new Vn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function D7(t,n){return n.flat(100).map(e=>e.replace(hM,t))}function T7(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let $w=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new fM(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof M7?r.applyToHost(e):r instanceof pM&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case _u.Emulated:o=new M7(s,a,i,this.appId,l);break;case _u.ShadowDom:return new _Se(s,a,e,i);default:o=new pM(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(vt(Lw),vt(dy),vt(ry),vt(k7))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class fM{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(dM[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(A7(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(A7(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=dM[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=dM[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Nl.DashCase|Nl.Important)?n.style.setProperty(e,i,r&Nl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Nl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,T7(i)):this.eventManager.addEventListener(n,e,T7(i))}}function A7(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class _Se extends fM{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=D7(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class pM extends fM{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=D7(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class M7 extends pM{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function gSe(t){return"_ngcontent-%COMP%".replace(hM,t)}(s),this.hostAttr=function vSe(t){return"_nghost-%COMP%".replace(hM,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let bSe=(()=>{class t extends x7{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const O7=["alt","control","meta","shift"],xSe={"\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"},wSe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let CSe=(()=>{class t extends x7{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),O7.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=xSe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),O7.forEach(s=>{s!==r&&(0,wSe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const N7=[{provide:oy,useValue:h7},{provide:cB,useValue:function SSe(){uM.makeCurrent()},multi:!0},{provide:co,useFactory:function DSe(){return function x1e(t){wE=t}(document),document},deps:[]}],TSe=xB(dCe,"browser",N7),F7=new Vn(""),P7=[{provide:_w,useClass:class dSe{addToWindow(n){Fo.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Fo.getAllAngularTestabilities=()=>n.getAllTestabilities(),Fo.getAllAngularRootElements=()=>n.getAllRootElements(),Fo.frameworkStabilizers||(Fo.frameworkStabilizers=[]),Fo.frameworkStabilizers.push(i=>{const r=Fo.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?jh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:gB,useClass:FA,deps:[ir,PA,_w]},{provide:FA,useClass:FA,deps:[ir,PA,_w]}],j7=[{provide:ME,useValue:"root"},{provide:Gg,useFactory:function kSe(){return new Gg},deps:[]},{provide:Rw,useClass:bSe,multi:!0,deps:[co,ir,oy]},{provide:Rw,useClass:CSe,multi:!0,deps:[co]},{provide:$w,useClass:$w,deps:[Lw,dy,ry,k7]},{provide:zg,useExisting:$w},{provide:w7,useExisting:dy},{provide:dy,useClass:dy,deps:[co]},{provide:Lw,useClass:Lw,deps:[Rw,ir]},{provide:m7,useClass:hSe,deps:[]},[]];let gM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:ry,useValue:e.appId},{provide:b7,useExisting:ry},uSe]}}}return t.\u0275fac=function(e){return new(e||t)(vt(F7,12))},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[...j7,...P7],imports:[Mf,hCe]}),t})(),R7=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function ASe(){return new R7(vt(co))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let B7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new(e||t):vt(V7),i},providedIn:"root"}),t})(),V7=(()=>{class t extends B7{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case bo.NONE:return i;case bo.HTML:return Md(i,"HTML")?ic(i):K5(this._doc,String(i)).toString();case bo.STYLE:return Md(i,"Style")?ic(i):i;case bo.SCRIPT:if(Md(i,"Script"))return ic(i);throw new Error("unsafe value used in a script context");case bo.URL:return Md(i,"URL")?ic(i):Gx(String(i));case bo.RESOURCE_URL:if(Md(i,"ResourceURL"))return ic(i);throw new Error(`unsafe value used in a resource URL context (see ${hx})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${hx})`)}}bypassSecurityTrustHtml(e){return function E1e(t){return new w1e(t)}(e)}bypassSecurityTrustStyle(e){return function A1e(t){return new C1e(t)}(e)}bypassSecurityTrustScript(e){return function M1e(t){return new S1e(t)}(e)}bypassSecurityTrustUrl(e){return function O1e(t){return new k1e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function I1e(t){return new D1e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function FSe(t){return new V7(t.get(co))}(vt(la)),i},providedIn:"root"}),t})();class H7{}class PSe{}const $h="*";function Ka(t,n){return{type:7,name:t,definitions:n,options:{}}}function Sa(t,n=null){return{type:4,styles:n,timings:t}}function U7(t,n=null){return{type:2,steps:t,options:n}}function kr(t){return{type:6,styles:t,offset:null}}function ka(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function z7(t){Promise.resolve().then(t)}class hy{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){z7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class G7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?z7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const yM="!";function W7(t){return new Nt(3e3,!1)}function gke(){return typeof window<"u"&&typeof window.document<"u"}function _M(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function If(t){switch(t.length){case 0:return new hy;case 1:return t[0];default:return new G7(t)}}function q7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case yM:v=r.get(m);break;case $h:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function rke(t){return new Nt(3502,!1)}();return a}function bM(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&xM(e,"start",t)));break;case"done":t.onDone(()=>i(e&&xM(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&xM(e,"destroy",t)))}}function xM(t,n,e){const o=wM(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function wM(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function lc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function Y7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let CM=(t,n)=>!1,X7=(t,n,e)=>[],J7=null;function SM(t){const n=t.parentNode||t.host;return n===J7?null:n}(_M()||typeof Element<"u")&&(gke()?(J7=(()=>document.documentElement)(),CM=(t,n)=>{for(;n;){if(n===t)return!0;n=SM(n)}return!1}):CM=(t,n)=>t.contains(n),X7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let tm=null,K7=!1;const Q7=CM,Z7=X7;let e9=(()=>{class t{validateStyleProperty(e){return function yke(t){tm||(tm=function _ke(){return typeof document<"u"?document.body:null}()||{},K7=!!tm.style&&"WebkitAppearance"in tm.style);let n=!0;return tm.style&&!function vke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in tm.style,!n&&K7&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in tm.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return Q7(e,i)}getParentElement(e){return SM(e)}query(e,i,r){return Z7(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new hy(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),kM=(()=>{class t{}return t.NOOP=new e9,t})();const bke=1e3,DM="ng-enter",Bw="ng-leave",Vw="ng-trigger",Hw=".ng-trigger",n9="ng-animating",TM=".ng-animating";function Bh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:EM(parseFloat(n[1]),n[2])}function EM(t,n){return"s"===n?t*bke:t}function Uw(t,n,e){return t.hasOwnProperty("duration")?t:function wke(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(W7()),{duration:0,delay:0,easing:""};r=EM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=EM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function jSe(){return new Nt(3100,!1)}()),a=!0),o<0&&(n.push(function RSe(){return new Nt(3101,!1)}()),a=!0),a&&n.splice(l,0,W7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function fy(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function i9(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Nf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function o9(t,n,e){return e?n+":"+e+";":""}function s9(t){let n="";for(let e=0;e{const o=MM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),_M()&&s9(t))}function nm(t,n){t.style&&(n.forEach((e,i)=>{const r=MM(i);t.style[r]=""}),_M()&&s9(t))}function py(t){return Array.isArray(t)?1==t.length?t[0]:U7(t):t}const AM=new RegExp("{{\\s*(.+?)\\s*}}","g");function a9(t){let n=[];if("string"==typeof t){let e;for(;e=AM.exec(t);)n.push(e[1]);AM.lastIndex=0}return n}function my(t,n,e){const i=t.toString(),r=i.replace(AM,(o,s)=>{let a=n[s];return null==a&&(e.push(function $Se(t){return new Nt(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function zw(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const kke=/-+([a-z0-9])/g;function MM(t){return t.replace(kke,(...n)=>n[1].toUpperCase())}function Dke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cc(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function BSe(t){return new Nt(3004,!1)}()}}function l9(t,n){return window.getComputedStyle(t)[n]}const qw="*";function Ike(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function Nke(t,n,e){if(":"==t[0]){const l=function Fke(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function ZSe(t){return new Nt(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(c9(r,s));"<"==o[0]&&!(r==qw&&s==qw)&&n.push(c9(s,r))}(i,e,n)):e.push(t),e}const Yw=new Set(["true","1"]),Xw=new Set(["false","0"]);function c9(t,n){const e=Yw.has(t)||Xw.has(t),i=Yw.has(n)||Xw.has(n);return(r,o)=>{let s=t==qw||t==r,a=n==qw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Yw.has(t):Xw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Yw.has(n):Xw.has(n)),s&&a}}const Pke=new RegExp("s*:selfs*,?","g");function OM(t,n,e,i){return new jke(t).build(n,e,i)}class jke{constructor(n){this._driver=n}build(n,e,i){const r=new $ke(e);return this._resetContextStyleTimingState(r),cc(this,py(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function HSe(){return new Nt(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function USe(){return new Nt(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{a9(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(zw(o.values()),e.errors.push(function zSe(t,n){return new Nt(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=cc(this,py(n.animation),e);return{type:1,matchers:Ike(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:im(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>cc(this,i,e)),options:im(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=cc(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:im(n.options)}}visitAnimate(n,e){const i=function Vke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return IM(Uw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=IM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Uw(e,n);return IM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:kr({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=kr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===$h?i.push(a):e.errors.push(new Nt(3002,!1)):i.push(i9(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function WSe(t,n,e,i,r){return new Nt(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function Ske(t,n,e){const i=n.params||{},r=a9(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function LSe(t){return new Nt(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function qSe(){return new Nt(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let _=null!=y.offset?y.offset:function Bke(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),w=0;return null!=_&&(o++,w=y.offset=_),l=l||w<0||w>1,a=a||w0&&o{const _=h>0?y==f?1:h*y:s[y],w=_*g;e.currentTime=p+m.delay+w,m.duration=w,this._validateStyleAst(v,e),v.offset=_,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:cc(this,py(n.animation),e),options:im(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:im(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:im(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Rke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Pke,"")),t=t.replace(/@\*/g,Hw).replace(/@\w+/g,e=>Hw+"-"+e.slice(1)).replace(/:animating/g,TM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,lc(e.collectedStyles,e.currentQuerySelector,new Map);const a=cc(this,py(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:im(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function KSe(){return new Nt(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Uw(n.timings,e.errors,!0);return{type:12,animation:cc(this,py(n.animation),e),timings:i,options:null}}}class $ke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function im(t){return t?(t=fy(t)).params&&(t.params=function Lke(t){return t?fy(t):null}(t.params)):t={},t}function IM(t,n,e){return{duration:t,delay:n,easing:e}}function NM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Jw{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const zke=new RegExp(":enter","g"),Wke=new RegExp(":leave","g");function FM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new qke).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class qke{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Jw;const d=new PM(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Bh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),cc(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[NM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Bh(my(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Bh(i.duration):null,a=null!=i.delay?Bh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),cc(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Kw);const s=Bh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>cc(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Bh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),cc(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Uw(e.params?my(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Bh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Kw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),cc(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;cc(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Kw={};class PM{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Kw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Bh(i.duration)),null!=i.delay&&(r.delay=Bh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=my(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new PM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Kw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new Yke(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(zke,"."+this._enterClassName)).replace(Wke,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function QSe(t){return new Nt(3014,!1)}()),a}}class Qw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Qw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||$h),this._currentKeyframe.set(e,$h);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Xke(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,$h)}else Nf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=my(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$h),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Nf(a,new Map,this._backFill);c.forEach((u,d)=>{u===yM?n.add(d):u===$h&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?zw(n.values()):[],s=e.size?zw(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return NM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class Yke extends Qw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Nf(n[0]);l.set("offset",0),o.push(l);const c=Nf(n[0]);c.set("offset",h9(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Nf(n[d]);const f=h.get("offset");h.set("offset",h9((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return NM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function h9(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class jM{}const Jke=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Kke extends jM{normalizePropertyName(n,e){return MM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(Jke.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function VSe(t,n){return new Nt(3005,!1)}())}return s+o}}function f9(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const RM={};class p9{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function Qke(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||RM,p=this.buildStyles(i,a&&a.params||RM,d),m=l&&l.params||RM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,_=new Map,w="void"===r,k={params:Zke(m,h),delay:this.ast.options?.delay},D=u?[]:FM(n,e,this.ast.animation,o,s,p,g,k,c,d);let L=0;if(D.forEach(R=>{L=Math.max(R.duration+R.delay,L)}),d.length)return f9(e,this._triggerName,i,r,w,p,g,[],[],y,_,L,d);D.forEach(R=>{const U=R.element,G=lc(y,U,new Set);R.preStyleProps.forEach(te=>G.add(te));const X=lc(_,U,new Set);R.postStyleProps.forEach(te=>X.add(te)),U!==e&&v.add(U)});const z=zw(v.values());return f9(e,this._triggerName,i,r,w,p,g,D,z,y,_,L)}}function Zke(t,n){const e=fy(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class eDe{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=fy(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=my(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class nDe{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new eDe(r.style,r.options&&r.options.params||{},i))}),m9(this.states,"true","1"),m9(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new p9(n,r,this.states))}),this.fallbackTransition=function iDe(t,n,e){return new p9(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function m9(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const rDe=new Jw;class oDe{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=OM(this._driver,e,i,r);if(i.length)throw function oke(t){return new Nt(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=q7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=FM(this._driver,e,o,DM,Bw,new Map,new Map,i,rDe,r),s.forEach(u=>{const d=lc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function ske(){return new Nt(3300,!1)}()),s=[]),r.length)throw function ake(t){return new Nt(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,$h))})});const c=If(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function lke(t){return new Nt(3301,!1)}();return e}listen(n,e,i,r){const o=wM(e,"","","");return bM(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const g9="ng-animate-queued",LM="ng-animate-disabled",uDe=[],v9={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},dDe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Hc="__ng_removed";class $M{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function mDe(t){return t??null}(i?n.value:n),i){const o=fy(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const gy="void",BM=new $M(gy);class hDe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Uc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function cke(t,n){return new Nt(3302,!1)}();if(null==i||0==i.length)throw function uke(t){return new Nt(3303,!1)}();if(!function gDe(t){return"start"==t||"done"==t}(i))throw function dke(t,n){return new Nt(3400,!1)}();const o=lc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=lc(this._engine.statesByElement,n,new Map);return a.has(e)||(Uc(n,Vw),Uc(n,Vw+"-"+e),a.set(e,BM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function hke(t){return new Nt(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new VM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Uc(n,Vw),Uc(n,Vw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new $M(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=BM),c.value!==gy&&l.value===c.value){if(!function _De(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{nm(n,g),jd(n,v)})}return}const h=lc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Uc(n,g9),s.onStart(()=>{hv(n,g9)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Hw,!0);i.forEach(r=>{if(r[Hc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,gy,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&If(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||BM,u=new $M(gy),d=new VM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Hc];(!o||o===v9)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Uc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=wM(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,bM(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class fDe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new hDe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Zw(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Zw(e))return;const o=e[Hc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Uc(n,LM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),hv(n,LM))}removeNode(n,e,i,r){if(Zw(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Hc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Zw(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Hw,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,TM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return If(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Hc];if(e&&e.setForRemoval){if(n[Hc]=v9,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(LM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?If(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function fke(t){return new Nt(3402,!1)}()}_flushAnimations(n,e){const i=new Jw,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(J=>{u.add(J);const H=this.driver.query(J,".ng-animate-queued",!0);for(let le=0;le{const le=DM+m++;p.set(H,le),J.forEach(E=>Uc(E,le))});const g=[],v=new Set,y=new Set;for(let J=0;Jv.add(E)):y.add(H))}const _=new Map,w=b9(h,Array.from(v));w.forEach((J,H)=>{const le=Bw+m++;_.set(H,le),J.forEach(E=>Uc(E,le))}),n.push(()=>{f.forEach((J,H)=>{const le=p.get(H);J.forEach(E=>hv(E,le))}),w.forEach((J,H)=>{const le=_.get(H);J.forEach(E=>hv(E,le))}),g.forEach(J=>{this.processLeaveNode(J)})});const k=[],D=[];for(let J=this._namespaceList.length-1;J>=0;J--)this._namespaceList[J].drainQueuedTransitions(e).forEach(le=>{const E=le.player,O=le.element;if(k.push(E),this.collectedEnterElements.length){const ye=O[Hc];if(ye&&ye.setForMove){if(ye.previousTriggersValues&&ye.previousTriggersValues.has(le.triggerName)){const Xe=ye.previousTriggersValues.get(le.triggerName),Le=this.statesByElement.get(le.element);if(Le&&Le.has(le.triggerName)){const rt=Le.get(le.triggerName);rt.value=Xe,Le.set(le.triggerName,rt)}}return void E.destroy()}}const I=!d||!this.driver.containsElement(d,O),q=_.get(O),V=p.get(O),re=this._buildInstruction(le,i,V,q,I);if(re.errors&&re.errors.length)return void D.push(re);if(I)return E.onStart(()=>nm(O,re.fromStyles)),E.onDestroy(()=>jd(O,re.toStyles)),void r.push(E);if(le.isFallbackTransition)return E.onStart(()=>nm(O,re.fromStyles)),E.onDestroy(()=>jd(O,re.toStyles)),void r.push(E);const de=[];re.timelines.forEach(ye=>{ye.stretchStartingKeyframe=!0,this.disabledNodes.has(ye.element)||de.push(ye)}),re.timelines=de,i.append(O,re.timelines),s.push({instruction:re,player:E,element:O}),re.queriedElements.forEach(ye=>lc(a,ye,[]).push(E)),re.preStyleProps.forEach((ye,Xe)=>{if(ye.size){let Le=l.get(Xe);Le||l.set(Xe,Le=new Set),ye.forEach((rt,$)=>Le.add($))}}),re.postStyleProps.forEach((ye,Xe)=>{let Le=c.get(Xe);Le||c.set(Xe,Le=new Set),ye.forEach((rt,$)=>Le.add($))})});if(D.length){const J=[];D.forEach(H=>{J.push(function pke(t,n){return new Nt(3505,!1)}())}),k.forEach(H=>H.destroy()),this.reportError(J)}const L=new Map,z=new Map;s.forEach(J=>{const H=J.element;i.has(H)&&(z.set(H,H),this._beforeAnimationBuild(J.player.namespaceId,J.instruction,L))}),r.forEach(J=>{const H=J.element;this._getPreviousPlayers(H,!1,J.namespaceId,J.triggerName,null).forEach(E=>{lc(L,H,[]).push(E),E.destroy()})});const R=g.filter(J=>w9(J,l,c)),U=new Map;_9(U,this.driver,y,c,$h).forEach(J=>{w9(J,l,c)&&R.push(J)});const X=new Map;f.forEach((J,H)=>{_9(X,this.driver,new Set(J),l,yM)}),R.forEach(J=>{const H=U.get(J),le=X.get(J);U.set(J,new Map([...Array.from(H?.entries()??[]),...Array.from(le?.entries()??[])]))});const te=[],P=[],W={};s.forEach(J=>{const{element:H,player:le,instruction:E}=J;if(i.has(H)){if(u.has(H))return le.onDestroy(()=>jd(H,E.toStyles)),le.disabled=!0,le.overrideTotalTime(E.totalTime),void r.push(le);let O=W;if(z.size>1){let q=H;const V=[];for(;q=q.parentNode;){const re=z.get(q);if(re){O=re;break}V.push(q)}V.forEach(re=>z.set(re,O))}const I=this._buildAnimation(le.namespaceId,E,L,o,X,U);if(le.setRealPlayer(I),O===W)te.push(le);else{const q=this.playersByElement.get(O);q&&q.length&&(le.parentPlayer=If(q)),r.push(le)}}else nm(H,E.fromStyles),le.onDestroy(()=>jd(H,E.toStyles)),P.push(le),u.has(H)&&r.push(le)}),P.forEach(J=>{const H=o.get(J.element);if(H&&H.length){const le=If(H);J.setRealPlayer(le)}}),r.forEach(J=>{J.parentPlayer?J.syncPlayerEvents(J.parentPlayer):J.destroy()});for(let J=0;J!I.destroyed);O.length?vDe(this,H,O):this.processLeaveNode(H)}return g.length=0,te.forEach(J=>{this.players.push(J),J.onDone(()=>{J.destroy();const H=this.players.indexOf(J);this.players.splice(H,1)}),J.play()}),te}elementContainsData(n,e){let i=!1;const r=e[Hc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==gy;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=lc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}nm(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[Hc];if(g&&g.removedBeforeQueried)return new hy(p.duration,p.delay);const v=m!==l,y=function yDe(t){const n=[];return x9(t,n),n}((i.get(m)||uDe).map(L=>L.getRealPlayer())).filter(L=>!!L.element&&L.element===m),_=o.get(m),w=s.get(m),k=q7(0,this._normalizer,0,p.keyframes,_,w),D=this._buildPlayer(p,k,y);if(p.subTimeline&&r&&d.add(m),v){const L=new VM(n,a,m);L.setRealPlayer(D),c.push(L)}return D});c.forEach(p=>{lc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function pDe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Uc(p,n9));const f=If(h);return f.onDestroy(()=>{u.forEach(p=>hv(p,n9)),jd(l,e.toStyles)}),d.forEach(p=>{lc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new hy(n.duration,n.delay)}}class VM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new hy,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>bM(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){lc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Zw(t){return t&&1===t.nodeType}function y9(t,n){const e=t.style.display;return t.style.display=n??"none",e}function _9(t,n,e,i,r){const o=[];e.forEach(l=>o.push(y9(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Hc]=dDe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>y9(l,o[a++])),s}function b9(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Uc(t,n){t.classList?.add(n)}function hv(t,n){t.classList?.remove(n)}function vDe(t,n,e){If(e).onDone(()=>t.processLeaveNode(n))}function x9(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class eC{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new fDe(n,e,i),this._timelineEngine=new oDe(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=OM(this._driver,o,l,c);if(l.length)throw function ike(t,n){return new Nt(3404,!1)}();a=function tDe(t,n,e){return new nDe(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=Y7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=Y7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let xDe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&jd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jd(this._element,this._initialStyles),this._endStyles&&(jd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(nm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nm(this._element,this._endStyles),this._endStyles=null),jd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function HM(t){let n=null;return t.forEach((e,i)=>{(function wDe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class C9{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:l9(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class CDe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return Q7(n,e)}getParentElement(n){return SM(n)}query(n,e,i){return Z7(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof C9);(function Tke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function Cke(t){return t.length?t[0]instanceof Map?t:t.map(n=>i9(n)):[]}(e).map(f=>Nf(f));d=function Eke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,l9(t,a)))}}return n}(n,d,c);const h=function bDe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=HM(n[0]),n.length>1&&(i=HM(n[n.length-1]))):n instanceof Map&&(e=HM(n)),e||i?new xDe(t,e,i):null}(n,d);return new C9(n,d,l,h)}}let SDe=(()=>{class t extends H7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:_u.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?U7(e):e;return S9(this._renderer,null,i,"register",[r]),new kDe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(vt(zg),vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class kDe extends PSe{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new DDe(this._id,n,e||{},this._renderer)}}class DDe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return S9(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function S9(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const k9="@.disabled";let TDe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new D9("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new EDe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(vt(zg),vt(eC),vt(ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class D9{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==k9?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class EDe extends D9{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==k9?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function ADe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function MDe(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let ODe=(()=>{class t extends eC{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(vt(co),vt(kM),vt(jM),vt(Ph))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const T9=[{provide:H7,useClass:SDe},{provide:jM,useFactory:function IDe(){return new Kke}},{provide:eC,useClass:ODe},{provide:zg,useFactory:function NDe(t,n,e){return new TDe(t,n,e)},deps:[$w,eC,ir]}],UM=[{provide:kM,useFactory:()=>new CDe},{provide:uB,useValue:"BrowserAnimations"},...T9],zM=[{provide:kM,useClass:e9},{provide:uB,useValue:"NoopAnimations"},...T9];let FDe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?zM:UM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:UM,imports:[gM]}),t})(),PDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:zM,imports:[gM]}),t})();function Rn(...t){let n=t[t.length-1];return _a(n)?(t.pop(),Nc(t,n)):ot(t)}class Js extends _r{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ur;return this._value}next(n){super.next(this._value=n)}}const nC=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class GM extends F{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class jDe extends F{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function WM(t,n,e,i,r=new jDe(t,e,i)){if(!r.closed)return n instanceof en?n.subscribe(r):Kl(n)(r)}const E9={};function iC(...t){let n,e;return _a(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Ze(t[0])&&(t=t[0]),ot(t,e).lift(new RDe(n))}class RDe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new LDe(n,this.resultSelector))}}class LDe extends GM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(E9),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function oC(t){return t?function BDe(t){return new en(n=>t.schedule(()=>n.complete()))}(t):Vh}function A9(t){return new en(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?ro(e):oC()).subscribe(n)})}function rm(t,n){return new en(n?e=>n.schedule(VDe,0,{error:t,subscriber:e}):e=>e.error(t))}function VDe({error:t,subscriber:n}){n.error(t)}function uc(t,n){return"function"==typeof n?e=>e.pipe(uc((i,r)=>ro(t(i,r)).pipe(vn((o,s)=>n(i,o,r,s))))):e=>e.lift(new HDe(t))}class HDe{constructor(n){this.project=n}call(n,e){return e.subscribe(new UDe(n,this.project))}}class UDe extends Y{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Ml(this),r=this.destination;r.add(i),this.innerSubscription=Ne(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const M9=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Ks(t){return n=>0===t?oC():n.lift(new zDe(t))}class zDe{constructor(n){if(this.total=n,this.total<0)throw new M9}call(n,e){return e.subscribe(new GDe(n,this.total))}}class GDe extends F{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function sC(...t){const n=t[t.length-1];return _a(n)?(t.pop(),e=>rC(t,e,n)):e=>rC(t,e)}function cs(t,n){return function(i){return i.lift(new WDe(t,n))}}class WDe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new qDe(n,this.predicate,this.thisArg))}}class qDe extends F{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function aC(t=null){return n=>n.lift(new YDe(t))}class YDe{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new XDe(n,this.defaultValue))}}class XDe extends F{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function O9(t=QDe){return n=>n.lift(new JDe(t))}class JDe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new KDe(n,this.errorFactory))}}class KDe extends F{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function QDe(){return new nC}function Ff(t,n){const e=arguments.length>=2;return i=>i.pipe(t?cs((r,o)=>t(r,o,i)):Ft,Ks(1),e?aC(n):O9(()=>new nC))}function Pf(t,n){return et(t,n,1)}function Hh(){}function xs(t,n,e){return function(r){return r.lift(new ZDe(t,n,e))}}class ZDe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new eTe(n,this.nextOrObserver,this.error,this.complete))}}class eTe extends F{constructor(n,e,i,r){super(n),this._tapNext=Hh,this._tapError=Hh,this._tapComplete=Hh,this._tapError=i||Hh,this._tapComplete=r||Hh,nt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Hh,this._tapError=e.error||Hh,this._tapComplete=e.complete||Hh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Ll(t){return function(e){const i=new tTe(t),r=e.lift(i);return i.caught=r}}class tTe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new nTe(n,this.selector,this.caught))}}class nTe extends Y{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Ml(this);this.add(i);const r=Ne(e,i);r!==i&&this.add(r)}}}function I9(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new iTe(t,n,e))}}class iTe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new rTe(n,this.accumulator,this.seed,this.hasSeed))}}class rTe extends F{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function qM(t){return function(e){return 0===t?oC():e.lift(new oTe(t))}}class oTe{constructor(n){if(this.total=n,this.total<0)throw new M9}call(n,e){return e.subscribe(new sTe(n,this.total))}}class sTe extends F{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?cs((r,o)=>t(r,o,i)):Ft,qM(1),e?aC(n):O9(()=>new nC))}class lTe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new cTe(n,this.predicate,this.inclusive))}}class cTe extends F{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class dTe{constructor(n){this.value=n}call(n,e){return e.subscribe(new hTe(n,this.value))}}class hTe extends F{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function YM(t){return n=>n.lift(new fTe(t))}class fTe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new pTe(n,this.callback))}}class pTe extends F{constructor(n,e){super(n),this.add(new ce(e))}}const zi="primary",vy=Symbol("RouteTitle");class mTe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function fv(t){return new mTe(t)}function gTe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function P9(t){return Array.prototype.concat.apply([],t)}function j9(t){return t.length>0?t[t.length-1]:null}function Da(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function jf(t){return nA(t)?t:W1(t)?ro(Promise.resolve(t)):Rn(t)}const lC=!1,yTe={exact:function $9(t,n,e){if(!om(t.segments,n.segments)||!cC(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!$9(t.children[i],n.children[i],e))return!1;return!0},subset:B9},R9={exact:function _Te(t,n){return Rd(t,n)},subset:function bTe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>F9(t[e],n[e]))},ignored:()=>!0};function L9(t,n,e){return yTe[e.paths](t.root,n.root,e.matrixParams)&&R9[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function B9(t,n,e){return V9(t,n,n.segments,e)}function V9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!om(r,e)||n.hasChildren()||!cC(r,e,i))}if(t.segments.length===e.length){if(!om(t.segments,e)||!cC(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!B9(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(om(t.segments,r)&&cC(t.segments,r,i)&&t.children[zi])&&V9(t.children[zi],n,o,i)}}function cC(t,n,e){return n.every((i,r)=>R9[e](t[r].parameters,i.parameters))}class Rf{constructor(n=new ar([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fv(this.queryParams)),this._queryParamMap}toString(){return CTe.serialize(this)}}class ar{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Da(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uC(this)}}class yy{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=fv(this.parameters)),this._parameterMap}toString(){return z9(this)}}function om(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let _y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return new XM},providedIn:"root"}),t})();class XM{parse(n){const e=new ITe(n);return new Rf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${by(n.root,!0)}`,i=function DTe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${dC(e)}=${dC(r)}`).join("&"):`${dC(e)}=${dC(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function STe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const CTe=new XM;function uC(t){return t.segments.map(n=>z9(n)).join("/")}function by(t,n){if(!t.hasChildren())return uC(t);if(n){const e=t.children[zi]?by(t.children[zi],!1):"",i=[];return Da(t.children,(r,o)=>{o!==zi&&i.push(`${o}:${by(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function wTe(t,n){let e=[];return Da(t.children,(i,r)=>{r===zi&&(e=e.concat(n(i,r)))}),Da(t.children,(i,r)=>{r!==zi&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===zi?[by(t.children[zi],!1)]:[`${r}:${by(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[zi]?`${uC(t)}/${e[0]}`:`${uC(t)}/(${e.join("//")})`}}function H9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dC(t){return H9(t).replace(/%3B/gi,";")}function JM(t){return H9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hC(t){return decodeURIComponent(t)}function U9(t){return hC(t.replace(/\+/g,"%20"))}function z9(t){return`${JM(t.path)}${function kTe(t){return Object.keys(t).map(n=>`;${JM(n)}=${JM(t[n])}`).join("")}(t.parameters)}`}const TTe=/^[^\/()?;=#]+/;function fC(t){const n=t.match(TTe);return n?n[0]:""}const ETe=/^[^=?&#]+/,MTe=/^[^&#]+/;class ITe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ar([],{}):new ar([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[zi]=new ar(n,e)),i}parseSegment(){const n=fC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Nt(4009,lC);return this.capture(n),new yy(hC(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=fC(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=fC(this.remaining);r&&(i=r,this.capture(i))}n[hC(e)]=hC(i)}parseQueryParam(n){const e=function ATe(t){const n=t.match(ETe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function OTe(t){const n=t.match(MTe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=U9(e),o=U9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=fC(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Nt(4010,lC);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=zi);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zi]:new ar([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Nt(4011,lC)}}function KM(t){return t.segments.length>0?new ar([],{[zi]:t}):t}function pC(t){const n={};for(const i of Object.keys(t.children)){const o=pC(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function NTe(t){if(1===t.numberOfChildren&&t.children[zi]){const n=t.children[zi];return new ar(t.segments.concat(n.segments),n.children)}return t}(new ar(t.segments,n))}function sm(t){return t instanceof Rf}const QM=!1;function FTe(t,n,e,i,r){if(0===e.length)return pv(n.root,n.root,n.root,i,r);const o=function X9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Y9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Da(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new Y9(e,n,i)}(e);return o.toRoot()?pv(n.root,n.root,new ar([],{}),i,r):function s(l){const c=function jTe(t,n,e,i){if(t.isAbsolute)return new mv(n.root,!0,0);if(-1===i)return new mv(e,e===n.root,0);return function J9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Nt(4005,QM&&"Invalid number of '../'");r=i.segments.length}return new mv(i,!1,r-o)}(e,i+(xy(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?gv(c.segmentGroup,c.index,o.commands):ZM(c.segmentGroup,c.index,o.commands);return pv(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function xy(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function wy(t){return"object"==typeof t&&null!=t&&t.outlets}function pv(t,n,e,i,r){let s,o={};i&&Da(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:q9(t,n,e);const a=KM(pC(s));return new Rf(a,o,r)}function q9(t,n,e){const i={};return Da(t.children,(r,o)=>{i[o]=r===n?e:q9(r,n,e)}),new ar(t.segments,i)}class Y9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&xy(i[0]))throw new Nt(4003,QM&&"Root segment cannot have matrix parameters");const r=i.find(wy);if(r&&r!==j9(i))throw new Nt(4004,QM&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class mv{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function ZM(t,n,e){if(t||(t=new ar([],{})),0===t.segments.length&&t.hasChildren())return gv(t,n,e);const i=function LTe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(wy(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Q9(l,c,s))return o;i+=2}else{if(!Q9(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=ZM(t.children[s],n,o))}),Da(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new ar(t.segments,r)}}function e3(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=e3(new ar([],{}),0,e))}),n}function K9(t){const n={};return Da(t,(e,i)=>n[i]=`${e}`),n}function Q9(t,n,e){return t==e.path&&Rd(n,e.parameters)}const Cy="imperative";class Ld{constructor(n,e){this.id=n,this.url=e}}class mC extends Ld{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Uh extends Ld{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Sy extends Ld{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class gC extends Ld{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class vC extends Ld{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class BTe extends Ld{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class VTe extends Ld{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class HTe extends Ld{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class UTe extends Ld{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zTe extends Ld{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class GTe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class WTe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class qTe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YTe{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XTe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JTe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Z9{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let ZTe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return FTe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),tEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(n){return ZTe.\u0275fac(n)},providedIn:"root"}),t})();class eV{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=t3(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=t3(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=n3(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return n3(n,this._root).map(e=>e.value)}}function t3(t,n){if(t===n.value)return n;for(const e of n.children){const i=t3(t,e);if(i)return i}return null}function n3(t,n){if(t===n.value)return[n];for(const e of n.children){const i=n3(t,e);if(i.length)return i.unshift(n),i}return[]}class zh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function vv(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class tV extends eV{constructor(n,e){super(n),this.snapshot=e,r3(this,n)}toString(){return this.snapshot.toString()}}function nV(t,n){const e=function nEe(t,n){const s=new yC([],{},{},"",{},zi,n,null,t.root,-1,{});return new rV("",new zh(s,[]))}(t,n),i=new Js([new yy("",{})]),r=new Js({}),o=new Js({}),s=new Js({}),a=new Js(""),l=new Pr(i,r,s,a,o,zi,n,e.root);return l.snapshot=e.root,new tV(new zh(l,[]),e)}class Pr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(vn(c=>c[vy]))??Rn(void 0),this._futureSnapshot=l}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(vn(n=>fv(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(vn(n=>fv(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function iV(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function iEe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class yC{get title(){return this.data?.[vy]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,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=fv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rV extends eV{constructor(n,e){super(e),this.url=n,r3(this,e)}toString(){return oV(this._root)}}function r3(t,n){n.value._routerState=t,n.children.forEach(e=>r3(t,e))}function oV(t){const n=t.children.length>0?` { ${t.children.map(oV).join(", ")} } `:"";return`${t.value}${n}`}function o3(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Rd(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Rd(n.params,e.params)||t.params.next(e.params),function vTe(t,n){if(t.length!==n.length)return!1;for(let e=0;eRd(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||s3(t.parent,n.parent))}function ky(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function oEe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return ky(t,i,r);return ky(t,i)})}(t,n,e);return new zh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ky(t,a)),s}}const i=function sEe(t){return new Pr(new Js(t.url),new Js(t.params),new Js(t.queryParams),new Js(t.fragment),new Js(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>ky(t,o));return new zh(i,r)}}const a3="ngNavigationCancelingError";function sV(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=sm(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=aV(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function aV(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[a3]=!0,i.cancellationCode=n,e&&(i.url=e),i}function lV(t){return cV(t)&&sm(t.url)}function cV(t){return t&&t[a3]}class aEe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Dy,this.attachRef=null}}let Dy=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new aEe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const _C=!1;let am=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=zi,this.activateEvents=new it,this.deactivateEvents=new it,this.attachEvents=new it,this.detachEvents=new it,this.parentContexts=Fi(Dy),this.location=Fi(jl),this.changeDetector=Fi(Ns),this.environmentInjector=Fi(Lc)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}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 Nt(4012,_C);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Nt(4012,_C);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Nt(4012,_C);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.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,i){if(this.isActivated)throw new Nt(4013,_C);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new lEe(e,a,r.injector);if(i&&function cEe(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ei]}),t})();class lEe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Pr?this.route:n===Dy?this.childContexts:this.parent.get(n,e)}}let l3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ng-component"]],standalone:!0,features:[Is],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[am],encapsulation:2}),t})();function uV(t,n){return t.providers&&!t._injector&&(t._injector=fw(t.providers,n,`Route: ${t.path}`)),t._injector??n}function u3(t){const n=t.children&&t.children.map(u3),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==zi&&(e.component=l3),e}function zc(t){return t.outlet||zi}function dV(t,n){const e=t.filter(i=>zc(i)===n);return e.push(...t.filter(i=>zc(i)!==n)),e}function Ty(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class pEe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),o3(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=vv(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Da(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=vv(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=vv(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=vv(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new JTe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new YTe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(o3(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),o3(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Ty(r.snapshot),l=a?.get(Hg)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class hV{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class bC{constructor(n,e){this.component=n,this.route=e}}function mEe(t,n,e){const i=t._root;return Ey(i,n?n._root:null,e,[i.value])}function yv(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function vve(t){return null!==mx(t)}(t)?n.get(t):t:i}function Ey(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=vv(n);return t.children.forEach(s=>{(function vEe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function yEe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!om(t.url,n.url);case"pathParamsOrQueryParamsChange":return!om(t.url,n.url)||!Rd(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!s3(t,n)||!Rd(t.queryParams,n.queryParams);default:return!s3(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new hV(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ey(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new bC(a.outlet.component,s))}else s&&Ay(n,a,r),r.canActivateChecks.push(new hV(i)),Ey(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Da(o,(s,a)=>Ay(s,e.getContext(a),r)),r}function Ay(t,n,e){const i=vv(t),r=t.value;Da(i,(o,s)=>{Ay(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new bC(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function My(t){return"function"==typeof t}function d3(t){return t instanceof nC||"EmptyError"===t?.name}const xC=Symbol("INITIAL_VALUE");function _v(){return uc(t=>iC(t.map(n=>n.pipe(Ks(1),sC(xC)))).pipe(vn(n=>{for(const e of n)if(!0!==e){if(e===xC)return xC;if(!1===e||e instanceof Rf)return e}return!0}),cs(n=>n!==xC),Ks(1)))}function fV(t){return function Gt(...t){return gn(t)}(xs(n=>{if(sm(n))throw sV(0,n)}),vn(n=>!0===n))}const h3={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function pV(t,n,e,i,r){const o=f3(t,n,e);return o.matched?function PEe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?Rn(r.map(s=>{const a=yv(s,t);return jf(function SEe(t){return t&&My(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(_v(),fV()):Rn(!0)}(i=uV(n,i),n,e).pipe(vn(s=>!0===s?o:{...h3})):Rn(o)}function f3(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...h3}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||gTe)(e,t,n);if(!r)return{...h3};const o={};Da(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function wC(t,n,e,i){if(e.length>0&&function LEe(t,n,e){return e.some(i=>CC(t,n,i)&&zc(i)!==zi)}(t,e,i)){const o=new ar(n,function REe(t,n,e,i){const r={};r[zi]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&zc(o)!==zi){const s=new ar([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[zc(o)]=s}return r}(t,n,i,new ar(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function $Ee(t,n,e){return e.some(i=>CC(t,n,i))}(t,e,i)){const o=new ar(t.segments,function jEe(t,n,e,i,r){const o={};for(const s of i)if(CC(t,e,s)&&!r[zc(s)]){const a=new ar([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[zc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new ar(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function CC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function mV(t,n,e,i){return!!(zc(t)===i||i!==zi&&CC(n,e,t))&&("**"===t.path||f3(n,t,e).matched)}function gV(t,n,e){return 0===n.length&&!t.children[e]}const SC=!1;class kC{constructor(n){this.segmentGroup=n||null}}class vV{constructor(n){this.urlTree=n}}function Oy(t){return rm(new kC(t))}function yV(t){return rm(new vV(t))}function BEe(t){return rm(new Nt(4e3,SC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class UEe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=wC(this.urlTree.root,[],[],this.config).segmentGroup,e=new ar(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,zi).pipe(vn(o=>this.createUrlTree(pC(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ll(o=>{if(o instanceof vV)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof kC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,zi).pipe(vn(r=>this.createUrlTree(pC(r),n.queryParams,n.fragment))).pipe(Ll(r=>{throw r instanceof kC?this.noMatchError(r):r}))}noMatchError(n){return new Nt(4002,SC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=KM(n);return new Rf(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(vn(o=>new ar([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return ro(r).pipe(Pf(o=>{const s=i.children[o],a=dV(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(vn(l=>({segment:l,outlet:o})))}),I9((o,s)=>(o[s.outlet]=s.segment,o),{}),N9())}expandSegment(n,e,i,r,o,s){return ro(i).pipe(Pf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Ll(c=>{if(c instanceof kC)return Rn(null);throw c}))),Ff(a=>!!a),Ll((a,l)=>{if(d3(a))return gV(e,r,o)?Rn(new ar([],{})):Oy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return mV(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):Oy(e):Oy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?yV(o):this.lineralizeSegments(i,o).pipe(et(s=>{const a=new ar(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=f3(e,r,o);if(!a)return Oy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?yV(d):this.lineralizeSegments(r,d).pipe(et(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=uV(i,n),i.loadChildren?(i._loadedRoutes?Rn({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(vn(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new ar(r,{})))):Rn(new ar(r,{}))):pV(e,i,r,n).pipe(uc(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(et(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=wC(e,a,l,h),m=new ar(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(vn(_=>new ar(a,_)));if(0===h.length&&0===p.length)return Rn(new ar(a,{}));const g=zc(i)===o;return this.expandSegment(d,m,h,p,g?zi:o,!0).pipe(vn(y=>new ar(a.concat(y.segments),y.children)))})):Oy(e)))}getChildConfig(n,e,i){return e.children?Rn({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Rn({routes:e._loadedRoutes,injector:e._loadedInjector}):function FEe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?Rn(!0):Rn(r.map(s=>{const a=yv(s,t);return jf(function bEe(t){return t&&My(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(_v(),fV())}(n,e,i).pipe(et(r=>r?this.configLoader.loadChildren(n,e).pipe(xs(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function VEe(t){return rm(aV(SC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):Rn({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Rn(i);if(r.numberOfChildren>1||!r.children[zi])return BEe(n.redirectTo);r=r.children[zi]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Rf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Da(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Da(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new ar(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Nt(4001,SC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class GEe{}class YEe{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=wC(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,zi).pipe(vn(e=>{if(null===e)return null;const i=new yC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zi,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new zh(i,e),o=new rV(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=iV(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return ro(Object.keys(i.children)).pipe(Pf(r=>{const o=i.children[r],s=dV(e,r);return this.processSegmentGroup(n,s,o,r)}),I9((r,o)=>r&&o?(r.push(...o),r):null),function aTe(t,n=!1){return e=>e.lift(new lTe(t,n))}(r=>null!==r),aC(null),N9(),vn(r=>{if(null===r)return null;const o=bV(r);return function XEe(t){t.sort((n,e)=>n.value.outlet===zi?-1:e.value.outlet===zi?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return ro(e).pipe(Pf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),Ff(s=>!!s),Ll(s=>{if(d3(s))return gV(i,r,o)?Rn([]):Rn(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!mV(e,i,r,o))return Rn(null);let s;if("**"===e.path){const a=r.length>0?j9(r).parameters:{},l=wV(i)+r.length;s=Rn({snapshot:new yC(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,CV(e),zc(e),e.component??e._loadedComponent??null,e,xV(i),l,SV(e)),consumedSegments:[],remainingSegments:[]})}else s=pV(i,e,r,n).pipe(vn(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=wV(i)+l.length;return{snapshot:new yC(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,CV(e),zc(e),e.component??e._loadedComponent??null,e,xV(i),d,SV(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(uc(a=>{if(null===a)return Rn(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function JEe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=wC(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(vn(g=>null===g?null:[new zh(l,g)]));if(0===h.length&&0===p.length)return Rn([new zh(l,[])]);const m=zc(e)===o;return this.processSegment(d,h,f,p,m?zi:o).pipe(vn(g=>null===g?null:[new zh(l,g)]))}))}}function KEe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function bV(t){const n=[],e=new Set;for(const i of t){if(!KEe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=bV(i.children);n.push(new zh(i.value,r))}return n.filter(i=>!e.has(i))}function xV(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function wV(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function CV(t){return t.data||{}}function SV(t){return t.resolve||{}}function kV(t){return"string"==typeof t.title||null===t.title}function p3(t){return uc(n=>{const e=t(n);return e?ro(e).pipe(vn(()=>n)):Rn(n)})}const bv=new Vn("ROUTES");let m3=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Fi(dB)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Rn(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=jf(e.loadComponent()).pipe(vn(TV),xs(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),YM(()=>{this.componentLoaders.delete(e)})),r=new fe(i,()=>new _r).pipe(Ut());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Rn({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(vn(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=P9(l.get(bv,[],Ci.Self|Ci.Optional)));return{routes:c.map(u3),injector:l}}),YM(()=>{this.childrenLoaders.delete(i)})),s=new fe(o,()=>new _r).pipe(Ut());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return jf(e()).pipe(vn(TV),et(i=>i instanceof S$||Array.isArray(i)?Rn(i):ro(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function TV(t){return function oAe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let TC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new _r,this.configLoader=Fi(m3),this.environmentInjector=Fi(Lc),this.urlSerializer=Fi(_y),this.rootContexts=Fi(Dy),this.navigationId=0,this.afterPreactivation=()=>Rn(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new WTe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new GTe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new Js({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:Cy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(cs(i=>0!==i.id),vn(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),uc(i=>{let r=!1,o=!1;return Rn(i).pipe(xs(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),uc(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new gC(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return EV(s.source)&&(e.browserUrlTree=s.extractedUrl),Rn(s).pipe(uc(u=>{const d=this.transitions?.getValue();return this.events.next(new mC(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Vh:Promise.resolve(u)}),function zEe(t,n,e,i){return uc(r=>function HEe(t,n,e,i,r){return new UEe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(vn(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),xs(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function ZEe(t,n,e,i,r){return et(o=>function qEe(t,n,e,i,r,o,s="emptyOnly"){return new YEe(t,n,e,i,r,s,o).recognize().pipe(uc(a=>null===a?function WEe(t){return new en(n=>n.error(t))}(new GEe):Rn(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(vn(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),xs(u=>{if(i.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 BTe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new mC(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=nV(d,this.rootComponentType).snapshot;return Rn(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new gC(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}}),xs(s=>{const a=new VTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),vn(s=>i={...s,guards:mEe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function DEe(t,n){return et(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Rn({...e,guardsResult:!0}):function TEe(t,n,e,i){return ro(t).pipe(et(r=>function NEe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Rn(o.map(a=>{const l=Ty(n)??r,c=yv(a,l);return jf(function CEe(t){return t&&My(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(Ff())})).pipe(_v()):Rn(!0)}(r.component,r.route,e,n,i)),Ff(r=>!0!==r,!0))}(s,i,r,t).pipe(et(a=>a&&function _Ee(t){return"boolean"==typeof t}(a)?function EEe(t,n,e,i){return ro(n).pipe(Pf(r=>rC(function MEe(t,n){return null!==t&&n&&n(new qTe(t)),Rn(!0)}(r.route.parent,i),function AEe(t,n){return null!==t&&n&&n(new XTe(t)),Rn(!0)}(r.route,i),function IEe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function gEe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>A9(()=>Rn(s.guards.map(l=>{const c=Ty(s.node)??e,u=yv(l,c);return jf(function wEe(t){return t&&My(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(Ff())})).pipe(_v())));return Rn(o).pipe(_v())}(t,r.path,e),function OEe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Rn(!0);const r=i.map(o=>A9(()=>{const s=Ty(n)??e,a=yv(o,s);return jf(function xEe(t){return t&&My(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(Ff())}));return Rn(r).pipe(_v())}(t,r.route,e))),Ff(r=>!0!==r,!0))}(i,o,t,n):Rn(a)),vn(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),xs(s=>{if(i.guardsResult=s.guardsResult,sm(s.guardsResult))throw sV(0,s.guardsResult);const a=new HTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),cs(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),p3(s=>{if(s.guards.canActivateChecks.length)return Rn(s).pipe(xs(a=>{const l=new UTe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),uc(a=>{let l=!1;return Rn(a).pipe(function eAe(t,n){return et(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Rn(e);let o=0;return ro(r).pipe(Pf(s=>function tAe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!kV(r)&&(o[vy]=r.title),function nAe(t,n,e,i){const r=function iAe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return Rn({});const o={};return ro(r).pipe(et(s=>function rAe(t,n,e,i){const r=Ty(n)??i,o=yv(t,r);return jf(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(Ff(),xs(a=>{o[s]=a}))),qM(1),function uTe(t){return n=>n.lift(new dTe(t))}(o),Ll(s=>d3(s)?Vh:rm(s)))}(o,t,n,i).pipe(vn(s=>(t._resolvedData=s,t.data=iV(t,e).resolve,r&&kV(r)&&(t.data[vy]=r.title),null)))}(s.route,i,t,n)),xs(()=>o++),qM(1),et(s=>o===r.length?Rn(e):Vh))})}(e.paramsInheritanceStrategy,this.environmentInjector),xs({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),xs(a=>{const l=new zTe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),p3(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(xs(u=>{l.component=u}),vn(()=>{})));for(const u of l.children)c.push(...a(u));return c};return iC(a(s.targetSnapshot.root)).pipe(aC(),Ks(1))}),p3(()=>this.afterPreactivation()),vn(s=>{const a=function rEe(t,n,e){const i=ky(t,n._root,e?e._root:void 0);return new tV(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),xs(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>vn(i=>(new pEe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),Ks(1),xs({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Uh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),YM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Ll(s=>{if(o=!0,cV(s)){lV(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new Sy(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),lV(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||EV(i.source)};e.scheduleNavigation(l,Cy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new vC(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Vh}))}))}cancelNavigationTransition(e,i,r){const o=new Sy(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function EV(t){return t!==Cy}let AV=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===zi);return i}getResolvedTitleForRoute(e){return e.data[vy]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return Fi(sAe)},providedIn:"root"}),t})(),sAe=(()=>{class t extends AV{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(vt(R7))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),aAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return Fi(cAe)},providedIn:"root"}),t})();class lAe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let cAe=(()=>{class t extends lAe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const EC=new Vn("",{providedIn:"root",factory:()=>({})});let dAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return Fi(hAe)},providedIn:"root"}),t})(),hAe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function fAe(t){throw t}function pAe(t,n,e){return n.parse("/")}const mAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let lr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Fi(Iwe),this.isNgZoneEnabled=!1,this.options=Fi(EC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||fAe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||pAe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Fi(dAe),this.routeReuseStrategy=Fi(aAe),this.urlCreationStrategy=Fi(tEe),this.titleStrategy=Fi(AV),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=P9(Fi(bv,{optional:!0})??[]),this.navigationTransitions=Fi(TC),this.urlSerializer=Fi(_y),this.location=Fi(qA),this.isNgZoneEnabled=Fi(ir)instanceof ir&&ir.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rf,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=nV(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},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),Cy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(u3),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,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=sm(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Cy,null,i)}navigate(e,i={skipLocationChange:!1}){return function vAe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&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,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mu=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new _r;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Uh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=dv(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=dv(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=dv(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,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"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 Z5(t,n,e){return function W1e(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?Q5:L1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,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 t.\u0275fac=function(e){return new(e||t)(he(lr),he(Pr),wf("tabindex"),he(aa),he(Si),he(em))},t.\u0275dir=sn({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&be("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ut("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[ei]}),t})(),Iy=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new it,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Uh&&this.update()})}ngAfterContentInit(){Rn(this.links.changes,Rn(null)).pipe(M()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=ro(e).pipe(M()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.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(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=function yAe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(he(lr),he(Si),he(aa),he(Ns),he(Mu,8))},t.\u0275dir=sn({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&yi(r,Mu,5),2&e){let o;wn(o=Cn())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ei]}),t})();class MV{}let _Ae=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(cs(e=>e instanceof Uh),Pf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=fw(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ro(r).pipe(M())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Rn(null);const o=r.pipe(et(s=>null===s?Rn(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?ro([o,this.loader.loadComponent(i)]).pipe(M()):o})}}return t.\u0275fac=function(e){return new(e||t)(vt(lr),vt(dB),vt(Lc),vt(MV),vt(m3))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const v3=new Vn("");let OV=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.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 mC?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Uh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Z9&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Z9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function M8(){throw new Error("invalid")}()},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();var dc=(()=>((dc=dc||{})[dc.COMPLETE=0]="COMPLETE",dc[dc.FAILED=1]="FAILED",dc[dc.REDIRECTING=2]="REDIRECTING",dc))();const xv=!1;function Lf(t,n){return{\u0275kind:t,\u0275providers:n}}const y3=new Vn("",{providedIn:"root",factory:()=>!1});function NV(){const t=Fi(la);return n=>{const e=t.get(Ph);if(n!==e.components[0])return;const i=t.get(lr),r=t.get(FV);1===t.get(_3)&&i.initialNavigation(),t.get(PV,null,Ci.Optional)?.setUpPreloading(),t.get(v3,null,Ci.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const FV=new Vn(xv?"bootstrap done indicator":"",{factory:()=>new _r}),_3=new Vn(xv?"initial navigation":"",{providedIn:"root",factory:()=>1});function SAe(){let t=[];return t=xv?[{provide:Yx,multi:!0,useFactory:()=>{const n=Fi(lr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function KTe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Lf(1,t)}const PV=new Vn(xv?"router preloader":"");function kAe(t){return Lf(0,[{provide:PV,useExisting:_Ae},{provide:MV,useExisting:t}])}const Ny=!1,jV=new Vn(Ny?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),DAe=[qA,{provide:_y,useClass:XM},lr,Dy,{provide:Pr,useFactory:function IV(t){return t.routerState.root},deps:[lr]},m3,Ny?{provide:y3,useValue:!0}:[]];function TAe(){return new _B("Router",lr)}let RV=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[DAe,Ny&&i?.enableTracing?SAe().\u0275providers:[],{provide:bv,multi:!0,useValue:e},{provide:jV,useFactory:OAe,deps:[[lr,new M1,new O1]]},{provide:EC,useValue:i||{}},i?.useHash?{provide:em,useClass:_Ce}:{provide:em,useClass:HB},{provide:v3,useFactory:()=>{const t=Fi(O2e),n=Fi(ir),e=Fi(EC),i=Fi(TC),r=Fi(_y);return e.scrollOffset&&t.setOffset(e.scrollOffset),new OV(r,i,t,n,e)}},i?.preloadingStrategy?kAe(i.preloadingStrategy).\u0275providers:[],{provide:_B,multi:!0,useFactory:TAe},i?.initialNavigation?IAe(i):[],[{provide:LV,useFactory:NV},{provide:yB,multi:!0,useExisting:LV}]]}}static forChild(e){return{ngModule:t,providers:[{provide:bv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(vt(jV,8))},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[l3]}),t})();function OAe(t){if(Ny&&t)throw new Nt(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 IAe(t){return["disabled"===t.initialNavigation?Lf(3,[{provide:vw,multi:!0,useFactory:()=>{const n=Fi(lr);return()=>{n.setUpLocationChangeListener()}}},{provide:_3,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Lf(2,[{provide:_3,useValue:0},{provide:vw,multi:!0,deps:[la],useFactory:n=>{const e=n.get(vCe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(lr),o=n.get(FV);(function bAe(t,n){t.events.pipe(cs(e=>e instanceof Uh||e instanceof Sy||e instanceof vC||e instanceof gC),vn(e=>e instanceof Uh||e instanceof gC?dc.COMPLETE:e instanceof Sy&&(0===e.code||1===e.code)?dc.REDIRECTING:dc.FAILED),cs(e=>e!==dc.REDIRECTING),Ks(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(TC).afterPreactivation=()=>(i(!0),o.closed?Rn(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const LV=new Vn(Ny?"Router Initializer":"");function AC(t,n){return new en(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let $V=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(he(aa),he(Si))},t.\u0275dir=sn({type:t}),t})(),lm=(()=>{class t extends $V{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,features:[pi]}),t})();const $l=new Vn("NgValueAccessor"),PAe={provide:$l,useExisting:Mi(()=>MC),multi:!0};let MC=(()=>{class t extends lm{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&be("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Qr([PAe]),pi]}),t})();const jAe={provide:$l,useExisting:Mi(()=>Ta),multi:!0},LAe=new Vn("CompositionEventMode");let Ta=(()=>{class t extends $V{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function RAe(){const t=jh()?jh().getUserAgent():"";return/android (\d+)/.test(t.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 t.\u0275fac=function(e){return new(e||t)(he(aa),he(Si),he(LAe,8))},t.\u0275dir=sn({type:t,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,i){1&e&&be("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Qr([jAe]),pi]}),t})();const $Ae=!1;function $f(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function BV(t){return null!=t&&"number"==typeof t.length}const Ea=new Vn("NgValidators"),Bf=new Vn("NgAsyncValidators"),BAe=/^(?=.{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 wo{static min(n){return VV(n)}static max(n){return function HV(t){return n=>{if($f(n.value)||$f(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return UV(n)}static requiredTrue(n){return function zV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function GV(t){return $f(t.value)||BAe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function WV(t){return n=>$f(n.value)||!BV(n.value)?null:n.value.lengthBV(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function YV(t){if(!t)return OC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if($f(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return eH(n)}static composeAsync(n){return tH(n)}}function VV(t){return n=>{if($f(n.value)||$f(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function QV(t,n){return n.map(e=>e(t))}function ZV(t){return t.map(n=>function VAe(t){return!t.validate}(n)?n:e=>n.validate(e))}function eH(t){if(!t)return null;const n=t.filter(XV);return 0==n.length?null:function(e){return KV(QV(e,n))}}function b3(t){return null!=t?eH(ZV(t)):null}function tH(t){if(!t)return null;const n=t.filter(XV);return 0==n.length?null:function(e){return function FAe(...t){if(1===t.length){const n=t[0];if(Ze(n))return AC(n,null);if(Ve(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return AC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return AC(t=1===t.length&&Ze(t[0])?t[0]:t,null).pipe(vn(e=>n(...e)))}return AC(t,null)}(QV(e,n).map(JV)).pipe(vn(KV))}}function x3(t){return null!=t?tH(ZV(t)):null}function nH(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function iH(t){return t._rawValidators}function rH(t){return t._rawAsyncValidators}function w3(t){return t?Array.isArray(t)?t:[t]:[]}function IC(t,n){return Array.isArray(t)?t.includes(n):t===n}function oH(t,n){const e=w3(n);return w3(t).forEach(r=>{IC(e,r)||e.push(r)}),e}function sH(t,n){return w3(n).filter(e=>!IC(t,e))}class aH{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(n){this._rawValidators=n||[],this._composedValidatorFn=b3(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=x3(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class gl extends aH{get formDirective(){return null}get path(){return null}}class Vf extends aH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class lH{constructor(n){this._cd=n}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 Qa=(()=>{class t extends lH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(he(Vf,2))},t.\u0275dir=sn({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&jn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[pi]}),t})(),Za=(()=>{class t extends lH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(he(gl,10))},t.\u0275dir=sn({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&jn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[pi]}),t})();function cH(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const k3=!1,Fy="VALID",FC="INVALID",wv="PENDING",Py="DISABLED";function D3(t){return(PC(t)?t.validators:t)||null}function T3(t,n){return(PC(n)?n.asyncValidators:t)||null}function PC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function uH(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Nt(1e3,k3?function GAe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new Nt(1001,k3?function WAe(t,n){return`Cannot find form control ${cH(t,n)}`}(n,e):"")}function dH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new Nt(1002,k3?function qAe(t,n){return`Must supply a value for form control ${cH(t,n)}`}(n,r):"")})}class jC{constructor(n,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(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Fy}get invalid(){return this.status===FC}get pending(){return this.status==wv}get disabled(){return this.status===Py}get enabled(){return this.status!==Py}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(oH(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(oH(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(sH(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(sH(n,this._rawAsyncValidators))}hasValidator(n){return IC(this._rawValidators,n)}hasAsyncValidator(n){return IC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=wv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Py,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Fy,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fy||this.status===wv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Py:Fy}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=wv,this._hasOwnPendingAsyncValidator=!0;const e=JV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new it,this.statusChanges=new it}_calculateStatus(){return this._allControlsDisabled()?Py:this.errors?FC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wv)?wv:this._anyControlsHaveStatus(FC)?FC:Fy}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){PC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function YAe(t){return Array.isArray(t)?b3(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function XAe(t){return Array.isArray(t)?x3(t):t||null}(this._rawAsyncValidators)}}class jy extends jC{constructor(n,e,i){super(D3(e),T3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){dH(this,!0,n),Object.keys(n).forEach(i=>{uH(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class hH extends jy{}const cm=new Vn("CallSetDisabledState",{providedIn:"root",factory:()=>Ry}),Ry="always";function Ly(t,n,e=Ry){E3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function KAe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&fH(t,n)})}(t,n),function ZAe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function QAe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&fH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function JAe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function LC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),BC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $C(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function E3(t,n){const e=iH(t);null!==n.validator?t.setValidators(nH(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=rH(t);null!==n.asyncValidator?t.setAsyncValidators(nH(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();$C(n._rawValidators,r),$C(n._rawAsyncValidators,r)}function BC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=iH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=rH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return $C(n._rawValidators,i),$C(n._rawAsyncValidators,i),e}function fH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function gH(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function vH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const By=class extends jC{constructor(n=null,e,i){super(D3(e),T3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),PC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=vH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){gH(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){gH(this._onDisabledChange,n)}_forEachChild(n){}_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(n){vH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let el=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const lMe={provide:$l,useExisting:Mi(()=>N3),multi:!0};let N3=(()=>{class t extends lm{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&be("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Qr([lMe]),pi]}),t})();const cMe={provide:$l,useExisting:Mi(()=>F3),multi:!0};let wH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})(),uMe=(()=>{class t{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:wH}),t})(),F3=(()=>{class t extends lm{constructor(e,i,r,o){super(e,i),this._registry=r,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Fi(cm,{optional:!0})??Ry}ngOnInit(){this._control=this._injector.get(Vf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(he(aa),he(Si),he(uMe),he(la))},t.\u0275dir=sn({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,i){1&e&&be("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Qr([cMe]),pi]}),t})();const P3=new Vn("NgModelWithFormControlWarning"),fMe={provide:gl,useExisting:Mi(()=>ca)};let ca=(()=>{class t extends gl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new it,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(BC(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 i=this.form.get(e.path);return Ly(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){LC(e.control||null,e,!1),function iMe(t,n){const e=t.indexOf(n);e>-1&&t.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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function mH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(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 i=e.control,r=this.form.get(e.path);i!==r&&(LC(i||null,e),(t=>t instanceof By)(r)&&(Ly(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function pH(t,n){E3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function eMe(t,n){return BC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){E3(this.form,this),this._oldForm&&BC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(he(Ea,10),he(Bf,10),he(cm,8))},t.\u0275dir=sn({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&be("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Qr([fMe]),pi,ei]}),t})();const gMe={provide:Vf,useExisting:Mi(()=>Aa)};let Aa=(()=>{class t extends Vf{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new it,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function O3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Ta?e=o:function nMe(t){return Object.getPrototypeOf(t.constructor)===lm}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function M3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(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 function RC(t,n){return[...n.path,t]}(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 t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(he(gl,13),he(Ea,10),he(Bf,10),he($l,10),he(P3,8))},t.\u0275dir=sn({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Qr([gMe]),pi,ei]}),t})();const vMe={provide:$l,useExisting:Mi(()=>Cv),multi:!0};function DH(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Cv=(()=>{class t extends lm{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=DH(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function yMe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&be("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Qr([vMe]),pi]}),t})(),VC=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,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(DH(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 t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa),he(Cv,9))},t.\u0275dir=sn({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const _Me={provide:$l,useExisting:Mi(()=>L3),multi:!0};function TH(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let L3=(()=>{class t extends lm{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(TH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(TH(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 t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa),he(L3,9))},t.\u0275dir=sn({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let um=(()=>{class t{constructor(){this._validator=OC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):OC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,features:[ei]}),t})();const wMe={provide:Ea,useExisting:Mi(()=>$3),multi:!0};let $3=(()=>{class t extends um{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function AH(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>VV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ut("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[Qr([wMe]),pi]}),t})();const CMe={provide:Ea,useExisting:Mi(()=>Hf),multi:!0};let Hf=(()=>{class t extends um{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=dv,this.createValidator=e=>UV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275dir=sn({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ut("required",i._enabled?"":null)},inputs:{required:"required"},features:[Qr([CMe]),pi]}),t})(),jH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[wH]}),t})();class RH extends jC{constructor(n,e,i){super(D3(e),T3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){dH(this,!1,n),n.forEach((i,r)=>{uH(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function LH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let AMe=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return LH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new jy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new hH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(LH(i)?o=i:(o.validators=i,o.asyncValidators=r),new By(e,{...o,nonNullable:!0})):new By(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new RH(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof By||e instanceof jC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vl=(()=>{class t extends AMe{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),MMe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:cm,useValue:e.callSetDisabledState??Ry}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[jH]}),t})(),OMe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:P3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:cm,useValue:e.callSetDisabledState??Ry}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[jH]}),t})();const $H=new Vn("ngx-segment-analytics.config"),IMe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};let BH=(()=>{class t{analytics;static \u0275fac=function(i){return new(i||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),UC=(()=>{class t{_w;_doc;_config;constructor(e,i,r){if(this._w=e,this._doc=i,this._config={...IMe,...r},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(e){this._w.analytics.setAnonymousId(e)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}addDestinationMiddleware(e,...i){this._w.analytics.addDestinationMiddleware(e,...i)}register(...e){return this._w.analytics.register(...e)}get plugins(){return this._w.analytics.plugins}static \u0275fac=function(i){return new(i||t)(vt(BH),vt(co),vt($H))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function NMe(t){return f7(t)?window:{}}let FMe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:$H,useValue:e},UC]}}constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static \u0275fac=function(i){return new(i||t)(vt(t,12))};static \u0275mod=ki({type:t});static \u0275inj=wi({providers:[{provide:BH,useFactory:NMe,deps:[oy]}],imports:[Mf]})}return t})();class zC{}class B3{}class Ou{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{let r;if(r="string"==typeof i?[i]:"number"==typeof i?[i.toString()]:i.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Ou?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Ou;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ou?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class PMe{encodeKey(n){return VH(n)}encodeValue(n){return VH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const RMe=/%(\d[a-f0-9])/gi,LMe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VH(t){return encodeURIComponent(t).replace(RMe,(n,e)=>LMe[e]??n)}function GC(t){return`${t}`}class An{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new PMe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function jMe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(GC):[GC(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new An({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(GC(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(GC(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class $Me{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function HH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function UH(t){return typeof Blob<"u"&&t instanceof Blob}function zH(t){return typeof FormData<"u"&&t instanceof FormData}class Vy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function BMe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Ou),this.context||(this.context=new $Me),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Vy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var js=(()=>((js=js||{})[js.Sent=0]="Sent",js[js.UploadProgress=1]="UploadProgress",js[js.ResponseHeader=2]="ResponseHeader",js[js.DownloadProgress=3]="DownloadProgress",js[js.Response=4]="Response",js[js.User=5]="User",js))();class V3{constructor(n,e=200,i="OK"){this.headers=n.headers||new Ou,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class H3 extends V3{constructor(n={}){super(n),this.type=js.ResponseHeader}clone(n={}){return new H3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class WC extends V3{constructor(n={}){super(n),this.type=js.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new WC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class GH extends V3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function U3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let qC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Vy)o=e;else{let l,c;l=r.headers instanceof Ou?r.headers:new Ou(r.headers),r.params&&(c=r.params instanceof An?r.params:new An({fromObject:r.params})),o=new Vy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Rn(o).pipe(Pf(l=>this.handler.handle(l)));if(e instanceof Vy||"events"===r.observe)return s;const a=s.pipe(cs(l=>l instanceof WC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(vn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(vn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(vn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(vn(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new An).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,U3(r,i))}post(e,i,r={}){return this.request("POST",e,U3(r,i))}put(e,i,r={}){return this.request("PUT",e,U3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(vt(zC))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function WH(t,n){return n(t)}function HMe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const z3=new Vn("HTTP_INTERCEPTORS"),Hy=new Vn("HTTP_INTERCEPTOR_FNS");function zMe(){let t=null;return(n,e)=>(null===t&&(t=(Fi(z3,{optional:!0})??[]).reduceRight(HMe,WH)),t(n,e))}let qH=(()=>{class t extends zC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Hy)));this.chain=i.reduceRight((r,o)=>function UMe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),WH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(vt(B3),vt(Lc))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const YMe=/^\)\]\}',?\n/;let XH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new en(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new Ou(r.getAllResponseHeaders()),m=function XMe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new H3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const _=v;v=v.replace(YMe,"");try{v=""!==v?JSON.parse(v):null}catch(w){v=_,y&&(y=!1,v={error:w,text:v})}}y?(i.next(new WC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new GH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new GH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:js.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:js.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:js.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(vt(m7))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const G3=new Vn("XSRF_ENABLED"),JH=new Vn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),KH=new Vn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class QH{}let QMe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,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=t7(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(vt(co),vt(oy),vt(JH))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function ZMe(t,n){const e=t.url.toLowerCase();if(!Fi(G3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Fi(QH).getToken(),r=Fi(KH);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var ws=(()=>((ws=ws||{})[ws.Interceptors=0]="Interceptors",ws[ws.LegacyInterceptors=1]="LegacyInterceptors",ws[ws.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ws[ws.NoXsrfProtection=3]="NoXsrfProtection",ws[ws.JsonpSupport=4]="JsonpSupport",ws[ws.RequestsMadeViaParent=5]="RequestsMadeViaParent",ws))();function Sv(t,n){return{\u0275kind:t,\u0275providers:n}}function e3e(...t){const n=[qC,XH,qH,{provide:zC,useExisting:qH},{provide:B3,useExisting:XH},{provide:Hy,useValue:ZMe,multi:!0},{provide:G3,useValue:!0},{provide:QH,useClass:QMe}];for(const e of t)n.push(...e.\u0275providers);return function q1e(t){return{\u0275providers:t}}(n)}const ZH=new Vn("LEGACY_INTERCEPTOR_FN");let n3e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[e3e(Sv(ws.LegacyInterceptors,[{provide:ZH,useFactory:zMe},{provide:Hy,useExisting:ZH,multi:!0}]))]}),t})();var ii=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(ii||(ii={})),ii))(),Uy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY"}(Uy||(Uy={})),Uy))();class W3{host;timeoutMs}let bi=(()=>{class t{httpClient;config;constructor(e,i){this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new An({encoder:new qn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new An({encoder:new qn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new An({encoder:new qn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new An({encoder:new qn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new An({encoder:new qn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new An({encoder:new qn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new An({encoder:new qn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new An({encoder:new qn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new An({encoder:new qn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new An({encoder:new qn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new An({encoder:new qn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new An({encoder:new qn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new An({encoder:new qn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new An({encoder:new qn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new An({encoder:new qn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new An({encoder:new qn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new An({encoder:new qn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new An({encoder:new qn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new An({encoder:new qn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new An({encoder:new qn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new An({encoder:new qn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new An({encoder:new qn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new An({encoder:new qn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new An({encoder:new qn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new An({encoder:new qn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new An({encoder:new qn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new An({encoder:new qn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new An({encoder:new qn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new Ou).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new Ou).set("Authorization","Basic "+btoa(e+":"+i))}static \u0275fac=function(i){return new(i||t)(vt(qC),vt(W3,8))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class qn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const eU=new Vn("window"),o3e=[{provide:eU,useFactory:()=>window}],q3="currentSession";let zo=(()=>{class t{window;segment;http;consoleService;currentSessionSubject;currentSession;constructor(e,i,r,o){this.window=e,this.segment=i,this.http=r,this.consoleService=o;const s=JSON.parse(localStorage.getItem(q3));s&&this.segmentIdentify(s),this.currentSessionSubject=new Js(s),this.currentSession=this.currentSessionSubject.asObservable()}get currentSessionValue(){return this.currentSessionSubject.getValue()}get username(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1])).usn}get sessionRole(){const e=this.currentSessionSubject.getValue().token;switch(JSON.parse(atob(e.split(".")[1])).rol){case 1:return ii.USER_ROLE_ADMIN;case 2:return ii.USER_ROLE_DEVELOPER;case 3:return ii.USER_ROLE_MAINTAINER;case 4:return ii.USER_ROLE_READONLY;default:return ii.USER_ROLE_UNKNOWN}}login(e,i){return this.consoleService.authenticate({username:e,password:i}).pipe(xs(r=>{localStorage.setItem(q3,JSON.stringify(r)),this.currentSessionSubject.next(r),this.segmentIdentify(r)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(xs(()=>{localStorage.removeItem(q3),this.currentSessionSubject.next(null)})):Vh}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}static \u0275fac=function(i){return new(i||t)(vt(eU),vt(UC),vt(qC),vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function s3e(t,n){if(1&t&&(b(0,"div",17),N(1),x()),2&t){const e=B();C(1),yn(" ",e.error," ")}}const a3e=function(t){return{"was-validated":t}},tU=function(t){return{"is-invalid":t}};let l3e=(()=>{class t{segment;formBuilder;route;router;authenticationService;error="";loginForm;submitted;returnUrl;constructor(e,i,r,o,s){this.segment=e,this.formBuilder=i,this.route=r,this.router=o,this.authenticationService=s}ngOnInit(){this.segment.page("/login"),this.loginForm=this.formBuilder.group({username:["",wo.compose([wo.required])],password:["",wo.compose([wo.required,wo.minLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authenticationService.login(this.f.username.value,this.f.password.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,this.router.navigate([this.returnUrl])},e=>{this.error=e,this.submitted=!1})}get f(){return this.loginForm.controls}static \u0275fac=function(i){return new(i||t)(he(UC),he(vl),he(Pr),he(lr),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:26,vars:14,consts:[[1,"bg-grad","d-flex","h-100"],[1,"align-self-center","mx-auto"],[1,"text-center","mb-4"],["src","/static/svg/logo.svg","alt","Nakama Logo","width","175"],["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"text-center"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group","form-row"],[1,"col-sm-12"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(i,r){1&i&&(b(0,"div",0)(1,"div",1)(2,"h1",2),ge(3,"img",3),x(),Z(4,s3e,2,1,"div",4),b(5,"div",5)(6,"div",6)(7,"h3",7),N(8,"Login"),x(),b(9,"form",8),be("ngSubmit",function(){return r.onSubmit()}),b(10,"div",9)(11,"div",10)(12,"label",11),N(13,"Username"),x(),ge(14,"input",12),b(15,"div",13),N(16,"Please enter a username."),x()()(),b(17,"div",9)(18,"div",10)(19,"label",14),N(20,"Password"),x(),ge(21,"input",15),b(22,"div",13),N(23,"Password must be at least 8 characters."),x()()(),b(24,"button",16),N(25,"Login"),x()()()()()()),2&i&&(C(4),S("ngIf",r.error),C(5),S("formGroup",r.loginForm)("ngClass",nr(8,a3e,r.submitted)),C(5),S("ngClass",nr(10,tU,r.f.username.dirty&&r.f.username.errors)),C(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),C(6),S("ngClass",nr(12,tU,r.f.password.dirty&&r.f.password.errors)),C(1),S("hidden",r.f.password.disabled||r.f.password.valid||r.f.password.pristine),C(2),S("disabled",!r.loginForm.valid||r.submitted))},dependencies:[Af,_n,el,Ta,Qa,Za,Hf,ca,Aa],styles:["div[_ngcontent-%COMP%] .mx-auto[_ngcontent-%COMP%]{width:420px}"]})}return t})(),c3e=(()=>{class t{authService;router;constructor(e,i){this.authService=e,this.router=i}canActivate(e,i){return!this.authService.currentSessionValue||(this.router.navigate(["/"]),!1)}static \u0275fac=function(i){return new(i||t)(vt(zo),vt(lr))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),u3e=(()=>{class t{router;authenticationService;constructor(e,i){this.router=e,this.authenticationService=i}canActivate(e,i){return!!this.authenticationService.currentSessionValue||(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}static \u0275fac=function(i){return new(i||t)(vt(lr),vt(zo))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class d3e extends ce{constructor(n,e){super()}schedule(n,e=0){return this}}class Y3 extends d3e{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let nU=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Bd extends nU{constructor(n,e=nU.now){super(n,()=>Bd.delegate&&Bd.delegate!==this?Bd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Bd.delegate&&Bd.delegate!==this?Bd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const YC=new Bd(Y3);class f3e{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new m3e(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class p3e{constructor(){this.buffer=[]}}class m3e extends F{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(iU,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(rU,e,{subscriber:this,context:s})),this.add(o.schedule(g3e,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(iU,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new p3e;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function iU(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function g3e(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(rU,e,{subscriber:i,context:o})),this.schedule(t,n))}function rU(t){const{subscriber:n,context:e}=t;n.closeContext(e)}function XC(t,n){return e=>e.lift(new v3e(t,n))}class v3e{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new y3e(n,this.compare,this.keySelector))}}class y3e extends F{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Ma(t,n,e,i){return nt(e)&&(i=e,e=void 0),i?Ma(t,n,e).pipe(vn(r=>Ze(r)?i(...r):i(r))):new en(r=>{oU(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function oU(t,n,e,i,r){let o;if(function x3e(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function b3e(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function _3e(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function zy(t=0,n,e){let i=-1;return sU(n)?i=Number(n)<1?1:Number(n):_a(n)&&(e=n),_a(e)||(e=YC),new en(r=>{const o=sU(t)?t:+t-e.now();return e.schedule(w3e,o,{index:0,period:i,subscriber:r})})}function w3e(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function aU(...t){if(1===t.length){if(!Ze(t[0]))return t[0];t=t[0]}return ot(t,void 0).lift(new C3e)}class C3e{call(n,e){return e.subscribe(new S3e(n))}}class S3e extends GM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class A3e extends Y{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[No](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Ne(this.observable,new Ml(this))}}function us(t){return n=>n.lift(new O3e(t))}class O3e{constructor(n){this.notifier=n}call(n,e){const i=new I3e(n),r=Ne(this.notifier,new Ml(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class I3e extends Y{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function X3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new N3e(t,e))}}class N3e{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new F3e(n,this.observables,this.project))}}class F3e extends GM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Iu{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return Rn(this.value);case"E":return rm(this.error);case"C":return oC()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Iu("N",n):Iu.undefinedValueNotification}static createError(n){return new Iu("E",void 0,n)}static createComplete(){return Iu.completeNotification}}function J3(t,n=YC){const i=function P3e(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new j3e(i,n))}Iu.completeNotification=new Iu("C"),Iu.undefinedValueNotification=new Iu("N",void 0);class j3e{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new K3(n,this.delay,this.scheduler))}}class K3 extends F{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(K3.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new R3e(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Iu.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Iu.createComplete()),this.unsubscribe()}}class R3e{constructor(n,e){this.time=n,this.notification=e}}class $3e{constructor(n){this.total=n}call(n,e){return e.subscribe(new B3e(n,this.total))}}class B3e extends F{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}var V3e={left:"right",right:"left",bottom:"top",top:"bottom"};function KC(t){return t.replace(/left|right|bottom|top/g,function(n){return V3e[n]})}function Vd(t){return t.split("-")[0]}var H3e={start:"end",end:"start"};function cU(t){return t.replace(/start|end/g,function(n){return H3e[n]})}var hc="top",Nu="bottom",Fu="right",fc="left",Q3="auto",Gy=[hc,Nu,Fu,fc],kv="start",Wy="end",U3e="clippingParents",uU="viewport",qy="popper",z3e="reference",dU=Gy.reduce(function(t,n){return t.concat([n+"-"+kv,n+"-"+Wy])},[]),hU=[].concat(Gy,[Q3]).reduce(function(t,n){return t.concat([n,n+"-"+kv,n+"-"+Wy])},[]),eOe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pc(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function dm(t){return t instanceof pc(t).Element||t instanceof Element}function Gc(t){return t instanceof pc(t).HTMLElement||t instanceof HTMLElement}function Z3(t){return!(typeof ShadowRoot>"u")&&(t instanceof pc(t).ShadowRoot||t instanceof ShadowRoot)}function Uf(t){return((dm(t)?t.ownerDocument:t.document)||window.document).documentElement}var hm=Math.max,QC=Math.min,Dv=Math.round;function eO(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function fU(){return!/^((?!chrome|android).)*safari/i.test(eO())}function Tv(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),r=1,o=1;n&&Gc(t)&&(r=t.offsetWidth>0&&Dv(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Dv(i.height)/t.offsetHeight||1);var a=(dm(t)?pc(t):window).visualViewport,l=!fU()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function tO(t){var n=pc(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function nO(t){return Tv(Uf(t)).left+tO(t).scrollLeft}function Gh(t){return pc(t).getComputedStyle(t)}function Hd(t){return t?(t.nodeName||"").toLowerCase():null}function ZC(t){return"html"===Hd(t)?t:t.assignedSlot||t.parentNode||(Z3(t)?t.host:null)||Uf(t)}function iO(t){var n=Gh(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function pU(t){return["html","body","#document"].indexOf(Hd(t))>=0?t.ownerDocument.body:Gc(t)&&iO(t)?t:pU(ZC(t))}function Yy(t,n){var e;void 0===n&&(n=[]);var i=pU(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=pc(i),s=r?[o].concat(o.visualViewport||[],iO(i)?i:[]):i,a=n.concat(s);return r?a:a.concat(Yy(ZC(s)))}function iOe(t){return["table","td","th"].indexOf(Hd(t))>=0}function mU(t){return Gc(t)&&"fixed"!==Gh(t).position?t.offsetParent:null}function Xy(t){for(var n=pc(t),e=mU(t);e&&iOe(e)&&"static"===Gh(e).position;)e=mU(e);return e&&("html"===Hd(e)||"body"===Hd(e)&&"static"===Gh(e).position)?n:e||function rOe(t){var n=/firefox/i.test(eO());if(/Trident/i.test(eO())&&Gc(t)&&"fixed"===Gh(t).position)return null;var r=ZC(t);for(Z3(r)&&(r=r.host);Gc(r)&&["html","body"].indexOf(Hd(r))<0;){var o=Gh(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||n&&"filter"===o.willChange||n&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||n}function gU(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&Z3(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function rO(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function vU(t,n,e){return n===uU?rO(function tOe(t,n){var e=pc(t),i=Uf(t),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=fU();(c||!c&&"fixed"===n)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+nO(t),y:l}}(t,e)):dm(n)?function oOe(t,n){var e=Tv(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):rO(function nOe(t){var n,e=Uf(t),i=tO(t),r=null==(n=t.ownerDocument)?void 0:n.body,o=hm(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=hm(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+nO(t),l=-i.scrollTop;return"rtl"===Gh(r||e).direction&&(a+=hm(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Uf(t)))}function Ev(t){return t.split("-")[1]}function oO(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function yU(t){var l,n=t.reference,e=t.element,i=t.placement,r=i?Vd(i):null,o=i?Ev(i):null,s=n.x+n.width/2-e.width/2,a=n.y+n.height/2-e.height/2;switch(r){case hc:l={x:s,y:n.y-e.height};break;case Nu:l={x:s,y:n.y+n.height};break;case Fu:l={x:n.x+n.width,y:a};break;case fc:l={x:n.x-e.width,y:a};break;default:l={x:n.x,y:n.y}}var c=r?oO(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case kv:l[c]=l[c]-(n[u]/2-e[u]/2);break;case Wy:l[c]=l[c]+(n[u]/2-e[u]/2)}}return l}function bU(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function xU(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function sO(t,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,l=void 0===a?U3e:a,c=n.rootBoundary,u=void 0===c?uU:c,d=n.elementContext,h=void 0===d?qy:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=bU("number"!=typeof g?g:xU(g,Gy)),_=t.rects.popper,w=t.elements[p?h===qy?z3e:qy:h],k=function aOe(t,n,e,i){var r="clippingParents"===n?function sOe(t){var n=Yy(ZC(t)),i=["absolute","fixed"].indexOf(Gh(t).position)>=0&&Gc(t)?Xy(t):t;return dm(i)?n.filter(function(r){return dm(r)&&gU(r,i)&&"body"!==Hd(r)}):[]}(t):[].concat(n),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=vU(t,c,i);return l.top=hm(u.top,l.top),l.right=QC(u.right,l.right),l.bottom=QC(u.bottom,l.bottom),l.left=hm(u.left,l.left),l},vU(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(dm(w)?w:w.contextElement||Uf(t.elements.popper),l,u,s),D=Tv(t.elements.reference),L=yU({reference:D,element:_,strategy:"absolute",placement:r}),z=rO(Object.assign({},_,L)),R=h===qy?z:D,U={top:k.top-R.top+v.top,bottom:R.bottom-k.bottom+v.bottom,left:k.left-R.left+v.left,right:R.right-k.right+v.right},G=t.modifiersData.offset;if(h===qy&&G){var X=G[r];Object.keys(U).forEach(function(te){var P=[Fu,Nu].indexOf(te)>=0?1:-1,W=[hc,Nu].indexOf(te)>=0?"y":"x";U[te]+=X[W]*P})}return U}const dOe={name:"flip",enabled:!0,phase:"main",fn:function uOe(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,f=e.flipVariations,p=void 0===f||f,m=e.allowedAutoPlacements,g=n.options.placement,v=Vd(g),_=l||(v!==g&&p?function cOe(t){if(Vd(t)===Q3)return[];var n=KC(t);return[cU(t),n,cU(n)]}(g):[KC(g)]),w=[g].concat(_).reduce(function(re,de){return re.concat(Vd(de)===Q3?function lOe(t,n){void 0===n&&(n={});var r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?hU:l,u=Ev(n.placement),d=u?a?dU:dU.filter(function(p){return Ev(p)===u}):Gy,h=d.filter(function(p){return c.indexOf(p)>=0});0===h.length&&(h=d);var f=h.reduce(function(p,m){return p[m]=sO(t,{placement:m,boundary:r,rootBoundary:o,padding:s})[Vd(m)],p},{});return Object.keys(f).sort(function(p,m){return f[p]-f[m]})}(n,{placement:de,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):de)},[]),k=n.rects.reference,D=n.rects.popper,L=new Map,z=!0,R=w[0],U=0;U=0,W=P?"width":"height",J=sO(n,{placement:G,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),H=P?te?Fu:fc:te?Nu:hc;k[W]>D[W]&&(H=KC(H));var le=KC(H),E=[];if(o&&E.push(J[X]<=0),a&&E.push(J[H]<=0,J[le]<=0),E.every(function(re){return re})){R=G,z=!1;break}L.set(G,E)}if(z)for(var I=function(de){var Oe=w.find(function(ye){var Xe=L.get(ye);if(Xe)return Xe.slice(0,de).every(function(Le){return Le})});if(Oe)return R=Oe,"break"},q=p?3:1;q>0&&"break"!==I(q);q--);n.placement!==R&&(n.modifiersData[i]._skip=!0,n.placement=R,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Jy(t,n,e){return hm(t,QC(n,e))}function aO(t){var n=Tv(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}const mOe={name:"preventOverflow",enabled:!0,phase:"main",fn:function pOe(t){var n=t.state,e=t.options,i=t.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,f=void 0===h||h,p=e.tetherOffset,m=void 0===p?0:p,g=sO(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),v=Vd(n.placement),y=Ev(n.placement),_=!y,w=oO(v),k=function hOe(t){return"x"===t?"y":"x"}(w),D=n.modifiersData.popperOffsets,L=n.rects.reference,z=n.rects.popper,R="function"==typeof m?m(Object.assign({},n.rects,{placement:n.placement})):m,U="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),G=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,X={x:0,y:0};if(D){if(o){var te,P="y"===w?hc:fc,W="y"===w?Nu:Fu,J="y"===w?"height":"width",H=D[w],le=H+g[P],E=H-g[W],O=f?-z[J]/2:0,I=y===kv?L[J]:z[J],q=y===kv?-z[J]:-L[J],V=n.elements.arrow,re=f&&V?aO(V):{width:0,height:0},de=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Oe=de[P],ye=de[W],Xe=Jy(0,L[J],re[J]),Le=_?L[J]/2-O-Xe-Oe-U.mainAxis:I-Xe-Oe-U.mainAxis,rt=_?-L[J]/2+O+Xe+ye+U.mainAxis:q+Xe+ye+U.mainAxis,$=n.elements.arrow&&Xy(n.elements.arrow),ie=null!=(te=G?.[w])?te:0,Ye=H+rt-ie,je=Jy(f?QC(le,H+Le-ie-($?"y"===w?$.clientTop||0:$.clientLeft||0:0)):le,H,f?hm(E,Ye):E);D[w]=je,X[w]=je-H}if(a){var gt,Hn=D[k],Zt="y"===k?"height":"width",Ei=Hn+g["x"===w?hc:fc],ln=Hn-g["x"===w?Nu:Fu],dr=-1!==[hc,fc].indexOf(v),wr=null!=(gt=G?.[k])?gt:0,sr=dr?Ei:Hn-L[Zt]-z[Zt]-wr+U.altAxis,mr=dr?Hn+L[Zt]+z[Zt]-wr-U.altAxis:ln,gi=f&&dr?function fOe(t,n,e){var i=Jy(t,n,e);return i>e?e:i}(sr,Hn,mr):Jy(f?sr:Ei,Hn,f?mr:ln);D[k]=gi,X[k]=gi-Hn}n.modifiersData[i]=X}},requiresIfExists:["offset"]};const _Oe={name:"arrow",enabled:!0,phase:"main",fn:function vOe(t){var n,e=t.state,i=t.name,r=t.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=Vd(e.placement),l=oO(a),u=[fc,Fu].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(n,e){return bU("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:xU(n,Gy))}(r.padding,e),h=aO(o),f="y"===l?hc:fc,p="y"===l?Nu:Fu,m=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],g=s[l]-e.rects.reference[l],v=Xy(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,D=y/2-h[u]/2+(m/2-g/2),L=Jy(d[f],D,y-h[u]-d[p]);e.modifiersData[i]=((n={})[l]=L,n.centerOffset=L-D,n)}},effect:function yOe(t){var n=t.state,i=t.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||gU(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function COe(t,n,e){void 0===e&&(e=!1);var i=Gc(n),r=Gc(n)&&function wOe(t){var n=t.getBoundingClientRect(),e=Dv(n.width)/t.offsetWidth||1,i=Dv(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),o=Uf(n),s=Tv(t,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==Hd(n)||iO(o))&&(a=function xOe(t){return t!==pc(t)&&Gc(t)?function bOe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):tO(t)}(n)),Gc(n)?((l=Tv(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):o&&(l.x=nO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function SOe(t){var n=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=n.get(a);l&&r(l)}}),i.push(o)}return t.forEach(function(o){n.set(o.name,o)}),t.forEach(function(o){e.has(o.name)||r(o)}),i}function DOe(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var wU={placement:"bottom",modifiers:[],strategy:"absolute"};function CU(){for(var t=arguments.length,n=new Array(t),e=0;e=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[fc,Fu].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,n.rects,o),u},{}),a=s[n.placement],c=a.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=a.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[i]=s}};function zOe(t,n){}function GOe(t,n){if(1&t&&(b(0,"button",3),N(1),Z(2,zOe,0,0,"ng-template",4),x()),2&t){const e=n.$implicit;S("ngbPanelToggle",e),C(1),yn(" ",e.title," "),C(1),S("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function WOe(t,n){}function qOe(t,n){}function YOe(t,n){if(1&t){const e=yt();b(0,"div",8),be("ngbRef",function(r){return $e(e),Be(B().$implicit.panelDiv=r)}),b(1,"div",9),Z(2,qOe,0,0,"ng-template",4),x()()}if(2&t){const e=B().$implicit;kf("id",e.id),ut("aria-labelledby",e.id+"-header"),C(2),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const XOe=function(t,n){return{$implicit:t,opened:n}};function JOe(t,n){if(1&t&&(b(0,"div")(1,"div",5),Z(2,WOe,0,0,"ng-template",6),x(),Z(3,YOe,3,3,"div",7),x()),2&t){const e=n.$implicit,i=B(),r=qs(1);Fd("accordion-item "+(e.cardClass||"")),C(1),Fd("accordion-header "+(e.type?"bg-"+e.type:i.type?"bg-"+i.type:"")),Jp("id","",e.id,"-header"),C(1),S("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||r)("ngTemplateOutletContext",Mr(8,XOe,e,e.isOpen)),C(1),S("ngIf",!i.destroyOnHide||e.isOpen||e.transitionRunning)}}function KOe(t,n){if(1&t){const e=yt();b(0,"button",1),be("click",function(){return $e(e),Be(B().close())}),x()}}const Ky=["*"];function QOe(t,n){if(1&t){const e=yt();b(0,"button",6),be("click",function(){const o=$e(e).$implicit,s=B();return s.focus(),Be(s.select(o.id,s.NgbSlideEventSource.INDICATOR))}),x()}if(2&t){const e=n.$implicit,i=B();jn("active",e.id===i.activeId),ut("aria-labelledby","slide-"+e.id)("aria-controls","slide-"+e.id)("aria-selected",e.id===i.activeId)}}function ZOe(t,n){}function eIe(t,n){if(1&t&&(b(0,"div",7)(1,"span",8),Ca(2,9),x(),Z(3,ZOe,0,0,"ng-template",10),x()),2&t){const e=n.$implicit,i=n.index,r=n.count;S("id","slide-"+e.id),C(2),av(i+1)(r),Z1(2),C(1),S("ngTemplateOutlet",e.tplRef)}}function tIe(t,n){if(1&t){const e=yt();b(0,"button",11),be("click",function(){return $e(e),Be(B().arrowLeft())}),ge(1,"span",12),b(2,"span",8),Ca(3,13),x()()}}function nIe(t,n){if(1&t){const e=yt();b(0,"button",14),be("click",function(){return $e(e),Be(B().arrowRight())}),ge(1,"span",15),b(2,"span",8),Ca(3,16),x()()}}const iIe=["ngbDatepickerDayView",""],rIe=["month"],oIe=["year"];function sIe(t,n){if(1&t&&(b(0,"option",5),N(1),x()),2&t){const e=n.$implicit,i=B();S("value",e),ut("aria-label",i.i18n.getMonthFullName(e,i.date.year)),C(1),kt(i.i18n.getMonthShortName(e,i.date.year))}}function aIe(t,n){if(1&t&&(b(0,"option",5),N(1),x()),2&t){const e=n.$implicit,i=B();S("value",e),C(1),kt(i.i18n.getYearNumerals(e))}}function lIe(t,n){if(1&t){const e=yt();b(0,"ngb-datepicker-navigation-select",7),be("select",function(r){return $e(e),Be(B().select.emit(r))}),x()}if(2&t){const e=B();S("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function cIe(t,n){1&t&&ge(0,"div",0)}function uIe(t,n){1&t&&ge(0,"div",0)}function dIe(t,n){if(1&t&&(Z(0,cIe,1,0,"div",9),b(1,"div",10),N(2),x(),Z(3,uIe,1,0,"div",9)),2&t){const e=n.$implicit,i=n.index,r=B(2);S("ngIf",i>0),C(2),yn(" ",r.i18n.getMonthLabel(e.firstDate)," "),C(1),S("ngIf",i!==r.months.length-1)}}function hIe(t,n){1&t&&Z(0,dIe,4,3,"ng-template",8),2&t&&S("ngForOf",B().months)}function fIe(t,n){if(1&t&&(b(0,"div",5),N(1),x()),2&t){const e=B(2);C(1),kt(e.i18n.getWeekLabel())}}function pIe(t,n){if(1&t&&(b(0,"div",6),N(1),x()),2&t){const e=n.$implicit;C(1),kt(e)}}function mIe(t,n){if(1&t&&(b(0,"div",2),Z(1,fIe,2,1,"div",3),Z(2,pIe,2,1,"div",4),x()),2&t){const e=B();C(1),S("ngIf",e.datepicker.showWeekNumbers),C(1),S("ngForOf",e.viewModel.weekdays)}}function gIe(t,n){if(1&t&&(b(0,"div",11),N(1),x()),2&t){const e=B(2).$implicit,i=B();C(1),kt(i.i18n.getWeekNumerals(e.number))}}function vIe(t,n){}function yIe(t,n){if(1&t&&Z(0,vIe,0,0,"ng-template",14),2&t){const e=B().$implicit;S("ngTemplateOutlet",B(3).datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function _Ie(t,n){if(1&t){const e=yt();b(0,"div",12),be("click",function(r){const s=$e(e).$implicit;return B(3).doSelect(s),Be(r.preventDefault())}),Z(1,yIe,1,2,"ng-template",13),x()}if(2&t){const e=n.$implicit;jn("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),S("tabindex",e.tabindex),ut("aria-label",e.ariaLabel),C(1),S("ngIf",!e.hidden)}}function bIe(t,n){if(1&t&&(b(0,"div",8),Z(1,gIe,2,1,"div",9),Z(2,_Ie,2,9,"div",10),x()),2&t){const e=B().$implicit,i=B();C(1),S("ngIf",i.datepicker.showWeekNumbers),C(1),S("ngForOf",e.days)}}function xIe(t,n){1&t&&Z(0,bIe,3,2,"div",7),2&t&&S("ngIf",!n.$implicit.collapsed)}const wIe=["defaultDayTemplate"],CIe=["content"];function SIe(t,n){if(1&t&&ge(0,"div",8),2&t){const i=n.currentMonth,r=n.selected,o=n.disabled,s=n.focused;S("date",n.date)("currentMonth",i)("selected",r)("disabled",o)("focused",s)}}function kIe(t,n){if(1&t&&(b(0,"div",13),N(1),x()),2&t){const e=B().$implicit,i=B(2);C(1),yn(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function DIe(t,n){if(1&t&&(b(0,"div",10),Z(1,kIe,2,1,"div",11),ge(2,"ngb-datepicker-month",12),x()),2&t){const e=n.$implicit,i=B(2);C(1),S("ngIf","none"===i.navigation||i.displayMonths>1&&"select"===i.navigation),C(1),S("month",e.firstDate)}}function TIe(t,n){1&t&&Z(0,DIe,3,2,"div",9),2&t&&S("ngForOf",B().model.months)}function EIe(t,n){if(1&t){const e=yt();b(0,"ngb-datepicker-navigation",14),be("navigate",function(r){return $e(e),Be(B().onNavigateEvent(r))})("select",function(r){return $e(e),Be(B().onNavigateDateSelect(r))}),x()}if(2&t){const e=B();S("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function AIe(t,n){}function MIe(t,n){}const kU=function(t){return{$implicit:t}},OIe=["dialog"],IIe=["ngbNavOutlet",""];function NIe(t,n){}function FIe(t,n){if(1&t&&(b(0,"div",2),Z(1,NIe,0,0,"ng-template",3),x()),2&t){const e=B().$implicit,i=B();S("item",e)("nav",i.nav)("role",i.paneRole),C(1),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",nr(5,kU,e.active||i.isPanelTransitioning(e)))}}function PIe(t,n){if(1&t&&Z(0,FIe,2,7,"div",1),2&t){const e=n.$implicit,i=B();S("ngIf",e.isPanelInDom()||i.isPanelTransitioning(e))}}function jIe(t,n){1&t&&(b(0,"span",9),Ca(1,10),x())}function RIe(t,n){1&t&&(b(0,"span",9),Ca(1,11),x())}function LIe(t,n){1&t&&(b(0,"span",9),Ca(1,12),x())}function $Ie(t,n){1&t&&(b(0,"span",9),Ca(1,13),x())}function BIe(t,n){1&t&&N(0,"...")}function VIe(t,n){1&t&&N(0),2&t&&kt(n.$implicit)}function HIe(t,n){}const UIe=function(t){return{disabled:!0,currentPage:t}};function zIe(t,n){if(1&t&&(b(0,"a",18),Z(1,HIe,0,0,"ng-template",8),x()),2&t){const e=B(2).$implicit,i=B(),r=qs(9);C(1),S("ngTemplateOutlet",(null==i.tplEllipsis?null:i.tplEllipsis.templateRef)||r)("ngTemplateOutletContext",nr(2,UIe,e))}}function GIe(t,n){}const WIe=function(t,n,e){return{disabled:t,$implicit:n,currentPage:e}};function qIe(t,n){if(1&t){const e=yt();b(0,"a",19),be("click",function(r){$e(e);const o=B().$implicit;return B(2).selectPage(o),Be(r.preventDefault())}),Z(1,GIe,0,0,"ng-template",8),x()}if(2&t){const e=B().$implicit,i=B(),r=i.disabled,o=i.$implicit,s=B(),a=qs(11);ut("tabindex",r?"-1":null)("aria-disabled",r?"true":null),C(1),S("ngTemplateOutlet",(null==s.tplNumber?null:s.tplNumber.templateRef)||a)("ngTemplateOutletContext",ey(4,WIe,r,e,o))}}function YIe(t,n){if(1&t&&(b(0,"li",15),Z(1,zIe,2,4,"a",16),Z(2,qIe,2,8,"a",17),x()),2&t){const e=n.$implicit,i=B(),r=i.$implicit,o=i.disabled,s=B();jn("active",e===r)("disabled",s.isEllipsis(e)||o),ut("aria-current",e===r?"page":null),C(1),S("ngIf",s.isEllipsis(e)),C(1),S("ngIf",!s.isEllipsis(e))}}function XIe(t,n){1&t&&Z(0,YIe,3,7,"li",14),2&t&&S("ngForOf",n.pages)}function JIe(t,n){}const lO=function(t,n){return{disabled:t,currentPage:n}};function KIe(t,n){if(1&t){const e=yt();b(0,"li",15)(1,"a",20),be("click",function(r){return $e(e),B().selectPage(1),Be(r.preventDefault())}),Z(2,JIe,0,0,"ng-template",8),x()()}if(2&t){const e=B(),i=qs(1);jn("disabled",e.previousDisabled()),C(1),ut("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),C(1),S("ngTemplateOutlet",(null==e.tplFirst?null:e.tplFirst.templateRef)||i)("ngTemplateOutletContext",Mr(6,lO,e.previousDisabled(),e.page))}}function QIe(t,n){}const ZIe=function(t){return{disabled:t}};function eNe(t,n){if(1&t){const e=yt();b(0,"li",15)(1,"a",21),be("click",function(r){$e(e);const o=B();return o.selectPage(o.page-1),Be(r.preventDefault())}),Z(2,QIe,0,0,"ng-template",8),x()()}if(2&t){const e=B(),i=qs(3);jn("disabled",e.previousDisabled()),C(1),ut("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),C(1),S("ngTemplateOutlet",(null==e.tplPrevious?null:e.tplPrevious.templateRef)||i)("ngTemplateOutletContext",nr(6,ZIe,e.previousDisabled()))}}function tNe(t,n){}function nNe(t,n){}function iNe(t,n){if(1&t){const e=yt();b(0,"li",15)(1,"a",22),be("click",function(r){$e(e);const o=B();return o.selectPage(o.page+1),Be(r.preventDefault())}),Z(2,nNe,0,0,"ng-template",8),x()()}if(2&t){const e=B(),i=qs(5);jn("disabled",e.nextDisabled()),C(1),ut("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),C(1),S("ngTemplateOutlet",(null==e.tplNext?null:e.tplNext.templateRef)||i)("ngTemplateOutletContext",Mr(6,lO,e.nextDisabled(),e.page))}}function rNe(t,n){}function oNe(t,n){if(1&t){const e=yt();b(0,"li",15)(1,"a",23),be("click",function(r){$e(e);const o=B();return o.selectPage(o.pageCount),Be(r.preventDefault())}),Z(2,rNe,0,0,"ng-template",8),x()()}if(2&t){const e=B(),i=qs(7);jn("disabled",e.nextDisabled()),C(1),ut("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),C(1),S("ngTemplateOutlet",(null==e.tplLast?null:e.tplLast.templateRef)||i)("ngTemplateOutletContext",Mr(6,lO,e.nextDisabled(),e.page))}}const sNe=function(t,n,e){return{$implicit:t,pages:n,disabled:e}};function cNe(t,n){if(1&t&&(b(0,"span"),Ca(1,1),mA(2,"percent"),x()),2&t){const e=B();C(2),av(gA(2,1,e.getValue()/e.max)),Z1(1)}}function uNe(t,n){1&t&&N(0),2&t&&kt(100===n.fill?"\u2605":"\u2606")}function dNe(t,n){}function hNe(t,n){if(1&t){const e=yt();b(0,"span",2),N(1),x(),b(2,"span",3),be("mouseenter",function(){const o=$e(e).index;return Be(B().enter(o+1))})("click",function(){const o=$e(e).index;return Be(B().handleClick(o+1))}),Z(3,dNe,0,0,"ng-template",4),x()}if(2&t){const e=n.index,i=B(),r=qs(1);C(1),yn("(",e=12)("ngIfElse",e)}}function kNe(t,n){if(1&t&&(b(0,"strong",3),N(1),x()),2&t){const e=B();C(1),kt(e.header)}}function DNe(t,n){}function TNe(t,n){if(1&t){const e=yt();b(0,"div",4),Z(1,DNe,0,0,"ng-template",5),b(2,"button",6),be("click",function(){return $e(e),Be(B().hide())}),x()()}if(2&t){const e=B(),i=qs(1);C(1),S("ngTemplateOutlet",e.contentHeaderTpl||i)}}function ENe(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B().$implicit;Fd(B().highlightClass),C(1),kt(e)}}function ANe(t,n){1&t&&N(0),2&t&&kt(B().$implicit)}function MNe(t,n){if(1&t&&(Z(0,ENe,2,3,"span",1),Z(1,ANe,1,1,"ng-template",null,2,Uo)),2&t){const e=n.odd,i=qs(2);S("ngIf",e)("ngIfElse",i)}}function Oa(t){return parseInt(`${t}`,10)}function DU(t){return null!=t?`${t}`:""}function t2(t,n,e=0){return Math.max(Math.min(t,n),e)}function fm(t){return"string"==typeof t}function ds(t){return!isNaN(Oa(t))}function Qo(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function pm(t){return null!=t}function Av(t){return ds(t)?`0${t}`.slice(-2):""}function EU(t,n){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(n)>=0}function Mv(t){return(t||document.body).getBoundingClientRect()}function AU(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const MU={animation:!0,transitionTimerDelayMs:5},RNe=()=>{},{transitionTimerDelayMs:LNe}=MU,Qy=new Map,Qs=(t,n,e,i)=>{let r=i.context||{};const o=Qy.get(n);if(o)switch(i.runningTransition){case"continue":return Vh;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Qy.delete(n)}const s=e(n,i.animation,r)||RNe;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),Rn(void 0).pipe(function PNe(t){return n=>new en(e=>n.subscribe({next:s=>t.run(()=>e.next(s)),error:s=>t.run(()=>e.error(s)),complete:()=>t.run(()=>e.complete())}))}(t));const a=new _r,l=new _r,c=a.pipe(function M3e(...t){return n=>rC(n,Rn(...t))}(!0));Qy.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const u=function jNe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const d=Ma(n,"transitionend").pipe(us(c),cs(({target:f})=>f===n));aU(zy(u+LNe).pipe(us(c)),d,l).pipe(us(c)).subscribe(()=>{Qy.delete(n),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()},cO=(t,n,e)=>{let{direction:i,maxSize:r,dimension:o}=e;const{classList:s}=t;function a(){s.add("collapse"),"show"===i?s.add("show"):s.remove("show")}if(n)return r||(r=function BNe(t,n){if(typeof navigator>"u")return"0px";const{classList:e}=t,i=e.contains("show");i||e.add("show"),t.style[n]="";const r=t.getBoundingClientRect()[n]+"px";return i||e.remove("show"),r}(t,o),e.maxSize=r,t.style[o]="show"!==i?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),Mv(t),s.add("collapsing")),t.style[o]="show"===i?r:"0px",()=>{a(),s.remove("collapsing"),t.style[o]=""};a()};let zf=(()=>{class t{constructor(){this.animation=MU.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),OU=(()=>{class t{constructor(e){this._ngbConfig=e,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),VNe=0,uO=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),IU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),NU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),dO=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+VNe++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new it,this.hidden=new it}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["ngb-panel"]],contentQueries:function(e,i,r){if(1&e&&(yi(r,IU,4),yi(r,uO,4),yi(r,NU,4)),2&e){let o;wn(o=Cn())&&(i.titleTpls=o),wn(o=Cn())&&(i.headerTpls=o),wn(o=Cn())&&(i.contentTpls=o)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),HNe=(()=>{class t{constructor(e){this._El=e,this.ngbRef=new it}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),FU=(()=>{class t{constructor(e,i){this.accordion=e,this.panel=i}set ngbPanelToggle(e){e&&(this.panel=e)}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>hO)),he(dO,9))},t.\u0275dir=sn({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,i){1&e&&be("click",function(){return i.accordion.toggle(i.panel.id)}),2&e&&(Pl("disabled",i.panel.disabled),ut("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),jn("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),hO=(()=>{class t{constructor(e,i,r){this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new it,this.shown=new it,this.hidden=new it,this.animation=e.animation,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const i=this._findPanelById(e);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){fm(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>{e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(Ks(1)).subscribe(()=>{this.panels.forEach(e=>{const i=e.panelDiv;i?e.initClassDone||(e.initClassDone=!0,Qs(this._ngZone,i,cO,{animation:!1,runningTransition:"continue",context:{direction:e.isOpen?"show":"hide",dimension:"height"}})):e.initClassDone=!1})})}_changeOpenState(e,i){if(null!=e&&!e.disabled&&e.isOpen!==i){let r=!1;this.panelChange.emit({panelId:e.id,nextState:i,preventDefault:()=>{r=!0}}),r||(e.isOpen=i,e.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(e,i=!0){this.panels.forEach(r=>{r.id!==e&&r.isOpen&&(r.isOpen=!1,r.transitionRunning=i)})}_findPanelById(e){return this.panels.find(i=>i.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}_runTransitions(e){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&Qs(this._ngZone,i.panelDiv,cO,{animation:e,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{i.transitionRunning=!1;const{id:o}=i;i.isOpen?(i.shown.emit(),this.shown.emit(o)):(i.hidden.emit(),this.hidden.emit(o))})})}}return t.\u0275fac=function(e){return new(e||t)(he(OU),he(ir),he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["ngb-accordion"]],contentQueries:function(e,i,r){if(1&e&&yi(r,dO,4),2&e){let o;wn(o=Cn())&&(i.panels=o)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,i){2&e&&ut("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[Is],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(e,i){1&e&&(Z(0,GOe,3,3,"ng-template",0,1,Uo),Z(2,JOe,4,11,"ng-template",2)),2&e&&(C(2),S("ngForOf",i.panels))},dependencies:[Ln,Eu,FU,HNe,uO,_n],encapsulation:2}),t})(),LU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[hO]}),t})();const YNe=({classList:t})=>{t.remove("show")};let XNe=(()=>{class t{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),po=(()=>{class t{constructor(e,i,r,o){this._renderer=i,this._element=r,this._zone=o,this.closed=new it,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=Qs(this._zone,this._element.nativeElement,YNe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(he(XNe),he(aa),he(Si),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&jn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[ei,Is],ngContentSelectors:Ky,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Cf(),Sf(0),Z(1,KOe,1,0,"button",0)),2&e&&(C(1),S("ngIf",i.dismissible))},dependencies:[_n],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),$U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[po]}),t})();var Gf=(()=>(function(t){t.START="start",t.END="end"}(Gf||(Gf={})),Gf))();const BU=({classList:t})=>t.contains("carousel-item-start")||t.contains("carousel-item-end"),Zy=t=>{t.remove("carousel-item-start"),t.remove("carousel-item-end")},n2=t=>{Zy(t),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},JNe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(BU(t)?Zy(i):(i.add("carousel-item-"+(e===Gf.START?"next":"prev")),Mv(t),i.add("carousel-item-"+e)),()=>{n2(i),i.add("active")}):(Zy(i),n2(i),void i.add("active"))},KNe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(BU(t)?Zy(i):i.add("carousel-item-"+e),()=>{n2(i),i.remove("active")}):(Zy(i),n2(i),void i.remove("active"))};let QNe=(()=>{class t{constructor(e){this._ngbConfig=e,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZNe=0,eFe=(()=>{class t{constructor(e){this.tplRef=e,this.id="ngb-slide-"+ZNe++,this.slid=new it}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"},standalone:!0}),t})(),tFe=(()=>{class t{constructor(e,i,r,o,s){this._platformId=i,this._ngZone=r,this._cd=o,this._container=s,this.NgbSlideEventSource=gm,this._destroy$=new _r,this._interval$=new Js(0),this._mouseHover$=new Js(!1),this._focused$=new Js(!1),this._pauseOnHover$=new Js(!1),this._pauseOnFocus$=new Js(!1),this._pause$=new Js(!1),this._wrap$=new Js(!1),this.slide=new it,this.slid=new it,this._transitionIds=null,this.animation=e.animation,this.interval=e.interval,this.wrap=e.wrap,this.keyboard=e.keyboard,this.pauseOnHover=e.pauseOnHover,this.pauseOnFocus=e.pauseOnFocus,this.showNavigationArrows=e.showNavigationArrows,this.showNavigationIndicators=e.showNavigationIndicators}set interval(e){this._interval$.next(e)}get interval(){return this._interval$.value}set wrap(e){this._wrap$.next(e)}get wrap(){return this._wrap$.value}set pauseOnHover(e){this._pauseOnHover$.next(e)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(e){this._pauseOnFocus$.next(e)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(e){this._mouseHover$.next(e)}get mouseHover(){return this._mouseHover$.value}set focused(e){this._focused$.next(e)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(gm.ARROW_LEFT)}arrowRight(){this.focus(),this.next(gm.ARROW_RIGHT)}ngAfterContentInit(){f7(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const e=iC([this.slide.pipe(vn(i=>i.current),sC(this.activeId)),this._wrap$,this.slides.changes.pipe(sC(null))]).pipe(vn(([i,r])=>{const o=this.slides.toArray(),s=this._getSlideIdxById(i);return r?o.length>1:si||r&&o||s&&a||!c?0:l),XC(),uc(i=>i>0?zy(i,i):lU),us(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(gm.TIMER)))}),this.slides.changes.pipe(us(this._destroy$)).subscribe(()=>{this._transitionIds?.forEach(e=>(t=>{Qy.get(t)?.complete()})(this._getSlideElement(e))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(Ks(1)).subscribe(()=>{for(const{id:e}of this.slides){const i=this._getSlideElement(e);e===this.activeId?i.classList.add("active"):i.classList.remove("active")}})})}ngAfterContentChecked(){let e=this._getSlideById(this.activeId);this.activeId=e?e.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const e=this._getSlideElement(this.activeId);e&&e.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(e,i){this._cycleToSelected(e,this._getSlideEventDirection(this.activeId,e),i)}prev(e){this._cycleToSelected(this._getPrevSlide(this.activeId),Gf.END,e)}next(e){this._cycleToSelected(this._getNextSlide(this.activeId),Gf.START,e)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(e,i,r){const o=this._transitionIds;if(o&&(o[0]!==e||o[1]!==this.activeId))return;let s=this._getSlideById(e);if(s&&s.id!==this.activeId){this._transitionIds=[this.activeId,e],this.slide.emit({prev:this.activeId,current:s.id,direction:i,paused:this._pause$.value,source:r});const a={animation:this.animation,runningTransition:"stop",context:{direction:i}},l=[],c=this._getSlideById(this.activeId);if(c){const f=Qs(this._ngZone,this._getSlideElement(c.id),KNe,a);f.subscribe(()=>{c.slid.emit({isShown:!1,direction:i,source:r})}),l.push(f)}const u=this.activeId;this.activeId=s.id;const d=this._getSlideById(this.activeId),h=Qs(this._ngZone,this._getSlideElement(s.id),JNe,a);h.subscribe(()=>{d?.slid.emit({isShown:!0,direction:i,source:r})}),l.push(h),JC(...l).pipe(Ks(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:u,current:s.id,direction:i,paused:this._pause$.value,source:r})})}this._cd.markForCheck()}_getSlideEventDirection(e,i){return this._getSlideIdxById(e)>this._getSlideIdxById(i)?Gf.END:Gf.START}_getSlideById(e){return this.slides.find(i=>i.id===e)||null}_getSlideIdxById(e){const i=this._getSlideById(e);return null!=i?this.slides.toArray().indexOf(i):-1}_getNextSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return r===i.length-1?this.wrap?i[0].id:i[i.length-1].id:i[r+1].id}_getPrevSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return 0===r?this.wrap?i[i.length-1].id:i[0].id:i[r-1].id}_getSlideElement(e){return this._container.nativeElement.querySelector(`#slide-${e}`)}}return t.\u0275fac=function(e){return new(e||t)(he(QNe),he(oy),he(ir),he(Ns),he(Si))},t.\u0275cmp=$t({type:t,selectors:[["ngb-carousel"]],contentQueries:function(e,i,r){if(1&e&&yi(r,eFe,4),2&e){let o;wn(o=Cn())&&(i.slides=o)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(e,i){1&e&&be("keydown.arrowLeft",function(){return i.keyboard&&i.arrowLeft()})("keydown.arrowRight",function(){return i.keyboard&&i.arrowRight()})("mouseenter",function(){return i.mouseHover=!0})("mouseleave",function(){return i.mouseHover=!1})("focusin",function(){return i.focused=!0})("focusout",function(){return i.focused=!1}),2&e&&(ut("aria-activedescendant","slide-"+i.activeId),tr("display","block"))},inputs:{animation:"animation",activeId:"activeId",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],standalone:!0,features:[Is],decls:6,vars:6,consts:function(){let n,e,i;return n=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number: Slide ${"\ufffd0\ufffd"}:INTERPOLATION: of ${"\ufffd1\ufffd"}:INTERPOLATION_1: `,e=$localize`:@@ngb.carousel.previous:Previous`,i=$localize`:@@ngb.carousel.next:Next`,[["role","tablist",1,"carousel-indicators"],["type","button","data-bs-target","","role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","type","button",3,"click",4,"ngIf"],["class","carousel-control-next","type","button",3,"click",4,"ngIf"],["type","button","data-bs-target","","role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"visually-hidden"],n,[3,"ngTemplateOutlet"],["type","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],e,["type","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],i]},template:function(e,i){1&e&&(b(0,"div",0),Z(1,QOe,1,5,"button",1),x(),b(2,"div",2),Z(3,eIe,4,4,"div",3),x(),Z(4,tIe,4,0,"button",4),Z(5,nIe,4,0,"button",5)),2&e&&(jn("visually-hidden",!i.showNavigationIndicators),C(1),S("ngForOf",i.slides),C(2),S("ngForOf",i.slides),C(1),S("ngIf",i.showNavigationArrows),C(1),S("ngIf",i.showNavigationArrows))},dependencies:[Ln,Eu,_n],encapsulation:2,changeDetection:0}),t})();var gm=(()=>(function(t){t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator"}(gm||(gm={})),gm))();let VU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[tFe]}),t})(),HU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();class Zs{constructor(n,e,i){this.year=Qo(n)?n:null,this.month=Qo(e)?e:null,this.day=Qo(i)?i:null}static from(n){return n instanceof Zs?n:n?new Zs(n.year,n.month,n.day):null}equals(n){return null!=n&&this.year===n.year&&this.month===n.month&&this.day===n.day}before(n){return!!n&&(this.year===n.year?this.month===n.month?this.day!==n.day&&this.dayn.day:this.month>n.month:this.year>n.year)}}function Ov(t,n){return!function nFe(t,n){return!t&&!n||!!t&&!!n&&t.equals(n)}(t,n)}function UU(t,n){return!(!t&&!n||t&&n&&t.year===n.year&&t.month===n.month)}function i2(t,n,e){return t&&n&&t.before(n)?n:t&&e&&t.after(e)?e:t||null}function pO(t,n){const{minDate:e,maxDate:i,disabled:r,markDisabled:o}=n;return!(null==t||r||o&&o(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function zU(t){return new Zs(t.getFullYear(),t.getMonth()+1,t.getDate())}function r2(t){const n=new Date(t.year,t.month-1,t.day,12);return isNaN(n.getTime())||n.setFullYear(t.year),n}let o2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function dFe(){return new hFe}()},providedIn:"root"}),t})(),hFe=(()=>{class t extends o2{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",r=1){let o=r2(e),s=!0,a=o.getMonth();switch(i){case"y":o.setFullYear(o.getFullYear()+r);break;case"m":a+=r,o.setMonth(a),a%=12,a<0&&(a+=12);break;case"d":o.setDate(o.getDate()+r),s=!1;break;default:return e}return s&&o.getMonth()!==a&&o.setDate(0),zU(o)}getPrev(e,i="d",r=1){return this.getNext(e,i,-r)}getWeekday(e){let r=r2(e).getDay();return 0===r?7:r}getWeekNumber(e,i){7===i&&(i=0);const s=r2(e[(11-i)%7]);s.setDate(s.getDate()+4-(s.getDay()||7));const a=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((a-s.getTime())/864e5)/7)+1}getToday(){return zU(new Date)}isValid(e){if(!(e&&Qo(e.year)&&Qo(e.month)&&Qo(e.day)&&0!==e.year))return!1;const i=r2(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),vm=(()=>{class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function fFe(t){return new pFe(t)}(vt(ac)),i},providedIn:"root"}),t})(),pFe=(()=>{class t extends vm{constructor(e){super(),this._locale=e,this._monthsShort=YA(e,Ro.Standalone,Vi.Abbreviated),this._monthsFull=YA(e,Ro.Standalone,Vi.Wide)}getWeekdayLabel(e,i){const r=WB(this._locale,Ro.Standalone,void 0===i?Vi.Short:i);return r.map((s,a)=>r[(a+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){return YB(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}return t.\u0275fac=function(e){return new(e||t)(vt(ac))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),mO=(()=>{class t{constructor(e,i){this._calendar=e,this._i18n=i,this._VALIDATORS={dayTemplateData:r=>{if(this._state.dayTemplateData!==r)return{dayTemplateData:r}},displayMonths:r=>{if(Qo(r=Oa(r))&&r>0&&this._state.displayMonths!==r)return{displayMonths:r}},disabled:r=>{if(this._state.disabled!==r)return{disabled:r}},firstDayOfWeek:r=>{if(Qo(r=Oa(r))&&r>=0&&this._state.firstDayOfWeek!==r)return{firstDayOfWeek:r}},focusVisible:r=>{if(this._state.focusVisible!==r&&!this._state.disabled)return{focusVisible:r}},markDisabled:r=>{if(this._state.markDisabled!==r)return{markDisabled:r}},maxDate:r=>{const o=this.toValidDate(r,null);if(Ov(this._state.maxDate,o))return{maxDate:o}},minDate:r=>{const o=this.toValidDate(r,null);if(Ov(this._state.minDate,o))return{minDate:o}},navigation:r=>{if(this._state.navigation!==r)return{navigation:r}},outsideDays:r=>{if(this._state.outsideDays!==r)return{outsideDays:r}},weekdays:r=>{const o=!0===r||!1===r?Vi.Short:r,s=!0!==r&&!1!==r||r;if(this._state.weekdayWidth!==o||this._state.weekdaysVisible!==s)return{weekdayWidth:o,weekdaysVisible:s}}},this._model$=new _r,this._dateSelect$=new _r,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:Vi.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(cs(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(cs(e=>null!==e))}set(e){let i=Object.keys(e).map(r=>this._VALIDATORS[r](e[r])).reduce((r,o)=>({...r,...o}),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){const i=this.toValidDate(e,null);null!=i&&!this._state.disabled&&Ov(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){pO(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const i=this.toValidDate(e,this._calendar.getToday());null!=i&&!this._state.disabled&&(!this._state.firstDate||UU(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){const r=this.toValidDate(e,null);null!=r&&!this._state.disabled&&(Ov(this._state.selectedDate,r)&&this._nextState({selectedDate:r}),i.emitEvent&&pO(r,this._state)&&this._dateSelect$.next(r))}toValidDate(e,i){const r=Zs.from(e);return void 0===i&&(i=this._calendar.getToday()),this._calendar.isValid(r)?r:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){const{months:i,displayMonths:r,selectedDate:o,focusDate:s,focusVisible:a,disabled:l,outsideDays:c}=e;e.months.forEach(u=>{u.weeks.forEach(d=>{d.days.forEach(h=>{s&&(h.context.focused=s.equals(h.date)&&a),h.tabindex=!l&&s&&h.date.equals(s)&&s.month===u.number?0:-1,!0===l&&(h.context.disabled=!0),void 0!==o&&(h.context.selected=null!==o&&o.equals(h.date)),u.number!==h.date.month&&(h.hidden="hidden"===c||"collapsed"===c||r>1&&h.date.after(i[0].firstDate)&&h.date.before(i[r-1].lastDate))})})})}_updateState(e){const i=Object.assign({},this._state,e);let r=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(function iFe(t,n){if(n&&t&&n.before(t))throw new Error(`'maxDate' ${n} should be greater than 'minDate' ${t}`)}(i.minDate,i.maxDate),i.focusDate=i2(i.focusDate,i.minDate,i.maxDate),i.firstDate=i2(i.firstDate,i.minDate,i.maxDate),r=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(r=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=i2(i.focusDate,i.minDate,i.maxDate),r=i.focusDate,0!==i.months.length&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=i2(i.firstDate,i.minDate,i.maxDate),r=i.firstDate),r){const s=function lFe(t,n,e,i,r){const{displayMonths:o,months:s}=e,a=s.splice(0,s.length);return Array.from({length:o},(c,u)=>{const d=Object.assign(t.getNext(n,"m",u),{day:1});if(s[u]=null,!r){const h=a.findIndex(f=>f.firstDate.equals(d));-1!==h&&(s[u]=a.splice(h,1)[0])}return d}).forEach((c,u)=>{null===s[u]&&(s[u]=function cFe(t,n,e,i,r={}){const{dayTemplateData:o,minDate:s,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u,weekdayWidth:d,weekdaysVisible:h}=e,f=t.getToday();r.firstDate=null,r.lastDate=null,r.number=n.month,r.year=n.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],n=function uFe(t,n,e){const i=t.getDaysPerWeek(),r=new Zs(n.year,n.month,1),o=t.getWeekday(r)%i;return t.getPrev(r,"d",(i+o-e)%i)}(t,n,l),h||(r.weekdays.length=0);for(let p=0;pv.date),l),m.collapsed="collapsed"===u&&g[0].date.month!==r.number&&g[g.length-1].date.month!==r.number}return r}(t,c,e,i,a.shift()||{}))}),s}(this._calendar,r,i,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e);i.months=s,i.firstDate=s[0].firstDate,i.lastDate=s[s.length-1].lastDate,"selectedDate"in e&&!pO(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=r);const a=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,l=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;"select"===i.navigation?(("minDate"in e||"maxDate"in e||0===i.selectBoxes.years.length||a)&&(i.selectBoxes.years=function oFe(t,n,e){if(!t)return[];const i=n?Math.max(n.year,t.year-500):t.year-10,o=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,s=Array(o);for(let a=0;as===e.month);r=r.slice(o)}if(i&&n.year===i.year){const o=r.findIndex(s=>s===i.month);r=r.slice(0,o+1)}return r}(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},("arrows"===i.navigation||"select"===i.navigation)&&(l||a||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||function aFe(t,n,e){const i=Object.assign(t.getPrev(n,"m"),{day:1});return null!=e&&(i.year===e.year&&i.month(function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(Iv||(Iv={})),Iv))();let mFe=(()=>{class t{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return t.\u0275fac=function(e){return new(e||t)(he(vm))},t.\u0275cmp=$t({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,i){2&e&&jn("bg-primary",i.selected)("text-white",i.selected)("text-muted",i.isMuted())("outside",i.isMuted())("active",i.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[Is],attrs:iIe,decls:1,vars:1,template:function(e,i){1&e&&N(0),2&e&&kt(i.i18n.getDayNumerals(i.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),gFe=(()=>{class t{constructor(e,i){this.i18n=e,this._renderer=i,this.select=new it,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new Zs(this.date.year,Oa(e),1))}changeYear(e){this.select.emit(new Zs(Oa(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return t.\u0275fac=function(e){return new(e||t)(he(vm),he(aa))},t.\u0275cmp=$t({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,i){if(1&e&&(jo(rIe,7,Si),jo(oIe,7,Si)),2&e){let r;wn(r=Cn())&&(i.monthSelect=r.first),wn(r=Cn())&&(i.yearSelect=r.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[Is],decls:6,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.select-month:Select month`,e=$localize`:@@ngb.datepicker.select-month:Select month`,i=$localize`:@@ngb.datepicker.select-year:Select year`,r=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",n,"title",e,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",i,"title",r,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,i){1&e&&(b(0,"select",0,1),be("change",function(o){return i.changeMonth(o.target.value)}),Z(2,sIe,2,3,"option",2),x(),b(3,"select",3,4),be("change",function(o){return i.changeYear(o.target.value)}),Z(5,aIe,2,2,"option",2),x()),2&e&&(S("disabled",i.disabled),C(2),S("ngForOf",i.months),C(1),S("disabled",i.disabled),C(2),S("ngForOf",i.years))},dependencies:[Ln],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0}),t})(),vFe=(()=>{class t{constructor(e){this.i18n=e,this.navigation=Iv,this.months=[],this.navigate=new it,this.select=new it}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return t.\u0275fac=function(e){return new(e||t)(he(vm))},t.\u0275cmp=$t({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[Is],decls:8,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.previous-month:Previous month`,e=$localize`:@@ngb.datepicker.previous-month:Previous month`,i=$localize`:@@ngb.datepicker.next-month:Next month`,r=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",n,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",i,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,i){1&e&&(b(0,"div",0)(1,"button",1),be("click",function(o){return i.onClickPrev(o)}),ge(2,"span",2),x()(),Z(3,lIe,1,4,"ngb-datepicker-navigation-select",3),Z(4,hIe,1,1,null,4),b(5,"div",5)(6,"button",6),be("click",function(o){return i.onClickNext(o)}),ge(7,"span",2),x()()),2&e&&(C(1),S("disabled",i.prevDisabled),C(2),S("ngIf",i.showSelect),C(1),S("ngIf",!i.showSelect),C(2),S("disabled",i.nextDisabled))},dependencies:[_n,Ln,gFe],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0}),t})();var Or=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(Or||(Or={})),Or))();let yFe=(()=>{class t{processKey(e,i){const{state:r,calendar:o}=i;switch(e.which){case Or.PageUp:i.focusDate(o.getPrev(r.focusedDate,e.shiftKey?"y":"m",1));break;case Or.PageDown:i.focusDate(o.getNext(r.focusedDate,e.shiftKey?"y":"m",1));break;case Or.End:i.focusDate(e.shiftKey?r.maxDate:r.lastDate);break;case Or.Home:i.focusDate(e.shiftKey?r.minDate:r.firstDate);break;case Or.ArrowLeft:i.focusDate(o.getPrev(r.focusedDate,"d",1));break;case Or.ArrowUp:i.focusDate(o.getPrev(r.focusedDate,"d",o.getDaysPerWeek()));break;case Or.ArrowRight:i.focusDate(o.getNext(r.focusedDate,"d",1));break;case Or.ArrowDown:i.focusDate(o.getNext(r.focusedDate,"d",o.getDaysPerWeek()));break;case Or.Enter:case Or.Space:i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),gO=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=Vi.Short}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function _Fe(){return new bFe}()},providedIn:"root"}),t})(),bFe=(()=>{class t extends vO{fromModel(e){return e&&Qo(e.year)&&Qo(e.month)&&Qo(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&Qo(e.year)&&Qo(e.month)&&Qo(e.day)?{year:e.year,month:e.month,day:e.day}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),GU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0}),t})(),yO=(()=>{class t{constructor(e,i,r,o){this.i18n=e,this.datepicker=i,this._keyboardService=r,this._service=o}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}}return t.\u0275fac=function(e){return new(e||t)(he(vm),he(Mi(()=>s2)),he(yFe),he(mO))},t.\u0275cmp=$t({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,i){1&e&&be("keydown",function(o){return i.onKeyDown(o)})},inputs:{month:"month"},standalone:!0,features:[Is],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(Z(0,mIe,3,2,"div",0),Z(1,xIe,1,1,"ng-template",1)),2&e&&(S("ngIf",i.viewModel.weekdays.length>0),C(1),S("ngForOf",i.viewModel.weeks))},dependencies:[_n,Ln,Eu],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2}),t})(),s2=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this._service=e,this._calendar=i,this._i18n=r,this._elementRef=a,this._ngbDateAdapter=l,this._ngZone=c,this.injector=Fi(la),this._controlValue=null,this._destroyed$=new _r,this._publicState={},this.navigate=new it,this.dateSelect=new it,this.onChange=u=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(u=>this[u]=o[u]),e.dateSelect$.pipe(us(this._destroyed$)).subscribe(u=>{this.dateSelect.emit(u)}),e.model$.pipe(us(this._destroyed$)).subscribe(u=>{const d=u.firstDate,h=this.model?this.model.firstDate:null;this._publicState={maxDate:u.maxDate,minDate:u.minDate,firstDate:u.firstDate,lastDate:u.lastDate,focusedDate:u.focusDate,months:u.months.map(v=>v.firstDate)};let f=!1;if(!d.equals(h)&&(this.navigate.emit({current:h?{year:h.year,month:h.month}:null,next:{year:d.year,month:d.month},preventDefault:()=>f=!0}),f&&null!==h))return void this._service.open(h);const p=u.selectedDate,m=u.focusDate,g=this.model?this.model.focusDate:null;this.model=u,Ov(p,this._controlValue)&&(this._controlValue=p,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(p))),Ov(m,g)&&g&&u.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(e){this._service.focus(Zs.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Ks(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(Zs.from(e?e.day?e:{...e,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Ma(this._contentEl.nativeElement,"focusin"),i=Ma(this._contentEl.nativeElement,"focusout"),{nativeElement:r}=this._elementRef;Dt(e,i).pipe(cs(({target:o,relatedTarget:s})=>!(EU(o,"ngb-dp-day")&&EU(s,"ngb-dp-day")&&r.contains(o)&&r.contains(s))),us(this._destroyed$)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===o})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(r=>r in e).forEach(r=>i[r]=this[r]),this._service.set(i),"startDate"in e){const{currentValue:r,previousValue:o}=e.startDate;UU(o,r)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Iv.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Iv.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=Zs.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}return t.\u0275fac=function(e){return new(e||t)(he(mO),he(o2),he(vm),he(gO),he(Ns),he(Si),he(vO),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(e,i,r){if(1&e&&yi(r,GU,7),2&e){let o;wn(o=Cn())&&(i.contentTemplateFromContent=o.first)}},viewQuery:function(e,i){if(1&e&&(jo(wIe,7),jo(CIe,7)),2&e){let r;wn(r=Cn())&&(i._defaultDayTemplate=r.first),wn(r=Cn())&&(i._contentEl=r.first)}},hostVars:2,hostBindings:function(e,i){2&e&&jn("disabled",i.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[Qr([{provide:$l,useExisting:Mi(()=>t),multi:!0},mO]),ei,Is],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,i){if(1&e&&(Z(0,SIe,1,5,"ng-template",null,0,Uo),Z(2,TIe,1,1,"ng-template",null,1,Uo),b(4,"div",2),Z(5,EIe,1,7,"ngb-datepicker-navigation",3),x(),b(6,"div",4,5),Z(8,AIe,0,0,"ng-template",6),x(),Z(9,MIe,0,0,"ng-template",7)),2&e){const r=qs(3);C(5),S("ngIf","none"!==i.navigation),C(1),jn("ngb-dp-months",!i.contentTemplate),C(2),S("ngTemplateOutlet",i.contentTemplate||(null==i.contentTemplateFromContent?null:i.contentTemplateFromContent.templateRef)||r)("ngTemplateOutletContext",nr(7,kU,i))("ngTemplateOutletInjector",i.injector),C(1),S("ngTemplateOutlet",i.footerTemplate)}},dependencies:[_n,Ln,Eu,mFe,yO,vFe],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0}),t})();const a2=(t,n)=>!!n&&n.some(e=>e.contains(t)),WU=(t,n)=>!n||null!=function FNe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),xFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),wFe=t=>xFe?()=>setTimeout(()=>t(),100):t;function _O(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(wFe(()=>{const c=Ma(n,"keydown").pipe(us(r),cs(h=>h.which===Or.Escape),xs(h=>h.preventDefault())),u=Ma(n,"mousedown").pipe(vn(h=>{const f=h.target;return 2!==h.button&&!a2(f,s)&&("inside"===e?a2(f,o)&&WU(f,a):"outside"===e?!a2(f,o):WU(f,a)||!a2(f,o))}),us(r)),d=Ma(n,"mouseup").pipe(X3(u),cs(([h,f])=>f),J3(0),us(r));aU([c.pipe(vn(h=>0)),d.pipe(vn(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const qU=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function YU(t){const n=Array.from(t.querySelectorAll(qU)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}let CFe=(()=>{class t{constructor(e){this._element=e.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const SFe=/\s+/,kFe=/ +/gi,DFe={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},EFe=/^left/,AFe=/^right/,MFe=/^start/,OFe=/^end/;function JU({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split(SFe),o=i.findIndex(c=>"auto"===c);o>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==i.find(u=>-1!==u.search("^"+c))&&i.splice(o++,1,c)});const s=i.map(c=>function TFe(t,n){const[e,i]=DFe[t];return n&&i||e}(c,e.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const u=new RegExp(n+"(-[a-z]+)*","gi"),d=c.elements.popper,h=c.placement;let f=d.className;f=f.replace(u,""),f+=` ${function IFe(t,n){let[e,i]=n.split("-");const r=e.replace(EFe,"start").replace(AFe,"end");let o=[r];if(i){let s=i;("left"===e||"right"===e)&&(s=s.replace(MFe,"top").replace(OFe,"bottom")),o.push(`${r}-${s}`)}return t&&(o=o.map(s=>`${t}-${s}`)),o.join(" ")}(n,h)}`,f=f.trim().replace(kFe," "),d.className=f}},dOe,mOe,_Oe,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function KU(t){return t}function bO(){const t=Fi(CFe);let n=null;return{createPopper(e){if(!n){let r=(e.updatePopperOptions||KU)(JU(e,t));n=BOe(e.hostElement,e.targetElement,r)}},update(){n&&n.update()},setOptions(e){if(n){let r=(e.updatePopperOptions||KU)(JU(e,t));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}new Date(1882,10,12),new Date(2174,10,25);let sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[s2,yO]}),t})(),UFe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Wf=(()=>{class t{constructor(e,i){this.elementRef=e,this._renderer=i,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(e,i){2&e&&(Pl("tabIndex",i.disabled?-1:0),jn("disabled",i.disabled))},inputs:{disabled:"disabled"},standalone:!0}),t})(),qf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>ju)),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&yi(r,Wf,4),2&e){let o;wn(o=Cn())&&(i.menuItems=o)}},hostVars:4,hostBindings:function(e,i){1&e&&be("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&jn("dropdown-menu",!0)("show",i.dropdown.isOpen())},standalone:!0}),t})(),d2=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>ju)),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ut("aria-expanded",i.dropdown.isOpen())},standalone:!0}),t})(),bm=(()=>{class t extends d2{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>ju)),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&be("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ut("aria-expanded",i.dropdown.isOpen())},standalone:!0,features:[Qr([{provide:d2,useExisting:Mi(()=>t)}]),pi]}),t})(),ju=(()=>{class t{constructor(e,i,r,o,s,a){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._destroyCloseHandlers$=new _r,this._bodyContainer=null,this._open=!1,this.openChange=new it,this.placement=i.placement,this.popperOptions=i.popperOptions,this.container=i.container,this.autoClose=i.autoClose,this._positioning=bO(),this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic"}ngAfterContentInit(){this._ngZone.onStable.pipe(Ks(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),e.dropdownClass){const{currentValue:i,previousValue:r}=e.dropdownClass;this._applyCustomDropdownClass(i,r)}e.autoClose&&this._open&&(this.autoClose=e.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:e=>this.popperOptions(function ZU(t){return n=>(n.modifiers.push(UOe,{name:"offset",options:{offset:()=>t}}),n)}([0,2])(e))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),_O(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==Or.Space&&i!==Or.Enter){if(i!==Or.Tab){if(a||s){if(this.open(),r.length){switch(i){case Or.ArrowDown:o=Math.min(o+1,r.length-1);break;case Or.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case Or.Home:o=0;break;case Or.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(qU);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Ma(e.target,"focusout").pipe(Ks(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Ma(s,"click").pipe(Ks(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;this._menu&&e.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1055"),i.appendChild(o,r),i.appendChild(this._document.body,o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,i){const r="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;r&&(i&&this._renderer.removeClass(r,i),e&&this._renderer.addClass(r,e))}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown");const{nativeElement:s}=i;"static"===this.display?(i.placement=null,r.setAttribute(s,"data-bs-popper","static")):(i.placement=e,r.removeAttribute(s,"data-bs-popper"));const a=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,a);const l=this._bodyContainer;l&&(r.removeClass(l,"dropup"),r.removeClass(l,"dropdown"),r.addClass(l,a))}}}return t.\u0275fac=function(e){return new(e||t)(he(Ns),he(UFe),he(co),he(ir),he(Si),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(yi(r,qf,5),yi(r,d2,5)),2&e){let o;wn(o=Cn())&&(i._menu=o.first),wn(o=Cn())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&jn("show",i.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[ei]}),t})(),az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();class xm{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class zFe{constructor(n,e,i,r,o,s){this._componentType=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,o=this._ngZone.onStable.pipe(Ks(1),et(()=>Qs(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(n=!1){return this._windowRef?Qs(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(xs(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Rn(void 0)}_getContentRef(n,e){if(n){if(n instanceof oo){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new xm([i.rootNodes],i)}return new xm([[this._renderer.createText(`${n}`)]])}return new xm([])}}let GFe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Ks(1)).subscribe(()=>{Qs(this._zone,this._el.nativeElement,(e,i)=>{i&&Mv(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Qs(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(Fd("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),jn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Is],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class lz{update(n){}close(n){}dismiss(n){}}const WFe=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],qFe=["animation","backdropClass"];class YFe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new _r,this._dismissed=new _r,this._hidden=new _r,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}_applyWindowOptions(n,e){WFe.forEach(i=>{pm(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){qFe.forEach(i=>{pm(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(us(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(us(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function TU(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Rn(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),JC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var n_=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(n_||(n_={})),n_))();let XFe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new _r,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new it,this.shown=new _r,this.hidden=new _r}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":fm(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Ks(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=JC(Qs(this._zone,e,()=>e.classList.remove("show"),i),Qs(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};JC(Qs(this._zone,this._elRef.nativeElement,(o,s)=>{s&&Mv(o),o.classList.add("show")},e),Qs(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Ma(e,"keydown").pipe(us(this._closed$),cs(r=>r.which===Or.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(n_.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Ma(this._dialogEl.nativeElement,"mousedown").pipe(us(this._closed$),xs(()=>i=!1),uc(()=>Ma(e,"mouseup").pipe(us(this._closed$),Ks(1))),cs(({target:r})=>e===r)).subscribe(()=>{i=!0}),Ma(e,"click").pipe(us(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(n_.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=YU(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Qs(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(he(co),he(Si),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&jo(OIe,7),2&e){let r;wn(r=Cn())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ut("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Fd("modal d-block"+(i.windowClass?" "+i.windowClass:"")),jn("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Is],ngContentSelectors:Ky,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cf(),b(0,"div",0,1)(2,"div",2),Sf(3),x()()),2&e&&Fd("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),JFe=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(e>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=s),r.overflow=o}}}return t.\u0275fac=function(e){return new(e||t)(vt(co))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),KFe=(()=>{class t{constructor(e,i,r,o,s,a,l){this._applicationRef=e,this._injector=i,this._environmentInjector=r,this._document=o,this._scrollBar=s,this._rendererFactory=a,this._ngZone=l,this._activeWindowCmptHasChanged=new _r,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new it,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Ma(n,"focusin").pipe(us(e),vn(o=>o.target));Ma(n,"keydown").pipe(us(e),cs(o=>o.which===Or.Tab),X3(r)).subscribe(([o,s])=>{const[a,l]=YU(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Ma(n,"click").pipe(us(e),X3(r),vn(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){const o=r.container instanceof HTMLElement?r.container:pm(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new lz,l=(e=r.injector||e).get(Lc,null)||this._environmentInjector,c=this._getContentRef(e,l,i,a,r);let u=!1!==r.backdrop?this._attachBackdrop(o):void 0,d=this._attachWindowComponent(o,c.nodes),h=new YFe(d,c,u,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(Ks(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=f=>{h.close(f)},a.dismiss=f=>{h.dismiss(f)},a.update=f=>{h.update(f)},h.update(r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=UA(GFe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=UA(XFe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_getContentRef(e,i,r,o,s){return r?r instanceof oo?this._createFromTemplateRef(r,o):fm(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new xm([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new xm([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new xm([[i]])}_createFromComponent(e,i,r,o,s){const l=UA(r,{environmentInjector:i,elementInjector:la.create({providers:[{provide:lz,useValue:o}],parent:e})}),c=l.location.nativeElement;return s.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new xm([[c]],l.hostView,l)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(vt(Ph),vt(la),vt(Lc),vt(co),vt(JFe),vt(zg),vt(ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),SO=(()=>{class t{constructor(e,i,r){this._injector=e,this._modalStack=i,this._config=r}open(e,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(vt(la),vt(KFe),vt(QFe))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[SO]}),t})(),ZFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const uz=t=>pm(t)&&""!==t;let ePe=0,dz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbNavContent",""]],standalone:!0}),t})(),Wh=(()=>{class t{constructor(e,i){this._nav=e,this.elementRef=i,this.disabled=!1,this.shown=new it,this.hidden=new it}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){pm(this.domId)||(this.domId="ngb-nav-"+ePe++)}get active(){return this._nav.activeId===this.id}get id(){return uz(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(pm(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(he(Mi(()=>Ud)),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&yi(r,dz,4),2&e){let o;wn(o=Cn())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&jn("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0}),t})(),Ud=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new it,this.shown=new it,this.hidden=new it,this.destroy$=new _r,this.navItemChange$=new _r,this.navChange=new it,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case Or.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case Or.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case Or.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case Or.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case Or.Home:s=0;break;case Or.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!pm(this.activeId)){const e=this.items.first?this.items.first.id:null;uz(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(us(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(wf("role"),he(ZFe),he(Ns),he(co))},t.\u0275dir=sn({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(yi(r,Wh,4),yi(r,Yf,5)),2&e){let o;wn(o=Cn())&&(i.items=o),wn(o=Cn())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&be("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ut("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),jn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[ei]}),t})(),Yf=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(wf("role"),he(Wh),he(Ud),he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(e,i){2&e&&(Pl("id",i.navItem.domId),ut("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),jn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))},standalone:!0}),t})(),i_=(()=>{class t{constructor(e,i){this.navItem=e,this.nav=i}}return t.\u0275fac=function(e){return new(e||t)(he(Wh),he(Ud))},t.\u0275dir=sn({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostBindings:function(e,i){1&e&&be("click",function(o){return i.nav.click(i.navItem),o.preventDefault()})},standalone:!0,features:[z1([Yf])]}),t})();const iPe=({classList:t})=>(t.remove("show"),()=>t.remove("active")),rPe=(t,n)=>{n&&Mv(t),t.classList.add("show")};let kO=(()=>{class t{constructor(e){this.elRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275dir=sn({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,i){2&e&&(Pl("id",i.item.panelDomId),ut("role",i.role?i.role:i.nav.roles?"tabpanel":void 0)("aria-labelledby",i.item.domId),jn("fade",i.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0}),t})(),hz=(()=>{class t{constructor(e,i){this._cd=e,this._ngZone=i,this._activePane=null}isPanelTransitioning(e){return this._activePane?.item===e}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(us(this.nav.destroy$),sC(this._activePane?.item||null),XC(),function L3e(t){return n=>n.lift(new $3e(t))}(1)).subscribe(e=>{const i={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Qs(this._ngZone,this._activePane.elRef.nativeElement,iPe,i).subscribe(()=>{const r=this._activePane?.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),Qs(this._ngZone,this._activePane.elRef.nativeElement,rPe,i).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.elRef.nativeElement.classList.add("show"),this._activePane?.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(i=>i.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(he(Ns),he(ir))},t.\u0275cmp=$t({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,i){if(1&e&&jo(kO,5),2&e){let r;wn(r=Cn())&&(i._panes=r)}},hostVars:2,hostBindings:function(e,i){2&e&&jn("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},standalone:!0,features:[Is],attrs:IIe,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&Z(0,PIe,1,1,"ng-template",0),2&e&&S("ngForOf",i.nav.items)},dependencies:[kO,Ln,_n,Eu],encapsulation:2,changeDetection:0}),t})(),fz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[hz]}),t})(),oPe=(()=>{class t{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),pz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]],standalone:!0}),t})(),mz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationFirst",""]],standalone:!0}),t})(),gz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationLast",""]],standalone:!0}),t})(),vz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationNext",""]],standalone:!0}),t})(),yz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationNumber",""]],standalone:!0}),t})(),_z=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]],standalone:!0}),t})(),bz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["ng-template","ngbPaginationPages",""]],standalone:!0}),t})(),xz=(()=>{class t{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new it(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),i0&&this.pageCount>this.maxSize){let i=0,r=this.pageCount;[i,r]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(i,r),this._applyEllipses(i,r)}}}return t.\u0275fac=function(e){return new(e||t)(he(oPe))},t.\u0275cmp=$t({type:t,selectors:[["ngb-pagination"]],contentQueries:function(e,i,r){if(1&e&&(yi(r,pz,5),yi(r,mz,5),yi(r,gz,5),yi(r,vz,5),yi(r,yz,5),yi(r,_z,5),yi(r,bz,5)),2&e){let o;wn(o=Cn())&&(i.tplEllipsis=o.first),wn(o=Cn())&&(i.tplFirst=o.first),wn(o=Cn())&&(i.tplLast=o.first),wn(o=Cn())&&(i.tplNext=o.first),wn(o=Cn())&&(i.tplNumber=o.first),wn(o=Cn())&&(i.tplPrevious=o.first),wn(o=Cn())&&(i.tplPages=o.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},standalone:!0,features:[ei,Is],decls:20,vars:12,consts:function(){let n,e,i,r,o,s,a,l;return n=$localize`:@@ngb.pagination.first:««`,e=$localize`:@@ngb.pagination.previous:«`,i=$localize`:@@ngb.pagination.next:»`,r=$localize`:@@ngb.pagination.last:»»`,o=$localize`:@@ngb.pagination.first-aria:First`,s=$localize`:@@ngb.pagination.previous-aria:Previous`,a=$localize`:@@ngb.pagination.next-aria:Next`,l=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],n,e,i,r,["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"],["aria-label",l,"href","",1,"page-link",3,"click"]]},template:function(e,i){if(1&e&&(Z(0,jIe,2,0,"ng-template",null,0,Uo),Z(2,RIe,2,0,"ng-template",null,1,Uo),Z(4,LIe,2,0,"ng-template",null,2,Uo),Z(6,$Ie,2,0,"ng-template",null,3,Uo),Z(8,BIe,1,0,"ng-template",null,4,Uo),Z(10,VIe,1,1,"ng-template",null,5,Uo),Z(12,XIe,1,1,"ng-template",null,6,Uo),b(14,"ul"),Z(15,KIe,3,9,"li",7),Z(16,eNe,3,8,"li",7),Z(17,tNe,0,0,"ng-template",8),Z(18,iNe,3,9,"li",7),Z(19,oNe,3,9,"li",7),x()),2&e){const r=qs(13);C(14),Fd("pagination"+(i.size?" pagination-"+i.size:"")),C(1),S("ngIf",i.boundaryLinks),C(1),S("ngIf",i.directionLinks),C(1),S("ngTemplateOutlet",(null==i.tplPages?null:i.tplPages.templateRef)||r)("ngTemplateOutletContext",ey(8,sNe,i.page,i.pages,i.disabled)),C(1),S("ngIf",i.directionLinks),C(1),S("ngIf",i.boundaryLinks)}},dependencies:[_n,Ln,Eu],encapsulation:2,changeDetection:0}),t})(),wz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[xz]}),t})();class sPe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const aPe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Cz=t=>t>0?J3(t):n=>n;let Sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})(),hPe=(()=>{class t{constructor(){this.max=100,this.animated=!1,this.ariaLabel="progress bar",this.striped=!1,this.showValue=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fPe=(()=>{class t{constructor(e){this.value=0,this.max=e.max,this.animated=e.animated,this.ariaLabel=e.ariaLabel,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}set max(e){this._max=!ds(e)||e<=0?100:e}get max(){return this._max}getValue(){return t2(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}}return t.\u0275fac=function(e){return new(e||t)(he(hPe))},t.\u0275cmp=$t({type:t,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:5,hostBindings:function(e,i){2&e&&(ut("aria-valuenow",i.getValue())("aria-valuemax",i.max)("aria-label",i.ariaLabel),tr("height",i.height))},inputs:{max:"max",animated:"animated",ariaLabel:"ariaLabel",striped:"striped",showValue:"showValue",textType:"textType",type:"type",value:"value",height:"height"},standalone:!0,features:[Is],ngContentSelectors:Ky,decls:3,vars:11,consts:function(){let n;return n=$localize`:@@ngb.progressbar.value:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[4,"ngIf"],n]},template:function(e,i){1&e&&(Cf(),b(0,"div"),Z(1,cNe,3,3,"span",0),Sf(2),x()),2&e&&(function B6(t,n,e,i,r){ku(nc,Pd,Kg(zt(),t,n,e,i,r),!0)}("progress-bar",i.type?i.textType?" bg-"+i.type:" text-bg-"+i.type:"","",i.textType?" text-"+i.textType:"",""),tr("width",i.getPercentValue(),"%"),jn("progress-bar-animated",i.animated)("progress-bar-striped",i.striped),C(1),S("ngIf",i.showValue))},dependencies:[_n,d7],encapsulation:2,changeDetection:0}),t})(),kz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[fPe]}),t})(),pPe=(()=>{class t{constructor(){this.max=10,this.readonly=!1,this.resettable=!1,this.tabindex=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mPe=(()=>{class t{constructor(e,i){this._changeDetectorRef=i,this.contexts=[],this.disabled=!1,this.hover=new it,this.leave=new it,this.rateChange=new it(!0),this.onChange=r=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly,this.tabindex=e.tabindex}ariaValueText(e,i){return`${e} out of ${i}`}isInteractive(){return!this.readonly&&!this.disabled}enter(e){this.isInteractive()&&this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.isInteractive()&&this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case Or.ArrowDown:case Or.ArrowLeft:this.update(this.rate-1);break;case Or.ArrowUp:case Or.ArrowRight:this.update(this.rate+1);break;case Or.Home:this.update(0);break;case Or.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate),e.max&&this._updateMax()}ngOnInit(){this._setupContexts(),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,i=!0){const r=t2(e,this.max,0);this.isInteractive()&&this.rate!==r&&(this.rate=r,this.rateChange.emit(this.rate)),i&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}_updateState(e){this.nextRate=e,this.contexts.forEach((i,r)=>i.fill=Math.round(100*t2(e-r,1,0)))}_updateMax(){this.max>0&&(this._setupContexts(),this.update(this.rate))}_setupContexts(){this.contexts=Array.from({length:this.max},(e,i)=>({fill:0,index:i}))}}return t.\u0275fac=function(e){return new(e||t)(he(pPe),he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["ngb-rating"]],contentQueries:function(e,i,r){if(1&e&&yi(r,oo,5),2&e){let o;wn(o=Cn())&&(i.starTemplateFromContent=o.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(e,i){1&e&&be("blur",function(){return i.handleBlur()})("keydown",function(o){return i.handleKeyDown(o)})("mouseleave",function(){return i.reset()}),2&e&&(Pl("tabindex",i.disabled?-1:i.tabindex),ut("aria-valuemax",i.max)("aria-valuenow",i.nextRate)("aria-valuetext",i.ariaValueText(i.nextRate,i.max))("aria-disabled",!!i.readonly||null))},inputs:{max:"max",rate:"rate",readonly:"readonly",resettable:"resettable",starTemplate:"starTemplate",tabindex:"tabindex",ariaValueText:"ariaValueText"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},standalone:!0,features:[Qr([{provide:$l,useExisting:Mi(()=>t),multi:!0}]),ei,Is],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"visually-hidden"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(Z(0,uNe,1,1,"ng-template",null,0,Uo),Z(2,hNe,4,5,"ng-template",1)),2&e&&(C(2),S("ngForOf",i.contexts))},dependencies:[Ln,Eu],encapsulation:2,changeDetection:0}),t})(),Dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[mPe]}),t})();class Tz{constructor(n,e,i){this.hour=Oa(n),this.minute=Oa(e),this.second=Oa(i)}changeHour(n=1){this.updateHour((isNaN(this.hour)?0:this.hour)+n)}updateHour(n){this.hour=ds(n)?(n<0?24+n:n)%24:NaN}changeMinute(n=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+n)}updateMinute(n){ds(n)?(this.minute=n%60<0?60+n%60:n%60,this.changeHour(Math.floor(n/60))):this.minute=NaN}changeSecond(n=1){this.updateSecond((isNaN(this.second)?0:this.second)+n)}updateSecond(n){ds(n)?(this.second=n<0?60+n%60:n%60,this.changeMinute(Math.floor(n/60))):this.second=NaN}isValid(n=!0){return ds(this.hour)&&ds(this.minute)&&(!n||ds(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let gPe=(()=>{class t{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function vPe(){return new yPe}()},providedIn:"root"}),t})(),yPe=(()=>{class t extends Ez{fromModel(e){return e&&Qo(e.hour)&&Qo(e.minute)?{hour:e.hour,minute:e.minute,second:Qo(e.second)?e.second:null}:null}toModel(e){return e&&Qo(e.hour)&&Qo(e.minute)?{hour:e.hour,minute:e.minute,second:Qo(e.second)?e.second:null}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),Az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function _Pe(t){return new bPe(t)}(vt(ac)),i},providedIn:"root"}),t})(),bPe=(()=>{class t extends Az{constructor(e){super(),this._periods=GB(e,Ro.Standalone,Vi.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return t.\u0275fac=function(e){return new(e||t)(vt(ac))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const xPe=/[^0-9]/g;let wPe=(()=>{class t{constructor(e,i,r,o){this._config=e,this._ngbTimeAdapter=i,this._cd=r,this.i18n=o,this.onChange=s=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=Qo(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=Qo(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=Qo(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const i=this._ngbTimeAdapter.fromModel(e);this.model=i?new Tz(i.hour,i.minute,i.second):new Tz,!this.seconds&&(!i||!ds(i.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model?.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model?.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model?.changeSecond(e),this.propagateModelChange()}updateHour(e){const i=!!this.model&&this.model.hour>=12,r=Oa(e);this.model?.updateHour(this.meridian&&(i&&r<12||!i&&12===r)?r+12:r),this.propagateModelChange()}updateMinute(e){this.model?.updateMinute(Oa(e)),this.propagateModelChange()}updateSecond(e){this.model?.updateSecond(Oa(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(xPe,"")}formatHour(e){return ds(e)?Av(this.meridian?e%12==0?12:e%12:e%24):Av(NaN)}formatMinSec(e){return Av(ds(e)?e:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!ds(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model?.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return t.\u0275fac=function(e){return new(e||t)(he(gPe),he(Ez),he(Ns),he(Az))},t.\u0275cmp=$t({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},exportAs:["ngbTimepicker"],standalone:!0,features:[Qr([{provide:$l,useExisting:Mi(()=>t),multi:!0}]),ei,Is],decls:16,vars:25,consts:function(){let n,e,i,r,o,s,a,l,c,u,d,h,f,p;return n=$localize`:@@ngb.timepicker.HH:HH`,e=$localize`:@@ngb.timepicker.hours:Hours`,i=$localize`:@@ngb.timepicker.MM:MM`,r=$localize`:@@ngb.timepicker.minutes:Minutes`,o=$localize`:@@ngb.timepicker.increment-hours:Increment hours`,s=$localize`:@@ngb.timepicker.decrement-hours:Decrement hours`,a=$localize`:@@ngb.timepicker.increment-minutes:Increment minutes`,l=$localize`:@@ngb.timepicker.decrement-minutes:Decrement minutes`,c=$localize`:@@ngb.timepicker.SS:SS`,u=$localize`:@@ngb.timepicker.seconds:Seconds`,d=$localize`:@@ngb.timepicker.increment-seconds:Increment seconds`,h=$localize`:@@ngb.timepicker.decrement-seconds:Decrement seconds`,f=$localize`:@@ngb.timepicker.PM:${"\ufffd0\ufffd"}:INTERPOLATION:`,p=$localize`:@@ngb.timepicker.AM:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",e,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",i,"aria-label",r,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"visually-hidden"],o,[1,"chevron","ngb-tp-chevron","bottom"],s,a,l,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",c,"aria-label",u,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],d,h,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],f,p]},template:function(e,i){1&e&&(b(0,"fieldset",0)(1,"div",1)(2,"div",2),Z(3,fNe,4,7,"button",3),b(4,"input",4),be("change",function(o){return i.updateHour(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeHour(i.hourStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeHour(-i.hourStep),o.preventDefault()}),x(),Z(5,pNe,4,7,"button",3),x(),b(6,"div",5),N(7,":"),x(),b(8,"div",6),Z(9,mNe,4,7,"button",3),b(10,"input",7),be("change",function(o){return i.updateMinute(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeMinute(i.minuteStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeMinute(-i.minuteStep),o.preventDefault()}),x(),Z(11,gNe,4,7,"button",3),x(),Z(12,vNe,2,0,"div",8),Z(13,bNe,4,9,"div",9),Z(14,xNe,1,0,"div",8),Z(15,SNe,5,9,"div",10),x()()),2&e&&(jn("disabled",i.disabled),S("disabled",i.disabled),C(3),S("ngIf",i.spinners),C(1),jn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatHour(null==i.model?null:i.model.hour))("readOnly",i.readonlyInputs)("disabled",i.disabled),C(1),S("ngIf",i.spinners),C(4),S("ngIf",i.spinners),C(1),jn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatMinSec(null==i.model?null:i.model.minute))("readOnly",i.readonlyInputs)("disabled",i.disabled),C(1),S("ngIf",i.spinners),C(1),S("ngIf",i.seconds),C(1),S("ngIf",i.seconds),C(1),S("ngIf",i.meridian),C(1),S("ngIf",i.meridian))},dependencies:[_n],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}\n'],encapsulation:2}),t})(),Mz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[wPe]}),t})();const CPe=(t,n)=>{const{classList:e}=t;if(n)return e.add("fade"),Mv(t),e.add("show","showing"),()=>{e.remove("showing")};e.add("show")},SPe=({classList:t})=>(t.add("showing"),()=>{t.remove("show","showing")});let kPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),DPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sn({type:t,selectors:[["","ngbToastHeader",""]],standalone:!0}),t})(),TPe=(()=>{class t{constructor(e,i,r,o){this.ariaLive=e,this._zone=r,this._element=o,this.contentHeaderTpl=null,this.shown=new it,this.hidden=new it,null==this.ariaLive&&(this.ariaLive=i.ariaLive),this.delay=i.delay,this.autohide=i.autohide,this.animation=i.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(Ks(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const e=Qs(this._zone,this._element.nativeElement,SPe,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){const e=Qs(this._zone,this._element.nativeElement,CPe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}return t.\u0275fac=function(e){return new(e||t)(wf("aria-live"),he(kPe),he(ir),he(Si))},t.\u0275cmp=$t({type:t,selectors:[["ngb-toast"]],contentQueries:function(e,i,r){if(1&e&&yi(r,DPe,7,oo),2&e){let o;wn(o=Cn())&&(i.contentHeaderTpl=o.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(e,i){2&e&&(ut("aria-live",i.ariaLive),jn("fade",i.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[ei,Is],ngContentSelectors:Ky,decls:5,vars:1,consts:function(){let n;return n=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Cf(),Z(0,kNe,2,1,"ng-template",null,0,Uo),Z(2,TNe,3,1,"ng-template",1),b(3,"div",2),Sf(4),x()),2&e&&(C(2),S("ngIf",i.contentHeaderTpl||i.header))},dependencies:[_n,Eu],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2}),t})(),Oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[TPe]}),t})(),EPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(vt(zf))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),APe=0,MPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(e,i){2&e&&(Pl("id",i.id),Fd("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),jn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[Is],ngContentSelectors:Ky,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Cf(),ge(0,"div",0),b(1,"div",1),Sf(2),x())},encapsulation:2,changeDetection:0}),t})(),OPe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u){this._elementRef=e,this._renderer=i,this._ngZone=a,this._document=l,this._changeDetector=c,this.shown=new it,this.hidden=new it,this._ngbTooltipWindowId="ngb-tooltip-"+APe++,this._windowRef=null,this.animation=s.animation,this.autoClose=s.autoClose,this.placement=s.placement,this.popperOptions=s.popperOptions,this.triggers=s.triggers,this.container=s.container,this.disableTooltip=s.disableTooltip,this.tooltipClass=s.tooltipClass,this.openDelay=s.openDelay,this.closeDelay=s.closeDelay,this._popupService=new zFe(MPe,r,o,i,this._ngZone,u),this._positioning=bO()}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:o=>this.popperOptions(o)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),_O(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(e=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(e).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function dPe(t,n,e,i,r,o,s=0,a=0){const l=function lPe(t,n=aPe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new sPe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function cPe(t,n,e,i){return new en(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function uPe(t,n,e){return i=>{let r=null;const o=i.pipe(vn(l=>({open:l})),cs(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),Ge());return Dt(o.pipe(cs(l=>l.open),Cz(t)),o.pipe(cs(l=>!l.open),Cz(n))).pipe(cs(l=>l===r&&(r=null,l.open!==e())),vn(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(fm(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa),he(la),he(jl),he(EPe),he(ir),he(co),he(Ns),he(Ph))},t.\u0275dir=sn({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[ei]}),t})(),Iz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})(),IPe=(()=>{class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const i=DU(this.result),r=Array.isArray(this.term)?this.term:[this.term],o=c=>this.accentSensitive?c:AU(c),s=r.map(c=>function NNe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(o(DU(c)))).filter(c=>c),a=this.accentSensitive?i:AU(i),l=s.length?a.split(new RegExp(`(${s.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=l;else{let c=0;this.parts=l.map(u=>i.substring(c,c+=u.length))}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[ei,Is],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,i){1&e&&Z(0,MNe,3,2,"ng-template",0),2&e&&S("ngForOf",i.parts)},dependencies:[_n,Ln],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0}),t})();new Vn("live announcer delay",{providedIn:"root",factory:function NPe(){return 100}});let Nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[IPe]}),t})(),Fz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({}),t})();const FPe=[LU,$U,VU,HU,sz,az,cz,fz,Fz,wz,Sz,kz,Dz,Mz,Oz,Iz,Nz];let PPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[FPe,LU,$U,VU,HU,sz,az,cz,fz,Fz,wz,Sz,kz,Dz,Mz,Oz,Iz,Nz]}),t})(),Pz=(()=>{class t{restrictedPages=new Map([["users",ii.USER_ROLE_ADMIN],["config",ii.USER_ROLE_DEVELOPER],["modules",ii.USER_ROLE_DEVELOPER],["apiexplorer",ii.USER_ROLE_DEVELOPER]]);static \u0275fac=function(i){return new(i||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jPe(t,n){if(1&t&&(oc(0,5),b(1,"a",27),ge(2,"img",28),b(3,"span",12),N(4),x()(),sc()),2&t){const e=B().$implicit;S("ngbNavItem",e.navItem),C(1),S("routerLink",e.routerLink),C(1),Jp("src","/static/svg/",e.icon,".svg",L1),C(2),kt(e.label)}}function RPe(t,n){1&t&&ge(0,"hr")}function LPe(t,n){if(1&t&&(Z(0,jPe,5,4,"ng-container",26),Z(1,RPe,1,0,"hr",25)),2&t){const e=n.$implicit;S("ngIf",B().getSessionRole()<=e.minRole),C(1),S("ngIf",e.separator)}}function $Pe(t,n){if(1&t&&(b(0,"div",29)(1,"h2",30),ge(2,"img",31),N(3,"An error has occurred!"),x(),b(4,"h6",32),N(5),x(),b(6,"p"),N(7,"Please refresh the page to try again."),x()()),2&t){const e=B();C(5),kt(e.error)}}function BPe(t,n){1&t&&(b(0,"div",33),ge(1,"img",34),x())}function VPe(t,n){1&t&&ge(0,"router-outlet")}const HPe=function(){return["/"]},UPe=function(){return["/login"]};let zPe=(()=>{class t{route;router;segment;consoleService;authService;routerSub;segmentRouterSub;loading=!0;error="";routes=[{navItem:"status",routerLink:["/status"],label:"Status",minRole:ii.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:ii.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:ii.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:ii.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:ii.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:ii.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:ii.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:ii.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:ii.USER_ROLE_READONLY,icon:"chat"},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:ii.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:ii.USER_ROLE_DEVELOPER,icon:"api-explorer"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.segment=r,this.consoleService=o,this.authService=s,this.loading=!1,this.routerSub=this.router.events.pipe(function h3e(t){let n=arguments.length,e=YC;_a(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new f3e(t,i,r,e))}}(2e3)).subscribe(a=>{if(0===a.length)return;const l=a[a.length-1];l instanceof mC&&(this.loading=!0),l instanceof Uh&&(this.loading=!1),l instanceof Sy&&(this.loading=!1),l instanceof vC&&(this.loading=!1,this.error=l.error)}),this.segmentRouterSub=i.events.pipe(XC((a,l)=>!(l instanceof Uh)||a.url===l.url)).subscribe(a=>{a&&r.page(a.url)})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(UC),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:40,vars:11,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","https://cloud.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/docs","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(i,r){1&i&&(b(0,"div",0)(1,"div",1)(2,"nav",2,3),be("navChange",function(s){return r.onSidebarNavChange(s)}),b(4,"div",4),oc(5,5),b(6,"a",6),ge(7,"img",7)(8,"img",8),x(),sc(),ge(9,"hr"),Z(10,LPe,2,2,"ng-template",9),ge(11,"hr"),b(12,"a",10),ge(13,"img",11),b(14,"span",12),N(15,"Heroic Cloud"),x()(),b(16,"a",13),ge(17,"img",14),b(18,"span",12),N(19,"Documentation"),x()(),b(20,"a",15),ge(21,"img",16),b(22,"span",12),N(23,"Forum"),x()(),b(24,"a",17),ge(25,"img",18),b(26,"span",12),N(27,"Heroic Labs Blog"),x()(),ge(28,"hr"),b(29,"div",19),N(30),x(),oc(31,5),b(32,"a",20),be("click",function(){return r.logout()}),ge(33,"img",21),b(34,"span",12),N(35,"Logout"),x()(),sc(),x()(),b(36,"main",22),Z(37,$Pe,8,1,"div",23),Z(38,BPe,2,0,"div",24),Z(39,VPe,1,0,"router-outlet",25),x()()()),2&i&&(C(5),S("ngbNavItem","logo"),C(1),S("routerLink",pl(9,HPe)),C(4),S("ngForOf",r.routes),C(20),yn("Logged in as: ",r.getUsername(),""),C(1),S("ngbNavItem","logout"),C(1),S("routerLink",pl(10,UPe)),C(5),S("ngIf",r.error),C(1),S("ngIf",!r.error&&r.loading),C(1),S("ngIf",!r.error&&!r.loading))},dependencies:[am,Mu,Iy,Ln,_n,Ud,Wh,i_,Yf],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})}return t})(),GPe=(()=>{class t{authService;router;globals;constructor(e,i,r){this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||la.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class JPe extends XPe{}"function"==typeof SuppressedError&&SuppressedError;class xje{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new wje(n,this.dueTime,this.scheduler))}}class wje extends F{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Cje,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function Cje(t){t.debouncedNext()}function Sje(){}function OO(t){return null==t?Sje:function(){return this.querySelector(t)}}function Dje(){return[]}function $z(t){return null==t?Dje:function(){return this.querySelectorAll(t)}}function Bz(t){return function(){return this.matches(t)}}function Vz(t){return new Array(t.length)}function h2(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}h2.prototype={constructor:h2,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Hz="$";function Oje(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var IO="http://www.w3.org/1999/xhtml";const Uz={svg:"http://www.w3.org/2000/svg",xhtml:IO,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function f2(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Uz.hasOwnProperty(n)?{space:Uz[n],local:t}:t}function Wje(t){return function(){this.removeAttribute(t)}}function qje(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yje(t,n){return function(){this.setAttribute(t,n)}}function Xje(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Jje(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Kje(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function zz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Zje(t){return function(){this.style.removeProperty(t)}}function e4e(t,n,e){return function(){this.style.setProperty(t,n,e)}}function t4e(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function Fv(t,n){return t.style.getPropertyValue(n)||zz(t).getComputedStyle(t,null).getPropertyValue(n)}function i4e(t){return function(){delete this[t]}}function r4e(t,n){return function(){this[t]=n}}function o4e(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Gz(t){return t.trim().split(/^|\s+/)}function NO(t){return t.classList||new Wz(t)}function Wz(t){this._node=t,this._names=Gz(t.getAttribute("class")||"")}function qz(t,n){for(var e=NO(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Jz={},Rr=null;function P4e(t,n,e){return t=Kz(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function Kz(t,n,e){return function(i){var r=Rr;Rr=i;try{t.call(this,this.__data__,n,e)}finally{Rr=r}}}function R4e(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=_&&(_=y+1);!(k=g[_])&&++_=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function Lje(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=$je);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?Zje:"function"==typeof n?t4e:e4e)(t,n,e??"")):Fv(this.node(),t)},property:function s4e(t,n){return arguments.length>1?this.each((null==n?i4e:"function"==typeof n?o4e:r4e)(t,n)):this.node()[t]},classed:function u4e(t,n){var e=Gz(t+"");if(arguments.length<2){for(var i=NO(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?L4e:R4e,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?g2(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?g2(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=J4e.exec(t))?new gc(n[1],n[2],n[3],1):(n=K4e.exec(t))?new gc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Q4e.exec(t))?g2(n[1],n[2],n[3],n[4]):(n=Z4e.exec(t))?g2(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=eRe.exec(t))?dG(n[1],n[2]/100,n[3]/100,1):(n=tRe.exec(t))?dG(n[1],n[2]/100,n[3]/100,n[4]):oG.hasOwnProperty(t)?lG(oG[t]):"transparent"===t?new gc(NaN,NaN,NaN,0):null}function lG(t){return new gc(t>>16&255,t>>8&255,255&t,1)}function g2(t,n,e,i){return i<=0&&(t=n=e=NaN),new gc(t,n,e,i)}function c_(t,n,e,i){return 1===arguments.length?function iRe(t){return t instanceof s_||(t=wm(t)),t?new gc((t=t.rgb()).r,t.g,t.b,t.opacity):new gc}(t):new gc(t,n,e,i??1)}function gc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function cG(){return"#"+jO(this.r)+jO(this.g)+jO(this.b)}function uG(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function jO(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function dG(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Gd(t,n,e,i)}function hG(t){if(t instanceof Gd)return new Gd(t.h,t.s,t.l,t.opacity);if(t instanceof s_||(t=wm(t)),!t)return new Gd;if(t instanceof Gd)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Gd(s,a,l,t.opacity)}function Gd(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function RO(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function fG(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function LO(t){return function(){return t}}function mG(t,n){var e=n-t;return e?function pG(t,n){return function(e){return t+e*n}}(t,e):LO(isNaN(t)?n:t)}PO(s_,wm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:sG,formatHex:sG,formatHsl:function nRe(){return hG(this).formatHsl()},formatRgb:aG,toString:aG}),PO(gc,c_,rG(s_,{brighter:function(t){return t=null==t?m2:Math.pow(m2,t),new gc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new gc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cG,formatHex:cG,formatRgb:uG,toString:uG})),PO(Gd,function rRe(t,n,e,i){return 1===arguments.length?hG(t):new Gd(t,n,e,i??1)},rG(s_,{brighter:function(t){return t=null==t?m2:Math.pow(m2,t),new Gd(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Gd(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new gc(RO(t>=240?t-240:t+120,r,i),RO(t,r,i),RO(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const v2=function t(n){var e=function lRe(t){return 1==(t=+t)?mG:function(n,e){return e-n?function aRe(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):LO(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=c_(r)).r,(o=c_(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=mG(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function gG(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return fG((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Ru(i,r)})),e=BO.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--jv}()}finally{jv=0,function bRe(){for(var t,e,n=y2,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:y2=e);h_=t,VO(i)}(),Sm=0}}function _Re(){var t=f_.now(),n=t-_2;n>xG&&(b2-=n,_2=t)}function VO(t){jv||(u_&&(u_=clearTimeout(u_)),t-Sm>24?(t<1/0&&(u_=setTimeout(SG,t-f_.now()-b2)),d_&&(d_=clearInterval(d_))):(d_||(_2=f_.now(),d_=setInterval(_Re,xG)),jv=1,wG(SG)))}function kG(t,n,e){var i=new w2;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}w2.prototype=CG.prototype={constructor:w2,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?x2():+e)+(null==n?0:+n),!this._next&&h_!==this&&(h_?h_._next=this:y2=this,h_=this),this._call=t,this._time=e,VO()},stop:function(){this._call&&(this._call=null,this._time=1/0,VO())}};var xRe=iG("start","end","cancel","interrupt"),wRe=[],DG=0,TG=1,HO=2,C2=3,EG=4,UO=5,S2=6;function k2(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function CRe(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==TG)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===C2)return kG(s);f.state===EG?(f.state=S2,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uDG)throw new Error("too late; already scheduled");return e}function qh(t,n){var e=Lu(t,n);if(e.state>C2)throw new Error("too late; already running");return e}function Lu(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function GO(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>HO&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Ru(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Ru(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Ru(c,d)},{i:m-2,x:Ru(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?zO:qh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function LRe(t,n){var e=f2(t),i="transform"===e?ERe:NG;return this.attrTween(t,"function"==typeof n?(e.local?RRe:jRe)(e,i,YO(this,"attr."+t,n)):null==n?(e.local?NRe:IRe)(e):(e.local?PRe:FRe)(e,i,n))},attrTween:function URe(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=f2(t);return this.tween(e,(i.local?VRe:HRe)(i,n))},style:function fLe(t,n,e){var i="transform"==(t+="")?TRe:NG;return null==n?this.styleTween(t,function cLe(t,n){var e,i,r;return function(){var o=Fv(this,t),s=(this.style.removeProperty(t),Fv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,FG(t)):"function"==typeof n?this.styleTween(t,function dLe(t,n,e){var i,r,o;return function(){var s=Fv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=Fv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,YO(this,"style."+t,n))).each(function hLe(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=qh(this,t),c=l.on,u=null==l.value[o]?a||(a=FG(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function uLe(t,n,e){var i,o,r=e+"";return function(){var s=Fv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function gLe(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function mLe(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function pLe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function _Le(t){return this.tween("text","function"==typeof t?function yLe(t){return function(){var n=t(this);this.textContent=n??""}}(YO(this,"text",t)):function vLe(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function wLe(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function xLe(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function bLe(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function rLe(){return this.on("end.remove",function iLe(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function ORe(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Lu(this.node(),e).tween,r=0,o=i.length;r0&&(R=U-O),w<0?le=E-I:w>0&&(X=te-I),y=QO,$.attr("cursor",Xh.selection),Me());break;default:return}KO()},!0).on("keyup.brush",function gt(){switch(Rr.keyCode){case 16:V&&(re=de=V=!1,Me());break;case 18:y===$v&&(_<0?W=J:_>0&&(R=U),w<0?le=E:w>0&&(X=te),y=Lv,Me());break;case 32:y===QO&&(Rr.altKey?(_&&(W=J-O*_,R=U+O*_),w&&(le=E-I*w,X=te+I*w),y=$v):(_<0?W=J:_>0&&(R=U),w<0?le=E:w>0&&(X=te),y=Lv),$.attr("cursor",Xh[v]),Me());break;default:return}KO()},!0),function q4e(t){var n=t.document.documentElement,e=ua(t).on("dragstart.drag",FO,!0);"onselectstart"in n?e.on("selectstart.drag",FO,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Rr.view)}jG(),GO(g),c.call(g),Le.start()}function ie(){var Tt=Oe(g);V&&!re&&!de&&(Math.abs(Tt[0]-Xe[0])>Math.abs(Tt[1]-Xe[1])?de=!0:re=!0),Xe=Tt,q=!0,KO(),Me()}function Me(){var Tt;switch(O=Xe[0]-ye[0],I=Xe[1]-ye[1],y){case QO:case RG:_&&(O=Math.max(z-R,Math.min(P-W,O)),U=R+O,J=W+O),w&&(I=Math.max(G-X,Math.min(H-le,I)),te=X+I,E=le+I);break;case Lv:_<0?(O=Math.max(z-R,Math.min(P-R,O)),U=R+O,J=W):_>0&&(O=Math.max(z-W,Math.min(P-W,O)),U=R,J=W+O),w<0?(I=Math.max(G-X,Math.min(H-X,I)),te=X+I,E=le):w>0&&(I=Math.max(G-le,Math.min(H-le,I)),te=X,E=le+I);break;case $v:_&&(U=Math.max(z,Math.min(P,R-O*_)),J=Math.max(z,Math.min(P,W+O*_))),w&&(te=Math.max(G,Math.min(H,X-I*w)),E=Math.max(G,Math.min(H,le+I*w)))}Jn?1:t>=n?0:NaN}function iI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function VLe(t){return(n,e)=>nI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var rI=Math.sqrt(50),oI=Math.sqrt(10),sI=Math.sqrt(2);function VG(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=rI?10:o>=oI?5:o>=sI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=rI?10:o>=oI?5:o>=sI?2:1)}function aI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=rI?r*=10:o>=oI?r*=5:o>=sI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return uI.setTime(+o),dI.setTime(+s),t(uI),t(dI),Math.floor(e(uI,dI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var A2=da(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});A2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?da(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):A2:null};const ULe=A2;var UG=da(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Jh)},function(t,n){return(n-t)/Jh},function(t){return t.getUTCSeconds()});const g_=UG;var zG=da(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jh)},function(t,n){t.setTime(+t+n*Wc)},function(t,n){return(n-t)/Wc},function(t){return t.getMinutes()});const GG=zG;var WG=da(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jh-t.getMinutes()*Wc)},function(t,n){t.setTime(+t+n*Kh)},function(t,n){return(n-t)/Kh},function(t){return t.getHours()});const qG=WG;var YG=da(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Wc)/km,t=>t.getDate()-1);const XG=YG;function Dm(t){return da(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Wc)/lI})}var hI=Dm(0),JG=(Dm(1),Dm(2),Dm(3),Dm(4),Dm(5),Dm(6),da(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const KG=JG;var fI=da(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});fI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?da(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const QG=fI;var ZG=da(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Wc)},function(t,n){return(n-t)/Wc},function(t){return t.getUTCMinutes()});const JLe=ZG;var eW=da(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*Kh)},function(t,n){return(n-t)/Kh},function(t){return t.getUTCHours()});const KLe=eW;var tW=da(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/km},function(t){return t.getUTCDate()-1});const QLe=tW;function Tm(t){return da(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/lI})}var nW=Tm(0),iW=(Tm(1),Tm(2),Tm(3),Tm(4),Tm(5),Tm(6),da(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const o5e=iW;var pI=da(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});pI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?da(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const s5e=pI;function rW(t,n,e,i,r,o){const s=[[g_,1,Jh],[g_,5,5*Jh],[g_,15,15*Jh],[g_,30,30*Jh],[o,1,Wc],[o,5,5*Wc],[o,15,15*Wc],[o,30,30*Wc],[r,1,Kh],[r,3,3*Kh],[r,6,6*Kh],[r,12,12*Kh],[i,1,km],[i,2,2*km],[e,1,lI],[n,1,HG],[n,3,3*HG],[t,1,cI]];function l(c,u,d){const h=Math.abs(u-c)/d,f=iI(([,,g])=>g).right(s,h);if(f===s.length)return t.every(aI(c/cI,u/cI,d));if(0===f)return ULe.every(Math.max(aI(c,u,d),1));const[p,m]=s[h/s[f-1][2]0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return mI.setTime(+o),gI.setTime(+s),t(mI),t(gI),Math.floor(e(mI,gI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var oW=6e4,aW=6048e5;function Em(t){return Qh(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/aW})}var lW=Em(0),M2=Em(1),Bv=(Em(2),Em(3),Em(4)),cW=(Em(5),Em(6),Qh(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const uW=cW;function Am(t){return Qh(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*oW)/aW})}var dW=Am(0),O2=Am(1),Vv=(Am(2),Am(3),Am(4)),hW=(Am(5),Am(6),Qh(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*oW)/864e5},function(t){return t.getDate()-1}));const fW=hW;var vI=Qh(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});vI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qh(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const v_=vI;var yI=Qh(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});yI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qh(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const y_=yI;function _I(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function bI(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function __(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Hv,EW,pW={"-":"",_:" ",0:"0"},ha=/^\s*\d+/,y5e=/^%/,_5e=/[\\^$*+?|[\]().{}]/g;function Br(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function D5e(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function T5e(t,n,e){var i=ha.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function E5e(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function vW(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function A5e(t,n,e){var i=ha.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function yW(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function M5e(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function O5e(t,n,e){var i=ha.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function I5e(t,n,e){var i=ha.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function N5e(t,n,e){var i=ha.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function F5e(t,n,e){var i=y5e.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function P5e(t,n,e){var i=ha.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function j5e(t,n,e){var i=ha.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function _W(t,n){return Br(t.getDate(),n,2)}function R5e(t,n){return Br(t.getHours(),n,2)}function L5e(t,n){return Br(t.getHours()%12||12,n,2)}function $5e(t,n){return Br(1+fW.count(v_(t),t),n,3)}function bW(t,n){return Br(t.getMilliseconds(),n,3)}function B5e(t,n){return bW(t,n)+"000"}function V5e(t,n){return Br(t.getMonth()+1,n,2)}function H5e(t,n){return Br(t.getMinutes(),n,2)}function U5e(t,n){return Br(t.getSeconds(),n,2)}function z5e(t){var n=t.getDay();return 0===n?7:n}function G5e(t,n){return Br(dW.count(v_(t)-1,t),n,2)}function xW(t){var n=t.getDay();return n>=4||0===n?Vv(t):Vv.ceil(t)}function W5e(t,n){return t=xW(t),Br(Vv.count(v_(t),t)+(4===v_(t).getDay()),n,2)}function q5e(t){return t.getDay()}function Y5e(t,n){return Br(O2.count(v_(t)-1,t),n,2)}function X5e(t,n){return Br(t.getFullYear()%100,n,2)}function J5e(t,n){return Br((t=xW(t)).getFullYear()%100,n,2)}function K5e(t,n){return Br(t.getFullYear()%1e4,n,4)}function Q5e(t,n){var e=t.getDay();return Br((t=e>=4||0===e?Vv(t):Vv.ceil(t)).getFullYear()%1e4,n,4)}function Z5e(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Br(n/60|0,"0",2)+Br(n%60,"0",2)}function wW(t,n){return Br(t.getUTCDate(),n,2)}function e8e(t,n){return Br(t.getUTCHours(),n,2)}function t8e(t,n){return Br(t.getUTCHours()%12||12,n,2)}function n8e(t,n){return Br(1+uW.count(y_(t),t),n,3)}function CW(t,n){return Br(t.getUTCMilliseconds(),n,3)}function i8e(t,n){return CW(t,n)+"000"}function r8e(t,n){return Br(t.getUTCMonth()+1,n,2)}function o8e(t,n){return Br(t.getUTCMinutes(),n,2)}function s8e(t,n){return Br(t.getUTCSeconds(),n,2)}function a8e(t){var n=t.getUTCDay();return 0===n?7:n}function l8e(t,n){return Br(lW.count(y_(t)-1,t),n,2)}function SW(t){var n=t.getUTCDay();return n>=4||0===n?Bv(t):Bv.ceil(t)}function c8e(t,n){return t=SW(t),Br(Bv.count(y_(t),t)+(4===y_(t).getUTCDay()),n,2)}function u8e(t){return t.getUTCDay()}function d8e(t,n){return Br(M2.count(y_(t)-1,t),n,2)}function h8e(t,n){return Br(t.getUTCFullYear()%100,n,2)}function f8e(t,n){return Br((t=SW(t)).getUTCFullYear()%100,n,2)}function p8e(t,n){return Br(t.getUTCFullYear()%1e4,n,4)}function m8e(t,n){var e=t.getUTCDay();return Br((t=e>=4||0===e?Bv(t):Bv.ceil(t)).getUTCFullYear()%1e4,n,4)}function g8e(){return"+0000"}function kW(){return"%"}function DW(t){return+t}function TW(t){return Math.floor(+t/1e3)}function AW(t){return null===t?NaN:+t}!function b8e(t){Hv=function v5e(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=b_(r),u=x_(r),d=b_(o),h=x_(o),f=b_(s),p=x_(s),m=b_(a),g=x_(a),v=b_(l),y=x_(l),_={a:function H(Le){return s[Le.getDay()]},A:function le(Le){return o[Le.getDay()]},b:function E(Le){return l[Le.getMonth()]},B:function O(Le){return a[Le.getMonth()]},c:null,d:_W,e:_W,f:B5e,g:J5e,G:Q5e,H:R5e,I:L5e,j:$5e,L:bW,m:V5e,M:H5e,p:function I(Le){return r[+(Le.getHours()>=12)]},q:function q(Le){return 1+~~(Le.getMonth()/3)},Q:DW,s:TW,S:U5e,u:z5e,U:G5e,V:W5e,w:q5e,W:Y5e,x:null,X:null,y:X5e,Y:K5e,Z:Z5e,"%":kW},w={a:function V(Le){return s[Le.getUTCDay()]},A:function re(Le){return o[Le.getUTCDay()]},b:function de(Le){return l[Le.getUTCMonth()]},B:function Oe(Le){return a[Le.getUTCMonth()]},c:null,d:wW,e:wW,f:i8e,g:f8e,G:m8e,H:e8e,I:t8e,j:n8e,L:CW,m:r8e,M:o8e,p:function ye(Le){return r[+(Le.getUTCHours()>=12)]},q:function Xe(Le){return 1+~~(Le.getUTCMonth()/3)},Q:DW,s:TW,S:s8e,u:a8e,U:l8e,V:c8e,w:u8e,W:d8e,x:null,X:null,y:h8e,Y:p8e,Z:g8e,"%":kW},k={a:function U(Le,rt,$){var ne=f.exec(rt.slice($));return ne?(Le.w=p[ne[0].toLowerCase()],$+ne[0].length):-1},A:function G(Le,rt,$){var ne=d.exec(rt.slice($));return ne?(Le.w=h[ne[0].toLowerCase()],$+ne[0].length):-1},b:function X(Le,rt,$){var ne=v.exec(rt.slice($));return ne?(Le.m=y[ne[0].toLowerCase()],$+ne[0].length):-1},B:function te(Le,rt,$){var ne=m.exec(rt.slice($));return ne?(Le.m=g[ne[0].toLowerCase()],$+ne[0].length):-1},c:function P(Le,rt,$){return z(Le,n,rt,$)},d:vW,e:vW,f:N5e,g:gW,G:mW,H:yW,I:yW,j:A5e,L:I5e,m:E5e,M:M5e,p:function R(Le,rt,$){var ne=c.exec(rt.slice($));return ne?(Le.p=u[ne[0].toLowerCase()],$+ne[0].length):-1},q:T5e,Q:P5e,s:j5e,S:O5e,u:w5e,U:C5e,V:S5e,w:x5e,W:k5e,x:function W(Le,rt,$){return z(Le,e,rt,$)},X:function J(Le,rt,$){return z(Le,i,rt,$)},y:gW,Y:mW,Z:D5e,"%":F5e};function D(Le,rt){return function($){var je,gt,Tt,ne=[],ie=-1,Me=0,Ye=Le.length;for($ instanceof Date||($=new Date(+$));++ie53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Ye=(Me=bI(__(ne.y,0,1))).getUTCDay(),Me=Ye>4||0===Ye?M2.ceil(Me):M2(Me),Me=uW.offset(Me,7*(ne.V-1)),ne.y=Me.getUTCFullYear(),ne.m=Me.getUTCMonth(),ne.d=Me.getUTCDate()+(ne.w+6)%7):(Ye=(Me=_I(__(ne.y,0,1))).getDay(),Me=Ye>4||0===Ye?O2.ceil(Me):O2(Me),Me=fW.offset(Me,7*(ne.V-1)),ne.y=Me.getFullYear(),ne.m=Me.getMonth(),ne.d=Me.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Ye="Z"in ne?bI(__(ne.y,0,1)).getUTCDay():_I(__(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+7*ne.W-(Ye+5)%7:ne.w+7*ne.U-(Ye+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,bI(ne)):_I(ne)}}function z(Le,rt,$,ne){for(var je,gt,ie=0,Me=rt.length,Ye=$.length;ie=Ye)return-1;if(37===(je=rt.charCodeAt(ie++))){if(je=rt.charAt(ie++),!(gt=k[je in pW?rt.charAt(ie++):je])||(ne=gt(Le,$,ne))<0)return-1}else if(je!=$.charCodeAt(ne++))return-1}return ne}return _.x=D(e,_),_.X=D(i,_),_.c=D(n,_),w.x=D(e,w),w.X=D(i,w),w.c=D(n,w),{format:function(Le){var rt=D(Le+="",_);return rt.toString=function(){return Le},rt},parse:function(Le){var rt=L(Le+="",!1);return rt.toString=function(){return Le},rt},utcFormat:function(Le){var rt=D(Le+="",w);return rt.toString=function(){return Le},rt},utcParse:function(Le){var rt=L(Le+="",!0);return rt.toString=function(){return Le},rt}}}(t),EW=Hv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const x8e=iI(nI).right,OW=(iI(AW),x8e);function w8e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function S8e(t){return+t}var IW=[0,1];function Uv(t){return t}function xI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function C8e(t){return function(){return t}}(isNaN(n)?NaN:.5)}function D8e(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?T8e:D8e,l=c=null,d}function d(h){return null==h||isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Ru)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,S8e),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=w8e,u()},d.clamp=function(h){return arguments.length?(s=!!h||Uv,u()):s!==Uv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Uv,Uv)}function w_(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function M8e(t){return new Date(t)}function O8e(t){return t instanceof Date?+t:+new Date(+t)}function PW(t,n,e,i,r,o,s,a,l,c){var u=FW(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),_=c("%B"),w=c("%Y");function k(D){return(l(D)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function I2(t){if(!(n=I8e.exec(t)))throw new Error("invalid format: "+t);var n;return new wI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function wI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function N2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function zv(t){return(t=N2(Math.abs(t)))?t[1]:NaN}function RW(t,n){var e=N2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}I2.prototype=wI.prototype,wI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const LW={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function N8e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return RW(100*t,n)},r:RW,s:function L8e(t,n){var e=N2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(jW=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+N2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function $W(t){return t}var F2,CI,HW,BW=Array.prototype.map,VW=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function z8e(t){var n=t.domain;return t.ticks=function(e){var i=n();return function HLe(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0){let l=Math.round(t/a),c=Math.round(n/a);for(l*an&&--c,s=new Array(o=c-l+1);++rn&&--c,s=new Array(o=c-l+1);++r0;){if((c=VG(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function mo(){var t=FW();return t.copy=function(){return NW(t,mo())},w_.apply(t,arguments),z8e(t)}function UW(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(BW.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?$W:function j8e(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(BW.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=I2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,_=d.precision,w=d.trim,k=d.type;"n"===k?(y=!0,k="g"):LW[k]||(void 0===_&&(_=12),w=!0,k="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var D="$"===m?e:"#"===m&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",L="$"===m?i:/[%p]/.test(k)?s:"",z=LW[k],R=/[defgprs%]/.test(k);function U(G){var P,W,J,X=D,te=L;if("c"===k)te=z(G)+te,G="";else{var H=(G=+G)<0||1/G<0;if(G=isNaN(G)?l:z(Math.abs(G),_),w&&(G=function R8e(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(G)),H&&0==+G&&"+"!==p&&(H=!1),X=(H?"("===p?p:a:"-"===p||"("===p?"":p)+X,te=("s"===k?VW[8+jW/3]:"")+te+(H&&"("===p?")":""),R)for(P=-1,W=G.length;++P(J=G.charCodeAt(P))||J>57){te=(46===J?r+G.slice(P+1):G.slice(P))+te,G=G.slice(0,P);break}}y&&!g&&(G=n(G,1/0));var le=X.length+G.length+te.length,E=le>1)+X+G+te+E.slice(le);break;default:G=E+X+G+te}return o(G)}return _=void 0===_?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),U.toString=function(){return d+""},U}return{format:c,formatPrefix:function u(d,h){var f=c(((d=I2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(zv(h)/3))),m=Math.pow(10,-p),g=VW[8+p/3];return function(v){return f(m*v)+g}}}}(t),CI=F2.format,HW=F2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const zW=Symbol("implicit");function SI(){var t=new Map,n=[],e=[],i=zW;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==zW)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return SI(n,e).unknown(i)},w_.apply(r,arguments),r}function Ia(){var o,s,t=SI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function WW(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],aNm)if(Math.abs(u*a-l*c)>Nm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((kI-Math.acos((p+d-m)/(2*g*v)))/2),_=y/v,w=y/g;Math.abs(_-1)>Nm&&(this._+="L"+(t+_*c)+","+(n+_*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+w*a)+","+(this._y1=n+w*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Nm||Math.abs(this._y1-c)>Nm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%DI+DI),d>W8e?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Nm&&(this._+="A"+e+","+e+",0,"+ +(d>=kI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const EI=YW;function uo(t){return function(){return t}}function XW(t){return t[0]}function JW(t){return t[1]}function P2(){var t=XW,n=JW,e=uo(!0),i=null,r=Im,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=EI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],_[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),_[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):_[d]))}if(v)return a=null,v+""||null}function c(){return P2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:uo(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:uo(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:uo(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:uo(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:uo(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:uo(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:uo(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function KW(){}function AI(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function QW(t,n){this._context=t,this._k=(1-n)/6}function ZW(t,n){this._context=t,this._k=(1-n)/6}function eq(t){this._curve=t}function u6e(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function oq(t,n){var r,s,a,l,c,e=new D_(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=M6e);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new D_(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(sq)}function M6e(t){return t.children}function O6e(t){t.data=t.data.data}function sq(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function D_(t){this.data=t,this.depth=this.height=0,this.parent=null}QW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:AI(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:AI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new QW(i,n)}return e.tension=function(i){return t(+i)},e}(0),ZW.prototype={areaStart:KW,areaEnd:KW,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:AI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new ZW(i,n)}return e.tension=function(i){return t(+i)},e}(0),function tq(t){function n(e){return new eq(t(e))}return n._curve=t,n}(Im),eq.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function f6e(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,_,w,k,D,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),D=g*g*k,(_=Math.max(y/D,D/v))>w){g-=c;break}w=_}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),D_.prototype=oq.prototype={constructor:D_,count:function v6e(){return this.eachAfter(g6e)},each:function y6e(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function x6e(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function w6e(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function C6e(t){for(var n=this,e=function S6e(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function k6e(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function D6e(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function T6e(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function E6e(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function A6e(){return oq(this).eachBefore(O6e)}};const j6e=["caretElm"];function R6e(t,n){}const L6e=function(t){return{model:t}};function $6e(t,n){if(1&t&&(b(0,"span"),Z(1,R6e,0,0,"ng-template",5),x()),2&t){const e=B();C(1),S("ngTemplateOutlet",e.template)("ngTemplateOutletContext",nr(2,L6e,e.context))}}function B6e(t,n){1&t&&ge(0,"span",6),2&t&&S("innerHTML",B().title,qx)}function V6e(t,n){if(1&t&&(st(),Up(),ge(0,"ngx-charts-scale-legend",4)),2&t){const e=B();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function H6e(t,n){if(1&t){const e=yt();st(),Up(),b(0,"ngx-charts-legend",5),be("labelClick",function(r){return $e(e),Be(B().legendLabelClick.emit(r))})("labelActivate",function(r){return $e(e),Be(B().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return $e(e),Be(B().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=B();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const cq=["*"],U6e=["ngx-charts-axis-label",""],uq=["ticksel"],z6e=["ngx-charts-x-axis-ticks",""];function G6e(t,n){if(1&t&&(st(),b(0,"g",3)(1,"title"),N(2),x(),b(3,"text",4),N(4),x()()),2&t){const e=n.$implicit,i=B();ut("transform",i.tickTransform(e)),C(2),kt(i.tickFormat(e)),C(1),tr("font-size","12px"),ut("text-anchor",i.textAnchor)("transform",i.textTransform),C(1),yn(" ",i.tickTrim(i.tickFormat(e))," ")}}function W6e(t,n){if(1&t&&(st(),b(0,"g"),ge(1,"line",6),x()),2&t){const e=B(2);ut("transform",e.gridLineTransform()),C(1),ut("y1",-e.gridLineHeight)}}function q6e(t,n){if(1&t&&(st(),b(0,"g"),Z(1,W6e,2,2,"g",5),x()),2&t){const e=n.$implicit,i=B();ut("transform",i.tickTransform(e)),C(1),S("ngIf",i.showGridLines)}}const Y6e=["ngx-charts-x-axis",""];function X6e(t,n){if(1&t){const e=yt();st(),b(0,"g",2),be("dimensionsChanged",function(r){return $e(e),Be(B().emitTicksHeight(r))}),x()}if(2&t){const e=B();S("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function J6e(t,n){if(1&t&&(st(),ge(0,"g",3)),2&t){const e=B();S("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const K6e=["ngx-charts-y-axis-ticks",""];function Q6e(t,n){if(1&t&&(st(),b(0,"g",4)(1,"title"),N(2),x(),b(3,"text",5),N(4),x()()),2&t){const e=n.$implicit,i=B();ut("transform",i.transform(e)),C(2),kt(i.tickFormat(e)),C(1),tr("font-size","12px"),ut("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),C(1),yn(" ",i.tickTrim(i.tickFormat(e))," ")}}function Z6e(t,n){if(1&t&&(st(),ge(0,"path",6)),2&t){const e=B();ut("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function e$e(t,n){1&t&&(st(),ge(0,"line",9)),2&t&&ut("x2",B(3).gridLineWidth)}function t$e(t,n){1&t&&(st(),ge(0,"line",9)),2&t&&ut("x2",-B(3).gridLineWidth)}function n$e(t,n){if(1&t&&(st(),b(0,"g"),Z(1,e$e,1,1,"line",8),Z(2,t$e,1,1,"line",8),x()),2&t){const e=B(2);ut("transform",e.gridLineTransform()),C(1),S("ngIf","left"===e.orient),C(1),S("ngIf","right"===e.orient)}}function i$e(t,n){if(1&t&&(st(),b(0,"g"),Z(1,n$e,3,3,"g",7),x()),2&t){const e=n.$implicit,i=B();ut("transform",i.transform(e)),C(1),S("ngIf",i.showGridLines)}}function r$e(t,n){if(1&t&&(st(),b(0,"g")(1,"title"),N(2),x(),b(3,"text",11),N(4),x()()),2&t){const e=B(2).$implicit,i=B();C(2),kt(i.tickTrim(i.tickFormat(e.value))),C(1),ut("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),C(1),yn(" ",e.name," ")}}function o$e(t,n){if(1&t&&(st(),b(0,"g"),ge(1,"line",10),Z(2,r$e,5,6,"g",7),x()),2&t){const e=B().$implicit,i=B();ut("transform",i.transform(e.value)),C(1),ut("x2",i.gridLineWidth)("transform",i.gridLineTransform()),C(1),S("ngIf",i.showRefLabels)}}function s$e(t,n){if(1&t&&(st(),b(0,"g"),Z(1,o$e,3,4,"g",7),x()),2&t){const e=B();C(1),S("ngIf",e.showRefLines)}}const a$e=["ngx-charts-y-axis",""];function l$e(t,n){if(1&t){const e=yt();st(),b(0,"g",2),be("dimensionsChanged",function(r){return $e(e),Be(B().emitTicksWidth(r))}),x()}if(2&t){const e=B();S("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function c$e(t,n){if(1&t&&(st(),ge(0,"g",3)),2&t){const e=B();S("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const u$e=["ngx-charts-circle-series",""];function d$e(t,n){if(1&t&&(st(),ge(0,"rect",4)),2&t){const e=B(2);S("@animationState","active"),ut("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const h$e=function(t){return{name:t}};function f$e(t,n){if(1&t){const e=yt();st(),b(0,"g")(1,"defs"),ge(2,"g",1),x(),Z(3,d$e,1,6,"rect",2),b(4,"g",3),be("select",function(){$e(e);const r=B();return Be(r.onClick(r.circle.data))})("activate",function(){return $e(e),Be(B().activateCircle())})("deactivate",function(){return $e(e),Be(B().deactivateCircle())}),x()()}if(2&t){const e=B();C(2),S("name",e.gradientId)("stops",e.circle.gradientStops),C(1),S("ngIf",e.barVisible&&"standard"===e.type),C(1),jn("active",e.isActive(nr(18,h$e,e.circle.seriesName))),S("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const p$e=["ngx-charts-circle",""],y$e=["ngx-charts-svg-linear-gradient",""];function _$e(t,n){if(1&t&&(st(),ge(0,"stop")),2&t){const e=n.$implicit;tr("stop-color",e.color)("stop-opacity",e.opacity),ut("offset",e.offset+"%")}}const w$e=["ngx-charts-area",""];function C$e(t,n){if(1&t&&(st(),b(0,"defs"),ge(1,"g",2),x()),2&t){const e=B();C(1),S("name",e.gradientId)("stops",e.gradientStops)}}const k$e=["tooltipAnchor"],D$e=["ngx-charts-tooltip-area",""];function T$e(t,n){if(1&t&&(b(0,"div",6),ge(1,"span",7),N(2),x()),2&t){const e=n.$implicit,i=B(2);C(1),tr("background-color",e.color),C(1),yn(" ",i.getToolTipText(e)," ")}}function E$e(t,n){if(1&t&&(st(),Up(),b(0,"div",4),Z(1,T$e,3,3,"div",5),x()),2&t){const e=n.model;C(1),S("ngForOf",e)}}const A$e=["ngx-charts-timeline",""];function M$e(t,n){if(1&t&&(b(0,"header",4)(1,"span",5),N(2),x()()),2&t){const e=B();C(2),kt(e.title)}}function O$e(t,n){if(1&t){const e=yt();b(0,"li",6)(1,"ngx-charts-legend-entry",7),be("select",function(r){return $e(e),Be(B().labelClick.emit(r))})("activate",function(r){return $e(e),Be(B().activate(r))})("deactivate",function(r){return $e(e),Be(B().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=B();C(1),S("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Rs=["tooltipTemplate"],B2=["seriesTooltipTemplate"],Co=function(t,n){return[t,n]},ZBe=["ngx-charts-line",""];function e7e(t,n){if(1&t){const e=yt();st(),b(0,"g",7),be("dimensionsChanged",function(r){return $e(e),Be(B().updateXAxisHeight(r))}),x()}if(2&t){const e=B();S("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function t7e(t,n){if(1&t){const e=yt();st(),b(0,"g",8),be("dimensionsChanged",function(r){return $e(e),Be(B().updateYAxisWidth(r))}),x()}if(2&t){const e=B();S("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function n7e(t,n){if(1&t&&(st(),b(0,"g"),ge(1,"g",9),x()),2&t){const e=n.$implicit,i=B();S("@animationState","active"),C(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function i7e(t,n){if(1&t){const e=yt();st(),b(0,"g")(1,"g",13),be("select",function(r){return $e(e),Be(B(2).onClick(r))})("activate",function(r){return $e(e),Be(B(2).onActivate(r))})("deactivate",function(r){return $e(e),Be(B(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=B(2);C(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function r7e(t,n){if(1&t){const e=yt();st(),b(0,"g",10),be("mouseleave",function(){return $e(e),Be(B().hideCircles())}),b(1,"g",11),be("hover",function(r){return $e(e),Be(B().updateHoveredVertical(r))}),x(),Z(2,i7e,2,9,"g",12),x()}if(2&t){const e=B();C(1),S("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),C(1),S("ngForOf",e.results)}}function o7e(t,n){if(1&t&&(st(),b(0,"g"),ge(1,"g",15),x()),2&t){const e=n.$implicit,i=B(2);C(1),S("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function s7e(t,n){if(1&t){const e=yt();st(),b(0,"g",14),be("onDomainChange",function(r){return $e(e),Be(B().updateDomain(r))}),Z(1,o7e,2,8,"g",4),x()}if(2&t){const e=B();S("results",e.results)("view",Mr(10,Co,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ut("transform",e.timelineTransform),C(1),S("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const a7e=["ngx-charts-line-series",""];function l7e(t,n){if(1&t&&(st(),ge(0,"g",4)),2&t){const e=B();S("name",e.gradientId)("stops",e.gradientStops)}}function c7e(t,n){if(1&t&&(st(),ge(0,"g",5)),2&t){const e=B();jn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),S("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let pq=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function r9e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new JPe(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new jz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(vt(Ph),vt(Hg),vt(la))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function o9e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function s9e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:o9e(o.value,t,n)}),this[r]}}}}var Ls=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Ls||(Ls={})),Ls))();const Xf=7;function mq(t,n,e){return"top"===e?t.top-Xf:"bottom"===e?t.top+t.height-n.height+Xf:"center"===e?t.top+t.height/2-n.height/2:void 0}function gq(t,n,e){return"left"===e?t.left-Xf:"right"===e?t.left+t.width-n.width+Xf:"center"===e?t.left+t.width/2-n.width/2:void 0}class vc{static calculateVerticalAlignment(n,e,i){let r=mq(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Xf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Xf),"center"===r&&(o=e.height/2-i.height/2);const s=mq(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=gq(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Xf),"right"===r&&(o=e.width-n.width/2-i.width/2-Xf),"center"===r&&(o=e.width/2-i.width/2);const s=gq(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===Ls.right?(a=-7,s=vc.calculateVerticalCaret(i,e,r,o)):n===Ls.left?(a=e.width,s=vc.calculateVerticalCaret(i,e,r,o)):n===Ls.top?(s=e.height,a=vc.calculateHorizontalCaret(i,e,r,o)):n===Ls.bottom&&(s=-7,a=vc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===Ls.right?(a=i.left+i.width+r,s=vc.calculateVerticalAlignment(i,e,o)):n===Ls.left?(a=i.left-e.width-r,s=vc.calculateVerticalAlignment(i,e,o)):n===Ls.top?(s=i.top-e.height-r,a=vc.calculateHorizontalAlignment(i,e,o)):n===Ls.bottom&&(s=i.top+i.height+r,a=vc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(vc.shouldFlip(i,e,n,r)){if(n===Ls.right)return Ls.left;if(n===Ls.left)return Ls.right;if(n===Ls.top)return Ls.bottom;if(n===Ls.bottom)return Ls.top}return n}}let a9e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=vc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=vc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=vc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(aa))},t.\u0275cmp=$t({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&jo(j6e,5),2&e){let r;wn(r=Cn())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&be("resize",function(){return i.onWindowResize()},0,d8),2&e&&Fd(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(b(0,"div"),ge(1,"span",0,1),b(3,"div",2),Z(4,$6e,2,4,"span",3),Z(5,B6e,1,1,"span",4),x()()),2&e&&(C(1),function $6(t,n,e){ku(nc,Pd,Jg(zt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),S("hidden",!i.showCaret),C(3),S("ngIf",!i.title),C(1),S("ngIf",i.title))},dependencies:[_n,Eu],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function Rz(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o}([s9e(100)],t.prototype,"onWindowResize",null),t})();class l9e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let II=(()=>{class t extends l9e{constructor(e){super(e),this.type=a9e}}return t.\u0275fac=function(e){return new(e||t)(vt(pq))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),Zo=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new it,this.legendLabelActivate=new it,this.legendLabelDeactivate=new it}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[Qr([II]),ei],ngContentSelectors:cq,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Cf(),b(0,"div",0),st(),b(1,"svg",1),Sf(2),x(),Z(3,V6e,1,5,"ngx-charts-scale-legend",2),Z(4,H6e,1,7,"ngx-charts-legend",3),x()),2&e&&(tr("width",i.view[0],"px"),S("@animationState","active")("@.disabled",!i.animations),C(1),ut("width",i.chartWidth)("height",i.view[1]),C(2),S("ngIf",i.showLegend&&"scaleLegend"===i.legendType),C(1),S("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[_n,Eq,Mq]},encapsulation:2,data:{animation:[Ka("animationState",[ka(":enter",[kr({opacity:0}),Sa("500ms 100ms",kr({opacity:1}))])])]},changeDetection:0}),t})(),c9e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new it,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(ir))},t.\u0275dir=sn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),es=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new it}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new c9e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new xje(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(ir),he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[ei],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"div")},encapsulation:2}),t})(),NI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[ei],attrs:U6e,decls:2,vars:6,template:function(e,i){1&e&&(st(),b(0,"text"),N(1),x()),2&e&&(ut("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),C(1),yn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Jf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function vq(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new it,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=vq(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Jf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&jo(uq,5),2&e){let r;wn(r=Cn())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:z6e,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(st(),b(0,"g",null,0),Z(2,G6e,5,7,"g",1),x(),Z(3,q6e,2,2,"g",2)),2&e&&(C(2),S("ngForOf",i.ticks),C(1),S("ngForOf",i.ticks))},dependencies:[Ln,_n],encapsulation:2,changeDetection:0}),t})(),Vl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new it,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&jo(yq,5),2&e){let r;wn(r=Cn())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:Y6e,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(st(),b(0,"g"),Z(1,X6e,1,12,"g",0),Z(2,J6e,1,5,"g",1),x()),2&e&&(ut("class",i.xAxisClassName)("transform",i.transform),C(1),S("ngIf",i.xScale),C(1),S("ngIf",i.showLabel))},dependencies:[_n,NI,yq],encapsulation:2,changeDetection:0}),t})();let _q=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new it,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function Zh(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=vq(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Jf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&jo(uq,5),2&e){let r;wn(r=Cn())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:K6e,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(st(),b(0,"g",null,0),Z(2,Q6e,5,9,"g",1),x(),Z(3,Z6e,1,2,"path",2),Z(4,i$e,2,2,"g",3),Z(5,s$e,2,1,"g",3)),2&e&&(C(2),S("ngForOf",i.ticks),C(1),S("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),C(1),S("ngForOf",i.ticks),C(1),S("ngForOf",i.referenceLines))},dependencies:[Ln,_n],encapsulation:2,changeDetection:0}),t})(),yl=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new it,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&jo(_q,5),2&e){let r;wn(r=Cn())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:a$e,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(st(),b(0,"g"),Z(1,l$e,1,14,"g",0),Z(2,c$e,1,5,"g",1),x()),2&e&&(ut("class",i.yAxisClassName)("transform",i.transform),C(1),S("ngIf",i.yScale),C(1),S("ngIf",i.showLabel))},dependencies:[_n,NI,_q],encapsulation:2,changeDetection:0}),t})(),bq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Mf]}),t})();var V2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(V2||(V2={})),V2))(),H2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(H2||(H2={})),H2))(),Kf=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(Kf||(Kf={})),Kf))();let $u=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ls.top,this.tooltipAlignment=H2.center,this.tooltipType=V2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Kf.all,this.tooltipImmediateExit=!1,this.show=new it,this.hide=new it}get listensForFocus(){return this.tooltipShowEvent===Kf.all||this.tooltipShowEvent===Kf.focus}get listensForHover(){return this.tooltipShowEvent===Kf.all||this.tooltipShowEvent===Kf.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(he(II),he(jl),he(aa))},t.\u0275dir=sn({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&be("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),xq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[pq,II],imports:[Mf]}),t})();function Na(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function ea(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const wq={};function _l(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,wq[t]?_l():(wq[t]=!0,t)}let RI,T_=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new it,this.activate=new it,this.deactivate=new it,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+_l().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=Na(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${ea(r)} \u2022 ${ea(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:u$e,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&Z(0,f$e,5,20,"g",0),2&e&&S("ngIf",i.circle)},dependencies:function(){return[_n,$u,U2,Pm]},encapsulation:2,data:{animation:[Ka("animationState",[ka(":enter",[kr({opacity:0}),Sa(250,kr({opacity:1}))])])]},changeDetection:0}),t})(),U2=(()=>{class t{constructor(){this.select=new it,this.activate=new it,this.deactivate=new it}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&be("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:p$e,decls:1,vars:8,template:function(e,i){1&e&&(st(),ge(0,"circle")),2&e&&ut("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),Pm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[ei],attrs:y$e,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(st(),b(0,"linearGradient",0),Z(1,_$e,1,5,"stop",1),x()),2&e&&(S("id",i.name),ut("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),C(1),S("ngForOf",i.stops))},dependencies:[Ln],encapsulation:2,changeDetection:0}),t})(),jI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new it,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+_l().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=ua(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[ei],attrs:w$e,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(Z(0,C$e,2,2,"defs",0),st(),ge(1,"path",1)),2&e&&(S("ngIf",i.gradient),C(1),tr("opacity",i.opacity),ut("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[_n,Pm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?RI=window:typeof global<"u"&&(RI=global);const Tq=RI.MouseEvent;function LI(t,n=!1,e=!0){if("function"==typeof Tq)return new Tq(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let E_=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new it}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=LI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=LI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=LI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&jo(k$e,5),2&e){let r;wn(r=Cn())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:D$e,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","'auto'",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(st(),b(0,"g")(1,"rect",0),be("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),Z(2,E$e,2,1,"ng-template",null,1,Uo),ge(4,"rect",2,3),x()),2&e){const r=qs(3);C(1),ut("x",0)("width",i.dims.width)("height",i.dims.height),C(3),tr("opacity",i.anchorOpacity)("pointer-events","none"),S("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ut("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[Ln,$u],encapsulation:2,data:{animation:[Ka("animationState",[ka("inactive => active",[kr({opacity:0}),Sa(250,kr({opacity:.7}))]),ka("active => inactive",[kr({opacity:.7}),Sa(250,kr({opacity:0}))])])]},changeDetection:0}),t})(),A_=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new it,this.onDomainChange=new it,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+_l().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=Mm().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=mo().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=Om().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function BLe(){return tI(T2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Rr.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),ua(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),ua(this.element).select(".brush").call(this.brush),ua(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(he(Si),he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[ei],attrs:A$e,ngContentSelectors:cq,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Cf(),st(),b(0,"g",0)(1,"filter"),ge(2,"feColorMatrix",1),x(),b(3,"g",2),Sf(4),x(),ge(5,"rect",3)(6,"g",4),x()),2&e&&(ut("transform",i.transform),C(1),ut("id",i.filterId),C(4),ut("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Eq=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new it,this.labelActivate=new it,this.labelDeactivate=new it,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=Na(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(he(Ns))},t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[ei],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(b(0,"div"),Z(1,M$e,3,1,"header",0),b(2,"div",1)(3,"ul",2),Z(4,O$e,2,4,"li",3),x()()()),2&e&&(tr("width",i.width,"px"),C(1),S("ngIf",(null==i.title?null:i.title.length)>0),C(2),tr("max-height",i.height-45,"px"),jn("horizontal-legend",i.horizontal),C(1),S("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[Ln,_n,Aq]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Aq=(()=>{class t{constructor(){this.isActive=!1,this.select=new it,this.activate=new it,this.deactivate=new it,this.toggle=new it}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&be("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(b(0,"span",0),be("click",function(){return i.select.emit(i.formattedLabel)}),b(1,"span",1),be("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),b(2,"span",2),N(3),x()()),2&e&&(jn("active",i.isActive),S("title",i.formattedLabel),C(1),tr("background-color",i.color),C(2),yn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Mq=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(he(B7))},t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[ei],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"span"),N(3),x()(),ge(4,"div",2),b(5,"div",1)(6,"span"),N(7),x()()()),2&e&&(tr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),jn("horizontal-legend",i.horizontal),C(3),kt(i.valueRange[1].toLocaleString()),C(1),tr("background",i.gradient),C(3),kt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Bu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Mf,bq,xq,Mf,bq,xq]}),t})();let Iq=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class fs{constructor(n,e,i,r){"string"==typeof n&&(n=Iq.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=Iq.find(o=>o.name===n)),"quantile"===e)r=WW().range(n.domain).domain(i);else if("ordinal"===e)r=SI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=UW(0,1,1/o.length);r=mo().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=mo().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=mo().domain(this.domain).range([0,1]),r=Ia().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let u9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),Fq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),h9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),m9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),Rq=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new it,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=ua(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(he(Si))},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[ei],attrs:ZBe,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(st(),ge(0,"path",0)),2&e&&(S("@animationState","active"),ut("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[Ka("animationState",[ka(":enter",[kr({strokeDasharray:2e3,strokeDashoffset:2e3}),Sa(1e3,kr({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),g9e=(()=>{class t extends es{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=Im,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new it,this.deactivate=new it,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function hs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+_l().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function G2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function Qf(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=Mm().range([0,i]).domain(e):"linear"===this.scaleType?(r=mo().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=Om().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=mo().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new fs(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Pi(t)))(i||t)}}(),t.\u0275cmp=$t({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(yi(r,Rs,5),yi(r,B2,5)),2&e){let o;wn(o=Cn())&&(i.tooltipTemplate=o.first),wn(o=Cn())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&be("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[pi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(b(0,"ngx-charts-chart",0),be("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),st(),b(1,"defs")(2,"clipPath"),ge(3,"rect"),x()(),b(4,"g",1),Z(5,e7e,1,10,"g",2),Z(6,t7e,1,12,"g",3),b(7,"g"),Z(8,n7e,2,11,"g",4),Z(9,r7e,3,9,"g",5),x()(),Z(10,s7e,2,13,"g",6),x()),2&e&&(S("view",Mr(17,Co,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),C(2),ut("id",i.clipPathId),C(1),ut("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),C(1),ut("transform",i.transform),C(1),S("ngIf",i.xAxis),C(1),S("ngIf",i.yAxis),C(1),ut("clip-path",i.clipPath),C(1),S("ngForOf",i.results)("ngForTrackBy",i.trackBy),C(1),S("ngIf",!i.tooltipDisabled),C(1),S("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[Ln,_n,Vl,yl,E_,Zo,T_,A_,v9e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[Ka("animationState",[ka(":leave",[kr({opacity:1}),Sa(500,kr({opacity:0}))])])]},changeDetection:0}),t})(),v9e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return P2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Gv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Gv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function $I(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function VI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function BI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+_l().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[ei],attrs:a7e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(st(),b(0,"g")(1,"defs"),Z(2,l7e,1,2,"g",0),x(),ge(3,"g",1)(4,"g",2),Z(5,c7e,1,9,"g",3),x()),2&e&&(C(2),S("ngIf",i.hasGradient),C(1),jn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),C(1),jn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),C(1),S("ngIf",i.hasRange))},dependencies:[_n,jI,Pm,Rq],encapsulation:2,changeDetection:0}),t})(),Lq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})();Math;let GI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),w9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu,GI,Lq]}),t})(),D9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),A9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu]}),t})(),I9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu,GI,Fq]}),t})(),F9e=(()=>{class t{constructor(){!function N9e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({imports:[Bu,u9e,Fq,h9e,m9e,Lq,w9e,D9e,GI,A9e,I9e]}),t})();function P9e(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function j9e(t,n){1&t&&ge(0,"img",31)}function R9e(t,n){1&t&&ge(0,"img",32)}function L9e(t,n){1&t&&ge(0,"img",33)}function $9e(t,n){1&t&&ge(0,"img",34)}function B9e(t,n){if(1&t&&(b(0,"tr",24)(1,"td"),oc(2,25),Z(3,j9e,1,0,"img",26),Z(4,R9e,1,0,"img",27),Z(5,L9e,1,0,"img",28),Z(6,$9e,1,0,"img",29),sc(),b(7,"span"),N(8),x()(),b(9,"td"),N(10),b(11,"span",30),N(12),x()(),b(13,"td"),N(14),b(15,"span",30),N(16),x()(),b(17,"td"),N(18),b(19,"span",30),N(20),x()(),b(21,"td"),N(22),b(23,"span",30),N(24),x()()()),2&t){const e=n.$implicit,i=B(2);C(2),S("ngSwitch",e.health),C(1),S("ngSwitchCase",0),C(1),S("ngSwitchCase",1),C(1),S("ngSwitchCase",2),C(1),S("ngSwitchCase",3),C(2),kt(e.name),C(2),yn("",e.session_count," "),C(1),S("hidden",!i.showDelta),C(1),yn("(",i.getMaxSessionCount()-e.session_count," delta)"),C(2),yn("",e.presence_count," "),C(1),S("hidden",!i.showDelta),C(1),yn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),C(2),yn("",e.match_count," "),C(1),S("hidden",!i.showDelta),C(1),yn("(",i.getMaxMatchCount()-e.match_count," delta)"),C(2),yn("",e.goroutine_count," "),C(1),S("hidden",!i.showDelta),C(1),yn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function V9e(t,n){if(1&t&&(b(0,"tbody"),Z(1,B9e,25,18,"tr",22),b(2,"tr",3),ge(3,"td",23),b(4,"th",3),N(5),x(),b(6,"th",3),N(7),x(),b(8,"th",3),N(9),x(),b(10,"th",3),N(11),x()()()),2&t){const e=B();C(1),S("ngForOf",e.statusData.nodes),C(4),kt(e.getTotalSessionCount()),C(2),kt(e.getMaxPresenceCount()),C(2),kt(e.getTotalMatchCount()),C(2),kt(e.getTotalGorountineCount())}}function H9e(t,n){if(1&t&&(b(0,"option",35),N(1),x()),2&t){const e=n.$implicit,i=B();kf("value",e),C(1),kt(i.ranges[e])}}const Y2=function(t){return{"background-color":t}};function U9e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),N(4),x()()),2&t){const e=n.$implicit;C(2),S("ngStyle",nr(3,Y2,e.color)),C(2),Tf("",e.series,": ",e.value,"")}}function z9e(t,n){if(1&t&&(b(0,"div",39),N(1),Z(2,U9e,5,5,"span",40),x()),2&t){const e=n.model;C(1),yn(" ",e[0].name.toLocaleString()," "),C(1),S("ngForOf",e)}}function G9e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",37),Z(2,z9e,3,2,"ng-template",null,38,Uo),x()()),2&t){const e=B();C(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function W9e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),N(4),x()()),2&t){const e=n.$implicit;C(2),S("ngStyle",nr(3,Y2,e.color)),C(2),Tf("",e.series,": ",e.value,"")}}function q9e(t,n){if(1&t&&(b(0,"div",39),N(1),Z(2,W9e,5,5,"span",40),x()),2&t){const e=n.model;C(1),yn(" ",e[0].name.toLocaleString()," "),C(1),S("ngForOf",e)}}function Y9e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",43),Z(2,q9e,3,2,"ng-template",null,38,Uo),x()()),2&t){const e=B();C(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function X9e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),N(4),x()()),2&t){const e=n.$implicit;C(2),S("ngStyle",nr(3,Y2,e.color)),C(2),Tf("",e.series,": ",e.value,"")}}function J9e(t,n){if(1&t&&(b(0,"div",39),N(1),Z(2,X9e,5,5,"span",40),x()),2&t){const e=n.model;C(1),yn(" ",e[0].name.toLocaleString()," "),C(1),S("ngForOf",e)}}function K9e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",44),Z(2,J9e,3,2,"ng-template",null,38,Uo),x()()),2&t){const e=B();C(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function Q9e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),N(4),x()()),2&t){const e=n.$implicit;C(2),S("ngStyle",nr(3,Y2,e.color)),C(2),Tf("",e.series,": ",e.value,"")}}function Z9e(t,n){if(1&t&&(b(0,"div",39),N(1),Z(2,Q9e,5,5,"span",40),x()),2&t){const e=n.model;C(1),yn(" ",e[0].name.toLocaleString()," "),C(1),S("ngForOf",e)}}function eVe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",45),Z(2,Z9e,3,2,"ng-template",null,38,Uo),x()()),2&t){const e=B();C(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let tVe=(()=>{class t{route;consoleService;formBuilder;error="";showDelta=!1;statusData;rateGraphData=[];latencyGraphData=[];inputGraphData=[];outputGraphData=[];rangeForm;ranges={1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"};rangesKeys=Object.keys(this.ranges).map(e=>+e);colorScheme={domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]};samples=60;refreshTimer;$refreshTimer;constructor(e,i,r){this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=zy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=zy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}static \u0275fac=function(i){return new(i||t)(he(Pr),he(bi),he(vl))};static \u0275cmp=$t({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Status"),x(),Z(2,P9e,4,2,"ngb-alert",1),b(3,"table",2),be("mouseover",function(){return r.showDelta=!0})("mouseout",function(){return r.showDelta=!1}),b(4,"thead",3)(5,"tr")(6,"th",4),N(7,"Node name"),x(),b(8,"th",4),N(9,"Sessions"),x(),b(10,"th",4),N(11,"Presences"),x(),b(12,"th",4),N(13,"Authoritative Matches"),x(),b(14,"th",4),N(15,"Goroutines"),x()()(),Z(16,V9e,12,5,"tbody",5),x(),b(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),N(21,"View:"),x(),b(22,"div",9)(23,"select",10),be("change",function(s){return r.setRange(s)}),Z(24,H9e,2,2,"option",11),mA(25,"sortNumbers"),x()()()()(),b(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),N(30,"Processing Latency"),x(),b(31,"small"),N(32," (ms)"),x()()(),b(33,"div",13)(34,"div",14)(35,"h5",15),N(36,"Rate"),x(),b(37,"small"),N(38," (rpc/s)"),x()()()(),b(39,"div",12)(40,"div",16),Z(41,G9e,4,12,"div",17),x(),b(42,"div",16),Z(43,Y9e,4,12,"div",17),x()(),b(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),N(48,"Input"),x(),b(49,"small"),N(50," (kb/s)"),x()()(),b(51,"div",13)(52,"div",14)(53,"h5",15),N(54,"Output"),x(),b(55,"small"),N(56," (kb/s)"),x()()()(),b(57,"div",12)(58,"div",16),Z(59,K9e,4,12,"div",17),x(),b(60,"div",16),Z(61,eVe,4,12,"div",17),x()()),2&i&&(C(2),S("ngIf",r.error),C(14),S("ngIf",r.statusData),C(1),S("formGroup",r.rangeForm),C(7),S("ngForOf",gA(25,8,r.rangesKeys)),C(17),S("ngIf",r.latencyGraphData.length>0),C(2),S("ngIf",r.rateGraphData.length>0),C(16),S("ngIf",r.inputGraphData.length>0),C(2),S("ngIf",r.outputGraphData.length>0))},dependencies:function(){return[Ln,_n,c7,Nw,a7,po,ju,OPe,g9e,el,VC,HC,Cv,Qa,Za,ca,Aa,iVe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})}return t})(),nVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(et(r=>Rn(r.nodes.map(o=>o.name)))).pipe(Ll(r=>(e.data={...e.data,error:r},Rn([]))))}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iVe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=cl({name:"sortNumbers",type:t,pure:!1})}return t})();var rVe=ke(870),WI=ke(327);const oVe=["fileSelector"];function sVe(t,n){if(1&t&&(b(0,"div",8),N(1),x()),2&t){const e=B(2);C(1),kt(e.dropZoneLabel)}}function aVe(t,n){if(1&t){const e=yt();b(0,"div")(1,"input",9),be("click",function(r){return $e(e),Be(B(2).openFileSelector(r))}),x()()}if(2&t){const e=B(2);C(1),kf("value",e.browseBtnLabel),S("className",e.browseBtnClassName)}}function lVe(t,n){if(1&t&&(Z(0,sVe,2,1,"div",6),Z(1,aVe,2,2,"div",7)),2&t){const e=B();S("ngIf",e.dropZoneLabel),C(1),S("ngIf",e.showBrowseBtn)}}function cVe(t,n){}const uVe=function(t){return{openFileSelector:t}};class X2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let Gq=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(he(oo))},t.\u0275dir=sn({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),Wq=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new it,this.onFileOver=new it,this.onFileLeave=new it,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new X2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=zy(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new X2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new X2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(he(ir),he(aa))},t.\u0275cmp=$t({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&yi(r,Gq,5,oo),2&e){let o;wn(o=Cn())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&jo(oVe,7),2&e){let r;wn(r=Cn())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(b(0,"div",0),be("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),b(1,"div",1)(2,"input",2,3),be("change",function(o){return i.uploadFiles(o)}),x(),Z(4,lVe,2,2,"ng-template",null,4,Uo),Z(6,cVe,0,0,"ng-template",5),x()()),2&e){const r=qs(5);jn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),S("className",i.dropZoneClassName),C(1),S("className",i.contentClassName),C(1),S("accept",i.accept)("multiple",i.multiple),ut("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),C(4),S("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",nr(13,uVe,i.openFileSelector))}},dependencies:[_n,Eu],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),dVe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t,bootstrap:function(){return[Wq]}}),t.\u0275inj=wi({imports:[Mf]}),t})();function hVe(t,n){1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),N(3,"Failed to retrieve configuration."),x()()),2&t&&S("dismissible",!1)}function fVe(t,n){if(1&t&&(b(0,"span",33),N(1),x()),2&t){const e=B(2).$implicit;S("id",e.name),C(1),kt(e.value)}}function pVe(t,n){1&t&&(b(0,"span",34),N(1,"(empty)"),x()),2&t&&S("id",B(2).$implicit.name)}function mVe(t,n){if(1&t&&(b(0,"div",35)(1,"b"),N(2),x(),b(3,"label",27)(4,"a",28),ge(5,"img",10),x()()()),2&t){const e=B(2).index,i=B();C(2),kt(i.flatConfig[e+1].name),C(1),S("for",i.flatConfig[e+1].name),C(1),Jp("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",i.flatConfig[e+1].name,"",L1)}}function gVe(t,n){if(1&t&&(b(0,"span",33),N(1),x()),2&t){const e=B(3).index,i=B();S("id",i.flatConfig[e+1].name),C(1),kt(i.flatConfig[e+1].value)}}function vVe(t,n){if(1&t&&(b(0,"span",34),N(1,"(empty)"),x()),2&t){const e=B(3).index;S("id",B().flatConfig[e+1].name)}}function yVe(t,n){if(1&t&&(b(0,"div",36),Z(1,gVe,2,2,"span",29),Z(2,vVe,2,1,"span",30),x()),2&t){const e=B(2).index,i=B();C(1),S("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),C(1),S("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function _Ve(t,n){if(1&t&&(b(0,"div",26)(1,"div",7)(2,"b"),N(3),x(),b(4,"label",27)(5,"a",28),ge(6,"img",10),x()()(),b(7,"div",7),Z(8,fVe,2,2,"span",29),Z(9,pVe,2,1,"span",30),x(),Z(10,mVe,6,3,"div",31),Z(11,yVe,3,2,"div",32),x()),2&t){const e=B(),i=e.index,r=e.$implicit,o=B();jn("border-top-0",i>0),C(3),kt(r.name),C(1),S("for",r.name),C(1),Jp("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",r.value.name,"",L1),C(3),S("ngIf",!o.isEmpty(r.value)),C(1),S("ngIf",o.isEmpty(r.value)),C(1),S("ngIf",i{class t{config;route;httpClient;modalService;consoleService;formBuilder;configError="";uploadError="";deleteError="";jsonConfig;flatConfig;nakamaVersion;file;uploading=!1;uploadSuccess=!1;deleteSuccess=!1;deleting=!1;confirmDeleteForm;apiConfig;constructor(e,i,r,o,s,a){this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",wo.compose([wo.required,wo.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,rVe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});WI.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(J3(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(he(W3),he(Pr),he(qC),he(SO),he(bi),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:43,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height",""],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["confirmDelete",""],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],[1,"mt-2"],["autocomplete","off",3,"formGroup"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(i,r){if(1&i){const o=yt();Z(0,hVe,4,1,"ngb-alert",0),b(1,"h2",1),N(2,"Server Configuration"),x(),b(3,"div",2)(4,"h5")(5,"b"),N(6,"Server version:"),x(),N(7),x(),b(8,"button",3),be("click",function(){return r.exportYaml()}),N(9,"Export Configuration"),x()(),b(10,"div",4),Z(11,bVe,2,1,"ng-container",5),b(12,"div",6)(13,"div",7)(14,"b"),N(15,"runtime.env"),x(),b(16,"label",8)(17,"a",9),ge(18,"img",10),x()()(),b(19,"div",11),Z(20,wVe,2,1,"div",12),Z(21,CVe,3,0,"div",12),x()()(),b(22,"h5",13),N(23,"Import storage data"),x(),b(24,"p"),N(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),Z(26,SVe,6,2,"ngb-alert",0),Z(27,kVe,4,1,"ngb-alert",14),b(28,"ngx-file-drop",15),be("onFileDrop",function(a){return r.dropped(a)}),Z(29,DVe,2,0,"ng-template",16),x(),b(30,"h5",13),N(31,"Delete all data"),x(),Z(32,TVe,6,2,"ngb-alert",0),Z(33,EVe,4,1,"ngb-alert",14),b(34,"div",17)(35,"div"),ge(36,"img",18),b(37,"small",19),N(38,"Warning - this operation is not reversible!"),x()(),Z(39,MVe,19,5,"ng-template",null,20,Uo),b(41,"button",21),be("click",function(){$e(o);const a=qs(40);return Be(r.openDeleteDataModal(a))}),N(42,"Delete all"),x()()}2&i&&(S("ngIf",r.configError),C(7),yn(" ",r.nakamaVersion,""),C(4),S("ngForOf",r.flatConfig),C(9),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&r.jsonConfig.runtime.env.length>0),C(1),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&0===r.jsonConfig.runtime.env.length),C(5),S("ngIf",r.uploadError),C(1),S("ngIf",r.uploadSuccess),C(1),S("disabled",r.uploading),C(4),S("ngIf",r.deleteError),C(1),S("ngIf",r.deleteSuccess),C(8),S("disabled",r.deleting))},dependencies:[Wq,Gq,Af,Ln,_n,po,el,Ta,Qa,Za,ca,Aa],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})}return t})(),IVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function NVe(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function FVe(t,n){1&t&&(b(0,"tr")(1,"td",51),N(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(C(1),S("colSpan",4))}function PVe(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td"),N(2),x(),b(3,"td"),N(4),x(),b(5,"td")(6,"span",36),N(7,"Administrator"),x(),b(8,"span",36),N(9,"Developer"),x(),b(10,"span",36),N(11,"Maintainer"),x(),b(12,"span",36),N(13,"View Only"),x()(),b(14,"td")(15,"button",52),be("click",function(){const o=$e(e).$implicit;return Be(B().deleteUser(o.username))}),N(16,"Delete"),x()()()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.username),C(2),kt(e.email),C(2),S("hidden",e.role!==i.adminRole),C(2),S("hidden",e.role!==i.developerRole),C(2),S("hidden",e.role!==i.maintainerRole),C(2),S("hidden",e.role!==i.readonlyRole)}}function jVe(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),N(3,"An error occurred:"),x(),b(4,"p",53),N(5),x()()),2&t){const e=B();S("dismissible",!1),C(5),kt(e.userCreateError)}}const qI=function(t){return{"is-invalid":t}};let RVe=(()=>{class t{route;consoleService;formBuilder;error="";userCreateError="";users=[];createUserForm;adminRole=ii.USER_ROLE_ADMIN;developerRole=ii.USER_ROLE_DEVELOPER;maintainerRole=ii.USER_ROLE_MAINTAINER;readonlyRole=ii.USER_ROLE_READONLY;constructor(e,i,r){this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",wo.required],email:["",[wo.required,wo.email]],password:["",wo.compose([wo.required,wo.minLength(8)])],role:[+this.readonlyRole,wo.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}deleteUser(e){this.error="",this.consoleService.deleteUser("",e).pipe(et(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=ii.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=ii.USER_ROLE_ADMIN;break;case 2:e=ii.USER_ROLE_DEVELOPER;break;case 3:e=ii.USER_ROLE_MAINTAINER;break;case 4:e=ii.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value}).pipe(et(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(bi),he(vl))};static \u0275cmp=$t({type:t,selectors:[["app-users"]],decls:121,vars:25,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type","dismissible"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"text-muted",3,"colSpan"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Management"),x(),Z(2,NVe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th",4),N(7,"Username"),x(),b(8,"th"),N(9,"Email"),x(),b(10,"th",5),N(11,"Role"),x(),b(12,"th",6),N(13,"Action"),x()()(),b(14,"tbody"),Z(15,FVe,3,1,"tr",7),Z(16,PVe,17,6,"tr",8),x()(),b(17,"h5",9),N(18,"Add new user"),x(),b(19,"ngb-alert",10)(20,"h6",11),N(21,"User roles"),x(),b(22,"div",12)(23,"div",13)(24,"div",14),ge(25,"img",15),b(26,"h6",16),N(27,"Administrator"),x()(),b(28,"small"),N(29," Owners have complete control over the server, its users and resources. "),x()(),b(30,"div",13)(31,"div",14),ge(32,"img",17),b(33,"h6",16),N(34,"Developer"),x()(),b(35,"small"),N(36," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),b(37,"div",13)(38,"div",14),ge(39,"img",18),b(40,"h6",16),N(41,"Maintainer"),x()(),b(42,"small"),N(43," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),b(44,"div",13)(45,"div",14),ge(46,"img",19),b(47,"h6",16),N(48,"View Only"),x()(),b(49,"small"),N(50," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),Z(51,jVe,6,2,"ngb-alert",1),b(52,"div",20)(53,"form",21),be("ngSubmit",function(){return r.addUser()}),b(54,"div",22)(55,"div",23)(56,"div",24)(57,"label",25),N(58,"Email"),x()(),b(59,"div",26),ge(60,"input",27),b(61,"div",28),N(62,"Email is required"),x()()()(),b(63,"div",22)(64,"div",23)(65,"div",24)(66,"label",29),N(67,"Username"),x()(),b(68,"div",26),ge(69,"input",30),b(70,"div",28),N(71,"Username is required"),x()()()(),b(72,"div",22)(73,"div",23)(74,"div",24)(75,"label",31),N(76,"Password"),x()(),b(77,"div",26),ge(78,"input",32),b(79,"div",28),N(80,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),b(81,"div",22)(82,"div",23)(83,"div",24)(84,"label",33),N(85,"Role"),x()(),b(86,"div",26)(87,"div",34)(88,"button",35)(89,"span",36),N(90,"Administrator"),x(),b(91,"span",36),N(92,"Developer"),x(),b(93,"span",36),N(94,"Maintainer"),x(),b(95,"span",36),N(96,"View Only"),x()(),b(97,"div",37),ge(98,"button",38),b(99,"div",39)(100,"button",40),be("click",function(){return r.f.role.setValue(+r.adminRole)}),N(101,"Administrator"),x(),b(102,"button",40),be("click",function(){return r.f.role.setValue(+r.developerRole)}),N(103,"Developer"),x(),b(104,"button",40),be("click",function(){return r.f.role.setValue(+r.maintainerRole)}),N(105,"Maintainer"),x(),b(106,"button",40),be("click",function(){return r.f.role.setValue(+r.readonlyRole)}),N(107,"View Only"),x()()()(),b(108,"div",28),N(109,"Role is required"),x()()()(),b(110,"div",41)(111,"div",42),ge(112,"div",24),b(113,"div",26)(114,"div",43),ge(115,"input",44),b(116,"label",45),N(117,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),b(118,"div",46)(119,"button",47),N(120,"Save"),x()()()()),2&i&&(C(2),S("ngIf",r.error),C(13),S("ngIf",0===r.users.length),C(1),S("ngForOf",r.users),C(3),S("type","secondary")("dismissible",!1),C(32),S("ngIf",r.userCreateError),C(2),S("formGroup",r.createUserForm),C(7),S("ngClass",nr(19,qI,r.f.email.dirty&&r.f.email.errors)),C(1),S("hidden",r.f.email.disabled||r.f.email.valid||r.f.email.pristine),C(8),S("ngClass",nr(21,qI,r.f.username.dirty&&r.f.username.errors)),C(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),C(8),S("ngClass",nr(23,qI,r.f.password.dirty&&r.f.password.errors)),C(1),S("hidden",r.f.password.disabled||r.f.password.valid||r.f.password.pristine),C(10),S("hidden",r.f.role.value!==+r.adminRole),C(2),S("hidden",r.f.role.value!==+r.developerRole),C(2),S("hidden",r.f.role.value!==+r.maintainerRole),C(2),S("hidden",r.f.role.value!==+r.readonlyRole),C(13),S("hidden",r.f.role.disabled||r.f.role.valid||r.f.role.pristine),C(11),S("disabled",r.createUserForm.invalid))},dependencies:[Af,Ln,_n,po,ju,bm,qf,Wf,el,Ta,MC,Qa,Za,Hf,ca,Aa],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})}return t})(),LVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $Ve(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Failed to retrieve runtime information: ",e.error,"")}}function BVe(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td",13),N(4),x()()),2&t){const e=n.$implicit;C(2),kt(e.path),C(2),kt(e.mod_time)}}function VVe(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No Go modules were found."),x(),ge(3,"td"),x())}function HVe(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td",13),N(4),x()()),2&t){const e=n.$implicit;C(2),kt(e.path),C(2),kt(e.mod_time)}}function UVe(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No Lua modules were found."),x(),ge(3,"td"),x())}function zVe(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td",13),N(4),x()()),2&t){const e=n.$implicit;C(2),kt(e.path),C(2),kt(e.mod_time)}}function GVe(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No JavaScript modules were found."),x(),ge(3,"td"),x())}const YI=function(){return["/apiexplorer"]},XI=function(t){return{endpoint:t}};function WVe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),N(3),x()(),b(4,"td",15)(5,"a",16),N(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;C(3),kt(e),C(2),S("routerLink",pl(3,YI))("queryParams",nr(4,XI,e))}}function qVe(t,n){1&t&&(b(0,"tr")(1,"td",17),N(2,"No Go RPC functions were found."),x()())}function YVe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),N(3),x()(),b(4,"td",15)(5,"a",16),N(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;C(3),kt(e),C(2),S("routerLink",pl(3,YI))("queryParams",nr(4,XI,e))}}function XVe(t,n){1&t&&(b(0,"tr")(1,"td",17),N(2,"No Lua RPC functions were found."),x()())}function JVe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),N(3),x()(),b(4,"td",15)(5,"a",16),N(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;C(3),kt(e),C(2),S("routerLink",pl(3,YI))("queryParams",nr(4,XI,e))}}function KVe(t,n){1&t&&(b(0,"tr")(1,"td",17),N(2,"No JavaScript RPC functions were found."),x()())}let QVe=(()=>{class t{route;consoleService;error="";runtimeInfo;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(he(Pr),he(bi))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Runtime Modules"),x(),Z(2,$Ve,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),N(7,"Go Modules"),x(),b(8,"th",4),N(9,"Last Modified"),x()()(),b(10,"tbody"),Z(11,BVe,5,2,"tr",5),Z(12,VVe,4,0,"tr",6),x(),b(13,"thead",3)(14,"tr")(15,"th",7),N(16,"Lua Modules"),x()()(),b(17,"tbody"),Z(18,HVe,5,2,"tr",5),Z(19,UVe,4,0,"tr",6),x(),b(20,"thead",3)(21,"tr")(22,"th",7),N(23,"JavaScript Modules"),x()()(),b(24,"tbody"),Z(25,zVe,5,2,"tr",5),Z(26,GVe,4,0,"tr",6),x()(),b(27,"h4",8),N(28,"Registered RPC Functions"),x(),b(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),N(33,"Go RPC Functions"),x()()(),b(34,"tbody"),Z(35,WVe,7,6,"tr",5),Z(36,qVe,3,0,"tr",6),x(),b(37,"thead",3)(38,"tr")(39,"th",7),N(40,"Lua RPC Functions"),x()()(),b(41,"tbody"),Z(42,YVe,7,6,"tr",5),Z(43,XVe,3,0,"tr",6),x(),b(44,"thead",3)(45,"tr")(46,"th",7),N(47,"JavaScript RPC Functions"),x()()(),b(48,"tbody"),Z(49,JVe,7,6,"tr",5),Z(50,KVe,3,0,"tr",6),x()()),2&i&&(C(2),S("ngIf",r.error),C(9),S("ngForOf",r.runtimeInfo.go_modules),C(1),S("ngIf",0===r.runtimeInfo.go_modules.length),C(6),S("ngForOf",r.runtimeInfo.lua_modules),C(1),S("ngIf",0===r.runtimeInfo.lua_modules.length),C(6),S("ngForOf",r.runtimeInfo.js_modules),C(1),S("ngIf",0===r.runtimeInfo.js_modules.length),C(9),S("ngForOf",r.runtimeInfo.go_rpc_functions),C(1),S("ngIf",0===r.runtimeInfo.go_rpc_functions.length),C(6),S("ngForOf",r.runtimeInfo.lua_rpc_functions),C(1),S("ngIf",0===r.runtimeInfo.lua_rpc_functions.length),C(6),S("ngForOf",r.runtimeInfo.js_rpc_functions),C(1),S("ngIf",0===r.runtimeInfo.js_rpc_functions.length))},dependencies:[Mu,Ln,_n,po],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})}return t})(),ZVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eHe(t,n){1&t&&(b(0,"span"),N(1,"Filter by collection"),x())}function tHe(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B();C(1),kt(e.f.collection.value)}}function nHe(t,n){if(1&t){const e=yt();b(0,"button",34),be("click",function(){const o=$e(e).$implicit;return Be(B().f.collection.setValue(o))}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function iHe(t,n){if(1&t&&(b(0,"ngb-alert",35),ge(1,"img",36),b(2,"h6",37),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error when querying storage objects: ",e.error,"")}}function rHe(t,n){1&t&&(b(0,"th",38),N(1,"Remove"),x())}function oHe(t,n){1&t&&(b(0,"tr")(1,"td",39),N(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function sHe(t,n){if(1&t){const e=yt();b(0,"td",42)(1,"button",43),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteObject(r,s,a))}),N(2,"Delete"),x()()}}function aHe(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",40),be("click",function(){const o=$e(e).$implicit;return Be(B().viewObject(o))}),N(2),x(),b(3,"td",40),be("click",function(){const o=$e(e).$implicit;return Be(B().viewObject(o))}),N(4),x(),b(5,"td",40),be("click",function(){const o=$e(e).$implicit;return Be(B().viewObject(o))}),N(6),x(),b(7,"td",40),be("click",function(){const o=$e(e).$implicit;return Be(B().viewObject(o))}),N(8),x(),Z(9,sHe,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.collection),C(2),kt(e.key),C(2),kt(e.user_id),C(2),kt(e.update_time),C(1),S("ngIf",i.deleteAllowed())}}let lHe=(()=>{class t{route;router;consoleService;authService;formBuilder;systemUserId="00000000-0000-0000-0000-000000000000";error="";collections=[];objects=[];objectCount=0;nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Storage Objects"),x(),b(2,"h6",1),N(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),be("ngSubmit",function(){return r.search(0)}),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),Z(12,eHe,2,0,"span",10),Z(13,tHe,2,1,"span",10),x(),b(14,"div",11)(15,"button",12),be("click",function(){return r.f.collection.reset()}),N(16,"\u2718 Deselect collection"),x(),ge(17,"div",13),Z(18,nHe,2,1,"button",14),x()()(),ge(19,"input",15)(20,"input",16),b(21,"div",17)(22,"span",18),be("click",function(){return r.f.user_id.setValue(r.systemUserId)}),ge(23,"img",19),x()(),b(24,"div",17)(25,"button",20),be("click",function(){return r.search(0)}),N(26,"Search"),x()()()()(),b(27,"div",21)(28,"div",22)(29,"button",23),be("click",function(){return r.search(0)}),ge(30,"img",24),x(),b(31,"button",23),be("click",function(){return r.search(1)}),ge(32,"img",25),x()()()()(),Z(33,iHe,4,2,"ngb-alert",26),b(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),N(39,"Collection Name"),x(),b(40,"th"),N(41,"Key Name"),x(),b(42,"th",30),N(43,"User ID"),x(),b(44,"th",31),N(45,"Last Update"),x(),Z(46,rHe,2,0,"th",32),x()(),b(47,"tbody"),Z(48,oHe,3,0,"tr",10),Z(49,aHe,10,5,"tr",33),x()()()),2&i&&(C(3),yn("",r.objectCount," objects found."),C(4),S("formGroup",r.searchForm),C(4),S("disabled",0===r.collections.length),C(1),S("ngIf",!r.f.collection.value||""===r.f.collection.value),C(1),S("ngIf",r.f.collection.value&&""!==r.f.collection.value),C(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),C(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),C(1),S("ngForOf",r.collections),C(7),S("disabled",r.disableSearch()),C(4),S("disabled",0===r.objects.length),C(2),S("disabled",""===r.nextCursor),C(2),S("ngIf",r.error),C(13),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.objects.length),C(1),S("ngForOf",r.objects))},dependencies:[Ln,_n,po,ju,bm,qf,Wf,el,Ta,Qa,Za,ca,Aa],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),cHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var JI,qq,Yq,Xq,Jq,Kq,Qq,Zq,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,_Y,bY,xY,wY,CY,SY,kY,DY,TY,EY,AY,MY,OY,IY,NY,FY,PY,jY,RY,LY,$Y,BY,VY,HY,UY,zY,GY,WY,qY,YY,XY,JY,KY,QY,ZY,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,_X,bX,xX,wX,CX,SX,kX,DX,TX,EX,AX,MX,OX,IX,NX,FX,PX,jX,RX,LX,$X,BX,VX,HX,UX,zX,GX,WX,qX,YX,XX,JX,KX,QX,ZX,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,_J,bJ,xJ,wJ,CJ,SJ,kJ,DJ,TJ,EJ,AJ,MJ,OJ,IJ,NJ,FJ,PJ,jJ,RJ,LJ,$J,BJ,VJ,HJ,UJ,zJ,GJ,WJ,qJ,YJ,XJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,_K,bK,xK,wK,CK,SK,kK,DK,TK,EK,AK,MK,OK,IK,NK,FK,PK,jK,RK,LK,$K,BK,VK,HK,UK,zK,GK,WK,qK,YK,XK,JK,KK,QK,ZK,eQ,tQ,nQ,iQ,rQ,oQ,sQ,aQ,lQ,cQ,uQ,dQ,hQ,fQ,pQ,mQ,gQ,vQ,yQ,_Q,bQ,xQ,wQ,CQ,SQ,kQ,DQ,TQ,EQ,AQ,MQ,OQ,IQ,NQ,FQ,PQ,jQ,RQ,LQ,$Q,BQ,VQ,HQ,UQ,zQ,GQ,WQ,qQ,YQ,XQ,JQ,KQ,QQ,ZQ,eZ,tZ,nZ,iZ,rZ,dHe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],hHe=["mainAxis","crossAxis","limiter"];function M_(t){var n="function"==typeof Map?new Map:void 0;return M_=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return KI(e,arguments,Wi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),O_(r,e)},M_(t)}function KI(t,n,e){return(KI=uZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&O_(a,o.prototype),a}).apply(null,arguments)}function Ee(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function oZ(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Re(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=J2(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function pn(){pn=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(X,te,P){X[te]=P.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(X,te,P){return Object.defineProperty(X,te,{value:P,enumerable:!0,configurable:!0,writable:!0}),X[te]}try{l({},"")}catch{l=function(te,P,W){return te[P]=W}}function c(X,te,P,W){var H=Object.create((te&&te.prototype instanceof h?te:h).prototype),le=new R(W||[]);return i(H,"_invoke",{value:k(X,P,le)}),H}function u(X,te,P){try{return{type:"normal",arg:X.call(te,P)}}catch(W){return{type:"throw",arg:W}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(U([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function _(X){["next","throw","return"].forEach(function(te){l(X,te,function(P){return this._invoke(te,P)})})}function w(X,te){function P(J,H,le,E){var O=u(X[J],X,H);if("throw"!==O.type){var I=O.arg,q=I.value;return q&&"object"==mn(q)&&e.call(q,"__await")?te.resolve(q.__await).then(function(V){P("next",V,le,E)},function(V){P("throw",V,le,E)}):te.resolve(q).then(function(V){I.value=V,le(I)},function(V){return P("throw",V,le,E)})}E(O.arg)}var W;i(this,"_invoke",{value:function(J,H){function le(){return new te(function(E,O){P(J,H,E,O)})}return W=W?W.then(le,le):le()}})}function k(X,te,P){var W="suspendedStart";return function(J,H){if("executing"===W)throw new Error("Generator is already running");if("completed"===W){if("throw"===J)throw H;return{value:void 0,done:!0}}for(P.method=J,P.arg=H;;){var le=P.delegate;if(le){var E=D(le,P);if(E){if(E===d)continue;return E}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if("suspendedStart"===W)throw W="completed",P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);W="executing";var O=u(X,te,P);if("normal"===O.type){if(W=P.done?"completed":"suspendedYield",O.arg===d)continue;return{value:O.arg,done:P.done}}"throw"===O.type&&(W="completed",P.method="throw",P.arg=O.arg)}}}function D(X,te){var P=te.method,W=X.iterator[P];if(void 0===W)return te.delegate=null,"throw"===P&&X.iterator.return&&(te.method="return",te.arg=void 0,D(X,te),"throw"===te.method)||"return"!==P&&(te.method="throw",te.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var J=u(W,X.iterator,te.arg);if("throw"===J.type)return te.method="throw",te.arg=J.arg,te.delegate=null,d;var H=J.arg;return H?H.done?(te[X.resultName]=H.value,te.next=X.nextLoc,"return"!==te.method&&(te.method="next",te.arg=void 0),te.delegate=null,d):H:(te.method="throw",te.arg=new TypeError("iterator result is not an object"),te.delegate=null,d)}function L(X){var te={tryLoc:X[0]};1 in X&&(te.catchLoc=X[1]),2 in X&&(te.finallyLoc=X[2],te.afterLoc=X[3]),this.tryEntries.push(te)}function z(X){var te=X.completion||{};te.type="normal",delete te.arg,X.completion=te}function R(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(L,this),this.reset(!0)}function U(X){if(X){var te=X[o];if(te)return te.call(X);if("function"==typeof X.next)return X;if(!isNaN(X.length)){var P=-1,W=function J(){for(;++P=0;--W){var J=this.tryEntries[W],H=J.completion;if("root"===J.tryLoc)return P("end");if(J.tryLoc<=this.prev){var le=e.call(J,"catchLoc"),E=e.call(J,"finallyLoc");if(le&&E){if(this.prev=0;--P){var W=this.tryEntries[P];if(W.tryLoc<=this.prev&&e.call(W,"finallyLoc")&&this.prev=0;--te){var P=this.tryEntries[te];if(P.finallyLoc===X)return this.complete(P.completion,P.afterLoc),z(P),d}},catch:function(X){for(var te=this.tryEntries.length-1;te>=0;--te){var P=this.tryEntries[te];if(P.tryLoc===X){var W=P.completion;if("throw"===W.type){var J=W.arg;z(P)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(X,te,P){return this.delegate={iterator:U(X),resultName:te,nextLoc:P},"next"===this.method&&(this.arg=void 0),d}},t}function sZ(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Ki(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){sZ(o,i,r,s,a,"next",l)}function a(l){sZ(o,i,r,s,a,"throw",l)}s(void 0)})}}function Un(t,n){return lZ(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||J2(t,n)||aZ()}function aZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lZ(t){if(Array.isArray(t))return t}function cZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function Qe(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wi(t){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function Ce(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function dZ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function Yd(t,n){return new t(n)}var N_,Q2=new Map,tN=0;function SZ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function yHe(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=eN(t),m=Q2.get(p)||function _He(t,n){var e={stylesheet:gHe(n),rules:{}};return Q2.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),tN+=1,f}function F_(t){N_=t}function qv(){if(!N_)throw new Error("Function called outside component initialization");return N_}function qc(t){qv().$$.on_mount.push(t)}function Vu(t){qv().$$.on_destroy.push(t)}function kZ(){var t=qv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=CZ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function DZ(t,n){return qv().$$.context.set(t,n),n}function ma(t){return qv().$$.context.get(t)}function Z2(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Yv=[],Hi=[],eS=[],nN=[],TZ=Promise.resolve(),iN=!1;function EZ(){iN||(iN=!0,TZ.then(AZ))}function Ul(){return EZ(),TZ}function jm(t){eS.push(t)}function Hu(t){nN.push(t)}var tS,rN=new Set,Xv=0;function AZ(){if(0===Xv){var t=N_;do{try{for(;Xvl.start&&(a=d(l,_),l=null,oN(t,a.b,"start"),z&&(u(),c=SZ(t,s,a.b,a.duration,0,k,o.css))),a&&(U>=a.end?(L(s=a.b,1-s),oN(t,a.b,"end"),l||(a.b?u():--a.group.r||so(a.group.c)),a=null):U>=a.start&&(s=a.a+a.d*k((U-a.start)/a.duration),L(s,1-s))),!(!a&&!l)},0===I_.size&&ZI(_Z),new Promise(function(U){I_.add({c:p,f:U})}))}return{run:function(f){fa(o)?(tS||(tS=Promise.resolve()).then(function(){tS=null}),tS).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var sN=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function CHe(t,n){t.d(1),n.delete(t.key)}function aN(t,n){ae(t,1,1,function(){n.delete(t.key)})}function rS(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var _=d(r,o,p),w=e(_),k=s.get(w);k?i&&k.p(_,n):(k=c(w,_)).c(),v.set(w,g[p]=k),w in m&&y.set(w,Math.abs(p-m[w]))}var D=new Set,L=new Set;function z(P){K(P,1),P.m(a,u),s.set(P.key,P),u=P.first,f--}for(;h&&f;){var R=g[f-1],U=t[h-1],G=R.key,X=U.key;R===U?(u=R.first,h--,f--):v.has(X)?!s.has(G)||D.has(G)?z(R):L.has(X)?h--:y.get(G)>y.get(X)?(L.add(G),z(R)):(D.add(X),h--):(l(U,s),h--)}for(;h--;){var te=t[h];v.has(te.key)||l(te,s)}for(;f;)z(g[f-1]);return g}function Rm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function oS(t){return"object"===mn(t)&&null!==t?t:{}}function Uu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function ft(t){t&&t.c()}function dt(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||jm(function(){var a,l=t.$$.on_mount.map(mZ).filter(fa);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,ri(l)):so(l),t.$$.on_mount=[]}),s.forEach(jm)}function ht(t,n){var e=t.$$;null!==e.fragment&&(so(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Nn(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=N_;F_(t);var c=t.$$={fragment:null,ctx:[],props:o,update:jt,not_equal:r,bound:gZ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:gZ(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function SHe(t,n){-1===t.$$.dirty[0]&&(Yv.push(t),EZ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function THe(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function EHe(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?pZ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var MHe=sN.window;function OHe(t){di(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function OZ(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=t[1].closeButton&&IZ(t),w=t[2];return w&&(s=Yd(w,{})),{c:function(){n=ve("div"),e=ve("div"),i=ve("div"),_&&_.c(),r=tt(),o=ve("div"),s&&ft(s.$$.fragment),j(o,"class",a=So(t[1].classContent)+" svelte-n7cvum"),j(o,"style",t[9]),At(o,"content",!t[0]),j(i,"class",l=So(t[1].classWindow)+" svelte-n7cvum"),j(i,"role","dialog"),j(i,"aria-modal","true"),j(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),j(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),j(i,"style",t[8]),At(i,"window",!t[0]),j(e,"class",h=So(t[1].classWindowWrap)+" svelte-n7cvum"),j(e,"style",t[7]),At(e,"wrap",!t[0]),j(n,"id",f=t[1].id),j(n,"class",p=So(t[1].classBg)+" svelte-n7cvum"),j(n,"style",t[6]),At(n,"bg",!t[0])},m:function(k,D){Pe(k,n,D),ue(n,e),ue(e,i),_&&_.m(i,null),ue(i,r),ue(i,o),s&&dt(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[It(i,"introstart",function(){fa(t[13])&&t[13].apply(this,arguments)}),It(i,"outrostart",function(){fa(t[14])&&t[14].apply(this,arguments)}),It(i,"introend",function(){fa(t[15])&&t[15].apply(this,arguments)}),It(i,"outroend",function(){fa(t[16])&&t[16].apply(this,arguments)}),It(n,"mousedown",t[20]),It(n,"mouseup",t[21])],v=!0)},p:function(k,D){if((t=k)[1].closeButton?_?(_.p(t,D),2&D[0]&&K(_,1)):((_=IZ(t)).c(),K(_,1),_.m(i,r)):_&&(Rt(),ae(_,1,1,function(){_=null}),Lt()),w!==(w=t[2])){if(s){Rt();var L=s;ae(L.$$.fragment,1,0,function(){ht(L,1)}),Lt()}w?(ft((s=Yd(w,{})).$$.fragment),K(s.$$.fragment,1),dt(s,o,null)):s=null}(!g||2&D[0]&&a!==(a=So(t[1].classContent)+" svelte-n7cvum"))&&j(o,"class",a),(!g||512&D[0])&&j(o,"style",t[9]),(!g||3&D[0])&&At(o,"content",!t[0]),(!g||2&D[0]&&l!==(l=So(t[1].classWindow)+" svelte-n7cvum"))&&j(i,"class",l),(!g||2&D[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&j(i,"aria-label",c),(!g||2&D[0]&&u!==(u=t[1].ariaLabelledBy||null))&&j(i,"aria-labelledby",u),(!g||256&D[0])&&j(i,"style",t[8]),(!g||3&D[0])&&At(i,"window",!t[0]),(!g||2&D[0]&&h!==(h=So(t[1].classWindowWrap)+" svelte-n7cvum"))&&j(e,"class",h),(!g||128&D[0])&&j(e,"style",t[7]),(!g||3&D[0])&&At(e,"wrap",!t[0]),(!g||2&D[0]&&f!==(f=t[1].id))&&j(n,"id",f),(!g||2&D[0]&&p!==(p=So(t[1].classBg)+" svelte-n7cvum"))&&j(n,"class",p),(!g||64&D[0])&&j(n,"style",t[6]),(!g||3&D[0])&&At(n,"bg",!t[0])},i:function(k){g||(K(_),s&&K(s.$$.fragment,k),jm(function(){d||(d=iS(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),jm(function(){m||(m=iS(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(k){ae(_),s&&ae(s.$$.fragment,k),d||(d=iS(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=iS(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(k){k&&Fe(n),_&&_.d(),s&&ht(s),t[50](null),k&&d&&d.end(),t[51](null),t[52](null),k&&m&&m.end(),v=!1,so(y)}}}function IZ(t){var n,e,i,r,o,s=[NHe,IHe],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=br()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Rt(),ae(a[d],1,1,function(){a[d]=null}),Lt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),K(i,1),i.m(r.parentNode,r))},i:function(c){o||(K(i),o=!0)},o:function(c){ae(i),o=!1},d:function(c){a[e].d(c),c&&Fe(r)}}}function IHe(t){var n,e,i,r;return{c:function(){j(n=ve("button"),"class",e=So(t[1].classCloseButton)+" svelte-n7cvum"),j(n,"aria-label","Close modal"),j(n,"style",t[10]),j(n,"type","button"),At(n,"close",!t[0])},m:function(o,s){Pe(o,n,s),i||(r=It(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=So(o[1].classCloseButton)+" svelte-n7cvum")&&j(n,"class",e),1024&s[0]&&j(n,"style",o[10]),3&s[0]&&At(n,"close",!o[0])},i:jt,o:jt,d:function(o){o&&Fe(n),i=!1,r()}}}function NHe(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=Yd(r,o(t))),{c:function(){n&&ft(n.$$.fragment),e=br()},m:function(s,a){n&&dt(n,s,a),Pe(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){Rt();var l=n;ae(l.$$.fragment,1,0,function(){ht(l,1)}),Lt()}r?(ft((n=Yd(r,o(s))).$$.fragment),K(n.$$.fragment,1),dt(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&K(n.$$.fragment,s),i=!0)},o:function(s){n&&ae(n.$$.fragment,s),i=!1},d:function(s){s&&Fe(e),n&&ht(n,s)}}}function FHe(t){var n,e,i,r,o=t[2]&&OZ(t),s=t[49].default,a=Ss(s,t,t[48],null);return{c:function(){o&&o.c(),n=tt(),a&&a.c()},m:function(l,c){o&&o.m(l,c),Pe(l,n,c),a&&a.m(l,c),e=!0,i||(r=It(MHe,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&K(o,1)):((o=OZ(l)).c(),K(o,1),o.m(n.parentNode,n)):o&&(Rt(),ae(o,1,1,function(){o=null}),Lt()),a&&a.p&&(!e||131072&c[1])&&Ds(a,s,l,l[48],e?ks(s,l[48],c,null):Ts(l[48]),null)},i:function(l){e||(K(o),K(a,l),e=!0)},o:function(l){ae(o),ae(a,l),e=!1},d:function(l){o&&o.d(l),l&&Fe(n),a&&a.d(l),i=!1,r()}}}function NZ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(Qe(Qe({},e),{},{props:Qe(Qe({},n),e.props)}))}}function PHe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,_=void 0===y?{}:y,w=n.$$scope,k=kZ(),L=n.isTabbable,z=void 0===L?function(Ue){return Ue.tabIndex>=0&&!Ue.hidden&&!Ue.disabled&&"none"!==Ue.style.display&&"hidden"!==Ue.type&&Boolean(Ue.offsetWidth||Ue.offsetHeight||Ue.getClientRects().length)}:L,R=n.show,U=void 0===R?null:R,G=n.id,X=void 0===G?null:G,te=n.key,P=void 0===te?"simple-modal":te,W=n.ariaLabel,J=void 0===W?null:W,H=n.ariaLabelledBy,le=void 0===H?null:H,E=n.closeButton,O=void 0===E||E,I=n.closeOnEsc,q=void 0===I||I,V=n.closeOnOuterClick,re=void 0===V||V,de=n.styleBg,Oe=void 0===de?{}:de,ye=n.styleWindowWrap,Xe=void 0===ye?{}:ye,Le=n.styleWindow,rt=void 0===Le?{}:Le,$=n.styleContent,ne=void 0===$?{}:$,ie=n.styleCloseButton,Me=void 0===ie?{}:ie,Ye=n.classBg,je=void 0===Ye?null:Ye,gt=n.classWindowWrap,Tt=void 0===gt?null:gt,fn=n.classWindow,Hn=void 0===fn?null:fn,Zt=n.classContent,Ei=void 0===Zt?null:Zt,ln=n.classCloseButton,dr=void 0===ln?null:ln,wr=n.unstyled,sr=void 0!==wr&&wr,mr=n.setContext,gi=void 0===mr?DZ:mr,Vr=n.transitionBg,Mo=void 0===Vr?AHe:Vr,On=n.transitionBgProps,bt=void 0===On?{duration:250}:On,ai=n.transitionWindow,Ii=void 0===ai?Mo:ai,Cr=n.transitionWindowProps,vo=void 0===Cr?bt:Cr,Yo=n.disableFocusTrap,pt=void 0!==Yo&&Yo,In={id:X,ariaLabel:J,ariaLabelledBy:le,closeButton:O,closeOnEsc:q,closeOnOuterClick:re,styleBg:Oe,styleWindowWrap:Xe,styleWindow:rt,styleContent:ne,styleCloseButton:Me,classBg:je,classWindowWrap:Tt,classWindow:Hn,classContent:Ei,classCloseButton:dr,transitionBg:Mo,transitionBgProps:bt,transitionWindow:Ii,transitionWindowProps:vo,disableFocusTrap:pt,isTabbable:z,unstyled:sr},oi=Qe({},In),vi=null,Tr=function(Ue){return Ue?Object.keys(Ue).reduce(function(kn,ti){return"".concat(kn,"; ").concat((ci=ti,ci.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ue[ti]);var ci},""):""},Hr=function(Ue){return!!(Ue&&Ue.constructor&&Ue.call&&Ue.apply)},no=function(){e(6,a=Tr(Object.assign({},{width:window.innerWidth,height:window.innerHeight},oi.styleBg))),e(7,l=Tr(oi.styleWindowWrap)),e(8,c=Tr(oi.styleWindow)),e(9,u=Tr(oi.styleContent)),e(10,d=Tr(oi.styleCloseButton)),e(11,h=oi.transitionBg),e(12,f=oi.transitionWindow)},Hs=function(){},gr=Hs,Us=Hs,Ha=Hs,Ua=Hs,Mc=function(Ue){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ci=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,vi=NZ(Ue,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,oi=Qe(Qe({},In),ti)),no(),He(),e(13,gr=function(li){ci.onOpen&&ci.onOpen(li),k("open"),k("opening")}),e(14,Us=function(li){ci.onClose&&ci.onClose(li),k("close"),k("closing")}),e(15,Ha=function(li){ci.onOpened&&ci.onOpened(li),k("opened")}),e(16,Ua=function(li){ci.onClosed&&ci.onClosed(li),k("closed")})},xe=function(){var Ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};vi&&(e(14,Us=Ue.onClose||Us),e(16,Ua=Ue.onClosed||Ua),e(2,vi=null),We())},He=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},We=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};gi(P,{open:Mc,close:xe});var lt=!1;return Vu(function(){lt&&xe()}),qc(function(){e(47,lt=!0)}),t.$$set=function(Ue){"isTabbable"in Ue&&e(22,z=Ue.isTabbable),"show"in Ue&&e(23,U=Ue.show),"id"in Ue&&e(24,X=Ue.id),"key"in Ue&&e(25,P=Ue.key),"ariaLabel"in Ue&&e(26,J=Ue.ariaLabel),"ariaLabelledBy"in Ue&&e(27,le=Ue.ariaLabelledBy),"closeButton"in Ue&&e(28,O=Ue.closeButton),"closeOnEsc"in Ue&&e(29,q=Ue.closeOnEsc),"closeOnOuterClick"in Ue&&e(30,re=Ue.closeOnOuterClick),"styleBg"in Ue&&e(31,Oe=Ue.styleBg),"styleWindowWrap"in Ue&&e(32,Xe=Ue.styleWindowWrap),"styleWindow"in Ue&&e(33,rt=Ue.styleWindow),"styleContent"in Ue&&e(34,ne=Ue.styleContent),"styleCloseButton"in Ue&&e(35,Me=Ue.styleCloseButton),"classBg"in Ue&&e(36,je=Ue.classBg),"classWindowWrap"in Ue&&e(37,Tt=Ue.classWindowWrap),"classWindow"in Ue&&e(38,Hn=Ue.classWindow),"classContent"in Ue&&e(39,Ei=Ue.classContent),"classCloseButton"in Ue&&e(40,dr=Ue.classCloseButton),"unstyled"in Ue&&e(0,sr=Ue.unstyled),"setContext"in Ue&&e(41,gi=Ue.setContext),"transitionBg"in Ue&&e(42,Mo=Ue.transitionBg),"transitionBgProps"in Ue&&e(43,bt=Ue.transitionBgProps),"transitionWindow"in Ue&&e(44,Ii=Ue.transitionWindow),"transitionWindowProps"in Ue&&e(45,vo=Ue.transitionWindowProps),"disableFocusTrap"in Ue&&e(46,pt=Ue.disableFocusTrap),"$$scope"in Ue&&e(48,w=Ue.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&<&&(Hr(U)?Mc(U):xe())},[sr,oi,vi,i,r,o,a,l,c,u,d,h,f,gr,Us,Ha,Ua,Hr,xe,function(Ue){if(oi.closeOnEsc&&vi&&"Escape"===Ue.key&&(Ue.preventDefault(),xe()),vi&&"Tab"===Ue.key&&!oi.disableFocusTrap){var kn=o.querySelectorAll("*"),ti=Array.from(kn).filter(oi.isTabbable).sort(function(li,Sr){return li.tabIndex-Sr.tabIndex}),ci=ti.indexOf(document.activeElement);-1===ci&&Ue.shiftKey&&(ci=0),ci+=ti.length+(Ue.shiftKey?-1:1),ti[ci%=ti.length].focus(),Ue.preventDefault()}},function(Ue){!oi.closeOnOuterClick||Ue.target!==i&&Ue.target!==r||(v=Ue.target)},function(Ue){oi.closeOnOuterClick&&Ue.target===v&&(Ue.preventDefault(),xe())},z,U,X,P,J,le,O,q,re,Oe,Xe,rt,ne,Me,je,Tt,Hn,Ei,dr,gi,Mo,bt,Ii,vo,pt,lt,w,_,function(Ue){Hi[Ue?"unshift":"push"](function(){e(5,o=Ue)})},function(Ue){Hi[Ue?"unshift":"push"](function(){e(4,r=Ue)})},function(Ue){Hi[Ue?"unshift":"push"](function(){e(3,i=Ue)})}]}var Wo,Zr,zu,Xd,Gu,Yc,FZ=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,PHe,FHe,ps,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},OHe,[-1,-1,-1]),r}return Se(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Wo||(Wo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(Zr||(Zr={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(zu||(zu={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Xd||(Xd={})),function(t){t.key="key",t.value="value"}(Gu||(Gu={})),function(t){t.asc="asc",t.desc="desc"}(Yc||(Yc={}));var Lm=[{start:0,end:100}],$m={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},jHe=Qe(Qe({},$m),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),RHe=Qe(Qe({},$m),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),PZ=Qe(Qe({},$m),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),lN="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",cN="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",LHe="NO",uN="SELF",dN="NEXT_INSIDE",$He=(Hl(JI={},Yc.asc,"ascending"),Hl(JI,Yc.desc,"descending"),JI),BHe=0;function P_(){return++BHe}function np(t){return(np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function eo(t){return Array.isArray(t)}function ko(t){return null!==t&&"object"===np(t)&&t.constructor===Object}function jZ(t){return!(!t||"object"!==np(t))&&"add"===t.op}function RZ(t){return!(!t||"object"!==np(t))&&"remove"===t.op}function hN(t){return!(!t||"object"!==np(t))&&"replace"===t.op}function fN(t){return!(!t||"object"!==np(t))&&"copy"===t.op}function Jv(t){return!(!t||"object"!==np(t))&&"move"===t.op}function pN(t){return(pN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function VHe(t,n){return t===n}function LZ(t){return t.slice(0,t.length-1)}function $Z(t){return"object"===pN(t)&&null!==t}function j_(t){return(j_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function BZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function HHe(t,n,e){return r=function(o,s){if("object"!==j_(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==j_(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===j_(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function mN(t){if(eo(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(ko(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=Wu(t?t[r]:void 0,n.slice(1),e,i);if(ko(t)||eo(t))return gN(t,r,o);if(i){var s=UHe.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var UHe=/^\d+$/;function VZ(t,n,e){if(0===n.length)return e(t);if(!$Z(t))throw new Error("Path doesn't exist");var i=n[0];return gN(t,i,VZ(t[i],n.slice(1),e))}function vN(t,n){if(0===n.length)return t;if(!$Z(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=mN(t);return eo(i)&&i.splice(parseInt(e),1),ko(i)&&delete i[e],i}return t}var r=n[0];return gN(t,r,vN(t[r],n.slice(1)))}function yN(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return VZ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=mN(o);return s.splice(parseInt(r),0,e),s})}function Xc(t,n){return void 0!==t&&(0===n.length||null!==t&&Xc(t[n[0]],n.slice(1)))}function qu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function an(t){return t.map(HZ).join("")}function HZ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function _N(t,n){return t+HZ(n)}function Kv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function Yu(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:VHe;if(p.length=0?z=function(){var U="",G=!0;"-"==t[s]&&(U+=h()),U+="0"==t[s]?h():m(),"."==t[s]&&(U+=h()+m(),G=!1),"e"!=t[s]&&"E"!=t[s]||(U+=h(),"+"!=t[s]&&"-"!=t[s]||(U+=h()),U+=m(),G=!1);var X=+U;return a&&G&&(X>Number.MAX_SAFE_INTEGER||X="a"&&z<="f"?L+=z.charCodeAt()-ZHe+10:z>="0"&&z<="9"?L+=+z:w()}return String.fromCharCode(L)}function m(){for(var D="";t[s]>="0"&&t[s]<="9";)D+=h();if(D.length)return D;k(),_()}function g(D,L){v(D,L,y())}function v(D,L,z){i[D]=i[D]||{},i[D][L]=z}function y(){return{line:r,column:o,pos:s}}function _(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function w(){f(),_()}function k(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},sS.stringify=function(t,n,e){if(aS(t)){var i,r,o=0,s="object"==mn(e)?e.space:e;switch(mn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var tUe=/"|\\/g,nUe=/[\b]/g,iUe=/\f/g,rUe=/\n/g,oUe=/\r/g,sUe=/\t/g;function lS(t){return'"'+(t=t.replace(tUe,"\\$&").replace(iUe,"\\f").replace(nUe,"\\b").replace(rUe,"\\n").replace(oUe,"\\r").replace(sUe,"\\t"))+'"'}var aUe=/~/g,lUe=/\//g;function wN(t){return t.replace(aUe,"~0").replace(lUe,"~1")}function CN(t){return(CN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function SN(t){var n="function"==typeof Map?new Map:void 0;return SN=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return kN(e,arguments,$_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L_(r,e)},SN(t)}function kN(t,n,e){return(kN=XZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&L_(a,o.prototype),a}).apply(null,arguments)}function XZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function L_(t,n){return(L_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function $_(t){return($_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var ip=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&L_(l,c)}(a,SN(Error));var n,e,i,s=(n=a,e=XZ(),function(){var l,c=$_(n);if(e){var u=$_(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function cUe(t,n){if(n&&("object"===CN(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function cS(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function uS(t){return t>=48&&t<=57}function uUe(t){return t>=32&&t<=1114111}var dUe=/^[,:[\]{}()\n]$/;function JZ(t){return hUe.test(t)||t&&hS(t.charCodeAt(0))}var hUe=/^[[{\w-]$/;function fUe(t){return 10===t||13===t||9===t||8===t||12===t}function dS(t){return 32===t||10===t||9===t||13===t}function pUe(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function hS(t){return KZ(t)||DN(t)}function KZ(t){return 34===t||8220===t||8221===t}function DN(t){return 39===t||8216===t||8217===t||96===t||180===t}function B_(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function Bm(t,n){var e=t.length;if(!dS(t.charCodeAt(e-1)))return t+n;for(;dS(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function mUe(t,n,e){return t.substring(0,n)+t.substring(n+e)}var gUe={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},vUe={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Jd(t){var n=0,e="";r()||function(){throw new ip("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),JZ(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=Bm(e,",")),function(){for(var _=!0,w=!0;w;)_?_=!1:l(44)||(e=Bm(e,",")),w=r();w||(e=B_(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=B_(e,",")),n>=t.length)return e;function r(){o();var _=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var w=!0;n=49&&k<=57)for(n++;uS(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(w);uS(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(w);uS(t.charCodeAt(n));)n++;return n>w&&(e+=t.slice(w,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),_}function o(){var _=n,w=s();do{(w=a())&&(w=s())}while(w);return n>_}function s(){for(var _,w="";(_=dS(t.charCodeAt(n)))||pUe(t.charCodeAt(n));)w+=_?t[n]:" ",n++;return w.length>0&&(e+=w,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nw){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;dS(t.charCodeAt(n-1))&&n>0;)n--;var k=t.slice(w,n);return e+=JSON.stringify(k),!0}}function f(_){if(!uS(t.charCodeAt(n))){var w=t.slice(_,n);throw new ip("Invalid number '".concat(w,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(_){throw new ip("Invalid character "+JSON.stringify(_),n)}function m(){throw new ip("Object key expected",n)}function g(){throw new ip("Object value expected",n)}function v(){throw new ip("Colon expected",n)}function y(_){for(var w=_+2;/\w/.test(t[w]);)w++;var k=t.slice(_,w);throw new ip('Invalid unicode character "'.concat(k,'"'),n)}!function(){throw new ip("Unexpected character "+JSON.stringify(t[n]),n)}()}function yUe(t,n){return"*"===t[n]&&"/"===t[n+1]}function $s(t){return parseInt(t,10)}function TN(t){return _Ue.test(t)}var _Ue=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Do(t){return"object"===mn(t)&&null!==t&&t.constructor===Object}function Lo(t){return"object"===mn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function EN(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return EN(Number(t));try{var n=t&&t.valueOf();if(n!==t)return EN(n)}catch{return!1}return!1}function QZ(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function AN(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return mn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Do(t))return"object";var e=n.stringify(t);return e&&TN(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var bUe=/^https?:\/\/\S+$/;function fS(t){return"string"==typeof t&&bUe.test(t)}function Qv(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&(TN(e)?n.parse(e):t)}var xUe=/^-?[0-9]+$/,eee="object"==(typeof global>"u"?"undefined":mn(global))&&global&&global.Object===Object&&global,wUe="object"==(typeof self>"u"?"undefined":mn(self))&&self&&self.Object===Object&&self,va=eee||wUe||Function("return this")(),nl=va.Symbol,tee=Object.prototype,CUe=tee.hasOwnProperty,SUe=tee.toString,V_=nl?nl.toStringTag:void 0,kUe=Object.prototype.toString,nee=nl?nl.toStringTag:void 0;function bl(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":nee&&nee in Object(t)?function(n){var e=CUe.call(n,V_),i=n[V_];try{n[V_]=void 0;var r=!0}catch{}var o=SUe.call(n);return r&&(e?n[V_]=i:delete n[V_]),o}(t):kUe.call(t)}function ns(t){return null!=t&&"object"==mn(t)}function zl(t){return"symbol"==mn(t)||ns(t)&&"[object Symbol]"==bl(t)}function iee(t){return"number"==typeof t?t:zl(t)?NaN:+t}function qo(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var _ee=yee(fee),YUe=/\{\n\/\* \[wrapped with (.+)\] \*/,XUe=/,? & /,JUe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function _S(t){return function(){return t}}var KUe=function(){try{var t=Hm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),bS=KUe,QUe=bS?function(t,n){return bS(t,"toString",{configurable:!0,enumerable:!1,value:_S(n),writable:!0})}:il,IN=yee(QUe);function Kc(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var ZUe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function xee(t,n,e){var o,i=n+"";return IN(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(JUe,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return Kc(ZUe,function(s){var a="_."+s[0];o&s[1]&&!wS(r,a)&&r.push(a)}),r.sort()}((o=i.match(YUe))?o[1].split(XUe):[],e)))}function wee(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return ON(t)&&_ee(h,d),h.placeholder=i,xee(h,t,n)}function n0(t){return t.placeholder}var eze=/^(?:0|[1-9]\d*)$/;function rf(t,n){var e=mn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&eze.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function xl(t){return null!=t&&G_(t.length)&&!Qd(t)}function wl(t,n,e){if(!$o(e))return!1;var i=mn(n);return!!("number"==i?xl(e)&&rf(n,e.length):"string"==i&&n in e)&&Qc(e[n],t)}function r0(t){return cr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&wl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":mn(exports))&&exports&&!exports.nodeType&&exports,Aee=Eee&&"object"==(typeof module>"u"?"undefined":mn(module))&&module&&!module.nodeType&&module,Mee=Aee&&Aee.exports===Eee?va.Buffer:void 0,lf=(Mee?Mee.isBuffer:void 0)||SS,Bo={};function wc(t){return function(n){return t(n)}}Bo["[object Float32Array]"]=Bo["[object Float64Array]"]=Bo["[object Int8Array]"]=Bo["[object Int16Array]"]=Bo["[object Int32Array]"]=Bo["[object Uint8Array]"]=Bo["[object Uint8ClampedArray]"]=Bo["[object Uint16Array]"]=Bo["[object Uint32Array]"]=!0,Bo["[object Arguments]"]=Bo["[object Array]"]=Bo["[object ArrayBuffer]"]=Bo["[object Boolean]"]=Bo["[object DataView]"]=Bo["[object Date]"]=Bo["[object Error]"]=Bo["[object Function]"]=Bo["[object Map]"]=Bo["[object Number]"]=Bo["[object Object]"]=Bo["[object RegExp]"]=Bo["[object Set]"]=Bo["[object String]"]=Bo["[object WeakMap]"]=!1;var Oee="object"==(typeof exports>"u"?"undefined":mn(exports))&&exports&&!exports.nodeType&&exports,q_=Oee&&"object"==(typeof module>"u"?"undefined":mn(module))&&module&&!module.nodeType&&module,PN=q_&&q_.exports===Oee&&eee.process,Zc=function(){try{return q_&&q_.require&&q_.require("util").types||PN&&PN.binding&&PN.binding("util")}catch{}}(),Iee=Zc&&Zc.isTypedArray,Um=Iee?wc(Iee):function(t){return ns(t)&&G_(t.length)&&!!Bo[bl(t)]},cze=Object.prototype.hasOwnProperty;function Nee(t,n){var e=ji(t),i=!e&&op(t),r=!e&&!i&&lf(t),o=!e&&!i&&!r&&Um(t),s=e||i||r||o,a=s?FN(t.length,String):[],l=a.length;for(var c in t)!n&&!cze.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||rf(c,l))||a.push(c);return a}function Fee(t,n){return function(e){return t(n(e))}}var uze=Fee(Object.keys,Object),dze=Object.prototype.hasOwnProperty;function jN(t){if(!W_(t))return uze(t);var n=[];for(var e in Object(t))dze.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Bs(t){return xl(t)?Nee(t):jN(t)}var hze=Object.prototype.hasOwnProperty,fze=r0(function(t,n){if(W_(n)||xl(n))Zd(n,Bs(n),t);else for(var e in n)hze.call(n,e)&&z_(t,e,n[e])}),Pee=fze,pze=Object.prototype.hasOwnProperty;function Cl(t){return xl(t)?Nee(t,!0):function mze(t){if(!$o(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=W_(t),e=[];for(var i in t)("constructor"!=i||!n&&pze.call(t,i))&&e.push(i);return e}(t)}var gze=r0(function(t,n){Zd(n,Cl(n),t)}),kS=gze,vze=r0(function(t,n,e,i){Zd(n,Cl(n),t,i)}),o0=vze,yze=r0(function(t,n,e,i){Zd(n,Bs(n),t,i)}),jee=yze,_ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bze=/^\w*$/;function RN(t,n){if(ji(t))return!1;var e=mn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!zl(t))||bze.test(t)||!_ze.test(t)||null!=n&&t in Object(n)}var Y_=Hm(Object,"create"),xze=Object.prototype.hasOwnProperty,wze=Object.prototype.hasOwnProperty;function zm(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},cf.prototype.set=function(t,n){var e=this.__data__,i=DS(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var X_=Hm(va,"Map");function TS(t,n){var i,r,e=t.__data__;return("string"==(r=mn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function uf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?Fa(a,n-1,e,i,r):ap(r,a):i||(r[r.length]=a)}return r}function $N(t){return null!=t&&t.length?Fa(t,1):[]}function df(t){return IN(kee(t,void 0,$N),t+"")}var $ee=df(LN),AS=Fee(Object.getPrototypeOf,Object),Bee=Function.prototype.toString,Mze=Object.prototype.hasOwnProperty,Oze=Bee.call(Object);function a0(t){if(!ns(t)||"[object Object]"!=bl(t))return!1;var n=AS(t);if(null===n)return!0;var e=Mze.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Bee.call(e)==Oze}function MS(t){if(!ns(t))return!1;var n=bl(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!a0(t)}var Ize=cr(function(t,n){try{return xc(t,void 0,n)}catch(e){return MS(e)?e:new Error(e)}}),BN=Ize;function VN(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Gi(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var HN=cr(function(t,n,e){var i=1;if(e.length){var r=rp(e,n0(HN));i|=32}return sf(t,i,n,e,r)});HN.placeholder={};var UN=HN,Nze=df(function(t,n){return Kc(n,function(e){e=eh(e),af(t,e,UN(t[e],t))}),t}),Vee=Nze,zN=cr(function(t,n,e){var i=3;if(e.length){var r=rp(e,n0(zN));i|=32}return sf(n,i,t,e,r)});zN.placeholder={};var Hee=zN;function eu(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:eu(t,n,e)}var Fze=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function l0(t){return Fze.test(t)}var GN="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",WN="\\ud83c[\\udffb-\\udfff]",Uee="[^\\ud800-\\udfff]",zee="(?:\\ud83c[\\udde6-\\uddff]){2}",Gee="[\\ud800-\\udbff][\\udc00-\\udfff]",Wee="(?:"+GN+"|"+WN+")?",jze="[\\ufe0e\\ufe0f]?"+Wee+"(?:\\u200d(?:"+[Uee,zee,Gee].join("|")+")[\\ufe0e\\ufe0f]?"+Wee+")*",Rze="(?:"+[Uee+GN+"?",GN,zee,Gee,"[\\ud800-\\udfff]"].join("|")+")",Lze=RegExp(WN+"(?="+WN+")|"+Rze+jze,"g");function Ju(t){return l0(t)?function(n){return n.match(Lze)||[]}(t):function(n){return n.split("")}(t)}function qee(t){return function(n){var e=l0(n=Gr(n))?Ju(n):void 0,i=e?e[0]:n.charAt(0),r=e?lp(e,1).join(""):n.slice(1);return i[t]()+r}}var OS=qee("toUpperCase");function qN(t){return OS(Gr(t).toLowerCase())}function YN(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function ate(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=bc(e))==e?e:0),void 0!==n&&(n=(n=bc(n))==n?n:0),Wm(bc(t),n,e)}function Ku(t){var n=this.__data__=new cf(t);this.size=n.size}function lte(t,n){return t&&Zd(n,Bs(n),t)}Ku.prototype.clear=function(){this.__data__=new cf,this.size=0},Ku.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ku.prototype.get=function(t){return this.__data__.get(t)},Ku.prototype.has=function(t){return this.__data__.has(t)},Ku.prototype.set=function(t,n){var e=this.__data__;if(e instanceof cf){var i=e.__data__;if(!X_||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new uf(i)}return e.set(t,n),this.size=e.size,this};var cte="object"==(typeof exports>"u"?"undefined":mn(exports))&&exports&&!exports.nodeType&&exports,ute=cte&&"object"==(typeof module>"u"?"undefined":mn(module))&&module&&!module.nodeType&&module,dte=ute&&ute.exports===cte?va.Buffer:void 0,hte=dte?dte.allocUnsafe:void 0;function fte(t,n){if(n)return t.slice();var e=t.length,i=hte?hte(e):new t.constructor(e);return t.copy(i),i}function cp(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Ym:void 0;for(o.set(t,n),o.set(n,t);++d=n||w<0||d&&_-c>=o}function g(){var w,k,_=Q_();if(m(_))return v(_);a=setTimeout(g,(k=n-((w=_)-l),d?bGe(k,o-(w-c)):k))}function v(_){return a=void 0,h&&i?f(_):(i=r=void 0,s)}function y(){var _=Q_(),w=m(_);if(i=arguments,r=this,l=_,w){if(void 0===a)return function p(_){return c=_,a=setTimeout(g,n),u?f(_):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=bc(n)||0,$o(e)&&(u=!!e.leading,o=(d="maxWait"in e)?_Ge(bc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Q_())},y}function zte(t,n){return null==t||t!=t?n:t}var Gte=Object.prototype,xGe=Gte.hasOwnProperty,wGe=cr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&wl(n[0],n[1],r)&&(i=1);++e=200&&(o=J_,s=!1,n=new Ym(n));e:for(;++r=0&&t.slice(e,r)==n}function cne(t){return function(n){var i,r,o,e=th(n);return"[object Map]"==e?dF(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return qo(r,function(o){return[o,i[o]]})}(n,t(n))}}var US=cne(Bs),zS=cne(Cl),MGe=XN({"&":"&","<":"<",">":">",'"':""","'":"'"}),une=/[&<>"']/g,OGe=RegExp(une.source);function SF(t){return(t=Gr(t))&&OGe.test(t)?t.replace(une,MGe):t}var dne=/[\\^$.*+?()[\]{}|]/g,IGe=RegExp(dne.source);function hne(t){return(t=Gr(t))&&IGe.test(t)?t.replace(dne,"\\$&"):t}function fne(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Gi(l))<0&&(l+=c),l=a>l?0:kF(l);a-1?r[o?n[s]:s]:void 0}}var FGe=Math.max;function DF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Gi(e);return r<0&&(r=FGe(i+r,0)),xS(t,Ri(n),r)}var _ne=yne(DF);function bne(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function xne(t,n){return bne(t,Ri(n),nh)}var PGe=Math.max,jGe=Math.min;function TF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Gi(e),r=e<0?PGe(i+r,0):jGe(r,i-1)),xS(t,Ri(n),r,!0)}var wne=yne(TF);function Cne(t,n){return bne(t,Ri(n),CF)}function ta(t){return t&&t.length?t[0]:void 0}function Sne(t,n){var e=-1,i=xl(t)?Array(t.length):[];return up(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function f0(t,n){return(ji(t)?qo:Sne)(t,Ri(n))}function kne(t,n){return Fa(f0(t,n),1)}function Dne(t,n){return Fa(f0(t,n),1/0)}function Tne(t,n,e){return e=void 0===e?1:Gi(e),Fa(f0(t,n),e)}function Ene(t){return null!=t&&t.length?Fa(t,1/0):[]}function Ane(t,n){return null!=t&&t.length?Fa(t,n=void 0===n?1:Gi(n)):[]}function Mne(t){return sf(t,512)}var One=QN("floor");function Ine(t){return df(function(n){var e=n.length,i=e,r=Jc.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==yS(o))var s=new Jc([],!0)}for(i=s?i:e;++in}function WS(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=bc(n),e=bc(e)),t(n,e)}}var Hne=WS(EF),Une=WS(function(t,n){return t>=n}),$Ge=Object.prototype.hasOwnProperty;function BGe(t,n){return null!=t&&$Ge.call(t,n)}function zne(t,n){return null!=t&&Fte(t,n,BGe)}var VGe=Math.max,HGe=Math.min;function Gne(t,n,e){return n=Kd(n),void 0===e?(e=n,n=0):e=Kd(e),(i=t=bc(t))>=HGe(r=n,o=e)&&i-1:!!r&&t0(t,n,e)>-1}var zGe=Math.max;function qne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Gi(e);return r<0&&(r=zGe(i+r,0)),t0(t,n,r)}function qi(t){return null!=t&&t.length?eu(t,0,-1):[]}var GGe=Math.min;function MF(t,n,e){for(var i=e?wF:wS,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=qo(u,wc(n))),l=GGe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Ym(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function bie(t){return void 0===t}function xie(t){return ns(t)&&"[object WeakMap]"==th(t)}function wie(t){return ns(t)&&"[object WeakSet]"==bl(t)}function Cie(t){return Ri("function"==typeof t?t:tu(t,1))}var nWe=Array.prototype.join;function Sie(t,n){return null==t?"":nWe.call(t,n)}var iWe=u0(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),kie=iWe,rWe=RS(function(t,n,e){af(t,e,n)}),Die=rWe,oWe=Math.max,sWe=Math.min;function Tie(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Gi(e))<0?oWe(i+r,0):sWe(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):xS(t,bee,r,!0)}var aWe=u0(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),Eie=aWe,Aie=qee("toLowerCase");function FF(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function Gie(t,n){var e=t.length;if(e)return rf(n+=n<0?e:0,e)?t[n]:void 0}function Wie(t,n){return t&&t.length?Gie(t,Gi(n)):void 0}function qie(t){return t=Gi(t),cr(function(n){return Gie(n,t)})}function VF(t,n){return null==(t=tie(t,n=sp(n,t)))||delete t[eh(Fn(n))]}function dWe(t){return a0(t)?void 0:t}var hWe=df(function(t,n){var e={};if(null==t)return e;var i=!1;n=qo(n,function(o){return o=sp(o,t),i||(i=o.length>1),o}),Zd(t,nF(t),e),i&&(e=tu(e,7,dWe));for(var r=n.length;r--;)VF(e,n[r]);return e}),Yie=hWe;function ib(t,n,e,i){if(!$o(t))return t;for(var r=-1,o=(n=sp(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(Sne(t,function(o,s,a){return{criteria:qo(n,function(c){return c(o)}),index:++i,value:o}}))}function ere(t,n,e,i){return null==t?[]:(ji(n)||(n=null==n?[]:[n]),ji(e=i?void 0:e)||(e=null==e?[]:[e]),Zie(t,n,e))}function UF(t){return df(function(n){return n=qo(n,wc(Ri)),cr(function(e){var i=this;return t(n,function(r){return xc(r,i,e)})})})}var tre=UF(qo),pWe=Math.min,mWe=cr(function(t,n){var e=(n=1==n.length&&ji(n[0])?qo(n[0],wc(Ri)):qo(Fa(n,1),wc(Ri))).length;return cr(function(i){for(var r=-1,o=pWe(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=gWe(n/2))&&(t+=t)}while(n);return e}var vWe=mF("length"),GF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",WF="\\ud83c[\\udffb-\\udfff]",ore="[^\\ud800-\\udfff]",sre="(?:\\ud83c[\\udde6-\\uddff]){2}",are="[\\ud800-\\udbff][\\udc00-\\udfff]",lre="(?:"+GF+"|"+WF+")?",_We="[\\ufe0e\\ufe0f]?"+lre+"(?:\\u200d(?:"+[ore,sre,are].join("|")+")[\\ufe0e\\ufe0f]?"+lre+")*",bWe="(?:"+[ore+GF+"?",GF,sre,are,"[\\ud800-\\udfff]"].join("|")+")",cre=RegExp(WF+"(?="+WF+")|"+bWe+_We,"g");function v0(t){return l0(t)?function(n){for(var e=cre.lastIndex=0;cre.test(n);)++e;return e}(t):vWe(t)}var xWe=Math.ceil;function XS(t,n){var e=(n=void 0===n?" ":_c(n)).length;if(e<2)return e?zF(n,t):n;var i=zF(n,xWe(t/v0(n)));return l0(n)?lp(Ju(i),0,t).join(""):i.slice(0,t)}var wWe=Math.ceil,CWe=Math.floor;function ure(t,n,e){t=Gr(t);var i=(n=Gi(n))?v0(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return XS(CWe(r),e)+t+XS(wWe(r),e)}function dre(t,n,e){t=Gr(t);var i=(n=Gi(n))?v0(t):0;return n&&i-1;)a!==t&&vre.call(a,l,1),vre.call(t,l,1);return t}function ZF(t,n){return t&&t.length&&n&&n.length?QF(t,n):t}var yre=cr(ZF);function _re(t,n,e){return t&&t.length&&n&&n.length?QF(t,n,Ri(e)):t}function bre(t,n,e){return t&&t.length&&n&&n.length?QF(t,n,void 0,e):t}var AWe=Array.prototype.splice;function xre(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;rf(r)?AWe.call(t,r,1):VF(t,r)}}return t}var MWe=df(function(t,n){var e=null==t?0:t.length,i=LN(t,n);return xre(t,qo(n,function(r){return rf(r,e)?+r:r}).sort(Qie)),i}),wre=MWe,OWe=Math.floor,IWe=Math.random;function eP(t,n){return t+OWe(IWe()*(n-t+1))}var NWe=parseFloat,FWe=Math.min,PWe=Math.random;function Cre(t,n,e){if(e&&"boolean"!=typeof e&&wl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Kd(t),void 0===n?(n=t,t=0):n=Kd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=PWe();return FWe(t+r*(n-t+NWe("1e-"+((r+"").length-1))),n)}return eP(t,n)}var jWe=Math.ceil,RWe=Math.max;function Sre(t){return function(n,e,i){return i&&"number"!=typeof i&&wl(n,e,i)&&(e=i=void 0),n=Kd(n),void 0===e?(e=n,n=0):e=Kd(e),function(r,o,s,a){for(var l=-1,c=RWe(jWe((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&wl(t,n[0],n[1])?n=[]:e>2&&wl(n[0],n[1],n[2])&&(n=[n[0]]),Zie(t,Fa(n,1),[])}),nP=YWe,XWe=Math.floor,JWe=Math.min;function iP(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=zl(n),c=void 0===n;r>>1,s=t[o];null!==s&&!zl(s)&&(e?s<=n:s>>0)?(t=Gr(t))&&("string"==typeof n||null!=n&&!qS(n))&&!(n=_c(n))&&l0(t)?lp(Ju(t),0,e):t.split(n,e):[]}var KWe=Math.max;function ioe(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:KWe(Gi(n),0),cr(function(e){var i=e[n],r=lp(e,0,n);return i&&ap(r,i),xc(t,this,r)})}var QWe=u0(function(t,n,e){return t+(e?" ":"")+OS(n)}),roe=QWe;function ooe(t,n,e){return t=Gr(t),e=null==e?0:Wm(Gi(e),0,t.length),n=_c(n),t.slice(e,e+n.length)==n}function soe(){return{}}function aoe(){return""}function loe(){return!0}var coe=pS(function(t,n){return t-n},0);function uoe(t){return t&&t.length?jF(t,il):0}function doe(t,n){return t&&t.length?jF(t,Ri(n)):0}function hoe(t){var n=null==t?0:t.length;return n?eu(t,1,n):[]}function foe(t,n,e){return t&&t.length?eu(t,0,(n=e||void 0===n?1:Gi(n))<0?0:n):[]}function poe(t,n,e){var i=null==t?0:t.length;return i?eu(t,(n=i-(n=e||void 0===n?1:Gi(n)))<0?0:n,i):[]}function moe(t,n){return t&&t.length?VS(t,Ri(n),!1,!0):[]}function goe(t,n){return t&&t.length?VS(t,Ri(n)):[]}function voe(t,n){return n(t),t}var yoe=Object.prototype,ZWe=yoe.hasOwnProperty;function _oe(t,n,e,i){return void 0===t||Qc(t,yoe[e])&&!ZWe.call(i,e)?n:t}var eqe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function tqe(t){return"\\"+eqe[t]}var boe=/<%=([\s\S]+?)%>/g,ZS={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:boe,variable:"",imports:{_:{escape:SF}}},nqe=/\b__p \+= '';/g,iqe=/\b(__p \+=) '' \+/g,rqe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oqe=/[()=,{}\[\]\/\s]/,sqe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ek=/($^)/,aqe=/['\n\r\u2028\u2029\\]/g,xoe=Object.prototype.hasOwnProperty;function woe(t,n,e){var i=ZS.imports._.templateSettings||ZS;e&&wl(t,n,e)&&(n=void 0),t=Gr(t),n=o0({},n,i,_oe);var r,o,s=o0({},n.imports,i.imports,_oe),a=Bs(s),l=AF(s,a),c=0,u=n.interpolate||ek,d="__p += '",h=RegExp((n.escape||ek).source+"|"+u.source+"|"+(u===boe?sqe:ek).source+"|"+(n.evaluate||ek).source+"|$","g"),f=xoe.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,_,w,k){return y||(y=_),d+=t.slice(c,k).replace(aqe,tqe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),w&&(o=!0,d+="';\n"+w+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=k+g.length,g}),d+="';\n";var p=xoe.call(n,"variable")&&n.variable;if(p){if(oqe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(nqe,""):d).replace(iqe,"$1").replace(rqe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=BN(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,MS(m))throw m;return m}function rP(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return $o(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),h0(t,n,{leading:i,maxWait:n,trailing:r})}function y0(t,n){return n(t)}var lqe=Math.min;function oP(t,n){if((t=Gi(t))<1||t>9007199254740991)return[];var e=4294967295,i=lqe(t,4294967295);t-=4294967295;for(var r=FN(i,n=ih(n));++e-1;);return e}function Moe(t,n){for(var e=-1,i=t.length;++e-1;);return e}function Ooe(t,n,e){if((t=Gr(t))&&(e||void 0===n))return lee(t);if(!t||!(n=_c(n)))return t;var i=Ju(t),r=Ju(n);return lp(i,Moe(i,r),Aoe(i,r)+1).join("")}function Ioe(t,n,e){if((t=Gr(t))&&(e||void 0===n))return t.slice(0,aee(t)+1);if(!t||!(n=_c(n)))return t;var i=Ju(t);return lp(i,0,Aoe(i,Ju(n))+1).join("")}var cqe=/^\s+/;function Noe(t,n,e){if((t=Gr(t))&&(e||void 0===n))return t.replace(cqe,"");if(!t||!(n=_c(n)))return t;var i=Ju(t);return lp(i,Moe(i,Ju(n))).join("")}var uqe=/\w*$/;function Foe(t,n){var e=30,i="...";if($o(n)){var r="separator"in n?n.separator:r;e="length"in n?Gi(n.length):e,i="omission"in n?_c(n.omission):i}var o=(t=Gr(t)).length;if(l0(t)){var s=Ju(t);o=s.length}if(e>=o)return t;var a=e-v0(i);if(a<1)return i;var l=s?lp(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),qS(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Gr(uqe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(_c(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function Poe(t){return NN(t,1)}var dqe=XN({"&":"&","<":"<",">":">",""":'"',"'":"'"}),joe=/&(?:amp|lt|gt|quot|#39);/g,hqe=RegExp(joe.source);function Roe(t){return(t=Gr(t))&&hqe.test(t)?t.replace(joe,dqe):t}var fqe=d0&&1/FS(new d0([,-0]))[1]==1/0?function(t){return new d0(t)}:ho,pqe=fqe;function dp(t,n,e){var i=-1,r=wS,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=wF;else if(o>=200){var c=n?null:pqe(t);if(c)return FS(c);s=!1,r=J_,l=new Ym}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Dr&&rf(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:y0,args:[r],thisArg:void 0}),new Jc(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),Qoe=bqe;function Zoe(){return ZN(this)}function ese(){var t=this.__wrapped__;if(t instanceof Dr){var n=t;return this.__actions__.length&&(n=new Dr(this)),(n=n.reverse()).__actions__.push({func:y0,args:[JS],thisArg:void 0}),new Jc(n,this.__chain__)}return this.thru(JS)}function lP(t,n,e){var i=t.length;if(i<2)return i?dp(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,aP(t,e)}),lse=wqe,zn={chunk:ste,compact:Dte,concat:Tte,difference:Qte,differenceBy:Zte,differenceWith:ene,drop:nne,dropRight:ine,dropRightWhile:rne,dropWhile:one,fill:mne,findIndex:DF,findLastIndex:TF,first:ta,flatten:$N,flattenDeep:Ene,flattenDepth:Ane,fromPairs:$ne,head:ta,indexOf:qne,initial:qi,intersection:Yne,intersectionBy:Xne,intersectionWith:Jne,join:Sie,last:Fn,lastIndexOf:Tie,nth:Wie,pull:yre,pullAll:ZF,pullAllBy:_re,pullAllWith:bre,pullAt:wre,remove:Ore,reverse:JS,slice:zre,sortedIndex:qre,sortedIndexBy:Yre,sortedIndexOf:Xre,sortedLastIndex:Jre,sortedLastIndexBy:Kre,sortedLastIndexOf:Qre,sortedUniq:eoe,sortedUniqBy:toe,tail:hoe,take:foe,takeRight:poe,takeRightWhile:moe,takeWhile:goe,union:Loe,unionBy:$oe,unionWith:Boe,uniq:Voe,uniqBy:Hoe,uniqWith:Uoe,unzip:tk,unzipWith:aP,without:Joe,xor:tse,xorBy:nse,xorWith:ise,zip:rse,zipObject:sse,zipObjectDeep:ase,zipWith:lse},fo={countBy:Hte,each:HS,eachRight:eb,every:pne,filter:vne,find:_ne,findLast:wne,flatMap:kne,flatMapDeep:Dne,flatMapDepth:Tne,forEach:HS,forEachRight:eb,groupBy:p0,includes:Wne,invokeMap:iie,keyBy:Die,map:f0,orderBy:ere,partition:JF,reduce:Ere,reduceRight:Are,reject:Mre,sample:Lre,sampleSize:$re,shuffle:Hre,size:Ure,some:Wre,sortBy:nP},Cqe={now:Q_},gs={after:cee,ary:NN,before:VN,bind:UN,bindKey:Hee,curry:LS,curryRight:$S,debounce:h0,defer:Jte,delay:Kte,flip:Mne,memoize:s0,negate:g0,once:Kie,overArgs:nre,partial:YF,partialRight:pre,rearg:Dre,rest:Fre,spread:ioe,throttle:rP,unary:Poe,wrap:Koe},hi={castArray:rte,clone:Cte,cloneDeep:Ste,cloneDeepWith:lF,cloneWith:kte,conformsTo:$te,eq:Qc,gt:Hne,gte:Une,isArguments:op,isArray:ji,isArrayBuffer:oie,isArrayLike:xl,isArrayLikeObject:ms,isBoolean:sie,isBuffer:lf,isDate:lie,isElement:cie,isEmpty:Ui,isEqual:rr,isEqualWith:uie,isError:MS,isFinite:die,isFunction:Qd,isInteger:IF,isLength:G_,isMap:sF,isMatch:hie,isMatchWith:fie,isNaN:pie,isNative:mie,isNil:gie,isNull:vie,isNumber:NF,isObject:$o,isObjectLike:ns,isPlainObject:a0,isRegExp:qS,isSafeInteger:_ie,isSet:aF,isString:tb,isSymbol:zl,isTypedArray:Um,isUndefined:bie,isWeakMap:xie,isWeakSet:wie,lt:Mie,lte:Oie,toArray:$F,toFinite:Kd,toInteger:Gi,toLength:kF,toNumber:bc,toPlainObject:bF,toSafeInteger:Doe,toString:Gr},Sl={add:see,ceil:ote,divide:tne,floor:One,max:Pie,maxBy:jie,mean:Lie,meanBy:$ie,min:Uie,minBy:m0,multiply:zie,round:jre,subtract:coe,sum:uoe,sumBy:doe},Sqe=ate,kqe=Gne,Dqe=Cre,Oi={assign:Pee,assignIn:kS,assignInWith:o0,assignWith:jee,at:$ee,create:Ute,defaults:Wte,defaultsDeep:Yte,entries:US,entriesIn:zS,extend:kS,extendWith:o0,findKey:xne,findLastKey:Cne,forIn:Pne,forInRight:jne,forOwn:Rne,forOwnRight:Lne,functions:Bne,functionsIn:Vne,get:ES,has:zne,hasIn:jS,invert:Qne,invertBy:eie,invoke:nie,keys:Bs,keysIn:Cl,mapKeys:Iie,mapValues:PF,merge:Bie,mergeWith:xF,omit:Yie,omitBy:Jie,pick:mre,pickBy:HF,result:Pre,set:Bre,setWith:Vre,toPairs:US,toPairsIn:zS,transform:Eoe,unset:zoe,update:Woe,updateWith:qoe,values:Xm,valuesIn:Xoe},rh={at:Qoe,chain:ZN,commit:cF,lodash:pe,next:BF,plant:KF,reverse:ese,tap:voe,thru:y0,toIterator:sP,toJSON:Jm,value:Jm,valueOf:Jm,wrapperChain:Zoe},Wr={camelCase:ite,capitalize:qN,deburr:JN,endsWith:lne,escape:SF,escapeRegExp:hne,kebabCase:kie,lowerCase:Eie,lowerFirst:Aie,pad:ure,padEnd:dre,padStart:hre,parseInt:fre,repeat:Ire,replace:Nre,snakeCase:Gre,split:noe,startCase:roe,startsWith:ooe,template:woe,templateSettings:ZS,toLower:Soe,toUpper:Toe,trim:Ooe,trimEnd:Ioe,trimStart:Noe,truncate:Foe,unescape:Roe,upperCase:Yoe,upperFirst:OS,words:KN},to={attempt:BN,bindAll:Vee,cond:jte,conforms:Lte,constant:_S,defaultTo:zte,flow:Nne,flowRight:Fne,identity:il,iteratee:Cie,matches:Nie,matchesProperty:Fie,method:Vie,methodOf:Hie,mixin:RF,noop:ho,nthArg:qie,over:tre,overEvery:ire,overSome:rre,property:gF,propertyOf:gre,range:tP,rangeRight:kre,stubArray:IS,stubFalse:SS,stubObject:soe,stubString:aoe,stubTrue:loe,times:oP,toPath:koe,uniqueId:hp},Tqe=Math.max,Eqe=Math.min,Aqe=Math.min,Mqe=Array.prototype,cse=Object.prototype.hasOwnProperty,use=nl?nl.iterator:void 0,Oqe=Math.max,dse=Math.min,uP=function(t){return function(n,e,i){if(null==i){var r=$o(e),o=r&&Bs(e),s=o&&o.length&&GS(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}(RF);pe.after=gs.after,pe.ary=gs.ary,pe.assign=Oi.assign,pe.assignIn=Oi.assignIn,pe.assignInWith=Oi.assignInWith,pe.assignWith=Oi.assignWith,pe.at=Oi.at,pe.before=gs.before,pe.bind=gs.bind,pe.bindAll=to.bindAll,pe.bindKey=gs.bindKey,pe.castArray=hi.castArray,pe.chain=rh.chain,pe.chunk=zn.chunk,pe.compact=zn.compact,pe.concat=zn.concat,pe.cond=to.cond,pe.conforms=to.conforms,pe.constant=to.constant,pe.countBy=fo.countBy,pe.create=Oi.create,pe.curry=gs.curry,pe.curryRight=gs.curryRight,pe.debounce=gs.debounce,pe.defaults=Oi.defaults,pe.defaultsDeep=Oi.defaultsDeep,pe.defer=gs.defer,pe.delay=gs.delay,pe.difference=zn.difference,pe.differenceBy=zn.differenceBy,pe.differenceWith=zn.differenceWith,pe.drop=zn.drop,pe.dropRight=zn.dropRight,pe.dropRightWhile=zn.dropRightWhile,pe.dropWhile=zn.dropWhile,pe.fill=zn.fill,pe.filter=fo.filter,pe.flatMap=fo.flatMap,pe.flatMapDeep=fo.flatMapDeep,pe.flatMapDepth=fo.flatMapDepth,pe.flatten=zn.flatten,pe.flattenDeep=zn.flattenDeep,pe.flattenDepth=zn.flattenDepth,pe.flip=gs.flip,pe.flow=to.flow,pe.flowRight=to.flowRight,pe.fromPairs=zn.fromPairs,pe.functions=Oi.functions,pe.functionsIn=Oi.functionsIn,pe.groupBy=fo.groupBy,pe.initial=zn.initial,pe.intersection=zn.intersection,pe.intersectionBy=zn.intersectionBy,pe.intersectionWith=zn.intersectionWith,pe.invert=Oi.invert,pe.invertBy=Oi.invertBy,pe.invokeMap=fo.invokeMap,pe.iteratee=to.iteratee,pe.keyBy=fo.keyBy,pe.keys=Bs,pe.keysIn=Oi.keysIn,pe.map=fo.map,pe.mapKeys=Oi.mapKeys,pe.mapValues=Oi.mapValues,pe.matches=to.matches,pe.matchesProperty=to.matchesProperty,pe.memoize=gs.memoize,pe.merge=Oi.merge,pe.mergeWith=Oi.mergeWith,pe.method=to.method,pe.methodOf=to.methodOf,pe.mixin=uP,pe.negate=g0,pe.nthArg=to.nthArg,pe.omit=Oi.omit,pe.omitBy=Oi.omitBy,pe.once=gs.once,pe.orderBy=fo.orderBy,pe.over=to.over,pe.overArgs=gs.overArgs,pe.overEvery=to.overEvery,pe.overSome=to.overSome,pe.partial=gs.partial,pe.partialRight=gs.partialRight,pe.partition=fo.partition,pe.pick=Oi.pick,pe.pickBy=Oi.pickBy,pe.property=to.property,pe.propertyOf=to.propertyOf,pe.pull=zn.pull,pe.pullAll=zn.pullAll,pe.pullAllBy=zn.pullAllBy,pe.pullAllWith=zn.pullAllWith,pe.pullAt=zn.pullAt,pe.range=to.range,pe.rangeRight=to.rangeRight,pe.rearg=gs.rearg,pe.reject=fo.reject,pe.remove=zn.remove,pe.rest=gs.rest,pe.reverse=zn.reverse,pe.sampleSize=fo.sampleSize,pe.set=Oi.set,pe.setWith=Oi.setWith,pe.shuffle=fo.shuffle,pe.slice=zn.slice,pe.sortBy=fo.sortBy,pe.sortedUniq=zn.sortedUniq,pe.sortedUniqBy=zn.sortedUniqBy,pe.split=Wr.split,pe.spread=gs.spread,pe.tail=zn.tail,pe.take=zn.take,pe.takeRight=zn.takeRight,pe.takeRightWhile=zn.takeRightWhile,pe.takeWhile=zn.takeWhile,pe.tap=rh.tap,pe.throttle=gs.throttle,pe.thru=y0,pe.toArray=hi.toArray,pe.toPairs=Oi.toPairs,pe.toPairsIn=Oi.toPairsIn,pe.toPath=to.toPath,pe.toPlainObject=hi.toPlainObject,pe.transform=Oi.transform,pe.unary=gs.unary,pe.union=zn.union,pe.unionBy=zn.unionBy,pe.unionWith=zn.unionWith,pe.uniq=zn.uniq,pe.uniqBy=zn.uniqBy,pe.uniqWith=zn.uniqWith,pe.unset=Oi.unset,pe.unzip=zn.unzip,pe.unzipWith=zn.unzipWith,pe.update=Oi.update,pe.updateWith=Oi.updateWith,pe.values=Oi.values,pe.valuesIn=Oi.valuesIn,pe.without=zn.without,pe.words=Wr.words,pe.wrap=gs.wrap,pe.xor=zn.xor,pe.xorBy=zn.xorBy,pe.xorWith=zn.xorWith,pe.zip=zn.zip,pe.zipObject=zn.zipObject,pe.zipObjectDeep=zn.zipObjectDeep,pe.zipWith=zn.zipWith,pe.entries=Oi.toPairs,pe.entriesIn=Oi.toPairsIn,pe.extend=Oi.assignIn,pe.extendWith=Oi.assignInWith,uP(pe,pe),pe.add=Sl.add,pe.attempt=to.attempt,pe.camelCase=Wr.camelCase,pe.capitalize=Wr.capitalize,pe.ceil=Sl.ceil,pe.clamp=Sqe,pe.clone=hi.clone,pe.cloneDeep=hi.cloneDeep,pe.cloneDeepWith=hi.cloneDeepWith,pe.cloneWith=hi.cloneWith,pe.conformsTo=hi.conformsTo,pe.deburr=Wr.deburr,pe.defaultTo=to.defaultTo,pe.divide=Sl.divide,pe.endsWith=Wr.endsWith,pe.eq=hi.eq,pe.escape=Wr.escape,pe.escapeRegExp=Wr.escapeRegExp,pe.every=fo.every,pe.find=fo.find,pe.findIndex=zn.findIndex,pe.findKey=Oi.findKey,pe.findLast=fo.findLast,pe.findLastIndex=zn.findLastIndex,pe.findLastKey=Oi.findLastKey,pe.floor=Sl.floor,pe.forEach=fo.forEach,pe.forEachRight=fo.forEachRight,pe.forIn=Oi.forIn,pe.forInRight=Oi.forInRight,pe.forOwn=Oi.forOwn,pe.forOwnRight=Oi.forOwnRight,pe.get=Oi.get,pe.gt=hi.gt,pe.gte=hi.gte,pe.has=Oi.has,pe.hasIn=Oi.hasIn,pe.head=zn.head,pe.identity=il,pe.includes=fo.includes,pe.indexOf=zn.indexOf,pe.inRange=kqe,pe.invoke=Oi.invoke,pe.isArguments=hi.isArguments,pe.isArray=ji,pe.isArrayBuffer=hi.isArrayBuffer,pe.isArrayLike=hi.isArrayLike,pe.isArrayLikeObject=hi.isArrayLikeObject,pe.isBoolean=hi.isBoolean,pe.isBuffer=hi.isBuffer,pe.isDate=hi.isDate,pe.isElement=hi.isElement,pe.isEmpty=hi.isEmpty,pe.isEqual=hi.isEqual,pe.isEqualWith=hi.isEqualWith,pe.isError=hi.isError,pe.isFinite=hi.isFinite,pe.isFunction=hi.isFunction,pe.isInteger=hi.isInteger,pe.isLength=hi.isLength,pe.isMap=hi.isMap,pe.isMatch=hi.isMatch,pe.isMatchWith=hi.isMatchWith,pe.isNaN=hi.isNaN,pe.isNative=hi.isNative,pe.isNil=hi.isNil,pe.isNull=hi.isNull,pe.isNumber=hi.isNumber,pe.isObject=$o,pe.isObjectLike=hi.isObjectLike,pe.isPlainObject=hi.isPlainObject,pe.isRegExp=hi.isRegExp,pe.isSafeInteger=hi.isSafeInteger,pe.isSet=hi.isSet,pe.isString=hi.isString,pe.isSymbol=hi.isSymbol,pe.isTypedArray=hi.isTypedArray,pe.isUndefined=hi.isUndefined,pe.isWeakMap=hi.isWeakMap,pe.isWeakSet=hi.isWeakSet,pe.join=zn.join,pe.kebabCase=Wr.kebabCase,pe.last=Fn,pe.lastIndexOf=zn.lastIndexOf,pe.lowerCase=Wr.lowerCase,pe.lowerFirst=Wr.lowerFirst,pe.lt=hi.lt,pe.lte=hi.lte,pe.max=Sl.max,pe.maxBy=Sl.maxBy,pe.mean=Sl.mean,pe.meanBy=Sl.meanBy,pe.min=Sl.min,pe.minBy=Sl.minBy,pe.stubArray=to.stubArray,pe.stubFalse=to.stubFalse,pe.stubObject=to.stubObject,pe.stubString=to.stubString,pe.stubTrue=to.stubTrue,pe.multiply=Sl.multiply,pe.nth=zn.nth,pe.noop=to.noop,pe.now=Cqe.now,pe.pad=Wr.pad,pe.padEnd=Wr.padEnd,pe.padStart=Wr.padStart,pe.parseInt=Wr.parseInt,pe.random=Dqe,pe.reduce=fo.reduce,pe.reduceRight=fo.reduceRight,pe.repeat=Wr.repeat,pe.replace=Wr.replace,pe.result=Oi.result,pe.round=Sl.round,pe.sample=fo.sample,pe.size=fo.size,pe.snakeCase=Wr.snakeCase,pe.some=fo.some,pe.sortedIndex=zn.sortedIndex,pe.sortedIndexBy=zn.sortedIndexBy,pe.sortedIndexOf=zn.sortedIndexOf,pe.sortedLastIndex=zn.sortedLastIndex,pe.sortedLastIndexBy=zn.sortedLastIndexBy,pe.sortedLastIndexOf=zn.sortedLastIndexOf,pe.startCase=Wr.startCase,pe.startsWith=Wr.startsWith,pe.subtract=Sl.subtract,pe.sum=Sl.sum,pe.sumBy=Sl.sumBy,pe.template=Wr.template,pe.times=to.times,pe.toFinite=hi.toFinite,pe.toInteger=Gi,pe.toLength=hi.toLength,pe.toLower=Wr.toLower,pe.toNumber=hi.toNumber,pe.toSafeInteger=hi.toSafeInteger,pe.toString=hi.toString,pe.toUpper=Wr.toUpper,pe.trim=Wr.trim,pe.trimEnd=Wr.trimEnd,pe.trimStart=Wr.trimStart,pe.truncate=Wr.truncate,pe.unescape=Wr.unescape,pe.uniqueId=to.uniqueId,pe.upperCase=Wr.upperCase,pe.upperFirst=Wr.upperFirst,pe.each=fo.forEach,pe.eachRight=fo.forEachRight,pe.first=zn.head,uP(pe,(cP={},nh(pe,function(t,n){cse.call(pe.prototype,n)||(cP[n]=t)}),cP),{chain:!1}),pe.VERSION="4.17.21",(pe.templateSettings=Wr.templateSettings).imports._=pe,Kc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){pe[t].placeholder=pe}),Kc(["drop","take"],function(t,n){Dr.prototype[t]=function(e){e=void 0===e?1:Oqe(Gi(e),0);var i=this.__filtered__&&!n?new Dr(this):this.clone();return i.__filtered__?i.__takeCount__=dse(e,i.__takeCount__):i.__views__.push({size:dse(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Dr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Kc(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Dr.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:Ri(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),Kc(["head","last"],function(t,n){var e="take"+(n?"Right":"");Dr.prototype[t]=function(){return this[e](1).value()[0]}}),Kc(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Dr.prototype[t]=function(){return this.__filtered__?new Dr(this):this[e](1)}}),Dr.prototype.compact=function(){return this.filter(il)},Dr.prototype.find=function(t){return this.filter(t).head()},Dr.prototype.findLast=function(t){return this.reverse().find(t)},Dr.prototype.invokeMap=cr(function(t,n){return"function"==typeof t?new Dr(this):this.map(function(e){return nb(e,t,n)})}),Dr.prototype.reject=function(t){return this.filter(g0(Ri(t)))},Dr.prototype.slice=function(t,n){t=Gi(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Dr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Gi(n))<0?e.dropRight(-n):e.take(n-t)),e)},Dr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Dr.prototype.toArray=function(){return this.take(4294967295)},nh(Dr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=pe[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(pe.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Dr,c=a[0],u=l||ji(s),d=function(v){var y=r.apply(pe,ap([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Dr(this);var g=t.apply(s,a);return g.__actions__.push({func:y0,args:[d],thisArg:void 0}),new Jc(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),Kc(["pop","push","shift","sort","splice","unshift"],function(t){var n=Mqe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);pe.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(ji(o)?o:[],r)}return this[e](function(s){return n.apply(ji(s)?s:[],r)})}}),nh(Dr.prototype,function(t,n){var e=pe[n];if(e){var i=e.name+"";cse.call(e0,i)||(e0[i]=[]),e0[i].push({name:n,func:e})}}),e0[CS(void 0,2).name]=[{name:"wrapper",func:void 0}],Dr.prototype.clone=function(){var t=new Dr(this.__wrapped__);return t.__actions__=Gl(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Gl(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Gl(this.__views__),t},Dr.prototype.reverse=function(){if(this.__filtered__){var t=new Dr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Dr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=ji(t),i=n<0,r=e?t.length:0,o=function(k,D,L){for(var z=-1,R=L.length;++z1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Do(l)||n&&c.length>0)&&(e[an(c)]=!0),Do(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function fse(t){return Qe({},t)}function pse(t){return Object.values(t)}function mse(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(ri(o))),r}function hP(t,n){try{return n.parse(t)}catch{return n.parse(Jd(t))}}function gse(t,n){try{return hP(t,n)}catch{return}}function ik(t,n){t=t.replace(yse,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function vse(t){t=t.replace(yse,"");try{return Jd(t)}catch{}try{var n=Jd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Jd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var yse=/,\s*$/;function rk(t,n){var e=xse.exec(n);if(e){var i=$s(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return _0(t)?t:{text:e.stringify(t.json,null,n)}}function _se(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return pP(t)?t:{json:n.parse(t.text)}}function ok(t,n,e){return b0(t,n,e).text}function bse(t,n){return function Pqe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(_0(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Do(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var xse=/(position|char) (\d+)/,jqe=/line (\d+)/,Rqe=/column (\d+)/;function Cse(t){return Lqe.test(t)&&t.length>2}var Lqe=/^[[{]\S/;function mP(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?$qe:Bqe:e?Vqe:Hqe}var $qe={escapeValue:function(t){return Sse(Tse(String(t)))},unescapeValue:function(t){return Ese(kse(t))}},Bqe={escapeValue:function(t){return Tse(String(t))},unescapeValue:function(t){return Ese(t)}},Vqe={escapeValue:function(t){return Sse(String(t))},unescapeValue:function(t){return kse(t)}},Hqe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function Sse(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function kse(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return Dse[e]||e}catch{return n}})}var Dse={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Uqe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function Tse(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return Dse[n]||n})}function Ese(t){return t.replace(/\\["bfnrt\\]/g,function(n){return Uqe[n]||n})}function Km(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function Ase(t,n){return rb(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function Qm(t,n,e){return rb(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function rb(t,n){return!!gP(t,n)}function gP(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function Mse(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function sk(t,n,e){var i=x0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,Mse(r))}}function x0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function ak(t){var e=x0(t)?.document.activeElement;return!!e&&rb(e,function(i){return i===t})}function Ose(t,n){return gP(t,function(e){return e.nodeName===n})}function vP(t){return Qm(t,"data-type","selectable-key")?Zr.key:Qm(t,"data-type","selectable-value")?Zr.value:Qm(t,"data-type","insert-selection-area-inside")?Zr.inside:Qm(t,"data-type","insert-selection-area-after")?Zr.after:Zr.multi}function w0(t){return encodeURIComponent(an(t))}function Ise(t){var e=gP(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?qu(decodeURIComponent(e)):null}function fp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in Gqe||e.push(i),e.join(n)}var Gqe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},yP=sN.window;function Wqe(t){di(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function Nse(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&w>h,z="left"===v||_+u>window.innerWidth&&_>u;return{left:z?y.right-g:_+g,top:L?w-p:y.bottom+p,positionAbove:L,positionLeft:z}}if("number"==typeof n.left&&"number"==typeof n.top){var R=n.left,U=n.top,G=n.width,X=void 0===G?0:G,te=n.height,P=void 0===te?0:te;return{left:R,top:U,positionAbove:U+P>window.innerHeight&&U>P,positionLeft:R+X>window.innerWidth&&R>X}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function Xqe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!rb(l.target,function(c){return c===i})&&s(o.id)}return qc(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===fp(l)&&s(o.id)},function(l){a(l)},s,function(l){Hi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Hi[l?"unshift":"push"](function(){e(1,i=l)})}]}var Jqe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Xqe,qqe,ps,{popup:0,closeAbsolutePopup:6},Wqe),r}return Se(e)}();function Pse(t,n,e){var i=t.slice();return i[6]=n[e],i}function jse(t){var n,e;return n=new Jqe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Kqe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(eYe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var eYe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function ob(t){return{value:t,label:Ui(t)?"(whole item)":nu(Wl(t))}}function oh(t){return t.map(function(n){return bP.test(n)?"?.[".concat(n,"]"):_P.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var _P=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,bP=/^\d+$/;function sb(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function sh(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var tYe={id:"javascript",name:"JavaScript",description:"\n

    \n Enter a JavaScript function to filter, sort, or transform the data.\n

    \n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(oh(e.path)),a=function xP(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function ZZ(t){return xUe.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(oh(i.path),"\n")+" const valueB = b".concat(oh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(oh(i.path),"\n")+" const valueB = b".concat(oh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(oh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(oh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},nYe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},ab={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},lb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},iYe={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function rYe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var OYe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,MYe,AYe,Ti,{path:4,value:0,readOnly:1,onPatch:5,focus:6},EYe),r}return Se(e)}();function qse(t){for(var n=nP(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=uk(n,u);CP(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Do(l)&&i(o)){r[an(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=Re(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),Qe(Qe({},n),{},{expandedMap:r})}function Yse(t,n){var e=C0(t.expandedMap,n),i=C0(t.enforceStringMap,n),r=C0(t.visibleSectionsMap,n);return Qe(Qe({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Xse(t,n,e){if(e){var i=Qe({},t.enforceStringMap);return i[n]=e,Qe(Qe({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=Qe({},t.enforceStringMap);return delete r[n],Qe(Qe({},t),{},{enforceStringMap:r})}return t}function Jse(t,n,e){var i=Yu(t,e),r=e.reduce(function(o,s){return jZ(s)?Kse(i,o,s):RZ(s)?Qse(i,o,s):hN(s)?(u=(c=s).path,d=EP(a=i,(l=o).expandedMap),h=EP(a,l.enforceStringMap),f=EP(a,l.visibleSectionsMap),ko(c.value)||eo(c.value)||delete d[u],eo(c.value)||delete f[u],(ko(c.value)||eo(c.value))&&delete h[u],Qe(Qe({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):fN(s)||Jv(s)?function(a,l,c){if(Jv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=TP(kP(l.expandedMap,c.from),u),h=TP(kP(l.enforceStringMap,c.from),u),f=TP(kP(l.visibleSectionsMap,c.from),u),p=l;Jv(c)&&(p=Qse(a,p,{op:"remove",path:c.from}));var m=DP((p=Kse(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=DP(p.enforceStringMap,h),v=DP(p.visibleSectionsMap,f);return Qe(Qe({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function Kse(t,n,e){var i=Xu(t,e.path),r=qi(i),o=an(r);if(eo(Sn(t,r))){var s=$s(Fn(i)),a=S0(n.expandedMap,r,s,1),l=S0(n.enforceStringMap,r,s,1),c=S0(n.visibleSectionsMap,r,s,1);return c=Zse(c,o,function(u){return eae(u,s,1)}),Qe(Qe({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function Qse(t,n,e){var i=Xu(t,e.path),r=qi(i),o=an(r),s=Sn(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=C0(a,i),l=C0(l,i),c=C0(c,i),eo(s)){var u=$s(Fn(i));a=S0(a,r,u,-1),l=S0(l,r,u,-1),c=Zse(c=S0(c,r,u,-1),o,function(d){return eae(d,u,-1)})}return Qe(Qe({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function C0(t,n){var e={},i=an(n);return Object.keys(t).forEach(function(r){Kv(r,i)||(e[r]=t[r])}),e}function kP(t,n){var e={};return Object.keys(t).forEach(function(i){Kv(i,n)&&(e[i]=t[i])}),e}function DP(t,n){return Qe(Qe({},t),n)}function TP(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function S0(t,n,e,i){for(var r=n.length,o=an(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:an(u),value:t[c]}))}}if(0===s.length)return t;var h=Qe({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function EP(t,n){var e={};return Object.keys(n).filter(function(i){return Xc(t,Xu(t,i))}).forEach(function(i){e[i]=n[i]}),e}function Zse(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!rr(i,r)){var o=Qe({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function eae(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function hf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof Qv(o,i)}function cb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function AP(t,n){var e=[];return function i(r,o){e.push(o);var s=an(o);if(r&&!0===n.expandedMap[s]){if(eo(r)){var a=uk(n,s);CP(r,a,function(l){i(r[l],o.concat(String(l)))})}ko(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function tae(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:zu.value});var a=an(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:zu.inside}),eo(o)){var l=uk(n,a);CP(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:zu.after})})}ko(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:zu.key}),r(o[c],u),e&&i.push({path:u,type:zu.after})})}}(t,[]),i}function MP(t,n,e){var i=AP(t,n),r=i.map(an).indexOf(an(e));return-1!==r&&r0;){if(!0===t.pointersMap[an(i)])return!0;i.pop()}return vs(t)?e===Zr.key&&rr(t.focusPath,n):!(!Yi(t)||!(e===Zr.value&&rr(t.focusPath,n)||E0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===Zr.key||e===Zr.value||e===Zr.multi)))}function rae(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Ir(r)?r.focusPath:ta(r.paths),s=function FYe(t,n,e){var i=AP(t,n),r=i.map(an),o=an(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return Qu(r)||Vs(r)?Es(t,r.anchorPath,r.anchorPath):Es(t,r.anchorPath,l);if(vs(r)){var u=Sn(t,qi(s));return Array.isArray(u)||Ui(s)?fr(s,!1):ru(s,!1)}return Yi(r)?fr(s,!1):Qu(r)||Vs(r)?Es(t,o,o):Es(t,a,l)}function oae(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=tae(t,n,e),o=r.findIndex(function(s){return rr(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Sn(t,qi(r)))?fr(r,!1):ru(r,!1)}function T0(t,n){if(1===n.length){var e=ta(n);if("replace"===e.op||"move"===e.op)return fr(Xu(t,e.path),!1)}if(!Ui(n)&&n.every(function(s){return"move"===s.op})){var i=ta(n),r=n.slice(1);if((fN(i)||Jv(i))&&i.from!==i.path&&r.every(function(s){return(fN(s)||Jv(s))&&s.from===s.path}))return ru(Xu(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return Xu(t,s.path)});if(!Ui(o))return{type:Zr.multi,paths:o,anchorPath:ta(o),focusPath:Fn(o),pointersMap:sae(o)}}function sae(t){var n={};return t.forEach(function(e){n[an(e)]=!0}),n}function hk(t){return Hl({},an(t),!0)}function db(t){return void 0!==t&&(vs(t)||Yi(t)||Ir(t)&&1===t.paths.length)}function aae(t,n){return db(n)&&Lo(Sn(t,n.focusPath))?n.focusPath:qi(n.focusPath)}function E0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return Qe(Qe({},r),{},{active:o===n})});return Qe(Qe({},t),{},{items:i,itemsMap:p0(i,function(r){return an(r.path)}),activeItem:e,activeIndex:n})}function UYe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return Qe(Qe({},r),{},{active:o===n})});return Qe(Qe({},t),{},{items:i,itemsMap:p0(i,function(r){return an(r.path)}),activeItem:e,activeIndex:n})}function yae(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(ko(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else _ae(String(c),l,r,Gu.value,o)}(t.toLowerCase(),n),i}function _ae(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function FP(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function bae(t,n,e){var i=t;return eb(e,function(r){i=FP(i,n,r.start,r.end)}),i}function zYe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Gu.key){var c=qi(s),u=Sn(t,c),d=Fn(s),h=fb(c,Object.keys(u),d,FP(d,e,a,l));return{newSelection:T0(t,h),operations:h}}if(o===Gu.value){var f=Sn(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(an(s)));var p="string"==typeof f?f:String(f),m=an(s),g=hf(f,n.enforceStringMap,m,r),v=FP(p,e,a,l),y=[{op:"replace",path:an(s),value:g?v:Qv(v,r)}];return{newSelection:T0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function GYe(t,n,e,i,r){for(var o=yae(e,t,1/0),s=[],a=0;an.floating[o]&&(s=bk(s)),{main:s,cross:bk(s)}}var OXe={start:"end",end:"start"};function HP(t){return t.replace(/start|end/g,function(n){return OXe[n]})}var IXe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return Ki(pn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te,P,W,le,E,O,I,q,V,re;return pn().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,_=void 0===(y=u.fallbackAxisSideDirection)?"none":y,k=void 0===(w=u.flipAlignment)||w,D=oZ(u,dHe),L=ng(r),z=ng(a)===a,de.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return R=de.sent,U=m||(z||!k?[bk(a)]:(void 0,ye=bk(Oe=a),[HP(Oe),ye,HP(ye)])),m||"none"===_||U.push.apply(U,ri(function(Oe,ye,Xe,Le){var rt=yk(Oe),$=function(ne,ie,Me){var Ye=["left","right"],je=["right","left"];switch(ne){case"top":case"bottom":return Me?ie?je:Ye:ie?Ye:je;case"left":case"right":return ie?["top","bottom"]:["bottom","top"];default:return[]}}(ng(Oe),"start"===Xe,Le);return rt&&($=$.map(function(ne){return ne+"-"+rt}),ye&&($=$.concat($.map(HP)))),$}(a,k,_,R))),G=[a].concat(ri(U)),de.next=29,jae(n,D);case 29:if(X=de.sent,te=[],P=(null==(i=o.flip)?void 0:i.overflows)||[],h&&te.push(X[L]),p&&(W=MXe(r,s,R),te.push(X[W.main],X[W.cross])),P=[].concat(ri(P),[{placement:r,overflows:te}]),te.every(function(Oe){return Oe<=0})){de.next=48;break}if(O=((null==(le=o.flip)?void 0:le.index)||0)+1,!(I=G[O])){de.next=37;break}return de.abrupt("return",{data:{index:O,overflows:P},reset:{placement:I}});case 37:if(q=null==(E=P.filter(function(Oe){return Oe.overflows[0]<=0}).sort(function(Oe,ye){return Oe.overflows[1]-ye.overflows[1]})[0])?void 0:E.placement,q){de.next=46;break}de.t0=v,de.next="bestFit"===de.t0?42:"initialPlacement"===de.t0?45:46;break;case 42:return re=null==(V=P.map(function(Oe){return[Oe.placement,Oe.overflows.filter(function(ye){return ye>0}).reduce(function(ye,Xe){return ye+Xe},0)]}).sort(function(Oe,ye){return Oe[1]-ye[1]})[0])?void 0:V[0],re&&(q=re),de.abrupt("break",46);case 45:q=a;case 46:if(r===q){de.next=48;break}return de.abrupt("return",{reset:{placement:q}});case 48:return de.abrupt("return",{});case 49:case"end":return de.stop()}var Oe,ye},e)}))()}}},NXe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return Ki(pn().mark(function e(){var i,r,o;return pn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=Ki(pn().mark(function l(c,u){var d,h,f,p,m,g,v,y,_,w,k,D,L,z;return pn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return d=c.placement,h=c.platform,f=c.elements,R.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=R.sent,m=ng(d),g=yk(d),v="x"===_k(d),y=["left","top"].includes(m)?-1:1,_=p&&v?-1:1,w="function"==typeof u?u(c):u,k="number"==typeof w?{mainAxis:w,crossAxis:0,alignmentAxis:null}:Qe({mainAxis:0,crossAxis:0,alignmentAxis:null},w),D=k.mainAxis,L=k.crossAxis,z=k.alignmentAxis,R.abrupt("return",(g&&"number"==typeof z&&(L="end"===g?-1*z:z),v?{x:L*_,y:D*y}:{x:D*y,y:L*_}));case 14:case"end":return R.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function FXe(t){return"x"===t?"y":"x"}var PXe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return Ki(pn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,L;return pn().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(R){return{x:R.x,y:R.y}}}:h,p=oZ(a,hHe),m={x:r,y:o},z.next=14,jae(n,p);case 14:return g=z.sent,v=_k(ng(s)),y=FXe(v),_=m[v],w=m[y],c&&(_=Rae(_+g["y"===v?"top":"left"],_,_-g["y"===v?"bottom":"right"])),d&&(w=Rae(w+g["y"===y?"top":"left"],w,w-g["y"===y?"bottom":"right"])),L=f.fn(Qe(Qe({},n),{},(Hl(i={},v,_),Hl(i,y,w),i))),z.abrupt("return",Qe(Qe({},L),{},{data:{x:L.x-r,y:L.y-o}}));case 22:case"end":return z.stop()}},e)}))()}}};function Cc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function ch(t){return Cc(t).getComputedStyle(t)}var UP,Lae=Math.min,mb=Math.max,xk=Math.round;function $ae(t){var n=ch(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=xk(e)!==r||xk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function _p(t){return Vae(t)?(t.nodeName||"").toLowerCase():""}function Bae(){if(UP)return UP;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?UP=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function uh(t){return t instanceof Cc(t).HTMLElement}function ed(t){return t instanceof Cc(t).Element}function Vae(t){return t instanceof Cc(t).Node}function Hae(t){return typeof ShadowRoot<"u"&&(t instanceof Cc(t).ShadowRoot||t instanceof ShadowRoot)}function wk(t){var n=ch(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function jXe(t){return["table","td","th"].includes(_p(t))}function zP(t){var n=/firefox/i.test(Bae()),e=ch(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function GP(){return/^((?!chrome|android).)*safari/i.test(Bae())}function WP(t){return["html","body","#document"].includes(_p(t))}function Uae(t){return ed(t)?t:t.contextElement}var zae={x:1,y:1};function P0(t){var n=Uae(t);if(!uh(n))return zae;var e=n.getBoundingClientRect(),i=$ae(n),r=i.width,o=i.height,s=i.fallback,a=(s?xk(e.width):e.width)/r,l=(s?xk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function ig(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Uae(t),l=zae;n&&(i?ed(i)&&(l=P0(i)):l=P0(t));var c=a?Cc(a):window,u=GP()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=Cc(a),g=i&&ed(i)?Cc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=P0(v),_=v.getBoundingClientRect(),w=getComputedStyle(v);_.x+=(v.clientLeft+parseFloat(w.paddingLeft))*y.x,_.y+=(v.clientTop+parseFloat(w.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=_.x,h+=_.y,v=Cc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function bp(t){return((Vae(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ck(t){return ed(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gae(t){return ig(bp(t)).left+Ck(t).scrollLeft}function gb(t){if("html"===_p(t))return t;var n=t.assignedSlot||t.parentNode||Hae(t)&&t.host||bp(t);return Hae(n)?n.host:n}function Wae(t){var n=gb(t);return WP(n)?n.ownerDocument.body:uh(n)&&wk(n)?n:Wae(n)}function vb(t,n){var e;void 0===n&&(n=[]);var i=Wae(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Cc(i);return r?n.concat(o,o.visualViewport||[],wk(i)?i:[]):n.concat(i,vb(i))}function qae(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=Cc(l),d=bp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=GP();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=bp(t),c=bp(l),u=Ck(l),h=mb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=mb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Gae(l),m=-u.scrollTop,"rtl"===ch(d).direction&&(p+=mb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(ed(n))i=function(l,c){var u=ig(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=uh(l)?P0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=Qe({},n);if(GP()){var o,s,a=Cc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return BP(i)}function Yae(t,n){return uh(t)&&"fixed"!==ch(t).position?n?n(t):t.offsetParent:null}function Xae(t,n){for(var e=Cc(t),i=Yae(t,n);i&&jXe(i)&&"static"===ch(i).position;)i=Yae(i,n);return i&&("html"===_p(i)||"body"===_p(i)&&"static"===ch(i).position&&!zP(i))?e:i||function(r){for(var o=gb(r);uh(o)&&!WP(o);){if(zP(o))return o;o=gb(o)}return null}(t)||e}function RXe(t,n,e){var i=uh(n),r=bp(n),o=ig(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==_p(n)||wk(r))&&(s=Ck(n)),uh(n)){var l=ig(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Gae(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var LXe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=vb(c).filter(function(y){return ed(y)&&"body"!==_p(y)}),f=null,p="fixed"===ch(c).position,m=p?gb(c):c;ed(m)&&!WP(m);){var g=ch(m),v=zP(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=gb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(ri(o),[i]),l=s.reduce(function(c,u){var d=qae(n,u,r);return c.top=mb(d.top,c.top),c.right=Lae(d.right,c.right),c.bottom=Lae(d.bottom,c.bottom),c.left=mb(d.left,c.left),c},qae(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=uh(e),o=bp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==_p(e)||wk(o))&&(s=Ck(e)),uh(e))){var c=ig(e);a=P0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:ed,getDimensions:function(t){return uh(t)?$ae(t):t.getBoundingClientRect()},getOffsetParent:Xae,getDocumentElement:bp,getScale:P0,getElementRects:function(t){var n=this;return Ki(pn().mark(function e(){var i,r,o,s,a;return pn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Xae,a=n.getDimensions,l.t0=RXe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=Qe,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===ch(t).direction}};function VXe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==mn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function HXe(t){return qP.apply(this,arguments)}function qP(){return qP=Ki(pn().mark(function t(n){var e,i,r,o,s;return pn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==mn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),qP.apply(this,arguments)}function UXe(t){di(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function zXe(t){var n,e;return{c:function(){n=qd("svg"),j(e=qd("path"),"fill","currentColor"),j(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),j(n,"width","100%"),j(n,"height","100%"),j(n,"viewBox","0 0 20 20"),j(n,"focusable","false"),j(n,"aria-hidden","true"),j(n,"class","svelte-qbd276")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:jt,i:jt,o:jt,d:function(i){i&&Fe(n)}}}var GXe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,null,zXe,ps,{},UXe),r}return Se(e)}();function WXe(t){di(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function qXe(t){var n,e;return{c:function(){n=qd("svg"),j(e=qd("path"),"fill","currentColor"),j(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),j(n,"width","100%"),j(n,"height","100%"),j(n,"viewBox","-2 -2 50 50"),j(n,"focusable","false"),j(n,"aria-hidden","true"),j(n,"role","presentation"),j(n,"class","svelte-whdbu1")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:jt,i:jt,o:jt,d:function(i){i&&Fe(n)}}}var Sk=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,null,qXe,ps,{},WXe),r}return Se(e)}();function YXe(t){di(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function XXe(t){var n,e;return{c:function(){n=qd("svg"),j(e=qd("circle"),"class","circle_path svelte-1p3nqvd"),j(e,"cx","50"),j(e,"cy","50"),j(e,"r","20"),j(e,"fill","none"),j(e,"stroke","currentColor"),j(e,"stroke-width","5"),j(e,"stroke-miterlimit","10"),j(n,"class","loading svelte-1p3nqvd"),j(n,"viewBox","25 25 50 50")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:jt,i:jt,o:jt,d:function(i){i&&Fe(n)}}}var JXe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,null,XXe,ps,{},YXe),r}return Se(e)}();function KXe(t){di(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var QXe=function(t){return{value:8&t[0]}},Jae=function(t){return{value:t[3]}},ZXe=function(t){return{listOpen:64&t[0]}},Kae=function(t){return{listOpen:t[6]}},eJe=function(t){return{}},Qae=function(t){return{}},tJe=function(t){return{}},Zae=function(t){return{}},nJe=function(t){return{selection:8&t[0]}},ele=function(t){return{selection:t[3]}};function tle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var iJe=function(t){return{}},nle=function(t){return{}},rJe=function(t){return{selection:8&t[0]}},ile=function(t){return{selection:t[127],index:t[129]}},oJe=function(t){return{}},rle=function(t){return{}},sJe=function(t){return{}},ole=function(t){return{}};function sle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var aJe=function(t){return{item:16777216&t[0]}},ale=function(t){return{item:t[127],index:t[129]}},lJe=function(t){return{filteredItems:16777216&t[0]}},lle=function(t){return{filteredItems:t[24]}};function cle(t){var n,e,i,r,o,s,a=[dJe,uJe,cJe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=ve("div"),i&&i.c(),j(n,"class","svelte-select-list svelte-tyxmms"),At(n,"prefloat",t[28])},m:function(u,d){Pe(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[pa(t[49].call(null,n)),It(n,"scroll",t[41]),It(n,"pointerdown",ef(t[50])),It(n,"pointerup",tf(ef(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&(Rt(),ae(l[h],1,1,function(){l[h]=null}),Lt()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),K(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&At(n,"prefloat",u[28])},i:function(u){r||(K(i),r=!0)},o:function(u){ae(i),r=!1},d:function(u){u&&Fe(n),~e&&l[e].d(),t[91](null),o=!1,so(s)}}}function cJe(t){var n,e,i=t[83].empty,r=Ss(i,t,t[82],ole),o=r||{c:function(){(e=ve("div")).textContent="No options",j(e,"class","empty svelte-tyxmms")},m:function(s,a){Pe(s,e,a)},p:jt,d:function(s){s&&Fe(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Ds(r,i,s,s[82],n?ks(i,s[82],a,sJe):Ts(s[82]),ole)},i:function(s){n||(K(o,s),n=!0)},o:function(s){ae(o,s),n=!1},d:function(s){o&&o.d(s)}}}function uJe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(Ke,Xn)}:kn,ci=n.debounceWait,li=void 0===ci?300:ci,Sr=n.hideEmptyState,qr=void 0!==Sr&&Sr,fi=n.inputAttributes,vr=void 0===fi?{}:fi,Te=n.listAutoWidth,St=void 0===Te||Te,Vt=n.showChevron,rn=void 0!==Vt&&Vt,un=n.listOffset,ni=void 0===un?5:un,Ni=n.hoverItemIndex,$n=void 0===Ni?0:Ni,Zn=n.floatingConfig,Yn=void 0===Zn?{}:Zn,yr=n.class,Er=void 0===yr?"":yr;function Oo(Ke){var Xn=[],Qi={};Ke.forEach(function(xd){var jr=wr(xd);Xn.includes(jr)||(Xn.push(jr),Qi[jr]=[],jr&&Qi[jr].push(Object.assign(Hs(jr,xd),{id:jr,groupHeader:!0,selectable:Vr}))),Qi[jr].push(Object.assign({groupItem:!!jr},xd))});var zs=[];return mr(Xn).forEach(function(xd){Qi[xd]&&zs.push.apply(zs,ri(Qi[xd]))}),zs}function ra(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Xn=arguments.length>1?arguments[1]:void 0;e(7,$n=Ke<0?0:Ke),!Xn&&wr&&c[$n]&&!c[$n].selectable&&yo(1)}function pd(){var Ke=!0;if($){var Xn=[],Qi=[];$.forEach(function(zs){Xn.includes(zs[On])?Ke=!1:(Xn.push(zs[On]),Qi.push(zs))}),Ke||e(3,$=Qi)}return Ke}function fu(Ke){var Xn=Ke?Ke[On]:$[On];return fn.find(function(Qi){return Qi[On]===Xn})}function oa(Ke){return El.apply(this,arguments)}function El(){return(El=Ki(pn().mark(function Ke(Xn){var Qi;return pn().wrap(function(zs){for(;;)switch(zs.prev=zs.next){case 0:Qi=$[Xn],e(3,$=1===$.length?void 0:$.filter(function(xd){return xd!==Qi})),L("clear",Qi);case 3:case"end":return zs.stop()}},Ke)}))).apply(this,arguments)}function md(Ke){var Xn;Le&&I===(null===(Xn=document)||void 0===Xn?void 0:Xn.activeElement)||(Ke&&L("focus",Ke),I.focus(),e(2,Le=!0))}function Ms(Ke){return gd.apply(this,arguments)}function gd(){return(gd=Ki(pn().mark(function Ke(Xn){return pn().wrap(function(Qi){for(;;)switch(Qi.prev=Qi.next){case 0:if(!ui&&!dx){Qi.next=2;break}return Qi.abrupt("return");case 2:(Ue||Le)&&(L("blur",Xn),vd(),e(2,Le=!1),e(26,f=void 0),I.blur());case 3:case"end":return Qi.stop()}},Ke)}))).apply(this,arguments)}function vd(){e(4,ie=""),e(6,Ue=!1)}y=Ki(pn().mark(function Ke(){return pn().wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:e(78,p=$),e(79,m=ie),e(80,g=V);case 3:case"end":return Xn.stop()}},Ke)})),qv().$$.before_update.push(y),qc(function(){Ue&&e(2,Le=!0),Le&&I&&I.focus()});var on,CT=n.ariaValues,we=void 0===CT?function(Ke){return"Option ".concat(Ke,", selected.")}:CT,at=n.ariaListOpen,Mt=void 0===at?function(Ke,Xn){return"You are currently focused on option ".concat(Ke,". There are ").concat(Xn," results available.")}:at,Xt=n.ariaFocused,nn=void 0===Xt?function(){return"Select is focused, type to refine list, press down to open the menu."}:Xt,Bn=null;function si(){clearTimeout(on),on=setTimeout(function(){ui=!1},100)}Vu(function(){var Ke;null===(Ke=Bn)||void 0===Ke||Ke.remove()});var ui=!1;function Io(Ke){Ke&&!1!==Ke.selectable&&function(Xn){if(Xn){e(4,ie="");var Qi=Object.assign({},Xn);if(Qi.groupHeader&&!Qi.selectable)return;e(3,$=V?$?$.concat([Qi]):[Qi]:e(3,$=Qi)),setTimeout(function(){Hr&&vd(),e(26,f=void 0),L("change",$),L("select",Xn)})}}(Ke)}function Os(Ke){ui||e(7,$n=Ke)}function Xo(Ke){var zs,Xn=Ke.item,Qi=Ke.i;if(!1!==Xn?.selectable){if($&&!V&&$[On]===Xn[On])return vd();((zs=Xn).groupHeader&&zs.selectable||zs.selectable||!zs.hasOwnProperty("selectable"))&&(e(7,$n=Qi),Io(Xn)),dx=!1}}function yo(Ke){if(0===c.filter(function(Qi){return!Object.hasOwn(Qi,"selectable")||!0===Qi.selectable}).length)return e(7,$n=0);e(7,Ke>0&&$n===c.length-1?$n=0:Ke<0&&0===$n?$n=c.length-1:$n+=Ke);var Xn=c[$n];Xn&&!1===Xn.selectable&&(1!==Ke&&-1!==Ke||yo(Ke))}var Al=yd,Ch=yd;function yd(Ke){return{update:function(Xn){Xn.scroll&&(si(),Ke.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Ar={strategy:"absolute",placement:"bottom-start",middleware:[NXe(ni),IXe(),PXe()],autoUpdate:!1},Jl=Un(function BXe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return Qe(Qe(Qe({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=Qe({platform:LXe},d),p=Qe(Qe({},f.platform),{},{_c:h}),kXe(c,u,Qe(Qe({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){Vu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function $Xe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(ri(ed(t)?vb(t):t.contextElement?vb(t.contextElement):[]),ri(vb(n))):[];p.forEach(function(_){f&&_.addEventListener("scroll",e,{passive:!0}),l&&_.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),ed(t)&&!h&&g.observe(t),ed(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?ig(t):null;return h&&function _(){var w=ig(t);!y||w.x===y.x&&w.y===y.y&&w.width===y.width&&w.height===y.height||e(),y=w,m=requestAnimationFrame(_)}(),e(),function(){var _;p.forEach(function(w){f&&w.removeEventListener("scroll",e),l&&w.removeEventListener("resize",e)}),null==(_=g)||_.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Ar),3),pu=Jl[0],_d=Jl[1],Sh=Jl[2],bd=!0,dx=!1;return t.$$set=function(Ke){"justValue"in Ke&&e(53,R=Ke.justValue),"filter"in Ke&&e(54,G=Ke.filter),"getItems"in Ke&&e(55,te=Ke.getItems),"id"in Ke&&e(56,W=Ke.id),"name"in Ke&&e(8,H=Ke.name),"container"in Ke&&e(0,E=Ke.container),"input"in Ke&&e(1,I=Ke.input),"multiple"in Ke&&e(9,V=Ke.multiple),"multiFullItemClearable"in Ke&&e(10,de=Ke.multiFullItemClearable),"disabled"in Ke&&e(11,ye=Ke.disabled),"focused"in Ke&&e(2,Le=Ke.focused),"value"in Ke&&e(3,$=Ke.value),"filterText"in Ke&&e(4,ie=Ke.filterText),"placeholder"in Ke&&e(57,Ye=Ke.placeholder),"placeholderAlwaysShow"in Ke&&e(58,gt=Ke.placeholderAlwaysShow),"items"in Ke&&e(52,fn=Ke.items),"label"in Ke&&e(12,Zt=Ke.label),"itemFilter"in Ke&&e(59,ln=Ke.itemFilter),"groupBy"in Ke&&e(60,wr=Ke.groupBy),"groupFilter"in Ke&&e(61,mr=Ke.groupFilter),"groupHeaderSelectable"in Ke&&e(62,Vr=Ke.groupHeaderSelectable),"itemId"in Ke&&e(13,On=Ke.itemId),"loadOptions"in Ke&&e(63,ai=Ke.loadOptions),"containerStyles"in Ke&&e(14,Cr=Ke.containerStyles),"hasError"in Ke&&e(15,Yo=Ke.hasError),"filterSelectedItems"in Ke&&e(64,In=Ke.filterSelectedItems),"required"in Ke&&e(16,vi=Ke.required),"closeListOnChange"in Ke&&e(65,Hr=Ke.closeListOnChange),"createGroupHeaderItem"in Ke&&e(66,Hs=Ke.createGroupHeaderItem),"searchable"in Ke&&e(17,Us=Ke.searchable),"inputStyles"in Ke&&e(18,Ua=Ke.inputStyles),"clearable"in Ke&&e(68,xe=Ke.clearable),"loading"in Ke&&e(5,We=Ke.loading),"listOpen"in Ke&&e(6,Ue=Ke.listOpen),"debounce"in Ke&&e(69,ti=Ke.debounce),"debounceWait"in Ke&&e(70,li=Ke.debounceWait),"hideEmptyState"in Ke&&e(19,qr=Ke.hideEmptyState),"inputAttributes"in Ke&&e(71,vr=Ke.inputAttributes),"listAutoWidth"in Ke&&e(72,St=Ke.listAutoWidth),"showChevron"in Ke&&e(20,rn=Ke.showChevron),"listOffset"in Ke&&e(73,ni=Ke.listOffset),"hoverItemIndex"in Ke&&e(7,$n=Ke.hoverItemIndex),"floatingConfig"in Ke&&e(74,Yn=Ke.floatingConfig),"class"in Ke&&e(21,Er=Ke.class),"ariaValues"in Ke&&e(75,we=Ke.ariaValues),"ariaListOpen"in Ke&&e(76,Mt=Ke.ariaListOpen),"ariaFocused"in Ke&&e(77,nn=Ke.ariaFocused),"$$scope"in Ke&&e(82,k=Ke.$$scope)},t.$$.update=function(){var Ke,Xn,Qi,zs,xd,jr;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&$&&function(){if("string"==typeof $){var jr,Gs=(fn||[]).find(function(mu){return mu[On]===$});e(3,$=Gs||(Hl(jr={},On,$),Hl(jr,"label",$),jr))}else V&&Array.isArray($)&&$.length>0&&e(3,$=$.map(function(mu){return"string"==typeof mu?{value:mu,label:mu}:mu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!vr&&Us||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},vr)),W&&e(27,v.id=W,v),Us||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&$&&(Array.isArray($)?e(3,$=ri($)):e(3,$=[$])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&$&&e(3,$=null),520&t.$$.dirty[0]&&V&&$&&$.length>1&&pd(),8&t.$$.dirty[0]&&$&&(V?JSON.stringify($)!==JSON.stringify(p)&&pd()&&L("input",$):p&&JSON.stringify($[On])===JSON.stringify(p[On])||L("input",$)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!$&&V&&p&&L("input",$),6&t.$$.dirty[0]&&!Le&&I&&vd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&ie!==m&&(ai||0!==ie.length)&&(ai?ti(Ki(pn().mark(function jr(){var Gs;return pn().wrap(function(mu){for(;;)switch(mu.prev=mu.next){case 0:return e(5,We=!0),mu.next=3,te({dispatch:L,loadOptions:ai,convertStringItemsToObjects:_le,filterText:ie});case 3:(Gs=mu.sent)?(e(5,We=Gs.loading),e(6,Ue=Ue?Gs.listOpen:ie.length>0),e(2,Le=Ue&&Gs.focused),e(52,fn=wr?Oo(Gs.filteredItems):Gs.filteredItems)):(e(5,We=!1),e(2,Le=!0),e(6,Ue=!0));case 5:case"end":return mu.stop()}},jr)})),li):(e(6,Ue=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=G({loadOptions:ai,filterText:ie,items:fn,multiple:V,value:$,itemId:On,groupBy:wr,label:Zt,filterSelectedItems:In,itemFilter:ln,convertStringItemsToObjects:_le,filterGroupedItems:Oo})),16777800&t.$$.dirty[0]&&!V&&Ue&&$&&c&&(Ke=c.findIndex(function(jr){return jr[On]===$[On]}),ra(Ke,!0)),576&t.$$.dirty[0]&&Ue&&V&&e(7,$n=0),16&t.$$.dirty[0]&&ie&&e(7,$n=0),128&t.$$.dirty[0]&&L("hoverItem",$n),520&t.$$.dirty[0]&&e(25,i=V?$&&$.length>0:$),33554448&t.$$.dirty[0]&&e(35,r=i&&ie.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&xe&&!ye&&!We),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=gt&&V||V&&0===(null===(Xn=$)||void 0===Xn?void 0:Xn.length)?Ye:$?"":Ye),520&t.$$.dirty[0]&&e(32,a=$?(Qi=V&&$.length>0?$.map(function(jr){return jr[Zt]}).join(", "):$[Zt],we(Qi)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var jr=c[$n];return Ue&&jr?Mt(jr[Zt],c?c.length:0):nn()}()),2097152&t.$$.dirty[1]&&(jr=fn)&&0!==jr.length&&!jr.some(function(Gs){return"object"!==mn(Gs)})&&$&&(V?!$.some(function(Gs){return!Gs||!Gs[On]}):$[On])&&(Array.isArray($)?e(3,$=$.map(function(Gs){return fu(Gs)||Gs})):e(3,$=fu()||$)),8712&t.$$.dirty[0]&&e(53,R=V?$?$.map(function(jr){return jr[On]}):null:$&&$[On]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||$||L("input",$)),16777800&t.$$.dirty[0]&&Ue&&c&&!V&&!$&&ra(),16777216&t.$$.dirty[0]&&function(jr){Ue&&L("filter",jr)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&E&&void 0===(null===(zs=Yn)||void 0===zs?void 0:zs.autoUpdate)&&e(81,Ar.autoUpdate=!0,Ar),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&E&&Yn&&Sh(Object.assign(Ar,Yn)),8388608&t.$$.dirty[0]&&e(30,u=!!Bn),8388672&t.$$.dirty[0]&&function(jr,Gs){if(!jr||!Gs)return e(28,bd=!0);setTimeout(function(){e(28,bd=!1)},0)}(Bn,Ue),8388673&t.$$.dirty[0]&&Ue&&E&&Bn&&(xd=E.getBoundingClientRect().width,e(23,Bn.style.width=St?xd+"px":"auto",Bn)),128&t.$$.dirty[0]&&e(29,d=$n),70&t.$$.dirty[0]&&I&&Ue&&!Le&&md()},[E,I,Le,$,ie,We,Ue,$n,H,V,de,ye,Zt,On,Cr,Yo,vi,Us,Ua,qr,rn,Er,function(){L("clear",$),e(3,$=void 0),vd(),md()},Bn,c,i,f,v,bd,d,u,l,a,s,o,r,oa,function(Ke){if(Le)switch(Ke.stopPropagation(),Ke.key){case"Escape":Ke.preventDefault(),vd();break;case"Enter":if(Ke.preventDefault(),Ue){if(0===c.length)break;if($&&!V&&$[On]===c[$n][On]){vd();break}Io(c[$n])}break;case"ArrowDown":Ke.preventDefault(),Ue?yo(1):(e(6,Ue=!0),e(26,f=void 0));break;case"ArrowUp":Ke.preventDefault(),Ue?yo(-1):(e(6,Ue=!0),e(26,f=void 0));break;case"Tab":if(Ue&&Le){if(0===c.length||$&&$[On]===c[$n][On])return vd();Ke.preventDefault(),Io(c[$n]),vd()}break;case"Backspace":if(!V||ie.length>0)return;if(V&&$&&$.length>0){if(oa(void 0!==f?f:$.length-1),0===f||void 0===f)break;e(26,f=$.length>f?f-1:void 0)}break;case"ArrowLeft":if(!$||!V||ie.length>0)return;void 0===f?e(26,f=$.length-1):$.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!$||!V||ie.length>0||void 0===f)return;f===$.length-1?e(26,f=void 0):f<$.length-1&&e(26,f+=1)}},md,Ms,function(){ye||e(6,Ue=!Ue)},si,function(Ke){var Xn;Ue||Le||!E||E.contains(Ke.target)||null!==(Xn=Bn)&&void 0!==Xn&&Xn.contains(Ke.target)||Ms()},Os,Xo,function(Ke,Xn,Qi){if(!V)return Xn&&Xn[Qi]===Ke[Qi]},Al,Ch,pu,_d,function(){dx=!0},D,fn,R,G,te,W,Ye,gt,ln,wr,mr,Vr,ai,In,Hr,Hs,function(){return c},xe,ti,li,vr,St,ni,Yn,we,Mt,nn,p,m,g,Ar,k,w,function(Ke){Z2.call(this,t,Ke)},function(Ke){Z2.call(this,t,Ke)},function(Ke){Z2.call(this,t,Ke)},function(Ke){Z2.call(this,t,Ke)},function(Ke){return Os(Ke)},function(Ke){return Os(Ke)},function(Ke,Xn){return Xo({item:Ke,i:Xn})},function(Ke){Hi[Ke?"unshift":"push"](function(){e(23,Bn=Ke)})},function(Ke){return oa(Ke)},function(Ke){return de?oa(Ke):{}},function(Ke){Hi[Ke?"unshift":"push"](function(){e(1,I=Ke)})},function(){e(4,ie=this.value)},function(Ke){Hi[Ke?"unshift":"push"](function(){e(0,E=Ke)})}]}var rg=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,mJe,pJe,ps,{justValue:53,filter:54,getItems:55,id:56,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:57,placeholderAlwaysShow:58,items:52,label:12,itemFilter:59,groupBy:60,groupFilter:61,groupHeaderSelectable:62,itemId:13,loadOptions:63,containerStyles:14,hasError:15,filterSelectedItems:64,required:16,closeListOnChange:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},KXe,[-1,-1,-1,-1,-1]),r}return Se(e,[{key:"getFilteredItems",get:function(){return this.$$.ctx[67]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}]),e}();function gJe(t){di(t,"svelte-1kiph99","table.jse-transform-wizard.svelte-1kiph99.svelte-1kiph99{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-1kiph99 input.svelte-1kiph99{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-1kiph99 tr th.svelte-1kiph99{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99{flex:4;padding:4px 8px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);outline:none;background:var(--jse-input-background);color:inherit}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99:focus{border:var(--jse-input-border-focus)}")}function vJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te,P,W,J,H,le,E;function O(rt){t[16](rt)}var I={class:"jse-filter-path",showChevron:!0,items:t[7]};function q(rt){t[17](rt)}void 0!==t[0]&&(I.value=t[0]),a=new rg({props:I}),Hi.push(function(){return Uu(a,"value",O)});var V={class:"jse-filter-relation",showChevron:!0,items:t[8]};function re(rt){t[19](rt)}void 0!==t[1]&&(V.value=t[1]),u=new rg({props:V}),Hi.push(function(){return Uu(u,"value",q)});var de={class:"jse-sort-path",showChevron:!0,items:t[7]};function Oe(rt){t[20](rt)}void 0!==t[3]&&(de.value=t[3]),w=new rg({props:de}),Hi.push(function(){return Uu(w,"value",re)});var ye={class:"jse-sort-direction",showChevron:!0,items:t[9]};function Xe(rt){t[21](rt)}void 0!==t[4]&&(ye.value=t[4]),L=new rg({props:ye}),Hi.push(function(){return Uu(L,"value",Oe)});var Le={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:t[6]};return void 0!==t[5]&&(Le.value=t[5]),W=new rg({props:Le}),Hi.push(function(){return Uu(W,"value",Xe)}),{c:function(){n=ve("table"),e=ve("tr"),(i=ve("th")).textContent="Filter",r=tt(),o=ve("td"),s=ve("div"),ft(a.$$.fragment),c=tt(),ft(u.$$.fragment),h=tt(),f=ve("input"),p=tt(),m=ve("tr"),(g=ve("th")).textContent="Sort",v=tt(),y=ve("td"),_=ve("div"),ft(w.$$.fragment),D=tt(),ft(L.$$.fragment),R=tt(),U=ve("tr"),(G=ve("th")).textContent="Pick",X=tt(),te=ve("td"),P=ve("div"),ft(W.$$.fragment),j(i,"class","svelte-1kiph99"),j(f,"class","jse-filter-value svelte-1kiph99"),j(s,"class","jse-horizontal svelte-1kiph99"),j(g,"class","svelte-1kiph99"),j(_,"class","jse-horizontal svelte-1kiph99"),j(G,"class","svelte-1kiph99"),j(P,"class","jse-horizontal svelte-1kiph99"),j(n,"class","jse-transform-wizard svelte-1kiph99")},m:function(rt,$){Pe(rt,n,$),ue(n,e),ue(e,i),ue(e,r),ue(e,o),ue(o,s),dt(a,s,null),ue(s,c),dt(u,s,null),ue(s,h),ue(s,f),ep(f,t[2]),ue(n,p),ue(n,m),ue(m,g),ue(m,v),ue(m,y),ue(y,_),dt(w,_,null),ue(_,D),dt(L,_,null),ue(n,R),ue(n,U),ue(U,G),ue(U,X),ue(U,te),ue(te,P),dt(W,P,null),H=!0,le||(E=It(f,"input",t[18]),le=!0)},p:function(rt,$){var ne=Un($,1)[0],ie={};128&ne&&(ie.items=rt[7]),!l&&1&ne&&(l=!0,ie.value=rt[0],Hu(function(){return l=!1})),a.$set(ie);var Me={};!d&&2&ne&&(d=!0,Me.value=rt[1],Hu(function(){return d=!1})),u.$set(Me),4&ne&&f.value!==rt[2]&&ep(f,rt[2]);var Ye={};128&ne&&(Ye.items=rt[7]),!k&&8&ne&&(k=!0,Ye.value=rt[3],Hu(function(){return k=!1})),w.$set(Ye);var je={};!z&&16&ne&&(z=!0,je.value=rt[4],Hu(function(){return z=!1})),L.$set(je);var gt={};64&ne&&(gt.items=rt[6]),!J&&32&ne&&(J=!0,gt.value=rt[5],Hu(function(){return J=!1})),W.$set(gt)},i:function(rt){H||(K(a.$$.fragment,rt),K(u.$$.fragment,rt),K(w.$$.fragment,rt),K(L.$$.fragment,rt),K(W.$$.fragment,rt),H=!0)},o:function(rt){ae(a.$$.fragment,rt),ae(u.$$.fragment,rt),ae(w.$$.fragment,rt),ae(L.$$.fragment,rt),ae(W.$$.fragment,rt),H=!1},d:function(rt){rt&&Fe(n),ht(a),ht(u),ht(w),ht(L),ht(W),le=!1,E()}}}function yJe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=ga("jsoneditor:TransformWizard"),w=n.json,k=n.queryOptions,D=void 0===k?{}:k,L=n.onChange,z=["==","!=","<","<=",">",">="].map(function(W){return{value:W,label:W}}),R=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],U=null!==(i=D)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?ob(D.filter.path):null,G=null!==(o=D)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?z.find(function(W){var J;return W.value===(null===(J=D.filter)||void 0===J?void 0:J.relation)}):null,X=(null===(a=D)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",te=null!==(c=D)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?ob(D.sort.path):null,P=null!==(d=D)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?R.find(function(W){var J;return W.value===(null===(J=D.sort)||void 0===J?void 0:J.direction)}):null;return t.$$set=function(W){"json"in W&&e(11,w=W.json),"queryOptions"in W&&e(10,D=W.queryOptions),"onChange"in W&&e(12,L=W.onChange)},t.$$.update=function(){var W,J,H,le,E,O,I,q,V,re,de,Oe,ye,Xe,Le,rt,$,ne,ie,Me,Ye;2048&t.$$.dirty&&e(15,f=Array.isArray(w)),34816&t.$$.dirty&&e(14,p=f?dP(w):[]),34816&t.$$.dirty&&e(13,m=f?dP(w,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(ob)),8192&t.$$.dirty&&e(6,v=m?m.map(ob):[]),1088&t.$$.dirty&&e(5,y=null!==(W=D)&&void 0!==W&&null!==(J=W.projection)&&void 0!==J&&J.paths&&v?D.projection.paths.map(function(ie){return v.find(function(Me){return rr(Me.value,ie)})}).filter(function(ie){return!!ie}):null),1&t.$$.dirty&&(le=(null===(H=U)||void 0===H?void 0:H.value)||null,rr(null===(E=D)||void 0===E||null===(O=E.filter)||void 0===O?void 0:O.path,le)||(_("changeFilterPath",le),e(10,D=Wu(D,["filter","path"],le,!0)),L(D))),2&t.$$.dirty&&(q=(null===(I=G)||void 0===I?void 0:I.value)||null,rr(null===(V=D)||void 0===V||null===(re=V.filter)||void 0===re?void 0:re.relation,q)||(_("changeFilterRelation",q),e(10,D=Wu(D,["filter","relation"],q,!0)),L(D))),4&t.$$.dirty&&(rr(null===(Oe=D)||void 0===Oe||null===(ye=Oe.filter)||void 0===ye?void 0:ye.value,de=X||null)||(_("changeFilterValue",de),e(10,D=Wu(D,["filter","value"],de,!0)),L(D))),8&t.$$.dirty&&(ie=(null===(Xe=te)||void 0===Xe?void 0:Xe.value)||null,rr(null===(Me=D)||void 0===Me||null===(Ye=Me.sort)||void 0===Ye?void 0:Ye.path,ie)||(_("changeSortPath",ie),e(10,D=Wu(D,["sort","path"],ie,!0)),L(D))),16&t.$$.dirty&&(rt=(null===(Le=P)||void 0===Le?void 0:Le.value)||null,rr(null===($=D)||void 0===$||null===(ne=$.sort)||void 0===ne?void 0:ne.direction,rt)||(_("changeSortDirection",rt),e(10,D=Wu(D,["sort","direction"],rt,!0)),L(D))),32&t.$$.dirty&&function(ie){var Me,Ye;rr(null===(Me=D)||void 0===Me||null===(Ye=Me.projection)||void 0===Ye?void 0:Ye.paths,ie)||(_("changeProjectionPaths",ie),e(10,D=Wu(D,["projection","paths"],ie,!0)),L(D))}(y?y.map(function(ie){return ie.value}):null)},[U,G,X,te,P,y,v,g,z,R,D,w,L,m,p,f,function(W){e(0,U=W)},function(W){e(1,G=W)},function(){e(2,X=this.value)},function(W){e(3,te=W)},function(W){e(4,P=W)},function(W){e(5,y=W),e(10,D),e(6,v),e(13,m),e(15,f),e(11,w)}]}var _Je=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,yJe,vJe,Ti,{json:11,queryOptions:10,onChange:12},gJe),r}return Se(e)}();function bJe(t){di(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function ble(t,n,e){var i=t.slice();return i[5]=n[e],i}function xJe(t){var n,e;return n=new or({props:{data:lb}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function wJe(t){var n,e;return n=new or({props:{data:ab}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function xle(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[wJe,xJe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=ve("button"),i.c(),r=tt(),o=tn(d),s=tt(),j(n,"type","button"),j(n,"class","jse-query-language svelte-19cxesy"),j(n,"title",a="Select ".concat(t[5].name," as query language")),At(n,"selected",t[5].id===t[0])},m:function(g,v){Pe(g,n,v),f[e].m(n,null),ue(n,r),ue(n,o),ue(n,s),l=!0,c||(u=It(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):(Rt(),ae(f[y],1,1,function(){f[y]=null}),Lt(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),K(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&Wn(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&j(n,"title",a),(!l||3&v)&&At(n,"selected",t[5].id===t[0])},i:function(g){l||(K(i),l=!0)},o:function(g){ae(i),l=!1},d:function(g){g&&Fe(n),f[e].d(),c=!1,u()}}}function CJe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&wle(t);return s=new or({props:{data:F0}}),{c:function(){n=ve("div"),(e=ve("div")).textContent="Transform",i=tt(),u&&u.c(),r=tt(),o=ve("button"),ft(s.$$.fragment),j(e,"class","jse-title svelte-d01h2s"),j(o,"type","button"),j(o,"class","jse-close svelte-d01h2s"),j(n,"class","jse-header svelte-d01h2s")},m:function(d,h){Pe(d,n,h),ue(n,e),ue(n,i),u&&u.m(n,null),ue(n,r),ue(n,o),dt(s,o,null),a=!0,l||(c=It(o,"click",t[2]),l=!0)},p:function(d,h){var f=Un(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&K(u,1)):((u=wle(d)).c(),K(u,1),u.m(n,r)):u&&(Rt(),ae(u,1,1,function(){u=null}),Lt())},i:function(d){a||(K(u),K(s.$$.fragment,d),a=!0)},o:function(d){ae(u),ae(s.$$.fragment,d),a=!1},d:function(d){d&&Fe(n),u&&u.d(),ht(s),l=!1,c()}}}function EJe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=ma("simple-modal").close,c=ma("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(kJe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Hi[h?"unshift":"push"](function(){e(1,i=h)})}]}var AJe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,EJe,TJe,Ti,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},DJe),r}return Se(e)}(),YP=ga("jsoneditor:AutoScrollHandler"),MJe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},Cle=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||MJe,s=y.a11y||!1,mn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),mn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,mn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},kk=ga("jsoneditor:History");function Sle(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){kk("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){kk("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,kk("undo",h),a(),h}},redo:function d(){if(o())return kk("redo",e[i-=1]),a(),e[i]}}}function j0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var R0=ga("validation");function kle(t,n,e,i){return R0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function OJe(t,n,e,i){if(R0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Xd.info}]};if(0===t.length)return null;try{var r=j0(function(){return e.parse(t)},function(l){return R0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:j0(function(){return i.parse(t)},function(l){return R0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=j0(function(){return n(o)},function(l){return R0("validate: validated json in ".concat(l," ms"))});return Ui(s)?null:{validationErrors:s}}catch(l){var a=j0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Jd(c)),!0}catch{return!1}}(t,e)},function(c){return R0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:rk(t,l.message||l.toString()),isRepairable:a}}}var Dk=ga("jsoneditor:FocusTracker");function XP(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(Dk("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){Dk("blur"),l=!1,a()}))}(0,t.onMount)(function(){Dk("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){Dk("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function IJe(t){di(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function Dle(t,n,e){var i=t.slice();return i[8]=n[e],i}function Tle(t){var n,e;return n=new or({props:{data:t[1]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Ele(t){var n,e;return n=new or({props:{data:t[8].icon}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Ale(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&Ele(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=ve("button"),d&&d.c(),e=tt(),i=tn(u),r=tt(),j(n,"type","button"),j(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),j(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){Pe(p,n,m),d&&d.m(n,null),ue(n,e),ue(n,i),ue(n,r),a=!0,l||(c=[It(n,"click",h),It(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&K(d,1)):((d=Ele(t)).c(),K(d,1),d.m(n,e)):d&&(Rt(),ae(d,1,1,function(){d=null}),Lt()),(!a||8&m)&&u!==(u=t[8].text+"")&&Wn(i,u),(!a||8&m&&o!==(o=t[8].title))&&j(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(K(d),a=!0)},o:function(p){ae(d),a=!1},d:function(p){p&&Fe(n),d&&d.d(),l=!1,so(c)}}}function NJe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&Tle(t),f=t[3],p=[],m=0;m100&&Fle(t);return{c:function(){n=ve("table"),e=ve("tbody");for(var u=0;u100?c?c.p(u,d):((c=Fle(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&Ile(t);function y(){return t[6](t[7])}return{c:function(){n=ve("tr"),e=ve("td"),ft(i.$$.fragment),r=tt(),o=ve("td"),s=tn(m),a=tt(),l=ve("td"),c=tn(g),u=tt(),d=ve("td"),v&&v.c(),j(e,"class","jse-validation-error-icon svelte-1oe8e8r"),j(o,"class","svelte-1oe8e8r"),j(l,"class","svelte-1oe8e8r"),j(d,"class","jse-validation-error-action svelte-1oe8e8r"),j(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(_,w){Pe(_,n,w),ue(n,e),dt(i,e,null),ue(n,r),ue(n,o),ue(o,s),ue(n,a),ue(n,l),ue(l,c),ue(n,u),ue(n,d),v&&v.m(d,null),h=!0,f||(p=It(n,"click",y),f=!0)},p:function(_,w){t=_,(!h||1&w)&&m!==(m=nu(Wl(t[7].path))+"")&&Wn(s,m),(!h||1&w)&&g!==(g=t[7].message+"")&&Wn(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,w),1&w&&K(v,1)):((v=Ile(t)).c(),K(v,1),v.m(d,null)):v&&(Rt(),ae(v,1,1,function(){v=null}),Lt())},i:function(_){h||(K(i.$$.fragment,_),K(v),h=!0)},o:function(_){ae(i.$$.fragment,_),ae(v),h=!1},d:function(_){_&&Fe(n),ht(i),v&&v.d(),f=!1,p()}}}function Fle(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=ve("tr"),e=ve("td"),i=tt(),r=ve("td"),o=tt(),s=ve("td"),a=tn("(and "),l=tn(h),c=tn(" more errors)"),u=tt(),d=ve("td"),j(e,"class","svelte-1oe8e8r"),j(r,"class","svelte-1oe8e8r"),j(s,"class","svelte-1oe8e8r"),j(d,"class","svelte-1oe8e8r"),j(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){Pe(f,n,p),ue(n,e),ue(n,i),ue(n,r),ue(n,o),ue(n,s),ue(s,a),ue(s,l),ue(s,c),ue(n,u),ue(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&Wn(l,h)},d:function(f){f&&Fe(n)}}}function LJe(t){var n,e,i=!Ui(t[0]),r=i&&Ole(t);return{c:function(){r&&r.c(),n=br()},m:function(o,s){r&&r.m(o,s),Pe(o,n,s),e=!0},p:function(o,s){var a=Un(s,1)[0];1&a&&(i=!Ui(o[0])),i?r?(r.p(o,a),1&a&&K(r,1)):((r=Ole(o)).c(),K(r,1),r.m(n.parentNode,n)):r&&(Rt(),ae(r,1,1,function(){r=null}),Lt())},i:function(o){e||(K(r),e=!0)},o:function(o){ae(r),e=!1},d:function(o){r&&r.d(o),o&&Fe(n)}}}function $Je(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var JP=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,$Je,LJe,Ti,{validationErrors:0,selectError:1},PJe),r}return Se(e)}(),BJe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function VJe(t){di(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function HJe(t){var n,e,i,r,o,s,a,l,c;return s=new or({props:{data:F0}}),{c:function(){n=ve("div"),e=ve("div"),i=tn(t[0]),r=tt(),o=ve("button"),ft(s.$$.fragment),j(e,"class","jse-title svelte-d01h2s"),j(o,"type","button"),j(o,"class","jse-close svelte-d01h2s"),j(n,"class","jse-header svelte-d01h2s")},m:function(u,d){Pe(u,n,d),ue(n,e),ue(e,i),ue(n,r),ue(n,o),dt(s,o,null),a=!0,l||(c=It(o,"click",t[3]),l=!0)},p:function(u,d){var h=Un(d,1)[0];(!a||1&h)&&Wn(i,u[0])},i:function(u){a||(K(s.$$.fragment,u),a=!0)},o:function(u){ae(s.$$.fragment,u),a=!1},d:function(u){u&&Fe(n),ht(s),l=!1,c()}}}function UJe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=ma("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var KP=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,UJe,HJe,Ti,{title:0,onClose:1},VJe),r}return Se(e)}();function zJe(t){di(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function GJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z;return e=new KP({props:{title:"Copying and pasting"}}),{c:function(){n=ve("div"),ft(e.$$.fragment),i=tt(),r=ve("div"),(o=ve("div")).textContent="These actions are unavailable via the menu. Please use:",s=tt(),a=ve("div"),l=ve("div"),(c=ve("div")).textContent="".concat(t[1],"+C"),u=tn("\n for copy"),d=tt(),h=ve("div"),(f=ve("div")).textContent="".concat(t[1],"+X"),p=tn("\n for cut"),m=tt(),g=ve("div"),(v=ve("div")).textContent="".concat(t[1],"+V"),y=tn("\n for paste"),_=tt(),w=ve("div"),(k=ve("button")).textContent="Close",j(c,"class","jse-key svelte-1olothd"),j(l,"class","jse-shortcut"),j(f,"class","jse-key svelte-1olothd"),j(h,"class","jse-shortcut"),j(v,"class","jse-key svelte-1olothd"),j(g,"class","jse-shortcut"),j(a,"class","jse-shortcuts svelte-1olothd"),j(k,"type","button"),j(k,"class","jse-primary svelte-1olothd"),j(w,"class","jse-actions svelte-1olothd"),j(r,"class","jse-modal-contents svelte-1olothd"),j(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(R,U){Pe(R,n,U),dt(e,n,null),ue(n,i),ue(n,r),ue(r,o),ue(r,s),ue(r,a),ue(a,l),ue(l,c),ue(l,u),ue(a,d),ue(a,h),ue(h,f),ue(h,p),ue(a,m),ue(a,g),ue(g,v),ue(g,y),ue(r,_),ue(r,w),ue(w,k),D=!0,L||(z=It(k,"click",t[0]),L=!0)},p:jt,i:function(R){D||(K(e.$$.fragment,R),D=!0)},o:function(R){ae(e.$$.fragment,R),D=!1},d:function(R){R&&Fe(n),ht(e),L=!1,z()}}}function WJe(t){return[ma("simple-modal").close,BJe?"\u2318":"Ctrl"]}var Ple=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,WJe,GJe,Ti,{},zJe),r}return Se(e)}();function jle(t){return!!t&&("space"===t.type||!0===t.space)}function Tk(t){return!!t&&("separator"===t.type||!0===t.separator)}function yb(t){return!!t&&"function"==typeof t.onClick}function QP(t){return!!t&&"dropdown-button"===t.type&&yb(t.main)&&Array.isArray(t.items)}function Rle(t){return Do(t)&&Do(t.parseError)}function YJe(t){di(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var XJe=function(t){return{}},Lle=function(t){return{}};function $le(t,n,e){var i=t.slice();return i[3]=n[e],i}var JJe=function(t){return{}},Ble=function(t){return{}};function KJe(t){var n,e=zle(t[3])+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=zle(i[3])+"")&&Wn(n,e)},i:jt,o:jt,d:function(i){i&&Fe(n)}}}function QJe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&Vle(t),u=t[3].text&&Hle(t);return{c:function(){n=ve("button"),c&&c.c(),e=tt(),u&&u.c(),j(n,"type","button"),j(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),j(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){Pe(d,n,h),c&&c.m(n,null),ue(n,e),u&&u.m(n,null),s=!0,a||(l=It(n,"click",function(){fa(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&K(c,1)):((c=Vle(t)).c(),K(c,1),c.m(n,e)):c&&(Rt(),ae(c,1,1,function(){c=null}),Lt()),t[3].text?u?u.p(t,h):((u=Hle(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&j(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&j(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(K(c),s=!0)},o:function(d){ae(c),s=!1},d:function(d){d&&Fe(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function ZJe(t){var n;return{c:function(){j(n=ve("div"),"class","jse-space svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function eKe(t){var n;return{c:function(){j(n=ve("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function Vle(t){var n,e;return n=new or({props:{data:t[3].icon}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Hle(t){var n,e=t[3].text+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&Wn(n,e)},d:function(i){i&&Fe(n)}}}function Ule(t){var n,e,i,r,o,s,a,l=[eKe,ZJe,QJe,KJe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!Tk(d[3])),n?0:(null==e&&(e=!!jle(d[3])),e?1:(null==i&&(i=!!yb(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=br()},m:function(d,h){c[r].m(d,h),Pe(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):(Rt(),ae(c[f],1,1,function(){c[f]=null}),Lt(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),K(o,1),o.m(s.parentNode,s))},i:function(d){a||(K(o),a=!0)},o:function(d){ae(o),a=!1},d:function(d){c[r].d(d),d&&Fe(s)}}}function tKe(t){for(var n,e,i,r,o=t[2].left,s=Ss(o,t,t[1],Ble),a=t[0],l=[],c=0;c0&&_.height>0}),u),c=u(e);function u(y){var _=y.getBoundingClientRect();return{x:_.left+_.width/2,y:_.top+_.height/2,rect:_,element:y}}function d(y,_){var k=y.x-_.x,D=(y.y-_.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(k*k+D*D)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(m0(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(m0(g.filter(function(y){return o(y.element)}),h)||m0(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Hi[a?"unshift":"push"](function(){e(2,i=a)})}]}var ace=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,HKe,VKe,Ti,{items:0,tip:1},kKe),r}return Se(e)}();function UKe(t){var n,e;return n=new ace({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function zKe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L=n.json,z=n.documentState,R=n.parser,U=n.showTip,G=n.onCloseContextMenu,X=n.onEditKey,te=n.onEditValue,P=n.onToggleEnforceString,W=n.onCut,J=n.onCopy,H=n.onPaste,le=n.onRemove,E=n.onDuplicate,O=n.onExtract,I=n.onInsertBefore,q=n.onInsert,V=n.onConvert,re=n.onInsertAfter,de=n.onSort,Oe=n.onTransform;function ye(){G(),X()}function Xe(){G(),te()}function Le(){G(),P()}function rt(){G(),W(!0)}function $(){G(),W(!1)}function ne(){G(),J(!0)}function ie(){G(),J(!1)}function Me(){G(),H()}function Ye(){G(),le()}function je(){G(),E()}function gt(){G(),O()}function Tt(ln){G(),c?V(ln):q(ln)}function fn(){G(),de()}function Hn(){G(),Oe()}function Zt(){G(),I()}function Ei(){G(),re()}return t.$$set=function(ln){"json"in ln&&e(2,L=ln.json),"documentState"in ln&&e(3,z=ln.documentState),"parser"in ln&&e(4,R=ln.parser),"showTip"in ln&&e(0,U=ln.showTip),"onCloseContextMenu"in ln&&e(5,G=ln.onCloseContextMenu),"onEditKey"in ln&&e(6,X=ln.onEditKey),"onEditValue"in ln&&e(7,te=ln.onEditValue),"onToggleEnforceString"in ln&&e(8,P=ln.onToggleEnforceString),"onCut"in ln&&e(9,W=ln.onCut),"onCopy"in ln&&e(10,J=ln.onCopy),"onPaste"in ln&&e(11,H=ln.onPaste),"onRemove"in ln&&e(12,le=ln.onRemove),"onDuplicate"in ln&&e(13,E=ln.onDuplicate),"onExtract"in ln&&e(14,O=ln.onExtract),"onInsertBefore"in ln&&e(15,I=ln.onInsertBefore),"onInsert"in ln&&e(16,q=ln.onInsert),"onConvert"in ln&&e(17,V=ln.onConvert),"onInsertAfter"in ln&&e(18,re=ln.onInsertAfter),"onSort"in ln&&e(19,de=ln.onSort),"onTransform"in ln&&e(20,Oe=ln.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=z.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==L),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Ui(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Sn(L,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Do(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Ir(i)||vs(i)||Yi(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Ir(i)||Yi(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&db(i)&&!s&&!Array.isArray(Sn(L,qi(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&db(i)),136&t.$$.dirty[1]&&e(32,p=f&&!Lo(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?Zm(i)&&!Do(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,_=m?Zm(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,w=m?Zm(i)&&Lo(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,k=null!=i&&hf(a,z.enforceStringMap,an(i.focusPath),R)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,D=[{type:"row",items:[{type:"button",onClick:ye,icon:I0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:Xe,icon:I0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:I0,text:l,title:"Edit the value (Double-click on the value)",onClick:Xe,disabled:!f},{type:"button",icon:k?ab:lb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:Le,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:rt,icon:O0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:O0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:rt,disabled:!c},{type:"button",icon:O0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:$,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ne,icon:yp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:yp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ne,disabled:!c},{type:"button",icon:yp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:ie,disabled:!c}]},{type:"button",onClick:Me,icon:Dae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:je,icon:Nae,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:gt,icon:_Xe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:fn,icon:vk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:Hn,icon:pk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ye,icon:jP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return Tt("structure")},icon:m?gk:N0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return Tt("object")},icon:m?gk:N0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return Tt("array")},icon:m?gk:N0,text:"Array",title:g+" array",disabled:!_},{type:"button",onClick:function(){return Tt("value")},icon:m?gk:N0,text:"Value",title:g+" value",disabled:!w}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:Zt,icon:vXe,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Ei,icon:pXe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[U,D,L,z,R,G,X,te,P,W,J,H,le,E,O,I,q,V,re,de,Oe,s,c,w,g,m,_,y,v,d,u,o,p,k,f,l,h,i,a,r]}var GKe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,zKe,UKe,Ti,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Se(e)}();function WKe(t){di(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function lce(t,n,e){var i=t.slice();return i[13]=n[e],i}function cce(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=ve("button"),e=tn("show "),i=tn(c),r=tn("-"),o=tn(u),s=tt(),j(n,"type","button"),j(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){Pe(h,n,f),ue(n,e),ue(n,i),ue(n,r),ue(n,o),ue(n,s),a||(l=It(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&Wn(i,c),16&f&&u!==(u=t[13].end+"")&&Wn(o,u)},d:function(h){h&&Fe(n),a=!1,l()}}}function qKe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&_.end<=D.start)&&L.push(_),D.start>=(z?_.end:v.end)&&L.push(D),a=L))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var JKe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,XKe,qKe,Ti,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},WKe),r}return Se(e)}();function KKe(t){di(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function QKe(t){var n,e,i,r,o;return e=new or({props:{data:ou}}),{c:function(){n=ve("button"),ft(e.$$.fragment),j(n,"type","button"),j(n,"class","jse-context-menu-pointer svelte-1yzl4st"),j(n,"title",cN),At(n,"jse-selected",t[0])},m:function(s,a){Pe(s,n,a),dt(e,n,null),i=!0,r||(o=It(n,"click",t[1]),r=!0)},p:function(s,a){var l=Un(a,1)[0];(!i||1&l)&&At(n,"jse-selected",s[0])},i:function(s){i||(K(e.$$.fragment,s),i=!0)},o:function(s){ae(e.$$.fragment,s),i=!1},d:function(s){s&&Fe(n),ht(e),r=!1,o()}}}function ZKe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var xp=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,ZKe,QKe,Ti,{selected:0,onContextMenu:2},KKe),r}return Se(e)}();function eQe(t){di(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function tQe(t){var n,e,i,r,o,s,a,l=[rQe,iQe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=ve("div"),i.c(),j(n,"data-type","selectable-key"),j(n,"class",r=So(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){Pe(d,n,h),c[e].m(n,null),o=!0,s||(a=It(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):(Rt(),ae(c[f],1,1,function(){c[f]=null}),Lt(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),K(i,1),i.m(n,null)),(!o||1&h&&r!==(r=So(d[6](d[0]))+" svelte-24a1b2"))&&j(n,"class",r)},i:function(d){o||(K(i),o=!0)},o:function(d){ae(i),o=!1},d:function(d){d&&Fe(n),c[e].d(),s=!1,a()}}}function nQe(t){var n,e;return n=new hae({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function iQe(t){var n,e=Km(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){5&r&&e!==(e=Km(i[2].normalization.escapeValue(i[0]))+"")&&Wn(n,e)},i:jt,o:jt,d:function(i){i&&Fe(n)}}}function rQe(t){var n,e;return n=new kae({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function dce(t){var n,e;return n=new xp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function oQe(t){var n,e,i,r,o,s=[nQe,tQe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&dce(t);return{c:function(){e.c(),i=tt(),c&&c.c(),r=br()},m:function(u,d){a[n].m(u,d),Pe(u,i,d),c&&c.m(u,d),Pe(u,r,d),o=!0},p:function(u,d){var h=Un(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):(Rt(),ae(a[f],1,1,function(){a[f]=null}),Lt(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),K(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&(Rt(),ae(c,1,1,function(){c=null}),Lt()):c?(c.p(u,h),28&h&&K(c,1)):((c=dce(u)).c(),K(c,1),c.m(r.parentNode,r))},i:function(u){o||(K(e),K(c),o=!0)},o:function(u){ae(e),ae(c),o=!1},d:function(u){a[n].d(u),u&&Fe(i),c&&c.d(u),u&&Fe(r)}}}function sQe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&vs(l):void 0),2056&t.$$.dirty&&e(4,r=i&&mp(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(ru(o,!0)))},function(h){return lh("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=qi(o).concat(p);d.onSelect(f===dN?fr(m,!1):ru(m,!1)),f!==uN&&d.focus()},function(){d.onSelect(ru(o,!1)),d.focus()},o,s,l,u]}var aQe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,sQe,oQe,Ti,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},eQe),r}return Se(e)}();function hce(t,n,e){var i=t.slice();return i[8]=n[e],i}function fce(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=dk(u.selection),v=f.findIndex(function(U){return rr(U.path,g)}),y=0,_=v,w=function(){var U;return null===(U=f[_+1])||void 0===U?void 0:U.height};void 0!==w()&&Math.abs(m)>y+w()/2;)y+=w(),_+=1;var D=Sn(h,qi(g)),L=Array.isArray(D),z=null===(d=f[L?_:_+1])||void 0===d?void 0:d.path,R=_-v;return z?{beforePath:z,offset:R}:{append:!0,offset:R}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,_,w,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=qi(d.focusPath),g=Sn(u,m);if(!(p||f&&E0(f,m)&&f.length>m.length))return[];var v=k0(d),y=dk(d),_=Fn(v),w=Fn(y),k=f?f[m.length]:void 0;if(!ko(g)){if(eo(g)){var D=$s(_),L=$s(w),z=void 0!==k?$s(k):g.length;return oP(L-D+1,zU?[].concat(ri(R.slice(U,G+1)),ri(R.slice(X,R.length))).map(function(te){return eg(m,te)}):[].concat(ri(R.slice(X,U)),ri(R.slice(G+1,R.length))).map(function(te){return eg(m,te)}):[]}(n,o,s),l=Sn(n,qi(k0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=k0(m=u.selection),y=dk(m),_=f.findIndex(function(L){return rr(L.path,v)}),w=f.findIndex(function(L){return rr(L.path,y)}),Es(p,null===(d=f[_+g])||void 0===d?void 0:d.path,null===(h=f[w+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function dh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Kv(e,n)})}function hQe(t){di(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function fQe(t){var n,e,i,r,o,s;return e=new or({props:{data:tg}}),{c:function(){n=ve("button"),ft(e.$$.fragment),j(n,"type","button"),j(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){Pe(a,n,l),dt(e,n,null),r=!0,o||(s=[It(n,"click",function(){fa(t[0])&&t[0].apply(this,arguments)}),pa(i=PP.call(null,n,Qe({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Un(l,1)[0];t=a,i&&fa(i.update)&&2&c&&i.update.call(null,Qe({text:t[1]},t[2]))},i:function(a){r||(K(e.$$.fragment,a),r=!0)},o:function(a){ae(e.$$.fragment,a),r=!1},d:function(a){a&&Fe(n),ht(e),o=!1,so(s)}}}function pQe(t,n,e){var i,r=ma("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var B0=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,pQe,fQe,ps,{validationError:3,onExpand:0},hQe),r}return Se(e)}();function mQe(t){di(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var gQe=function(t){return{}},pce=function(t){return{}};function mce(t,n,e){var i=t.slice();return i[53]=n[e],i}var vQe=function(t){return{}},gce=function(t){return{}};function vce(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function yce(t,n,e){var i=t.slice();return i[50]=n[e],i}var yQe=function(t){return{}},_ce=function(t){return{}};function _Qe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Ir(t[7]))&&!t[7].edit&&rr(t[7].focusPath,t[1]),d=t[34].identifier,h=Ss(d,t,t[35],pce),f=!t[17]&&bce();o=new dQe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:wae(t[6],t[9]),context:t[8]}});var p=u&&xce(t),m=t[15]&&wce(t),g=!t[17]&&Cce(t);return{c:function(){n=ve("div"),e=ve("div"),h&&h.c(),i=tt(),f&&f.c(),r=tt(),ft(o.$$.fragment),s=tt(),p&&p.c(),a=tt(),m&&m.c(),l=tt(),g&&g.c(),j(e,"class","jse-contents svelte-1wlxti1"),j(n,"class","jse-contents-outer svelte-1wlxti1"),j(n,"style",t[18])},m:function(v,y){Pe(v,n,y),ue(n,e),h&&h.m(e,null),ue(e,i),f&&f.m(e,null),ue(e,r),dt(o,e,null),ue(e,s),p&&p.m(e,null),ue(n,a),m&&m.m(n,null),ue(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Ds(h,d,v,v[35],c?ks(d,v[35],y,gQe):Ts(v[35]),pce),v[17]?f&&(f.d(1),f=null):f||((f=bce()).c(),f.m(e,r));var _={};2&y[0]&&(_.path=v[1]),1&y[0]&&(_.value=v[0]),8192&y[0]&&(_.enforceString=v[13]),65664&y[0]&&(_.selection=v[16]?v[7]:void 0),576&y[0]&&(_.searchResultItems=wae(v[6],v[9])),256&y[0]&&(_.context=v[8]),o.$set(_),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(Yi(v[7])||Ir(v[7]))&&!v[7].edit&&rr(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&K(p,1)):((p=xce(v)).c(),K(p,1),p.m(e,null)):p&&(Rt(),ae(p,1,1,function(){p=null}),Lt()),v[15]?m?(m.p(v,y),32768&y[0]&&K(m,1)):((m=wce(v)).c(),K(m,1),m.m(n,l)):m&&(Rt(),ae(m,1,1,function(){m=null}),Lt()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=Cce(v)).c(),g.m(n,null)),(!c||262144&y[0])&&j(n,"style",v[18])},i:function(v){c||(K(h,v),K(o.$$.fragment,v),K(p),K(m),c=!0)},o:function(v){ae(h,v),ae(o.$$.fragment,v),ae(p),ae(m),c=!1},d:function(v){v&&Fe(n),h&&h.d(v),f&&f.d(),ht(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function bQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Ir(t[7]))&&!t[7].edit&&rr(t[7].focusPath,t[1]),w=[CQe,wQe],k=[];function D(E,O){return E[12]?0:1}r=D(t),o=k[r]=w[r](t);var L=t[34].identifier,z=Ss(L,t,t[35],gce),R=!t[17]&&Sce();function U(E,O){return E[12]?kQe:SQe}var G=U(t),X=G(t),te=_&&kce(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Dce(t);function W(E,O){return E[12]?TQe:E[17]?void 0:DQe}var J=W(t),H=J&&J(t),le=t[12]&&Tce(t);return{c:function(){n=ve("div"),e=ve("div"),i=ve("button"),o.c(),s=tt(),z&&z.c(),a=tt(),R&&R.c(),l=tt(),c=ve("div"),u=ve("div"),X.c(),d=tt(),te&&te.c(),h=tt(),P&&P.c(),f=tt(),H&&H.c(),p=tt(),le&&le.c(),m=br(),j(i,"type","button"),j(i,"class","jse-expand svelte-1wlxti1"),j(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),j(u,"class","jse-meta-inner svelte-1wlxti1"),j(c,"class","jse-meta svelte-1wlxti1"),j(c,"data-type","selectable-value"),j(e,"class","jse-header svelte-1wlxti1"),j(n,"class","jse-header-outer svelte-1wlxti1"),j(n,"style",t[18])},m:function(E,O){Pe(E,n,O),ue(n,e),ue(e,i),k[r].m(i,null),ue(e,s),z&&z.m(e,null),ue(e,a),R&&R.m(e,null),ue(e,l),ue(e,c),ue(c,u),X.m(u,null),ue(e,d),te&&te.m(e,null),ue(n,h),P&&P.m(n,null),ue(n,f),H&&H.m(n,null),Pe(E,p,O),le&&le.m(E,O),Pe(E,m,O),g=!0,v||(y=It(i,"click",t[21]),v=!0)},p:function(E,O){var I=r;(r=D(E))===I?k[r].p(E,O):(Rt(),ae(k[I],1,1,function(){k[I]=null}),Lt(),(o=k[r])?o.p(E,O):(o=k[r]=w[r](E)).c(),K(o,1),o.m(i,null)),z&&z.p&&(!g||16&O[1])&&Ds(z,L,E,E[35],g?ks(L,E[35],O,vQe):Ts(E[35]),gce),E[17]?R&&(R.d(1),R=null):R||((R=Sce()).c(),R.m(e,l)),G===(G=U(E))&&X?X.p(E,O):(X.d(1),(X=G(E))&&(X.c(),X.m(u,null))),65922&O[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Ir(E[7]))&&!E[7].edit&&rr(E[7].focusPath,E[1])),_?te?(te.p(E,O),65922&O[0]&&K(te,1)):((te=kce(E)).c(),K(te,1),te.m(e,null)):te&&(Rt(),ae(te,1,1,function(){te=null}),Lt()),!E[15]||E[12]&&E[15].isChildError?P&&(Rt(),ae(P,1,1,function(){P=null}),Lt()):P?(P.p(E,O),36864&O[0]&&K(P,1)):((P=Dce(E)).c(),K(P,1),P.m(n,f)),J===(J=W(E))&&H?H.p(E,O):(H&&H.d(1),(H=J&&J(E))&&(H.c(),H.m(n,null))),(!g||262144&O[0])&&j(n,"style",E[18]),E[12]?le?(le.p(E,O),4096&O[0]&&K(le,1)):((le=Tce(E)).c(),K(le,1),le.m(m.parentNode,m)):le&&(Rt(),ae(le,1,1,function(){le=null}),Lt())},i:function(E){g||(K(o),K(z,E),K(te),K(P),K(le),g=!0)},o:function(E){ae(o),ae(z,E),ae(te),ae(P),ae(le),g=!1},d:function(E){E&&Fe(n),k[r].d(),z&&z.d(E),R&&R.d(),X.d(),te&&te.d(),P&&P.d(),H&&H.d(),E&&Fe(p),le&&le.d(E),E&&Fe(m),v=!1,y()}}}function xQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Ir(t[7]))&&!t[7].edit&&rr(t[7].focusPath,t[1]),w=[MQe,AQe],k=[];function D(E,O){return E[12]?0:1}r=D(t),o=k[r]=w[r](t);var L=t[34].identifier,z=Ss(L,t,t[35],_ce),R=!t[17]&&Oce();function U(E,O){return E[12]?IQe:OQe}var G=U(t),X=G(t),te=_&&Ice(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Nce(t);function W(E,O){return E[12]?FQe:NQe}var J=W(t),H=J(t),le=t[12]&&Fce(t);return{c:function(){n=ve("div"),e=ve("div"),i=ve("button"),o.c(),s=tt(),z&&z.c(),a=tt(),R&&R.c(),l=tt(),c=ve("div"),u=ve("div"),X.c(),d=tt(),te&&te.c(),h=tt(),P&&P.c(),f=tt(),H.c(),p=tt(),le&&le.c(),m=br(),j(i,"type","button"),j(i,"class","jse-expand svelte-1wlxti1"),j(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),j(u,"class","jse-meta-inner svelte-1wlxti1"),j(u,"data-type","selectable-value"),j(c,"class","jse-meta svelte-1wlxti1"),j(e,"class","jse-header svelte-1wlxti1"),j(n,"class","jse-header-outer svelte-1wlxti1"),j(n,"style",t[18])},m:function(E,O){Pe(E,n,O),ue(n,e),ue(e,i),k[r].m(i,null),ue(e,s),z&&z.m(e,null),ue(e,a),R&&R.m(e,null),ue(e,l),ue(e,c),ue(c,u),X.m(u,null),ue(e,d),te&&te.m(e,null),ue(n,h),P&&P.m(n,null),ue(n,f),H.m(n,null),Pe(E,p,O),le&&le.m(E,O),Pe(E,m,O),g=!0,v||(y=It(i,"click",t[21]),v=!0)},p:function(E,O){var I=r;(r=D(E))===I?k[r].p(E,O):(Rt(),ae(k[I],1,1,function(){k[I]=null}),Lt(),(o=k[r])?o.p(E,O):(o=k[r]=w[r](E)).c(),K(o,1),o.m(i,null)),z&&z.p&&(!g||16&O[1])&&Ds(z,L,E,E[35],g?ks(L,E[35],O,yQe):Ts(E[35]),_ce),E[17]?R&&(R.d(1),R=null):R||((R=Oce()).c(),R.m(e,l)),G===(G=U(E))&&X?X.p(E,O):(X.d(1),(X=G(E))&&(X.c(),X.m(u,null))),65922&O[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Ir(E[7]))&&!E[7].edit&&rr(E[7].focusPath,E[1])),_?te?(te.p(E,O),65922&O[0]&&K(te,1)):((te=Ice(E)).c(),K(te,1),te.m(e,null)):te&&(Rt(),ae(te,1,1,function(){te=null}),Lt()),!E[15]||E[12]&&E[15].isChildError?P&&(Rt(),ae(P,1,1,function(){P=null}),Lt()):P?(P.p(E,O),36864&O[0]&&K(P,1)):((P=Nce(E)).c(),K(P,1),P.m(n,f)),J===(J=W(E))&&H?H.p(E,O):(H.d(1),(H=J(E))&&(H.c(),H.m(n,null))),(!g||262144&O[0])&&j(n,"style",E[18]),E[12]?le?(le.p(E,O),4096&O[0]&&K(le,1)):((le=Fce(E)).c(),K(le,1),le.m(m.parentNode,m)):le&&(Rt(),ae(le,1,1,function(){le=null}),Lt())},i:function(E){g||(K(o),K(z,E),K(te),K(P),K(le),g=!0)},o:function(E){ae(o),ae(z,E),ae(te),ae(P),ae(le),g=!1},d:function(E){E&&Fe(n),k[r].d(),z&&z.d(E),R&&R.d(),X.d(),te&&te.d(),P&&P.d(),H.d(),E&&Fe(p),le&&le.d(E),E&&Fe(m),v=!1,y()}}}function bce(t){var n;return{c:function(){(n=ve("div")).textContent=":",j(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&Fe(n)}}}function xce(t){var n,e,i;return e=new xp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=ve("div"),ft(e.$$.fragment),j(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),dt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(K(e.$$.fragment,r),i=!0)},o:function(r){ae(e.$$.fragment,r),i=!1},d:function(r){r&&Fe(n),ht(e)}}}function wce(t){var n,e;return n=new B0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Cce(t){var n,e,i;return{c:function(){j(n=ve("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=It(n,"click",t[30]),e=!0)},p:jt,d:function(r){r&&Fe(n),e=!1,i()}}}function wQe(t){var n,e;return n=new or({props:{data:gp}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function CQe(t){var n,e;return n=new or({props:{data:ou}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Sce(t){var n;return{c:function(){(n=ve("div")).textContent=":",j(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&Fe(n)}}}function SQe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=ve("div")).textContent="{",e=tt(),i=ve("button"),r=tn(d),o=tt(),s=tn(h),a=tt(),(l=ve("div")).textContent="}",j(n,"class","jse-bracket svelte-1wlxti1"),j(i,"type","button"),j(i,"class","jse-tag svelte-1wlxti1"),j(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){Pe(f,n,p),Pe(f,e,p),Pe(f,i,p),ue(i,r),ue(i,o),ue(i,s),Pe(f,a,p),Pe(f,l,p),c||(u=It(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&Wn(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&Wn(s,h)},d:function(f){f&&Fe(n),f&&Fe(e),f&&Fe(i),f&&Fe(a),f&&Fe(l),c=!1,u()}}}function kQe(t){var n;return{c:function(){(n=ve("div")).textContent="{",j(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},p:jt,d:function(e){e&&Fe(n)}}}function kce(t){var n,e,i;return e=new xp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=ve("div"),ft(e.$$.fragment),j(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),dt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(K(e.$$.fragment,r),i=!0)},o:function(r){ae(e.$$.fragment,r),i=!1},d:function(r){r&&Fe(n),ht(e)}}}function Dce(t){var n,e;return n=new B0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function DQe(t){var n,e,i;return{c:function(){j(n=ve("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=It(n,"click",t[30]),e=!0)},p:jt,d:function(r){r&&Fe(n),e=!1,i()}}}function TQe(t){var n,e,i;return{c:function(){j(n=ve("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),j(n,"data-type","insert-selection-area-inside")},m:function(r,o){Pe(r,n,o),e||(i=It(n,"click",t[29]),e=!0)},p:jt,d:function(r){r&&Fe(n),e=!1,i()}}}function Tce(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Vs(t[7])),c=l&&Ece(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=tt(),p&&p.c(),j(n,"class","jse-props svelte-1wlxti1"),j(o,"data-type","selectable-value"),j(o,"class","jse-footer svelte-1wlxti1"),j(r,"class","jse-footer-outer svelte-1wlxti1"),j(r,"style",t[18])},m:function(m,g){Pe(m,n,g),c&&c.m(n,null),ue(n,e);for(var v=0;v]',s=tt(),v&&v.c(),j(n,"class","jse-items svelte-1wlxti1"),j(o,"data-type","selectable-value"),j(o,"class","jse-footer svelte-1wlxti1"),j(r,"class","jse-footer-outer svelte-1wlxti1"),j(r,"style",t[18])},m:function(y,_){Pe(y,n,_),d&&d.m(n,null),ue(n,e);for(var w=0;w=je.start&&ne<=je.end});if(!ie)return null;hse(ie.start,Math.min(p.length,ie.end),function(je){return Xe(String(je))})}else Object.keys(p).forEach(Xe);return ye}(k,l||Lm);if(z("dragSelectionStart",{selection:k,items:I}),I){var q=k0(k),V=I.findIndex(function(de){return rr(de.path,q)}),re=tj({json:D.getJson(),documentState:D.getDocumentState(),deltaY:0,items:I}).offset;e(11,G={initialTarget:E.target,initialClientY:E.clientY,initialContentTop:W(),selectionStartIndex:V,selectionItemsCount:cae(k).length,items:I,offset:re,didMoveItems:!1}),na.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",le)}else z("Cannot drag the current selection (probably spread over multiple sections)")}else L(E)}},function(E){na.selecting||na.dragging||(E.stopPropagation(),Qm(E.target,"data-type","selectable-value")?e(10,R="hover-collection"):Qm(E.target,"data-type","insert-selection-area-inside")?e(10,R="hover-insert-inside"):Qm(E.target,"data-type","insert-selection-area-after")&&e(10,R="hover-insert-after"),clearTimeout(U))},function(E){E.stopPropagation(),U=setTimeout(function(){return e(10,R=void 0)})},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),D.onSelect(ff(m)))},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),D.onSelect(pf(m)))},function(E){D.onSelect(ff(m)),D.onContextMenu(E)},function(E){D.onSelect(pf(m)),D.onContextMenu(E)},L,h,f]}var nj=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,RQe,jQe,Ti,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},mQe,[-1,-1]),r}return Se(e)}(),LQe=nj,$Qe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},BQe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},ij={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},VQe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function HQe(t){var n,e;return n=new Ek({props:{items:t[0]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function UQe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,_=n.onRedo,w=n.onSort,k=n.onTransform,D=n.onContextMenu,L=n.onCopy,z=n.onRenderMenu;function R(){e(1,p=!p)}return t.$$set=function(U){"json"in U&&e(2,u=U.json),"selection"in U&&e(3,d=U.selection),"readOnly"in U&&e(4,h=U.readOnly),"showSearch"in U&&e(1,p=U.showSearch),"historyState"in U&&e(5,m=U.historyState),"onExpandAll"in U&&e(6,g=U.onExpandAll),"onCollapseAll"in U&&e(7,v=U.onCollapseAll),"onUndo"in U&&e(8,y=U.onUndo),"onRedo"in U&&e(9,_=U.onRedo),"onSort"in U&&e(10,w=U.onSort),"onTransform"in U&&e(11,k=U.onTransform),"onContextMenu"in U&&e(12,D=U.onContextMenu),"onCopy"in U&&e(13,L=U.onCopy),"onRenderMenu"in U&&e(14,z=U.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Ir(d)||vs(d)||Yi(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:$Qe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!Lo(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:BQe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!Lo(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:$P,title:"Search (Ctrl+F)",className:"jse-search",onClick:R,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:yp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:L,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:vk,title:"Sort",className:"jse-sort",onClick:w,disabled:h||void 0===u},{type:"button",icon:pk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:k,disabled:h||void 0===u},l,{type:"button",icon:Mae,title:cN,className:"jse-contextmenu",onClick:D},{type:"separator"},{type:"button",icon:LP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:RP,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:_,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=z(c)||c)},[o,p,u,d,h,m,g,v,y,_,w,k,D,L,z,s,a,l,c,r,i]}var zQe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,UQe,HQe,Ti,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Se(e)}();function GQe(t){di(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function Vce(t){var n;return{c:function(){(n=ve("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',j(n,"class","svelte-1q2qkk2")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&Fe(n)}}}function WQe(t){var n,e,i,r,o,s,a,l=!t[0]&&Vce();return{c:function(){n=ve("div"),e=ve("div"),i=tt(),r=ve("div"),o=tn("Empty document\n "),l&&l.c(),s=tt(),a=ve("div"),j(e,"class","jse-space jse-before svelte-1q2qkk2"),j(r,"class","jse-contents svelte-1q2qkk2"),j(a,"class","jse-space jse-after svelte-1q2qkk2"),j(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){Pe(c,n,u),ue(n,e),ue(n,i),ue(n,r),ue(r,o),l&&l.m(r,null),ue(n,s),ue(n,a)},p:function(c,u){Un(u,1),c[0]?l&&(l.d(1),l=null):l||((l=Vce()).c(),l.m(r,null))},i:jt,o:jt,d:function(c){c&&Fe(n),l&&l.d()}}}function qQe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var YQe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,qQe,WQe,Ti,{readOnly:0},GQe),r}return Se(e)}(),rj={},XQe={get exports(){return rj},set exports(t){rj=t}},Hce=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(eo(Sn(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function KQe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function QQe(t,n){return function(e,i){var r=Sn(e,t),o=Sn(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Sn(t,n);return[{op:"replace",path:an(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Do(t))return function JQe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Sn(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*oj(u,d)});for(var s=[],a=0;abb&&Wce();return{c:function(){n=ve("div");for(var d=0;dbb?u?u.p(d,f):((u=Wce()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:jt,o:jt,d:function(d){d&&Fe(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=Sn(l,g);if(Array.isArray(v))return tP(0,v.length).map(String);if(Do(v)){var y=Object.keys(v).slice(0);return y.sort(oj),y}return[]},function(g){return Xc(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Hi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Hi[g?"unshift":"push"](function(){e(4,o=g)})}]}var mZe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,pZe,fZe,Ti,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},uZe),r}return Se(e)}();function gZe(t){di(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function tue(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",P=!t[4]&&nue(t),W=[yZe,vZe],J=[];function H(E,O){return E[2]?0:1}a=H(t),l=J[a]=W[a](t),y=new or({props:{data:CXe}}),k=new or({props:{data:gXe}}),z=new or({props:{data:F0}});var le=t[0]&&!t[4]&&iue(t);return{c:function(){n=ve("div"),e=ve("form"),P&&P.c(),i=tt(),r=ve("div"),o=ve("div"),s=ve("div"),l.c(),c=tt(),u=ve("label"),d=ve("input"),h=tt(),f=ve("div"),p=tn(te),m=tn(t[10]),g=tt(),v=ve("button"),ft(y.$$.fragment),_=tt(),w=ve("button"),ft(k.$$.fragment),D=tt(),L=ve("button"),ft(z.$$.fragment),R=tt(),le&&le.c(),j(s,"class","jse-search-icon svelte-3lbrbf"),j(d,"class","jse-search-input svelte-3lbrbf"),j(d,"title","Enter text to search"),j(d,"type","text"),j(d,"placeholder","Find"),j(u,"class","jse-search-input-label svelte-3lbrbf"),j(u,"about","jse-search input"),j(f,"class","jse-search-count svelte-3lbrbf"),At(f,"jse-visible",""!==t[8]),j(v,"type","button"),j(v,"class","jse-search-next svelte-3lbrbf"),j(v,"title","Go to next search result (Enter)"),j(w,"type","button"),j(w,"class","jse-search-previous svelte-3lbrbf"),j(w,"title","Go to previous search result (Shift+Enter)"),j(L,"type","button"),j(L,"class","jse-search-clear svelte-3lbrbf"),j(L,"title","Close search box (Esc)"),j(o,"class","jse-search-section svelte-3lbrbf"),j(r,"class","jse-search-contents svelte-3lbrbf"),j(e,"class","jse-search-form svelte-3lbrbf"),j(n,"class","jse-search-box svelte-3lbrbf")},m:function(E,O){Pe(E,n,O),ue(n,e),P&&P.m(e,null),ue(e,i),ue(e,r),ue(r,o),ue(o,s),J[a].m(s,null),ue(o,c),ue(o,u),ue(u,d),ep(d,t[8]),ue(o,h),ue(o,f),ue(f,p),ue(f,m),ue(o,g),ue(o,v),dt(y,v,null),ue(o,_),ue(o,w),dt(k,w,null),ue(o,D),ue(o,L),dt(z,L,null),ue(r,R),le&&le.m(r,null),U=!0,G||(X=[It(d,"input",t[21]),pa(bZe.call(null,d)),It(v,"click",t[22]),It(w,"click",t[23]),It(L,"click",t[24]),It(e,"submit",t[12]),It(e,"keydown",t[13])],G=!0)},p:function(E,O){E[4]?P&&(Rt(),ae(P,1,1,function(){P=null}),Lt()):P?(P.p(E,O),16&O&&K(P,1)):((P=nue(E)).c(),K(P,1),P.m(e,i));var I=a;(a=H(E))===I?J[a].p(E,O):(Rt(),ae(J[I],1,1,function(){J[I]=null}),Lt(),(l=J[a])?l.p(E,O):(l=J[a]=W[a](E)).c(),K(l,1),l.m(s,null)),256&O&&d.value!==E[8]&&ep(d,E[8]),(!U||8&O)&&te!==(te=(-1!==E[3]?"".concat(E[3]+1,"/"):"")+"")&&Wn(p,te),(!U||1024&O)&&Wn(m,E[10]),(!U||256&O)&&At(f,"jse-visible",""!==E[8]),E[0]&&!E[4]?le?le.p(E,O):((le=iue(E)).c(),le.m(r,null)):le&&(le.d(1),le=null)},i:function(E){U||(K(P),K(l),K(y.$$.fragment,E),K(k.$$.fragment,E),K(z.$$.fragment,E),U=!0)},o:function(E){ae(P),ae(l),ae(y.$$.fragment,E),ae(k.$$.fragment,E),ae(z.$$.fragment,E),U=!1},d:function(E){E&&Fe(n),P&&P.d(),J[a].d(),ht(y),ht(k),ht(z),le&&le.d(),G=!1,so(X)}}}function nue(t){var n,e,i,r,o;return e=new or({props:{data:t[0]?ou:gp}}),{c:function(){n=ve("button"),ft(e.$$.fragment),j(n,"type","button"),j(n,"class","jse-replace-toggle svelte-3lbrbf"),j(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){Pe(s,n,a),dt(e,n,null),i=!0,r||(o=It(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?ou:gp),e.$set(l)},i:function(s){i||(K(e.$$.fragment,s),i=!0)},o:function(s){ae(e.$$.fragment,s),i=!1},d:function(s){s&&Fe(n),ht(e),r=!1,o()}}}function vZe(t){var n,e;return n=new or({props:{data:$P}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function yZe(t){var n,e;return n=new or({props:{data:fXe,spin:!0}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:jt,i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function iue(t){var n,e,i,r,o,s,a,l;return{c:function(){n=ve("div"),e=ve("input"),i=tt(),(r=ve("button")).textContent="Replace",o=tt(),(s=ve("button")).textContent="All",j(e,"class","jse-replace-input svelte-3lbrbf"),j(e,"title","Enter replacement text"),j(e,"type","text"),j(e,"placeholder","Replace"),j(r,"type","button"),j(r,"title","Replace current occurrence (Ctrl+Enter)"),j(r,"class","svelte-3lbrbf"),j(s,"type","button"),j(s,"title","Replace all occurrences"),j(s,"class","svelte-3lbrbf"),j(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){Pe(c,n,u),ue(n,e),ep(e,t[9]),ue(n,i),ue(n,r),ue(n,o),ue(n,s),a||(l=[It(e,"input",t[25]),It(r,"click",t[14]),It(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&ep(e,c[9])},d:function(c){c&&Fe(n),a=!1,so(l)}}}function _Ze(t){var n,e,i=t[1]&&tue(t);return{c:function(){i&&i.c(),n=br()},m:function(r,o){i&&i.m(r,o),Pe(r,n,o),e=!0},p:function(r,o){var s=Un(o,1)[0];r[1]?i?(i.p(r,s),2&s&&K(i,1)):((i=tue(r)).c(),K(i,1),i.m(n.parentNode,n)):i&&(Rt(),ae(i,1,1,function(){i=null}),Lt())},i:function(r){e||(K(i),e=!0)},o:function(r){ae(i),e=!1},d:function(r){i&&i.d(r),r&&Fe(n)}}}function bZe(t){t.select()}function xZe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?ho:g,y=n.onPrevious,_=void 0===y?ho:y,w=n.onNext,k=void 0===w?ho:w,D=n.onReplace,L=void 0===D?ho:D,z=n.onReplaceAll,R=void 0===z?ho:z,U=n.onClose,G=void 0===U?ho:U,X="",te="",P="";function W(){e(0,f=!f&&!m)}function J(){m||L(X,P)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,_=H.onPrevious),"onNext"in H&&e(6,k=H.onNext),"onReplace"in H&&e(18,L=H.onReplace),"onReplaceAll"in H&&e(19,R=H.onReplaceAll),"onClose"in H&&e(7,G=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=h0(v,300)),1048832&t.$$.dirty&&r(X),2&t.$$.dirty&&s&&""!==X&&v(X)},[f,s,a,d,m,_,k,G,X,P,i,W,function(H){H.preventDefault(),X!==te?(te=X,r.cancel(),v(X)):k()},function(H){H.stopPropagation();var le=fp(H);"Enter"===le&&(H.preventDefault(),k()),"Shift+Enter"===le&&(H.preventDefault(),_()),"Ctrl+Enter"===le&&(H.preventDefault(),f?J():k()),"Ctrl+H"===le&&(H.preventDefault(),W()),"Escape"===le&&(H.preventDefault(),G())},J,function(){m||R(X,P)},c,v,L,R,r,function(){e(8,X=this.value)},function(){return k()},function(){return _()},function(){return G()},function(){e(9,P=this.value)}]}var wZe=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,xZe,_Ze,Ti,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},gZe),r}return Se(e)}(),rue=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function CZe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',j(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function $Ze(t){var n,e,i,r,o,s,a,l,c,u=[VZe,BZe],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=ve("label"),e=ve("input"),i=tt(),o.c(),s=br(),j(e,"type","text"),e.readOnly="readonly",j(e,"tabindex","-1"),j(e,"class","jse-hidden-input svelte-qojdc1"),j(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){Pe(f,n,p),ue(n,e),t[76](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=It(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Rt(),ae(d[m],1,1,function(){d[m]=null}),Lt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),K(o,1),o.m(s.parentNode,s))},i:function(f){a||(K(o),a=!0)},o:function(f){ae(o),a=!1},d:function(f){f&&Fe(n),t[76](null),f&&Fe(i),d[r].d(f),f&&Fe(s),l=!1,c()}}}function BZe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new wZe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new LQe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:ho}});var m=t[18]&&mue(t),g=t[23]&&gue(t);return f=new JP({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=ve("div"),ft(s.$$.fragment),a=tt(),l=ve("div"),ft(c.$$.fragment),u=tt(),m&&m.c(),d=tt(),g&&g.c(),h=tt(),ft(f.$$.fragment),j(o,"class","jse-search-box-container svelte-qojdc1"),j(l,"class","jse-contents svelte-qojdc1"),j(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){Pe(v,o,y),dt(s,o,null),Pe(v,a,y),Pe(v,l,y),dt(c,l,null),t[77](l),Pe(v,u,y),m&&m.m(v,y),Pe(v,d,y),g&&g.m(v,y),Pe(v,h,y),dt(f,v,y),p=!0},p:function(v,y){var _,w,k,D,L={};524288&y[0]&&(L.show=v[19]),131072&y[0]&&(L.resultCount=(null===(_=v[17])||void 0===_||null===(w=_.items)||void 0===w?void 0:w.length)||0),131072&y[0]&&(L.activeIndex=(null===(k=v[17])||void 0===k?void 0:k.activeIndex)||0),1048576&y[0]&&(L.showReplace=v[20]),2097152&y[0]&&(L.searching=v[21]),1&y[0]&&(L.readOnly=v[0]),s.$set(L);var z={};1024&y[0]&&(z.value=v[10]),65536&y[0]&&(z.expandedMap=v[16].expandedMap),65536&y[0]&&(z.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(z.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(z.validationErrorsMap=v[24]),131072&y[0]&&(z.searchResultItemsMap=null===(D=v[17])||void 0===D?void 0:D.itemsMap),65536&y[0]&&(z.selection=v[16].selection),8192&y[0]&&(z.context=v[13]),c.$set(z),v[18]?m?(m.p(v,y),262144&y[0]&&K(m,1)):((m=mue(v)).c(),K(m,1),m.m(d.parentNode,d)):m&&(Rt(),ae(m,1,1,function(){m=null}),Lt()),v[23]?g?(g.p(v,y),8388608&y[0]&&K(g,1)):((g=gue(v)).c(),K(g,1),g.m(h.parentNode,h)):g&&(Rt(),ae(g,1,1,function(){g=null}),Lt());var R={};4096&y[0]&&(R.validationErrors=v[12]),f.$set(R)},i:function(v){p||(K(s.$$.fragment,v),K(c.$$.fragment,v),K(m),K(g),K(f.$$.fragment,v),p=!0)},o:function(v){ae(s.$$.fragment,v),ae(c.$$.fragment,v),ae(m),ae(g),ae(f.$$.fragment,v),p=!1},d:function(v){v&&Fe(o),ht(s),v&&Fe(a),v&&Fe(l),ht(c),t[77](null),v&&Fe(u),m&&m.d(v),v&&Fe(d),g&&g.d(v),v&&Fe(h),ht(f,v)}}}function VZe(t){var n,e,i,r,o=[UZe,HZe],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=br()},m:function(l,c){s[n].m(l,c),Pe(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(Rt(),ae(s[u],1,1,function(){s[u]=null}),Lt(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),K(e,1),e.m(i.parentNode,i))},i:function(l){r||(K(e),r=!0)},o:function(l){ae(e),r=!1},d:function(l){s[n].d(l),l&&Fe(i)}}}function mue(t){var n,e;return n=new td({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:mk,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function gue(t){var n,e;return n=new td({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:pb,text:"Ok",onClick:t[8]},{icon:vp,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:pb,text:"Ok",onClick:i[8]},{icon:vp,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function HZe(t){var n,e,i,r;return n=new td({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:vp,text:"Repair manually",onClick:t[47]}]}}),i=new hue({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){ft(n.$$.fragment),e=tt(),ft(i.$$.fragment)},m:function(o,s){dt(n,o,s),Pe(o,e,s),dt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:vp,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(K(n.$$.fragment,o),K(i.$$.fragment,o),r=!0)},o:function(o){ae(n.$$.fragment,o),ae(i.$$.fragment,o),r=!1},d:function(o){ht(n,o),o&&Fe(e),ht(i,o)}}}function UZe(t){var n,e;return n=new YQe({props:{readOnly:t[0]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function zZe(t){var n,e,i,r,o,s,a,l,c=t[1]&&fue(t),u=t[2]&&pue(t),h=[];return o=h[r=t[25]?1:0]=[$Ze,LZe][r](t),{c:function(){n=ve("div"),c&&c.c(),e=tt(),u&&u.c(),i=tt(),o.c(),j(n,"class","jse-tree-mode svelte-qojdc1"),At(n,"no-main-menu",!t[1])},m:function(f,p){Pe(f,n,p),c&&c.m(n,null),ue(n,e),u&&u.m(n,null),ue(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[It(jZe,"mousedown",t[49]),It(n,"keydown",t[41]),It(n,"mousedown",t[42]),It(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&K(c,1)):((c=fue(f)).c(),K(c,1),c.m(n,e)):c&&(Rt(),ae(c,1,1,function(){c=null}),Lt()),f[2]?u?(u.p(f,p),4&p[0]&&K(u,1)):((u=pue(f)).c(),K(u,1),u.m(n,i)):u&&(Rt(),ae(u,1,1,function(){u=null}),Lt()),o.p(f,p),(!s||2&p[0])&&At(n,"no-main-menu",!f[1])},i:function(f){s||(K(c),K(u),K(o),s=!0)},o:function(f){ae(c),ae(u),ae(o),s=!1},d:function(f){f&&Fe(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,so(l)}}}function GZe(t,n,e){var i,r=ga("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=ma("simple-modal").open,h=hp(),f=hp(),p=ma("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=Cle(),_=n.readOnly,w=n.externalContent,k=n.mainMenuBar,D=n.navigationBar,L=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,R=n.parser,U=n.parseMemoizeOne,G=n.validator,X=n.validationParser,te=n.pathParser,P=n.indentation,W=n.onError,J=n.onChange,H=n.onChangeMode,le=n.onRenderValue,E=n.onRenderMenu,O=n.onClassName,I=n.onFocus,q=n.onBlur,V=n.onSortModal,re=n.onTransformModal,de=n.onJSONEditorModal,Oe=!1;XP({onMount:qc,onDestroy:Vu,getWindow:function(){return x0(l)},hasFocus:function(){return Oe&&document.hasFocus()||ak(l)},onFocus:function(){v=!0,I&&I()},onBlur:function(){v=!1,q&&q()}});var ye=void 0;function Xe(we){r("updateSelection",we);var at="function"==typeof we?we(ie.selection):we;rr(at,ie.selection)||e(16,ie=Qe(Qe({},ie),{},{selection:at}))}var Le,rt,$,ne=!1,ie=ck(),Me=!1,Ye=!1,je=!1,gt="";function Tt(we){return fn.apply(this,arguments)}function fn(){return(fn=Ki(pn().mark(function we(at){return pn().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return r("search text updated",at),e(74,gt=at),Mt.next=4,Ul();case 4:return Mt.next=6,dr();case 6:case"end":return Mt.stop()}},we)}))).apply(this,arguments)}function Hn(){return(Hn=Ki(pn().mark(function we(){return pn().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return e(17,Le=Le?HYe(Le):void 0),at.next=3,dr();case 3:case"end":return at.stop()}},we)}))).apply(this,arguments)}function Zt(){return(Zt=Ki(pn().mark(function we(){return pn().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return e(17,Le=Le?UYe(Le):void 0),at.next=3,dr();case 3:case"end":return at.stop()}},we)}))).apply(this,arguments)}function Ei(){return(Ei=Ki(pn().mark(function we(at,Mt){var Xt,nn,on,si;return pn().wrap(function(ui){for(;;)switch(ui.prev=ui.next){case 0:if(nn=null===(Xt=Le)||void 0===Xt?void 0:Xt.activeItem,r("handleReplace",{replacementText:Mt,activeItem:nn}),nn){ui.next=4;break}return ui.abrupt("return");case 4:return on=zYe(c,ie,Mt,nn,R),si=on.newSelection,Yn(on.operations,function(Io,Os){return{state:Qe(Qe({},Os),{},{selection:si})}}),ui.next=8,Ul();case 8:return ui.next=10,dr();case 10:case"end":return ui.stop()}},we)}))).apply(this,arguments)}function ln(){return(ln=Ki(pn().mark(function we(at,Mt){var Xt,on;return pn().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return r("handleReplaceAll",{text:at,replacementText:Mt}),Xt=GYe(c,ie,at,Mt,R),on=Xt.newSelection,Yn(Xt.operations,function(si,ui){return{state:Qe(Qe({},ui),{},{selection:on})}}),Bn.next=5,Ul();case 5:return Bn.next=7,dr();case 7:case"end":return Bn.stop()}},we)}))).apply(this,arguments)}function dr(){return wr.apply(this,arguments)}function wr(){return(wr=Ki(pn().mark(function we(){var at,Mt,Xt;return pn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(Mt=null===(at=Le)||void 0===at?void 0:at.activeItem,r("focusActiveSearchResult",Le),!Mt){nn.next=9;break}return e(16,ie=Qe(Qe({},SP(c,ie,Xt=Mt.path)),{},{selection:void 0})),nn.next=7,Ul();case 7:return nn.next=9,un(Xt);case 9:case"end":return nn.stop()}},we)}))).apply(this,arguments)}var gi,Vr,sr=Sle({onChange:function(we){e(22,mr=we)}}),mr=sr.getState(),Mo=rP(function(we,at){if(""===we)return r("clearing search result"),void(void 0!==Le&&e(17,Le=void 0));e(21,je=!0),setTimeout(function(){r("searching...",we);var nn,on,Bn,si,ui,Io,Os,Mt=yae(we,at,1e3);e(17,(nn=Mt,Bn=null!=(on=Le)&&on.activeItem?xae(on.activeItem):void 0,si=nn.findIndex(function(Xo){return rr(Bn,xae(Xo))}),ui=-1!==si?si:void 0!==on?.activeIndex&&on?.activeIndex0?0:-1,Os=(Io=nn.map(function(Xo,yo){return Qe(Qe({},Xo),{},{active:yo===ui})}))[ui],Le={items:Io,itemsMap:p0(Io,function(Xo){return an(Xo.path)}),activeItem:Os,activeIndex:ui})),e(21,je=!1)})},300),On=!1,bt=[],ai=xb(kle);function Ii(we,at,Mt,Xt){j0(function(){var nn;try{nn=ai(we,at,Mt,Xt)}catch(on){nn=[{path:[],message:"Failed to validate: "+on.message,severity:Xd.warning}]}rr(nn,bt)||(r("validationErrors changed:",nn),e(12,bt=nn))},function(nn){return r("validationErrors updated in ".concat(nn," ms"))})}function Cr(){return r("validate"),ye?{parseError:ye,isRepairable:!1}:(Ii(c,G,R,X),Ui(bt)?null:{validationErrors:bt})}function vo(){return c}function Yo(){return ie}function In(we){ne||(ne=!0,e(16,ie=iu(we,ie,[],bse({json:we},10240)?ah:ub)))}function oi(we){void 0!==ie.selection&&(ie.selection&&Xc(we,ie.selection.anchorPath)&&Xc(we,ie.selection.focusPath)||(r("clearing selection: path does not exist anymore",ie.selection),e(16,ie=Qe(Qe({},ie),{},{selection:D0(we,ie)}))))}function vi(we){var at=we.previousJson,Mt=we.previousState,Xt=we.previousText,nn=we.previousTextIsRepaired;void 0===at&&void 0===Xt||(void 0!==c?sr.add(void 0!==at?{undo:{patch:[{op:"replace",path:"",value:at}],state:rl(Mt),json:void 0,text:Xt,textIsRepaired:nn},redo:{patch:[{op:"replace",path:"",value:c}],state:rl(ie),json:void 0,text:u,textIsRepaired:On}}:{undo:{patch:void 0,json:void 0,text:Xt,state:rl(Mt),textIsRepaired:nn},redo:{patch:void 0,json:c,state:rl(ie),text:u,textIsRepaired:On}}):void 0!==at&&sr.add({undo:{patch:void 0,json:at,state:rl(Mt),text:Xt,textIsRepaired:nn},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:On,state:rl(ie)}}))}function Tr(we,at){if(r("patch",we,at),void 0===c)throw new Error("Cannot apply patch: no JSON");var Mt={json:c,text:u},Xt=c,nn=ie,on=u,Bn=On,si=gae(c,we),ui=Jse(c,ie,we),Io=T0(c,we),Os=function(Ch,yd){return void 0!==yd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?Qe(Qe({},Ch),{},{selection:yd}):Ch}(ui.documentState,Io,!1);r("patch updatedSelection",Io);var Xo="function"==typeof at?at(ui.json,Os):void 0;e(10,c=Xo&&void 0!==Xo.json?Xo.json:ui.json);var yo=Xo&&void 0!==Xo.state?Xo.state:Os;e(16,ie=yo),e(11,u=void 0),e(23,On=!1),e(18,$=void 0),oi(c),sr.add({undo:{patch:si,json:void 0,text:on,state:rl(nn),textIsRepaired:Bn},redo:{patch:we,json:void 0,state:rl(yo),text:u,textIsRepaired:On}});var Al={json:c,previousJson:Xt,undo:si,redo:we};return Zn(Mt,Al),Al}function Hr(){!_&&ie.selection&&Xe(ru(ie.selection.focusPath,!0))}function no(){if(!_&&ie.selection){var we=ie.selection.focusPath,at=Sn(c,we);Lo(at)?(r("openJSONEditorModal",{path:Mt=we,value:Xt=at}),Oe=!0,de({content:{json:Xt},path:Mt,onPatch:Vr.onPatch,onClose:function(){Oe=!1,Ms()}})):Xe(fr(we,!0))}var Mt,Xt}function Hs(){if(!_&&Yi(ie.selection)){var we=ie.selection.focusPath,at=an(we),Mt=Sn(c,we),Xt=!hf(Mt,ie.enforceStringMap,at,R),nn=Xt?String(Mt):Qv(String(Mt),R);r("handleToggleEnforceString",{enforceString:Xt,value:Mt,updatedValue:nn}),Yn([{op:"replace",path:at,value:nn}],function(on,Bn){return{state:Xse(Bn,at,Xt)}})}}function gr(){return Us.apply(this,arguments)}function Us(){return Us=Ki(pn().mark(function we(){var at,Mt=arguments;return pn().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return at=!(Mt.length>0&&void 0!==Mt[0])||Mt[0],Xt.next=3,aue({json:c,documentState:ie,indentation:at?P:void 0,readOnly:_,parser:R,onPatch:Yn});case 3:case"end":return Xt.stop()}},we)})),Us.apply(this,arguments)}function Ha(){return Ua.apply(this,arguments)}function Ua(){return Ua=Ki(pn().mark(function we(){var at,Mt=arguments;return pn().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(at=!(Mt.length>0&&void 0!==Mt[0])||Mt[0],void 0!==c){Xt.next=3;break}return Xt.abrupt("return");case 3:return Xt.next=5,lue({json:c,documentState:ie,indentation:at?P:void 0,parser:R});case 5:case"end":return Xt.stop()}},we)})),Ua.apply(this,arguments)}function Mc(){d(Ple,{},Qe(Qe({},$m),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Ms()}})}function xe(we,at){d(Wle,{text:we,onParse:ik,onRepair:vse,onApply:at},Qe(Qe({},$m),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ms()}})}function He(){uue({json:c,text:u,documentState:ie,keepSelection:!1,readOnly:_,onChange:J,onPatch:Yn})}function We(){!_&&void 0!==c&&ie.selection&&A0(ie.selection)&&!Ui(ie.selection.focusPath)&&(r("duplicate",{selection:ie.selection}),Yn(fae(c,cae(ie.selection))))}function lt(){_||!ie.selection||!Ir(ie.selection)&&!Yi(ie.selection)||Ui(ie.selection.focusPath)||(r("extract",{selection:ie.selection}),Yn(function(at,Mt){if(Yi(Mt))return[{op:"move",from:an(Mt.focusPath),path:""}];if(!Ir(Mt))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Xt=Sn(at,qi(Mt.focusPath));if(eo(Xt))return[{op:"replace",path:"",value:Mt.paths.map(function(on){var Bn=$s(Fn(on));return Xt[Bn]})}];if(ko(Xt)){var nn={};return Mt.paths.forEach(function(on){var Bn=String(Fn(on));nn[Bn]=Xt[Bn]}),[{op:"replace",path:"",value:nn}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Mt))}(c,ie.selection),function(at,Mt){if(Lo(at))return{state:pp(at,Mt,[])}}))}function Ue(we){void 0!==c&&Mk({insertType:we,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:yr})}function kn(we){vs(ie.selection)&&Xe(fr(ie.selection.focusPath,!1)),Ue(we)}function ti(we){if(!_&&ie.selection)if(Zm(ie.selection))try{var at=ie.selection.anchorPath,Mt=Sn(c,at),Xt=function(on,Bn,si){if("array"===Bn){if(Array.isArray(on))return on;if(Do(on))return pse(on);if("string"==typeof on)try{var ui=si.parse(on);if(Array.isArray(ui))return ui;if(Do(ui))return pse(ui)}catch{return[on]}return[on]}if("object"===Bn){if(Array.isArray(on))return fse(on);if(Do(on))return on;if("string"==typeof on)try{var Io=si.parse(on);if(Do(Io))return Io;if(Array.isArray(Io))return fse(Io)}catch{return{value:on}}return{value:on}}if("value"===Bn)return Lo(on)?si.stringify(on):on;throw new Error("Cannot convert ".concat(AN(on,si)," to ").concat(Bn))}(Mt,we,R);if(Xt===Mt)return;var nn=[{op:"replace",path:an(at),value:Xt}];r("handleConvert",{selection:ie.selection,path:at,type:we,operations:nn}),Yn(nn,function(on,Bn){return{state:pp(on,Bn,ie.selection.focusPath)}})}catch(on){W(on)}else W(new Error("Cannot convert current selection to ".concat(we)))}function ci(){var we=rae(c,ie,!1),at=qi(ie.selection.focusPath);!Ui(we.focusPath)&&rr(at,qi(we.focusPath))?Xe(pf(we.focusPath)):Xe(ff(at)),r("insert before",{selection:ie.selection,selectionBefore:we,parentPath:at}),Ul().then(El)}function li(){var we=Ir(ie.selection)?Fn(ie.selection.paths):ie.selection.focusPath;r("insert after",we),Xe(pf(we)),Ul().then(El)}function Sr(we){return qr.apply(this,arguments)}function qr(){return(qr=Ki(pn().mark(function we(at){return pn().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,due({char:at,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:yr,onSelect:Xe});case 2:case"end":return Mt.stop()}},we)}))).apply(this,arguments)}function fi(){if(!_&&sr.getState().canUndo){var we=sr.undo();if(we){var at={json:c,text:u};e(10,c=we.undo.patch?Yu(c,we.undo.patch):we.undo.json),e(16,ie=we.undo.state),e(11,u=we.undo.text),e(23,On=we.undo.textIsRepaired),r("undo",{item:we,json:c,documentState:ie}),Zn(at,{json:c,previousJson:at.json,redo:we.undo.patch,undo:we.redo.patch}),Ms(),ie.selection&&un(ie.selection.focusPath,!1)}}}function vr(){if(!_&&sr.getState().canRedo){var we=sr.redo();if(we){var at={json:c,text:u};e(10,c=we.redo.patch?Yu(c,we.redo.patch):we.redo.json),e(16,ie=we.redo.state),e(11,u=we.redo.text),e(23,On=we.redo.textIsRepaired),r("redo",{item:we,json:c,documentState:ie}),Zn(at,{json:c,previousJson:at.json,redo:we.redo.patch,undo:we.undo.patch}),Ms(),ie.selection&&un(ie.selection.focusPath,!1)}}}function Te(we){var at;_||void 0===c||(Oe=!0,V({id:h,json:c,rootPath:we,onSort:(at=Ki(pn().mark(function Mt(Xt){var nn;return pn().wrap(function(on){for(;;)switch(on.prev=on.next){case 0:r("onSort",we,nn=Xt.operations),Yn(nn,function(Bn,si){return{state:Qe(Qe({},pp(Bn,si,we)),{},{selection:fr(we,!1)})}});case 3:case"end":return on.stop()}},Mt)})),function(Mt){return at.apply(this,arguments)}),onClose:function(){Oe=!1,Ms()}}))}function St(){ie.selection&&Te(aae(c,ie.selection))}function Vt(we){var Mt=we.rootPath,Xt=we.onTransform,nn=we.onClose;void 0!==c&&Mt&&(Oe=!0,re({id:we.id||f,json:c,rootPath:Mt,onTransform:Xt?function(on){Xt({operations:on,json:c,transformedJson:Yu(c,on)})}:function(on){r("onTransform",Mt,on),Yn(on,function(Bn,si){return{state:Qe(Qe({},pp(Bn,si,Mt)),{},{selection:fr(Mt,!1)})}})},onClose:function(){Oe=!1,Ms(),nn&&nn()}}))}function rn(){ie.selection&&Vt({rootPath:aae(c,ie.selection)})}function un(we){return ni.apply(this,arguments)}function ni(){return ni=Ki(pn().mark(function we(at){var Mt,Xt,nn,on,si=arguments;return pn().wrap(function(ui){for(;;)switch(ui.prev=ui.next){case 0:return Mt=!(si.length>1&&void 0!==si[1])||si[1],e(16,ie=SP(c,ie,qi(at))),ui.next=4,Ul();case 4:if(!(Xt=Ni(at))){ui.next=14;break}if(r("scrollTo",{path:at,elem:Xt,refContents:s}),nn=s.getBoundingClientRect(),on=Xt.getBoundingClientRect(),Mt){ui.next=12;break}if(!(on.bottom>nn.top&&on.topMt.bottom-20&&y(at,{container:s,offset:-(Mt.height-nn-20),duration:0})}}function Zn(we,at){(void 0!==we.json||void 0!==we?.text)&&(void 0!==u?J({text:u,json:void 0},we,{contentErrors:Cr(),patchResult:at}):void 0!==c&&J({text:void 0,json:c},we,{contentErrors:Cr(),patchResult:at}))}function Yn(we,at){if(!_)return r("handlePatch",we,at),Tr(we,at)}function yr(we,at){var Mt=ie,Xt=c,nn=u,on={json:c,text:u},Bn=On,si=iu(c,ie,[],ah),ui="function"==typeof at?at(we,si):void 0;e(10,c=ui&&void 0!==ui.json?ui.json:we),e(16,ie=ui&&void 0!==ui.state?ui.state:si),e(11,u=void 0),e(23,On=!1),oi(c),vi({previousJson:Xt,previousState:Mt,previousText:nn,previousTextIsRepaired:Bn}),Zn(on,null)}function Er(we,at){r("handleChangeText");var Mt=ie,Xt=c,nn=u,on={json:c,text:u},Bn=On;try{e(10,c=U(we)),e(16,ie=iu(c,ie,[],ah)),e(11,u=void 0),e(23,On=!1)}catch{try{e(10,c=U(Jd(we))),e(16,ie=iu(c,ie,[],ah)),e(11,u=we),e(23,On=!0)}catch{e(10,c=void 0),e(16,ie=ck({json:c,expand:ah})),e(11,u=we),e(23,On=!1)}}if("function"==typeof at){var si=at(c,ie);e(10,c=si&&si.json?si.json:c),e(16,ie=si&&si.state?si.state:ie)}oi(c),vi({previousJson:Xt,previousState:Mt,previousText:nn,previousTextIsRepaired:Bn}),Zn(on,null)}function Oo(we,at){var Mt=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:we,expanded:at,recursive:Mt}),e(16,ie=at?Mt?iu(c,ie,we,ub):function NYe(t,n){return Qe(Qe({},t),{},{expandedMap:Qe(Qe({},t.expandedMap),{},Hl({},an(n),!0))})}(ie,we):Yse(ie,we)),ie.selection&&!at&&function PYe(t,n){return E0(t.focusPath,n)&&(t.focusPath.length>n.length||Vs(t))}(ie.selection,we)&&Xe(void 0),setTimeout(function(){ak(l)||Ms()})}function ra(we){r("openFind",{findAndReplace:we}),e(19,Me=!1),e(20,Ye=!1),Ul().then(function(){e(19,Me=!0),e(20,Ye=we)})}function pd(we,at){r("handleExpandSection",we,at);var nn,on,Bn,Mt=an(we);e(16,(on=Mt,Bn=at,ie=Qe(Qe({},nn=ie),{},{visibleSectionsMap:Qe(Qe({},nn.visibleSectionsMap),{},Hl({},on,qse(uk(nn,on).concat(Bn))))})))}function fu(we){r("pasted json as text",we),e(18,$=we)}function oa(we){Oe=!0;var Io=m(GKe,{json:c,documentState:ie,parser:R,showTip:we.showTip,onEditKey:Hr,onEditValue:no,onToggleEnforceString:Hs,onCut:gr,onCopy:Ha,onPaste:Mc,onRemove:He,onDuplicate:We,onExtract:lt,onInsertBefore:ci,onInsert:kn,onConvert:ti,onInsertAfter:li,onSort:St,onTransform:rn,onCloseContextMenu:function(){g(Io),Ms()}},{left:we.left,top:we.top,offsetTop:we.offsetTop,offsetLeft:we.offsetLeft,width:we.width,height:we.height,anchor:we.anchor,closeOnOuterClick:!0,onClose:function(){Oe=!1,Ms()}})}function El(we){if(!_&&!mp(ie.selection)){if(we&&(we.stopPropagation(),we.preventDefault()),we&&"contextmenu"===we.type&&we.target!==a)oa({left:we.clientX,top:we.clientY,width:260,height:336,showTip:!1});else{var at,Mt=null===(at=s)||void 0===at?void 0:at.querySelector(".jse-context-menu-pointer.jse-selected");if(Mt)oa({anchor:Mt,offsetTop:2,width:260,height:336,showTip:!1});else{var Xt,nn=null===(Xt=s)||void 0===Xt?void 0:Xt.getBoundingClientRect();nn&&oa({top:nn.top+2,left:nn.left+2,width:260,height:336,showTip:!1})}}return!1}}function md(){return(md=Ki(pn().mark(function we(){var at,Mt,Xt;return pn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return r("apply pasted json",$),Mt=(at=$).path,Xt=at.contents,Xe(fr(Mt,!1)),nn.next=5,Ul();case 5:Yn([{op:"replace",path:an(Mt),value:Xt}],function(on,Bn){return{state:pp(on,Bn,Mt)}});case 7:case"end":return nn.stop()}},we)}))).apply(this,arguments)}function Ms(){r("focus"),a&&(a.focus(),a.select())}function gd(we){return at=c,Mt=ie,nn=qi(Xt=we),on=[Fn(Xt)],(si=(Bn=Sn(at,nn))?MP(Bn,Mt,on):void 0)?fr(nn.concat(si),!1):pf(Xt);var at,Mt,Xt,nn,on,Bn,si}function vd(we){i&&i.onDrag(we)}function CT(){i&&i.onDragEnd()}return t.$$set=function(we){"readOnly"in we&&e(0,_=we.readOnly),"externalContent"in we&&e(50,w=we.externalContent),"mainMenuBar"in we&&e(1,k=we.mainMenuBar),"navigationBar"in we&&e(2,D=we.navigationBar),"escapeControlCharacters"in we&&e(51,L=we.escapeControlCharacters),"escapeUnicodeCharacters"in we&&e(52,z=we.escapeUnicodeCharacters),"parser"in we&&e(3,R=we.parser),"parseMemoizeOne"in we&&e(53,U=we.parseMemoizeOne),"validator"in we&&e(54,G=we.validator),"validationParser"in we&&e(55,X=we.validationParser),"pathParser"in we&&e(4,te=we.pathParser),"indentation"in we&&e(5,P=we.indentation),"onError"in we&&e(6,W=we.onError),"onChange"in we&&e(56,J=we.onChange),"onChangeMode"in we&&e(57,H=we.onChangeMode),"onRenderValue"in we&&e(58,le=we.onRenderValue),"onRenderMenu"in we&&e(7,E=we.onRenderMenu),"onClassName"in we&&e(59,O=we.onClassName),"onFocus"in we&&e(60,I=we.onFocus),"onBlur"in we&&e(61,q=we.onBlur),"onSortModal"in we&&e(62,V=we.onSortModal),"onTransformModal"in we&&e(63,re=we.onTransformModal),"onJSONEditorModal"in we&&e(64,de=we.onJSONEditorModal)},t.$$.update=function(){var we,at;3145728&t.$$.dirty[1]&&e(73,rt=mP({escapeControlCharacters:L,escapeUnicodeCharacters:z})),524288&t.$$.dirty[1]&&function pt(we){void 0!==we.json&&function(at){if(void 0!==at){var Mt=!rr(c,at);if(r("update external json",{isChanged:Mt,currentlyText:void 0===c}),Mt){var Xt={json:c,text:u},nn=ie,on=c,Bn=u,si=On;e(10,c=at),In(c),e(11,u=void 0),e(23,On=!1),oi(c),vi({previousJson:on,previousState:nn,previousText:Bn,previousTextIsRepaired:si}),Zn(Xt,null)}}}(we.json),void 0!==we.text&&function(at){if(void 0!==at&&void 0===w.json){var Mt=at!==u;if(r("update external text",{isChanged:Mt}),Mt){var Xt={json:c,text:u},nn=c,on=ie,Bn=u,si=On;try{e(10,c=U(at)),In(c),e(11,u=at),e(23,On=!1),ye=void 0}catch(ui){try{e(10,c=U(Jd(at))),In(c),e(11,u=at),e(23,On=!0),ye=void 0,oi(c)}catch{e(10,c=void 0),e(11,u=w.text),e(23,On=!1),ye=rk(u,ui.message||ui.toString())}}oi(c),vi({previousJson:nn,previousState:on,previousText:Bn,previousTextIsRepaired:si}),Zn(Xt,null)}}}(we.text)}(w),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&Mo(gt,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Ii(c,G,R,X),4096&t.$$.dirty[0]&&e(24,(at={},(we=bt).forEach(function(Mt){at[an(Mt.path)]=Mt}),we.forEach(function(Mt){for(var Xt=Mt.path;Xt.length>0;){var nn=an(Xt=qi(Xt));nn in at||(at[nn]={isChildError:!0,path:Xt,message:"Contains invalid data",severity:Xd.warning})}}),gi=at)),512&t.$$.dirty[0]&&(i=s?function(we){var at,Mt;function Xt(si){return si<20?200:si<50?400:1200}function nn(){we&&(we.scrollTop+=.05*(at||0))}function on(si){Mt&&si===at||(Bn(),YP("startAutoScroll",si),at=si,Mt=setInterval(nn,50))}function Bn(){Mt&&(YP("stopAutoScroll"),clearInterval(Mt),Mt=void 0,at=void 0)}return YP("createAutoScrollHandler",we),{onDrag:function(si){if(we){var ui=si.clientY,Io=we.getBoundingClientRect(),Os=Io.top,Xo=Io.bottom;uiXo?on(Xt(ui-Xo)):Bn()}},onDragEnd:function(){Bn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Vr={readOnly:_,parser:R,normalization:rt,getJson:vo,getDocumentState:Yo,findElement:Ni,findNextInside:gd,focus:Ms,onPatch:Yn,onInsert:Ue,onExpand:Oo,onSelect:Xe,onFind:ra,onExpandSection:pd,onPasteJson:fu,onRenderValue:le,onContextMenu:oa,onClassName:O||function(){},onDrag:vd,onDragEnd:CT}),8192&t.$$.dirty[0]&&r("context changed",Vr)},[_,k,D,R,te,P,W,E,function(){return On&&void 0!==c&&yr(c),{json:c,text:u}},s,c,u,bt,Vr,a,l,ie,Le,$,Me,Ye,je,mr,On,gi,o,Tt,function(){return Hn.apply(this,arguments)},function(){return Zt.apply(this,arguments)},function(we,at){return Ei.apply(this,arguments)},function(we,at){return ln.apply(this,arguments)},function(){e(19,Me=!1),e(20,Ye=!1),Tt(""),Ms()},function(we){r("select validation error",we),Xe(fr(we.path,!1)),un(we.path)},Ha,function(we){we.preventDefault(),cue({clipboardText:we.clipboardData.getData("text/plain"),json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onChangeText:Er,openRepairModal:xe})},fi,vr,function(){Te([])},function(){Vt({rootPath:[]})},function(){Oo([],!0,!0)},function(){Oo([],!1,!0)},function(we){var at=fp(we),Mt=we.shiftKey;if(r("keydown",{combo:at,key:we.key}),"Ctrl+X"===at&&(we.preventDefault(),gr(!0)),"Ctrl+Shift+X"===at&&(we.preventDefault(),gr(!1)),"Ctrl+C"===at&&(we.preventDefault(),Ha(!0)),"Ctrl+Shift+C"===at&&(we.preventDefault(),Ha(!1)),"Ctrl+D"===at&&(we.preventDefault(),We()),"Delete"!==at&&"Backspace"!==at||(we.preventDefault(),He()),"Insert"===at&&(we.preventDefault(),Ue("structure")),"Ctrl+A"===at&&(we.preventDefault(),Xe(fr([],!1))),"Ctrl+Q"===at&&El(we),"ArrowUp"===at||"Shift+ArrowUp"===at){we.preventDefault();var Xt=ie.selection?rae(c,ie,Mt,!0)||ie.selection:D0(c,ie);Xe(Xt),$n(Xt.focusPath)}if("ArrowDown"===at||"Shift+ArrowDown"===at){we.preventDefault();var nn=ie.selection?function(yo,Al){var Ch=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ar=Al.selection;if(!Ar)return null;var Jl=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Ir(Ar)?Ar.focusPath:Fn(Ar.paths),pu=MP(yo,Al,Jl),_d=pu,Sh=pu;if(null===pu||null==_d||null==Sh)return null;if(Ch){var bd=MP(yo,Lo(Sn(yo,Jl))?Yse(Al,Jl):Al,Jl);return null===bd?null:Qu(Ar)?Es(yo,bd,bd):Vs(Ar)?Es(yo,_d,Sh):Es(yo,Ar.anchorPath,bd)}if(vs(Ar)){var dx=Sn(yo,qi(pu));return Array.isArray(dx)?fr(Sh,!1):ru(Sh,!1)}return Yi(Ar)?fr(Sh,!1):Vs(Ar)?Es(yo,_d,Sh):Es(yo,pu,pu)}(c,ie,Mt,!0)||ie.selection:D0(c,ie);Xe(nn),$n(nn.focusPath)}if("ArrowLeft"===at||"Shift+ArrowLeft"===at){we.preventDefault();var on=ie.selection?function(yo,Al){var Ch=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ar=Al.selection;if(!Ar)return null;var Jl=oae(yo,Al,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),pu=Jl.caret,_d=Jl.previous;if(Ch)return Ir(Ar)?null:Es(yo,Ar.anchorPath,Ar.focusPath);if(pu&&_d)return OP(_d);var bd=Sn(yo,qi(Ar.focusPath));return Yi(Ar)&&Array.isArray(bd)?Es(yo,Ar.focusPath,Ar.focusPath):Ir(Ar)&&!Array.isArray(bd)?ru(Ar.focusPath,!1):null}(c,ie,Mt,!_)||ie.selection:D0(c,ie);Xe(on),$n(on.focusPath)}if("ArrowRight"===at||"Shift+ArrowRight"===at){we.preventDefault();var Bn=ie.selection&&void 0!==c?function(yo,Al){var Ch=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ar=Al.selection;if(!Ar)return null;var Jl=oae(yo,Al,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),pu=Jl.caret,_d=Jl.next;return Ch?Ir(Ar)?null:Es(yo,Ar.anchorPath,Ar.focusPath):pu&&_d?OP(_d):Ir(Ar)?fr(Ar.focusPath,!1):null}(c,ie,Mt,!_)||ie.selection:D0(c,ie);Xe(Bn),$n(Bn.focusPath)}if("Enter"===at&&ie.selection){if(!_&&Ir(ie.selection)&&1===ie.selection.paths.length){var si=ie.selection.focusPath,ui=Sn(c,qi(si));Array.isArray(ui)&&Xe(fr(si,!1))}!_&&vs(ie.selection)&&(we.preventDefault(),Xe(Qe(Qe({},ie.selection),{},{edit:!0}))),Yi(ie.selection)&&(we.preventDefault(),Lo(Sn(c,ie.selection.focusPath))?Oo(ie.selection.focusPath,!0):_||Xe(Qe(Qe({},ie.selection),{},{edit:!0})))}if(1===at.replace(/^Shift\+/,"").length&&ie.selection)return we.preventDefault(),void Sr(we.key);if("Enter"===at&&(Qu(ie.selection)||Vs(ie.selection)))return we.preventDefault(),void Sr("");if("Ctrl+Enter"===at&&Yi(ie.selection)){var Io=Sn(c,ie.selection.focusPath);fS(Io)&&window.open(String(Io),"_blank")}if("Escape"===at&&ie.selection&&(we.preventDefault(),Xe(void 0)),"Ctrl+F"===at&&(we.preventDefault(),ra(!1)),"Ctrl+H"===at&&(we.preventDefault(),ra(!0)),"Ctrl+Z"===at){we.preventDefault();var Os=document.activeElement;Os&&Os.blur&&Os.focus?(Os.blur(),setTimeout(function(){fi(),setTimeout(function(){return Os.select()})})):fi()}if("Ctrl+Shift+Z"===at){we.preventDefault();var Xo=document.activeElement;Xo&&Xo.blur&&Xo.focus?(Xo.blur(),setTimeout(function(){vr(),setTimeout(function(){return Xo.select()})})):vr()}},function(we){r("handleMouseDown",we),setTimeout(function(){setTimeout(function(){v||Ase(we.target,"BUTTON")||(Ms(),ie.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,ie=Qe(Qe({},ie),{},{selection:Es(c||{},[],[])}))))})})},El,function(we){_||oa({anchor:Ose(we.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return md.apply(this,arguments)},function(){r("clear pasted json"),e(18,$=void 0)},function(){H(Wo.text)},function(we){Xe(we),Ms(),un(we.focusPath)},function(we){!rb(we.target,function(Mt){return Mt===l})&&mp(ie.selection)&&(r("click outside the editor, stop edit mode"),Xe(function(Mt){return vs(Mt)||Yi(Mt)?Qe(Qe({},Mt),{},{edit:!1}):Mt}),v&&a&&(a.focus(),a.blur()),Ul().then(function(){setTimeout(function(){a&&a.blur()})}))},w,L,z,U,G,X,J,H,le,O,I,q,V,re,de,function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ub;r("expand");var at=Qe(Qe({},ie),{},{expandedMap:{},visibleSectionsMap:{}});e(16,ie=iu(c,at,[],we))},Cr,vo,Tr,Vt,un,Ni,Ms,rt,gt,function(we){e(19,Me=we)},function(we){Hi[we?"unshift":"push"](function(){e(14,a=we)})},function(we){Hi[we?"unshift":"push"](function(){e(9,s=we)})},function(we){Hi[we?"unshift":"push"](function(){e(15,l=we)})}]}var hj=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,GZe,zZe,Ti,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},RZe,[-1,-1,-1,-1,-1]),r}return Se(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function WZe(t){di(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function vue(t){var n,e,i,r,o,s=[YZe,qZe],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=br()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Rt(),ae(a[d],1,1,function(){a[d]=null}),Lt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),K(i,1),i.m(r.parentNode,r))},i:function(c){o||(K(i),o=!0)},o:function(c){ae(i),o=!1},d:function(c){a[e].d(c),c&&Fe(r)}}}function qZe(t){var n;return{c:function(){n=tn("(Only available for arrays, not for objects)")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function YZe(t){var n,e;return n=new _Je({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function yue(t){var n,e;return n=new hj({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:ho,onError:console.error,onChange:ho,onChangeMode:ho,onFocus:ho,onBlur:ho,onSortModal:ho,onTransformModal:ho,onJSONEditorModal:ho,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function XZe(t){var n,e;return{c:function(){n=ve("div"),e=tn(t[17]),j(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:function(i,r){131072&r[0]&&Wn(e,i[17])},i:jt,o:jt,d:function(i){i&&Fe(n)}}}function JZe(t){var n,e;return n=new hj({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:ho,onError:console.error,onChange:ho,onChangeMode:ho,onFocus:ho,onBlur:ho,onSortModal:ho,onTransformModal:ho,onJSONEditorModal:ho,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function KZe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te,P,W,J,H,le,E,O,I,q,V,re,de,Oe,ye,Xe,Le,rt,$,ne=t[21](t[0]).description+"";n=new AJe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new or({props:{data:t[15]?ou:gp}});var ie=t[15]&&vue(t);W=new or({props:{data:t[16]?ou:gp}});var Me=t[16]&&yue(t),Ye=[JZe,XZe],je=[];function gt(Tt,fn){return Tt[17]?1:0}return q=gt(t),V=je[q]=Ye[q](t),{c:function(){ft(n.$$.fragment),e=tt(),i=ve("div"),r=ve("div"),o=ve("div"),(s=ve("div")).innerHTML='
    Language
    ',a=tt(),l=ve("div"),c=tt(),(u=ve("div")).innerHTML='
    Path
    ',d=tt(),h=ve("input"),p=tt(),m=ve("div"),g=ve("div"),v=ve("button"),ft(y.$$.fragment),_=tn("\n Wizard"),w=tt(),ie&&ie.c(),k=tt(),(D=ve("div")).innerHTML='
    Query
    ',L=tt(),z=ve("textarea"),R=tt(),U=ve("div"),G=ve("div"),X=ve("div"),te=ve("div"),P=ve("button"),ft(W.$$.fragment),J=tn("\n Original"),H=tt(),Me&&Me.c(),le=tt(),E=ve("div"),(O=ve("div")).innerHTML='
    Preview
    ',I=tt(),V.c(),re=tt(),de=ve("div"),Oe=ve("button"),ye=tn("Transform"),j(s,"class","jse-label svelte-107mggt"),j(l,"class","jse-description svelte-107mggt"),j(u,"class","jse-label svelte-107mggt"),j(h,"class","jse-path svelte-107mggt"),j(h,"type","text"),h.readOnly=!0,j(h,"title","Selected path"),h.value=f=Ui(t[1])?"(whole document)":nu(Wl(t[1])),j(v,"type","button"),j(v,"class","svelte-107mggt"),j(g,"class","jse-label-inner svelte-107mggt"),j(m,"class","jse-label svelte-107mggt"),j(D,"class","jse-label svelte-107mggt"),j(z,"class","jse-query svelte-107mggt"),j(z,"spellcheck","false"),z.value=t[13],j(o,"class","jse-query-contents svelte-107mggt"),j(P,"type","button"),j(P,"class","svelte-107mggt"),j(te,"class","jse-label-inner svelte-107mggt"),j(X,"class","jse-label svelte-107mggt"),j(G,"class","jse-original-data svelte-107mggt"),At(G,"jse-hide",!t[16]),j(O,"class","jse-label svelte-107mggt"),j(E,"class","jse-preview-data svelte-107mggt"),j(U,"class","jse-data-contents svelte-107mggt"),At(U,"jse-hide-original-data",!t[16]),j(r,"class","jse-main-contents svelte-107mggt"),j(Oe,"type","button"),j(Oe,"class","jse-primary svelte-107mggt"),Oe.disabled=Xe=!!t[17],j(de,"class","jse-actions svelte-107mggt"),j(i,"class","jse-modal-contents svelte-107mggt")},m:function(Tt,fn){dt(n,Tt,fn),Pe(Tt,e,fn),Pe(Tt,i,fn),ue(i,r),ue(r,o),ue(o,s),ue(o,a),ue(o,l),l.innerHTML=ne,ue(o,c),ue(o,u),ue(o,d),ue(o,h),ue(o,p),ue(o,m),ue(m,g),ue(g,v),dt(y,v,null),ue(v,_),ue(o,w),ie&&ie.m(o,null),ue(o,k),ue(o,D),ue(o,L),ue(o,z),ue(r,R),ue(r,U),ue(U,G),ue(G,X),ue(X,te),ue(te,P),dt(W,P,null),ue(P,J),ue(G,H),Me&&Me.m(G,null),ue(U,le),ue(U,E),ue(E,O),ue(E,I),je[q].m(E,null),ue(i,re),ue(i,de),ue(de,Oe),ue(Oe,ye),Le=!0,rt||($=[It(v,"click",t[25]),It(z,"input",t[23]),It(P,"click",t[26]),It(Oe,"click",t[24]),pa(ZZe.call(null,Oe))],rt=!0)},p:function(Tt,fn){var Hn={};512&fn[0]&&(Hn.queryLanguages=Tt[9]),1&fn[0]&&(Hn.queryLanguageId=Tt[0]),n.$set(Hn),(!Le||1&fn[0])&&ne!==(ne=Tt[21](Tt[0]).description+"")&&(l.innerHTML=ne),(!Le||2&fn[0]&&f!==(f=Ui(Tt[1])?"(whole document)":nu(Wl(Tt[1])))&&h.value!==f)&&(h.value=f);var Zt={};32768&fn[0]&&(Zt.data=Tt[15]?ou:gp),y.$set(Zt),Tt[15]?ie?(ie.p(Tt,fn),32768&fn[0]&&K(ie,1)):((ie=vue(Tt)).c(),K(ie,1),ie.m(o,k)):ie&&(Rt(),ae(ie,1,1,function(){ie=null}),Lt()),(!Le||8192&fn[0])&&(z.value=Tt[13]);var Ei={};65536&fn[0]&&(Ei.data=Tt[16]?ou:gp),W.$set(Ei),Tt[16]?Me?(Me.p(Tt,fn),65536&fn[0]&&K(Me,1)):((Me=yue(Tt)).c(),K(Me,1),Me.m(G,null)):Me&&(Rt(),ae(Me,1,1,function(){Me=null}),Lt()),(!Le||65536&fn[0])&&At(G,"jse-hide",!Tt[16]);var ln=q;(q=gt(Tt))===ln?je[q].p(Tt,fn):(Rt(),ae(je[ln],1,1,function(){je[ln]=null}),Lt(),(V=je[q])?V.p(Tt,fn):(V=je[q]=Ye[q](Tt)).c(),K(V,1),V.m(E,null)),(!Le||65536&fn[0])&&At(U,"jse-hide-original-data",!Tt[16]),(!Le||131072&fn[0]&&Xe!==(Xe=!!Tt[17]))&&(Oe.disabled=Xe)},i:function(Tt){Le||(K(n.$$.fragment,Tt),K(y.$$.fragment,Tt),K(ie),K(W.$$.fragment,Tt),K(Me),K(V),Le=!0)},o:function(Tt){ae(n.$$.fragment,Tt),ae(y.$$.fragment,Tt),ae(ie),ae(W.$$.fragment,Tt),ae(Me),ae(V),Le=!1},d:function(Tt){ht(n,Tt),Tt&&Fe(e),Tt&&Fe(i),ht(y),ie&&ie.d(),ht(W),Me&&Me.d(),je[q].d(),rt=!1,so($)}}}function QZe(t){var n,e,i,r,o;return e=new Rse({props:{$$slots:{default:[KZe]},$$scope:{ctx:t}}}),{c:function(){n=ve("div"),ft(e.$$.fragment),j(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){Pe(s,n,a),dt(e,n,null),i=!0,r||(o=pa(Ak.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(K(e.$$.fragment,s),i=!0)},o:function(s){ae(e.$$.fragment,s),i=!1},d:function(s){s&&Fe(n),ht(e),r=!1,o()}}}function ZZe(t){t.focus()}function eet(t,n,e){var i,r,o=ga("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+P_():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,_=n.queryLanguageId,w=n.onChangeQueryLanguage,k=n.onRenderValue,D=n.onClassName,L=n.onTransform,z=ma("simple-modal").close,R="".concat(a,":").concat(an(u)),U=Zu[R]||{},G=!1!==Zu.showWizard,X=!1!==Zu.showOriginal,te=U.queryOptions||{},P=_===U.queryLanguageId&&U.query?U.query:le(_).createQuery(l,U.queryOptions||{}),W=U.isManual||!1,J=void 0,H={text:""};function le(O){return y.find(function(I){return I.id===O})||y[0]}var E=h0(function(O,I){try{o("previewTransform",{query:I});var q=le(_).executeQuery(O,I,p);e(18,H={json:q}),e(17,J=void 0)}catch(V){e(18,H={text:""}),e(17,J=V.toString())}},300);return t.$$set=function(O){"id"in O&&e(28,a=O.id),"json"in O&&e(29,l=O.json),"rootPath"in O&&e(1,u=O.rootPath),"indentation"in O&&e(2,d=O.indentation),"escapeControlCharacters"in O&&e(3,h=O.escapeControlCharacters),"escapeUnicodeCharacters"in O&&e(4,f=O.escapeUnicodeCharacters),"parser"in O&&e(5,p=O.parser),"parseMemoizeOne"in O&&e(6,m=O.parseMemoizeOne),"validationParser"in O&&e(7,g=O.validationParser),"pathParser"in O&&e(8,v=O.pathParser),"queryLanguages"in O&&e(9,y=O.queryLanguages),"queryLanguageId"in O&&e(0,_=O.queryLanguageId),"onChangeQueryLanguage"in O&&e(30,w=O.onChangeQueryLanguage),"onRenderValue"in O&&e(10,k=O.onRenderValue),"onClassName"in O&&e(11,D=O.onClassName),"onTransform"in O&&e(31,L=O.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Sn(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&E(i,P),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,Zu[R]={queryOptions:te,query:P,queryLanguageId:_,isManual:W},Zu),o("store state in memory",R,Zu[R]))},[_,u,d,h,f,p,m,g,v,y,k,D,te,P,i,G,X,J,H,r,z,le,function(O){e(12,te=O),e(13,P=le(_).createQuery(l,O)),e(33,W=!1),o("updateQueryByWizard",{queryOptions:te,query:P,isManual:W})},function(O){e(13,P=O.target.value),e(33,W=!0),o("handleChangeQuery",{query:P,isManual:W})},function(){try{o("handleTransform",{query:P});var O=le(_).executeQuery(i,P,p);L([{op:"replace",path:an(u),value:O}]),z()}catch(I){console.error(I),e(18,H={text:""}),e(17,J=I.toString())}},function(){e(15,G=!G),e(32,Zu.showWizard=G,Zu)},function(){e(16,X=!X),e(32,Zu.showOriginal=X,Zu)},function(O){o("handleChangeQueryLanguage",O),e(0,_=O),w(O);var I=le(_);e(13,P=I.createQuery(l,te)),e(33,W=!1)},a,l,w,L,Zu,W]}var tet=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,eet,QZe,Ti,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},WZe,[-1,-1]),r}return Se(e)}(),wp={};function net(t){di(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function _ue(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new rg({props:c}),Hi.push(function(){return Uu(o,"value",l)}),{c:function(){n=ve("tr"),(e=ve("th")).textContent="Property",i=tt(),r=ve("td"),ft(o.$$.fragment),j(e,"class","svelte-1y818v2"),j(r,"class","svelte-1y818v2")},m:function(u,d){Pe(u,n,d),ue(n,e),ue(n,i),ue(n,r),dt(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],Hu(function(){return s=!1})),o.$set(h)},i:function(u){a||(K(o.$$.fragment,u),a=!0)},o:function(u){ae(o.$$.fragment,u),a=!1},d:function(u){u&&Fe(n),ht(o)}}}function bue(t){var n,e;return{c:function(){n=ve("div"),e=tn(t[5]),j(n,"class","jse-error svelte-1y818v2")},m:function(i,r){Pe(i,n,r),ue(n,e)},p:function(i,r){32&r&&Wn(e,i[5])},d:function(i){i&&Fe(n)}}}function iet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,X,te,P,W,J;e=new KP({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&_ue(t);function le(I){t[15](I)}var E={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(E.value=t[2]),k=new rg({props:E}),Hi.push(function(){return Uu(k,"value",le)});var O=t[5]&&bue(t);return{c:function(){n=ve("div"),ft(e.$$.fragment),i=tt(),r=ve("div"),o=ve("table"),(s=ve("colgroup")).innerHTML=' \n ',a=tt(),l=ve("tbody"),c=ve("tr"),(u=ve("th")).textContent="Path",d=tt(),h=ve("td"),f=ve("input"),m=tt(),H&&H.c(),g=tt(),v=ve("tr"),(y=ve("th")).textContent="Direction",_=tt(),w=ve("td"),ft(k.$$.fragment),L=tt(),z=ve("div"),O&&O.c(),R=tt(),U=ve("div"),G=ve("button"),X=tn("Sort"),j(u,"class","svelte-1y818v2"),j(f,"class","jse-path svelte-1y818v2"),j(f,"type","text"),f.readOnly=!0,j(f,"title","Selected path"),f.value=p=Ui(t[0])?"(whole document)":nu(Wl(t[0])),j(h,"class","svelte-1y818v2"),j(y,"class","svelte-1y818v2"),j(w,"class","svelte-1y818v2"),j(o,"class","svelte-1y818v2"),j(z,"class","jse-space svelte-1y818v2"),j(G,"type","button"),j(G,"class","jse-primary svelte-1y818v2"),G.disabled=te=!!t[4]&&!t[1],j(U,"class","jse-actions svelte-1y818v2"),j(r,"class","jse-modal-contents svelte-1y818v2"),j(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(I,q){Pe(I,n,q),dt(e,n,null),ue(n,i),ue(n,r),ue(r,o),ue(o,s),ue(o,a),ue(o,l),ue(l,c),ue(c,u),ue(c,d),ue(c,h),ue(h,f),ue(l,m),H&&H.m(l,null),ue(l,g),ue(l,v),ue(v,y),ue(v,_),ue(v,w),dt(k,w,null),ue(r,L),ue(r,z),O&&O.m(z,null),ue(r,R),ue(r,U),ue(U,G),ue(G,X),P=!0,W||(J=[It(G,"click",t[8]),pa(ret.call(null,G)),pa(Ak.call(null,n,t[6]))],W=!0)},p:function(I,q){var V=Un(q,1)[0],re={};16&V&&(re.title=I[4]?"Sort array items":"Sort object keys"),e.$set(re),(!P||1&V&&p!==(p=Ui(I[0])?"(whole document)":nu(Wl(I[0])))&&f.value!==p)&&(f.value=p),I[4]&&(I[3].length>1||void 0===I[1])?H?(H.p(I,V),26&V&&K(H,1)):((H=_ue(I)).c(),K(H,1),H.m(l,g)):H&&(Rt(),ae(H,1,1,function(){H=null}),Lt());var de={};!D&&4&V&&(D=!0,de.value=I[2],Hu(function(){return D=!1})),k.$set(de),I[5]?O?O.p(I,V):((O=bue(I)).c(),O.m(z,null)):O&&(O.d(1),O=null),(!P||18&V&&te!==(te=!!I[4]&&!I[1]))&&(G.disabled=te)},i:function(I){P||(K(e.$$.fragment,I),K(H),K(k.$$.fragment,I),P=!0)},o:function(I){ae(e.$$.fragment,I),ae(H),ae(k.$$.fragment,I),P=!1},d:function(I){I&&Fe(n),ht(e),H&&H.d(),ht(k),O&&O.d(),W=!1,so(J)}}}function ret(t){t.focus()}function oet(t,n,e){var i,r,o,s=ga("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=ma("simple-modal").close,h="".concat(a,":").concat(an(c)),f=Sn(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=wp[h]&&wp[h].selectedProperty||void 0,v=wp[h]&&wp[h].selectedDirection||p,y=void 0;return t.$$set=function(_){"id"in _&&e(9,a=_.id),"json"in _&&e(10,l=_.json),"rootPath"in _&&e(0,c=_.rootPath),"onSort"in _&&e(11,u=_.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?dP(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(ob):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,wp[h]={selectedProperty:g,selectedDirection:v},wp),s("store state in memory",h,wp[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var _,w;e(5,y=void 0);var k=null===(_=g)||void 0===_?void 0:_.value,D=null===(w=v)||void 0===w?void 0:w.value,L=Uce(l,c,k,D);u({operations:L,rootPath:c,itemPath:k,direction:D}),d()}catch(z){e(5,y=z.toString())}},a,l,u,wp,r,function(_){e(1,g=_),e(3,o),e(13,r),e(4,i)},function(_){e(2,v=_)}]}var set=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,oet,iet,Ti,{id:9,json:10,rootPath:0,onSort:11},net),r}return Se(e)}();function hh(){}function Ik(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function aet(t){var n,e;return n=new Ek({props:{items:t[0]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function cet(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,_=n.canTransform,w=n.onRenderMenu;return t.$$set=function(k){"readOnly"in k&&e(1,s=k.readOnly),"onFormat"in k&&e(2,a=k.onFormat),"onCompact"in k&&e(3,l=k.onCompact),"onSort"in k&&e(4,c=k.onSort),"onTransform"in k&&e(5,u=k.onTransform),"onToggleSearch"in k&&e(6,d=k.onToggleSearch),"onUndo"in k&&e(7,h=k.onUndo),"onRedo"in k&&e(8,f=k.onRedo),"canUndo"in k&&e(9,p=k.canUndo),"canRedo"in k&&e(10,m=k.canRedo),"canFormat"in k&&e(11,g=k.canFormat),"canCompact"in k&&e(12,v=k.canCompact),"canSort"in k&&e(13,y=k.canSort),"canTransform"in k&&e(14,_=k.canTransform),"onRenderMenu"in k&&e(15,w=k.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:ij,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:VQe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:vk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:pk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!_},{type:"button",icon:$P,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:LP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:RP,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=w(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,r]}var uet=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,cet,aet,Ti,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Se(e)}(),ao=function(){function t(){Ce(this,t)}return Se(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),Nk.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),Nk.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new Cb(this),o=new Cb(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new Cb(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new wue(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Cue(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new nd(n):Nk.from(nd.split(n,[])):t.empty}}]),t}(),nd=function(t){xt(e,ao);var n=wt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function det(t){var n,e=-1,i=Re(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return Ce(this,e),(r=n.call(this)).text=i,r.length=o,r}return Se(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new het(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(xue(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=Fk(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return hr(Wi(e.prototype),"replace",this).call(this,i,r,o);var s=Fk(this.text,Fk(o.text,xue(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):Nk.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=Re(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),Nk=function(t){xt(e,ao);var n=wt(e);function e(i,r){var o;Ce(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=Re(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Se(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return hr(Wi(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return hr(Wi(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Un(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(R,U){return R+U.length+1},-1),s=0,a=Re(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(R){a.e(R)}finally{a.f()}if(s<32){var c,u=[],d=Re(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(R){d.e(R)}finally{d.f()}return new nd(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,_=[];function w(R){var U;if(R.lines>p&&R instanceof e){var G,X=Re(R.children);try{for(X.s();!(G=X.n()).done;)w(G.value)}catch(te){X.e(te)}finally{X.f()}}else R.lines>m&&(v>m||!v)?(k(),g.push(R)):R instanceof nd&&v&&(U=_[_.length-1])instanceof nd&&R.lines+U.lines<=32?(v+=R.lines,y+=R.length+1,_[_.length-1]=new nd(U.text.concat(R.text),U.length+1+R.length)):(v+R.lines>f&&k(),v+=R.lines,y+=R.length+1,_.push(R))}function k(){0!=v&&(g.push(1==_.length?_[0]:e.from(_,y)),y=-1,v=_.length=0)}var D,L=Re(i);try{for(L.s();!(D=L.n()).done;)w(D.value)}catch(R){L.e(R)}finally{L.f()}return k(),1==g.length?g[0]:new e(g,o)}}]),e}();function Fk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;Ce(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof nd?n.text.length:n.children.length)<<1]}return Se(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof nd?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof nd){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof nd?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),wue=function(){function t(n,e,i){Ce(this,t),this.value="",this.done=!1,this.cursor=new Cb(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Se(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),Cue=function(){function t(n){Ce(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Se(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(ao.prototype[Symbol.iterator]=function(){return this.iter()},Cb.prototype[Symbol.iterator]=wue.prototype[Symbol.iterator]=Cue.prototype[Symbol.iterator]=function(){return this});for(var het=function(){function t(n,e,i,r){Ce(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Se(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),H0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),Pk=1;Pkt)return H0[n-1]<=t;return!1}function Sue(t){return t>=127462&&t<=127487}function Dl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?pet:kue)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function kue(t,n,e){if(n==t.length)return n;n&&Due(t.charCodeAt(n))&&Tue(t.charCodeAt(n-1))&&n--;var i=Pa(t,n);for(n+=Sc(i);n=0&&Sue(Pa(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function pet(t,n,e){for(;n>0;){var i=kue(t,n-2,e);if(i=56320&&t<57344}function Tue(t){return t>=55296&&t<56320}function Pa(t,n){var e=t.charCodeAt(n);if(!Tue(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return Due(i)?i-56320+(e-55296<<10)+65536:e}function fj(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Sc(t){return t<65536?1:2}var pj=/\r\n?|\n/,Tl=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Tl||(Tl={})),U0=function(){function t(n){Ce(this,t),this.sections=n}return Se(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tl.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Tl.Simple&&c>=n&&(i==Tl.TrackDel&&rn||i==Tl.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),id=function(t){xt(e,U0);var n=wt(e);function e(i,r){var o;return Ce(this,e),(o=n.call(this,i)).inserted=r,o}return Se(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return mj(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return gj(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){mj(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return U0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new Sb(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&Cp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var _=y?"string"==typeof y?ao.of(y.split(o||pj)):y:ao.empty,w=_.length;if(m==v&&0==w)return;ml&&ol(s,m-l,-1),ol(s,v-m,w),Cp(a,s,_),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function Cp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function gj(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new Sb(t),a=new Sb(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);ol(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?id.createSet(r,o):U0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new Sb(t),s=new Sb(n),a=!1;;){if(o.done&&s.done)return r?id.createSet(i,r):U0.create(i);if(0==o.ins)ol(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;ol(i,l,u,a),r&&u&&Cp(r,i,s.text)}else-1==s.ins?(ol(i,o.off?0:o.len,l,a),r&&Cp(r,i,o.textBit(l))):(ol(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&Cp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else ol(i,0,s.ins,a),r&&Cp(r,i,s.text),s.next()}}var Sb=function(){function t(n){Ce(this,t),this.set=n,this.i=0,this.next()}return Se(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?ao.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?ao.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),jk=function(){function t(n,e,i){Ce(this,t),this.from=n,this.to=e,this.flags=i}return Se(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return Qt.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return Qt.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Qt.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),Qt=function(){function t(n,e){Ce(this,t),this.ranges=n,this.mainIndex=e}return Se(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return jk.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return jk.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function Aue(t,n){var e,i=Re(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var vj=0,Kn=function(){function t(n,e,i,r,o){Ce(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=vj++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Se(t,[{key:"of",value:function(n){return new Rk([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rk(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rk(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:yj),!!n.static,n.enables)}}]),t}();function yj(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var Rk=function(){function t(n,e,i,r){Ce(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=vj++}return Se(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=Re(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||_j(m,h)){var v=o(m);if(c?!Mue(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var _=Lk(g,y);if(r.dependencies.every(function(w){return w instanceof Kn?g.facet(w)===m.facet(w):!(w instanceof ja)||g.field(w,!1)==m.field(w,!1)})||(c?Mue(v=o(m),_,s):s(v=o(m),_)))return m.values[l]=_,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function Mue(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,Oue.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(vj++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function kb(t){return function(n){return new Iue(n,t)}}var z0={highest:kb(0),high:kb(1),default:kb(2),low:kb(3),lowest:kb(4)},Iue=Se(function t(n,e){Ce(this,t),this.inner=n,this.prec=e}),Sp=function(){function t(){Ce(this,t)}return Se(t,[{key:"of",value:function(n){return new xj(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),xj=Se(function t(n,e){Ce(this,t),this.compartment=n,this.inner=e}),Nue=function(){function t(n,e,i,r,o,s){for(Ce(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,w,k,D,L,z,o=[],s=Object.create(null),a=new Map,l=Re((w=n,k=e,D=a,L=[[],[],[],[],[]],z=new Map,function R(U,G){var X=z.get(U);if(null!=X){if(X<=G)return;var te=L[X].indexOf(U);te>-1&&L[X].splice(te,1),U instanceof xj&&D.delete(U.compartment)}if(z.set(U,G),Array.isArray(U)){var P,W=Re(U);try{for(W.s();!(P=W.n()).done;)R(P.value,G)}catch(le){W.e(le)}finally{W.f()}}else if(U instanceof xj){if(D.has(U.compartment))throw new RangeError("Duplicate use of compartment in extensions");var J=k.get(U.compartment)||U.inner;D.set(U.compartment,J),R(J,G)}else if(U instanceof Iue)R(U.inner,U.prec);else if(U instanceof ja)L[G].push(U),U.provides&&R(U.provides,G);else if(U instanceof Rk)L[G].push(U),U.facet.extensions&&R(U.facet.extensions,2);else{var H=U.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(U,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));R(H,G)}}(w,2),L.reduce(function(U,G){return U.concat(G)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof ja?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(w){l.e(w)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var w=m[p];u[w.id]=h.length<<1,h.push(function(k){return w.slot(k)})},p=0,m=o;p>1;function O(I){for(var q=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function Lk(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var Fue=Kn.define(),Pue=Kn.define({combine:function(t){return t.some(function(n){return n})},static:!0}),jue=Kn.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),Rue=Kn.define(),Lue=Kn.define(),$ue=Kn.define(),Bue=Kn.define({combine:function(t){return!!t.length&&t[0]}}),kp=function(){function t(n,e){Ce(this,t),this.type=n,this.value=e}return Se(t,null,[{key:"define",value:function(){return new yet}}]),t}(),yet=function(){function t(){Ce(this,t)}return Se(t,[{key:"of",value:function(n){return new kp(this,n)}}]),t}(),_et=function(){function t(n){Ce(this,t),this.map=n}return Se(t,[{key:"of",value:function(n){return new ur(this,n)}}]),t}(),ur=function(){function t(n,e){Ce(this,t),this.type=n,this.value=e}return Se(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new _et((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=Re(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();ur.reconfigure=ur.define(),ur.appendConfig=ur.define();var ql=function(){function t(n,e,i,r,o,s){Ce(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&Aue(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Se(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=Re(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function bet(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=Vue(u,wj(l,h,a.changes.newLength),!0))}return u==a?a:ql.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=Re(c.facet(Rue));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:bet(u,h))}}catch(_){d.e(_)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=id.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=ql.create(c,f,a.selection&&a.selection.map(p),ur.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Lue),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof ql?y:Array.isArray(y)&&1==y.length&&y[0]instanceof ql?y[0]:Hue(c,G0(y),!1)}return a}(s):s)}ql.time=kp.define(),ql.userEvent=kp.define(),ql.addToHistory=kp.define(),ql.remote=kp.define();var xet=[];function G0(t){return null==t?xet:Array.isArray(t)?t:[t]}var Cj,is=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(is||(is={})),wet=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{Cj=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Eo=function(){function t(n,e,i,r,o,s){Ce(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return Db(this,i),Lk(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof id?n:id.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return ao.of(n.split(this.facet(t.lineSeparator)||pj))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(Db(this,e),Lk(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof ja&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Bue)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=Re(this.facet(Fue));try{for(s.s();!(i=s.n()).done;){var a,c=Re((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function Cet(t){return function(n){if(!/\S/.test(n))return is.Space;if(function(i){if(Cj)return Cj.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||wet.test(o)))return!0}return!1}(n))return is.Word;for(var e=0;e-1)return is.Word;return is.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=Dl(i,a,!1);if(s(i.slice(c,a))!=is.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:Qt.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Nue.resolve(n.extensions||[],new Map),i=n.doc instanceof ao?n.doc:ao.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||pj)),r=n.selection?n.selection instanceof Qt?n.selection:Qt.single(n.selection.anchor,n.selection.head):Qt.single(0);return Aue(r,i.length),e.staticFacet(Pue)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function au(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=Re(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();sg.prototype.startSide=sg.prototype.endSide=0,sg.prototype.point=!1,sg.prototype.mapMode=Tl.TrackDel;var Sj=function(){function t(n,e,i){Ce(this,t),this.from=n,this.to=e,this.value=i}return Se(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function kj(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var ket=function(){function t(n,e,i,r){Ce(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),Vo=function(){function t(n,e,i,r){Ce(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=Re(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(kj)),this.isEmpty)return i.length?t.of(i):this;for(var d=new zue(this,null,-1).goto(0),h=0,f=[],p=new ag;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Dj.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Dj.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Uue(s,a,i),c=new Tb(s,l,o),u=new Tb(a,l,o);i.iterGaps(function(d,h,f){return Gue(c,d,u,h,f,r)}),i.empty&&0==i.length&&Gue(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Uue(o,s),l=new Tb(o,a,0).goto(i),c=new Tb(s,a,0).goto(i);;){if(l.to!=c.to||!Ej(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new Tb(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new ag,o=Re(n instanceof Sj?[n]:i?function Det(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(kj);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();Vo.empty=new Vo([],[],null,-1),Vo.empty.nextLayer=Vo.empty;var ag=function(){function t(){Ce(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Se(t,[{key:"finishChunk",value:function(n){this.chunks.push(new ket(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(Vo.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=Vo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Uue(t,n,e){var i,r=new Map,o=Re(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;Ce(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Se(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=Re(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)Tj(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=Re(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)Tj(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),Tj(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new zue(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function Tj(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var Tb=function(){function t(n,e,i){Ce(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Dj.from(n,e,i)}return Se(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){$k(this.active,n),$k(this.activeTo,n),$k(this.activeRank,n),this.minActive=Wue(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&$k(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Gue(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&Ej(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!Ej(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function Ej(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function Wue(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=Dl(t,r)}return!0===i?-1:t.length}for(var que=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),Mj=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Yue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Dp=function(){function t(n,e){Ce(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==mn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Se(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Yue[que]||1;return Yue[que]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[Mj]||new Tet(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),Vk=null,Tet=function(){function t(n){if(Ce(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(Vk)return n.adoptedStyleSheets=[Vk.sheet].concat(n.adoptedStyleSheets),n[Mj]=Vk;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),Vk=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[Mj]=this}return Se(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Xue=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),Eet=typeof navigator<"u"&&/Mac/.test(navigator.platform),Aet=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Met=Eet||Xue&&+Xue[1]<57,Ra=0;Ra<10;Ra++)Tp[48+Ra]=Tp[96+Ra]=String(Ra);for(Ra=1;Ra<=24;Ra++)Tp[Ra+111]="F"+Ra;for(Ra=65;Ra<=90;Ra++)Tp[Ra]=String.fromCharCode(Ra+32),Ab[Ra]=String.fromCharCode(Ra);for(var Oj in Tp)Ab.hasOwnProperty(Oj)||(Ab[Oj]=Tp[Oj]);function Hk(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function W0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function Uk(t,n){if(!n.anchorNode)return!1;try{return W0(t,n.anchorNode)}catch{return!1}}function Mb(t){return 3==t.nodeType?Y0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function zk(t,n,e,i){return!!e&&(Jue(t,n,e,i,-1)||Jue(t,n,e,i,1))}function Gk(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function Jue(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:Ob(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=Gk(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?Ob(t):0}}}function Ob(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var Kue={left:0,right:0,top:0,bottom:0};function Ij(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function Oet(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var Que,Iet=function(){function t(){Ce(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Se(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),q0=null;function Zue(t){if(t.setActive)return t.setActive();if(q0)return t.focus(q0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==q0?{get preventScroll(){return q0={preventScroll:!0},!0}}:void 0),!q0){q0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=Que||(Que=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function X0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function ede(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var kc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Ce(this,t),this.node=n,this.offset=e,this.precise=i}return Se(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,Gk(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,Gk(n)+1,e)}}]),t}(),Nj=[],ys=function(){function t(){Ce(this,t),this.parent=null,this.dom=null,this.dirty=2}return Se(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=Re(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=Re(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=tde(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=tde(i)}else if(1&this.dirty){var u,d=Re(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==Ob(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nj;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function tde(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}ys.prototype.breakAfter=0;var nde=function(){function t(n,e,i){Ce(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Se(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function ide(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),Qn={mac:cde||/Mac/.test(Dc.platform),windows:/Win/.test(Dc.platform),linux:/Linux|X11/.test(Dc.platform),ie:Wk,ie_version:ode?Fj.documentMode||6:jj?+jj[1]:Pj?+Pj[1]:0,gecko:sde,gecko_version:sde?+(/Firefox\/(\d+)/.exec(Dc.userAgent)||[0,0])[1]:0,chrome:!!Rj,chrome_version:Rj?+Rj[1]:0,ios:cde,android:/Android\b/.test(Dc.userAgent),webkit:ade,safari:lde,webkit_version:ade?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=Fj.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},Ib=function(t){xt(e,ys);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).text=i,r}return Se(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new kc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return Lj(this.dom,i,r)}}]),e}(),lg=function(t){xt(e,ys);var n=wt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Ce(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=Re(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(En(r))}catch(u){l.e(u)}finally{l.f()}return r}return Se(e,[{key:"setAttrs",value:function(i){if(ede(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),hr(Wi(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return hde(this,i)}},{key:"coordsAt",value:function(i,r){return pde(this,i,r)}}]),e}();function Lj(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?Qn.chrome||Qn.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return Qn.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?Ij(l,s<0):l||null}var $j=function(t){xt(e,ys);var n=wt(e);function e(i,r,o){var s;return Ce(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Se(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:Ij(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){hr(Wi(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),ude=function(t){xt(e,$j);var n=wt(e);function e(){return Ce(this,e),n.apply(this,arguments)}return Se(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?Bj(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new kc(s,Math.min(a,s.nodeValue.length))}):new kc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?dde(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?Bj(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return Lj(a,l,c)}):Lj(a,i,r)}},{key:"destroy",value:function(){var i;hr(Wi(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function Bj(t,n,e,i,r,o){if(e instanceof lg){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=ys.get(s);if(!a)return o(t,n);var l=W0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return ao.empty}}]),e}();function hde(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof lg&&r.length&&(i=r[r.length-1])instanceof lg&&i.mark.eq(n.mark)?fde(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function pde(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new mde(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new Nb(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=gde(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new Nb(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new Gj(i)}},{key:"set",value:function(i){return Vo.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();mi.none=Vo.empty;var mde=function(t){xt(e,mi);var n=wt(e);function e(i){var r;Ce(this,e);var o=gde(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Se(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&Uj(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return hr(Wi(e.prototype),"range",this).call(this,i,r)}}]),e}();mde.prototype.point=!1;var Gj=function(t){xt(e,mi);var n=wt(e);function e(i){return Ce(this,e),n.call(this,-2e8,-2e8,null,i)}return Se(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&Uj(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return hr(Wi(e.prototype),"range",this).call(this,i,r)}}]),e}();Gj.prototype.mapMode=Tl.TrackBefore,Gj.prototype.point=!0;var Nb=function(t){xt(e,mi);var n=wt(e);function e(i,r,o,s,a,l){var c;return Ce(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Tl.TrackBefore:Tl.TrackAfter:Tl.TrackDel,c}return Se(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return hr(Wi(e.prototype),"range",this).call(this,i,r)}}]),e}();function gde(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function Wj(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}Nb.prototype.point=!0;var rd=function(t){xt(e,ys);var n=wt(e);function e(){var i;return Ce(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),rde(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){Uj(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){fde(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=Hj(r,this.attrs||{})),o&&(this.attrs=Hj({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return hde(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(ede(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(zj(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),hr(Wi(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&ys.get(s)instanceof lg;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=ys.get(s))||void 0===o?void 0:o.isEditable)||Qn.ios&&this.children.some(function(l){return l instanceof Ib})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof Ib)||/[^ -~]/.test(s.text))return null;var a=Mb(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return pde(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return go.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),qj=function(t){xt(e,ys);var n=wt(e);function e(i,r,o){var s;return Ce(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(qk(new Vj(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(qk(new Ib(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof Nb){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof Nb)if(i.block){var l=i.type;l!=go.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new qj(i.widget||new vde("div"),a,l))}else{var c=$j.create(i.widget||new vde("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(qk(new Vj(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(qk(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=Vo.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function qk(t,n){var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)t=new lg(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var vde=function(t){xt(e,Ep);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).tag=i,r}return Se(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),yde=Kn.define(),_de=Kn.define(),bde=Kn.define(),xde=Kn.define(),Yj=Kn.define(),wde=Kn.define(),Cde=Kn.define(),Sde=Kn.define({combine:function(t){return t.some(function(n){return n})}}),kde=Kn.define({combine:function(t){return t.some(function(n){return n})}}),Dde=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;Ce(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Se(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),Tde=ur.define({map:function(t,n){return t.map(n)}});function Tc(t,n,e){var i=t.facet(xde);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var Yk=Kn.define({combine:function(t){return!t.length||t[0]}}),Pet=0,Fb=Kn.define(),ya=function(){function t(n,e,i,r){Ce(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Se(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(Pet++,n,i.eventHandlers,function(a){var l=[Fb.of(a)];return s&&l.push(Pb.of(function(c){var u=c.plugin(a);return u?s(u):mi.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),Xj=function(){function t(n){Ce(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Se(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Tc(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){Tc(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){Tc(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),Ede=Kn.define(),Jj=Kn.define(),Pb=Kn.define(),Ade=Kn.define(),Mde=Kn.define(),jb=Kn.define(),J0=function(){function t(n,e,i,r){Ce(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Se(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),Ode=function(){function t(n,e,i){Ce(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=id.empty(this.startState.doc.length);var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new J0(l,c,u,d))}),this.changedRanges=a}return Se(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),rs=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(rs||(rs={})),Kj=rs.LTR,jet=rs.RTL;function Ide(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),os=[];function Rde(t){return[new K0(0,t,0)]}var Lde="";function Vet(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=K0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=Dl(t.text,s,u);if(Lde=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return Qt.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=Re(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=ys.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Bde(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Vde=Se(function t(n,e){Ce(this,t),this.node=n,this.offset=e,this.pos=-1}),Hde=function(t){xt(e,ys);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).view=i,r.compositionDeco=mi.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new rd],r.children[0].setParent(En(r)),r.updateDeco(),r.updateInner([new J0(0,0,0,i.state.doc.length)],0),r}return Se(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=mi.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=zde(a);if(!c)return mi.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new $de([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=Fet.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,_=v.off,w=o.findPos(l,-1);ide(this,w.i,w.off,y,_,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(Qn.gecko&&a.empty&&function Het(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new kc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&zk(l.node,l.offset,d.anchorNode,d.anchorOffset)&&zk(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){Qn.android&&Qn.chrome&&i.dom.contains(d.focusNode)&&function Wet(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=Hk(i.view.root);if(h)if(a.empty){if(Qn.gecko){var f=function zet(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new kc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new kc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=Hk(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=rd.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||Uk(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=ys.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=go.WidgetBefore&&a.type!=go.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==go.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==rs.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?Mb(g):[];if(v.length){var y=v[v.length-1],_=u?y.right-m.left:m.right-y.left;_>c&&(c=_,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?rs.RTL:rs.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof rd){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=Mb(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new nde(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(mi.replace({widget:new Ude(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return mi.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(Pb).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=Re(this.view.state.facet(Mde).map(function(w){return w(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(w){f.e(w)}finally{f.f()}!function(w,k,D,L,z,R,U,G){for(var X=w.ownerDocument,te=X.defaultView||window,P=w;P;)if(1==P.nodeType){var W=void 0,J=P==X.body;if(J)W=Oet(te);else{if(P.scrollHeight<=P.clientHeight&&P.scrollWidth<=P.clientWidth){P=P.assignedSlot||P.parentNode;continue}var H=P.getBoundingClientRect();W={left:H.left,right:H.left+P.clientWidth,top:H.top,bottom:H.top+P.clientHeight}}var le=0,E=0;if("nearest"==z)k.top0&&k.bottom>W.bottom+E&&(E=k.bottom-W.bottom+E+U)):k.bottom>W.bottom&&(E=k.bottom-W.bottom+U,D<0&&k.top-E0&&k.right>W.right+le&&(le=k.right-W.right+le+R)):k.right>W.right&&(le=k.right-W.right+R,D<0&&k.left0&&e<=0)n=Ob(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var Get=function(){function t(){Ce(this,t),this.changes=[]}return Se(t,[{key:"compareRange",value:function(n,e){Wj(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){Wj(n,e,this.changes)}}]),t}();function qet(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function Yet(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function e4(t,n){return t.topn.top+1}function Wde(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function t4(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=Mb(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&e4(c,m)?c=qde(c,m.bottom):u&&e4(u,m)&&(u=Wde(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var _=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Yde(i,_,e):d&&"false"!=i.contentEditable?t4(i,_,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Yde(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((Qn.chrome||Qn.gecko)&&Y0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Xde(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=go.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:Jde(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,_=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var w=m.caretPositionFromPoint(c,u);w&&(y=w.offsetNode,_=w.offset)}else if(m.caretRangeFromPoint){var k=m.caretRangeFromPoint(c,u);k&&(_=k.startOffset,(!t.contentDOM.contains(y=k.startContainer)||Qn.safari&&function Xet(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return Y0(t,i-1,i).getBoundingClientRect().left>e}(y,_,c)||Qn.chrome&&function Jet(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():Y0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,_,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var D=rd.find(t.docView,p);if(!D)return d>r.top+r.height/2?r.to:r.from;var L=t4(D.dom,c,u);y=L.node,_=L.offset}var z=t.docView.nearest(y);if(!z)return null;if(z.isWidget){var R=z.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+Aj(s,o,t.state.tabSize)}function Kde(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=Vet(r,o,s,a,e),u=Lde;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=Qt.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function n4(t,n,e){for(var i=t.state.facet(Ade).map(function(a){return a(t)});;){var r,o=!1,s=Re(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?Qt.cursor(a,1):Qt.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var Qet=function(){function t(n){var e=this;Ce(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=ia[s];n.contentDOM.addEventListener(s,function(l){ehe(n,l)&&i(a,l)},i4[s]),e.registeredEvents.push(s)};for(var o in ia)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(ia.mousedown,s)}),Qn.chrome&&102==Qn.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,Qn.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Se(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=Re(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){ehe(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=Re(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){Tc(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=Re(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){Tc(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,X0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(Qn.safari&&!Qn.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),Qde=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Zet="dthko",Zde=[16,17,18,20,91,92,224,225];function Xk(t){return.7*t+8}var ett=function(){function t(n,e,i,r){Ce(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Eo.allowMultipleSelections)&&(a=e,(l=n.state.facet(yde)).length?l[0](a):Qn.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(_de);return l.length?l[0](a):Qn.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=Hk(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=uhe(e))&&null}return Se(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-Xk(o.left-n.clientX):n.clientX>=o.right&&(i=Xk(n.clientX-o.right)),n.clientY<=o.top?r=-Xk(o.top-n.clientY):n.clientY>=o.bottom&&(r=Xk(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function ehe(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=ys.get(i))&&e.ignoreEvent(n))return!1;return!0}var ia=Object.create(null),i4=Object.create(null),the=Qn.ie&&Qn.ie_version<15||Qn.ios&&Qn.webkit_version<604;function nhe(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=r4&&i.selection.ranges.every(function(c){return c.empty})&&r4==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:Qt.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:Qt.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function ihe(t,n,e,i){if(1==i)return Qt.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return Qt.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=Dl(h.text,f,!1):m=Dl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=Dl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=Re(t.state.facet(bde));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=she(s=t,a=n),c=uhe(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=she(s,d),m=ihe(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=ihe(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(_){return _.eq(m)})?function(_,w){for(var k=0;;k++)if(_.ranges[k].eq(w))return Qt.create(_.ranges.slice(0,k).concat(_.ranges.slice(k+1)),_.mainIndex==k?0:_.mainIndex-(_.mainIndex>k?1:0))}(u,m):f?u.addRange(m):Qt.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new ett(t,n,i,o)),o&&t.observer.ignore(function(){return Zue(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var rhe=function(t,n){return t>=n.top&&t<=n.bottom},ohe=function(t,n,e){return rhe(n,e)&&t>=e.left&&t<=e.right};function ttt(t,n,e,i){var r=rd.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&ohe(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&ohe(e,i,a)?1:s&&rhe(i,s)?-1:1}function she(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:ttt(t,e,n.clientX,n.clientY)}}var ntt=Qn.ie&&Qn.ie_version<=11,ahe=null,lhe=0,che=0;function uhe(t){if(!ntt)return t.detail;var n=ahe,e=che;return ahe=t,che=Date.now(),lhe=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(lhe+1)%3:1}function dhe(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}ia.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},ia.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&dhe(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(_){g.e(_)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){r4=o?i:null;var s=the?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var hhe=kp.define();function fhe(t,n){var e,i=[],r=Re(t.facet(Cde));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:hhe.of(!0)}):null}function phe(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=fhe(t.state,n);e?t.dispatch(e):t.update([])}},10)}ia.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),phe(t)},ia.blur=function(t){t.observer.clearSelectionRange(),phe(t)},ia.compositionstart=ia.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},ia.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,Qn.chrome&&Qn.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},ia.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},ia.beforeinput=function(t,n){var e,i;if(Qn.chrome&&Qn.android&&(i=Qde.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var mhe=["pre-wrap","normal","pre-line","break-spaces"],itt=function(){function t(n){Ce(this,t),this.lineWrapping=n,this.doc=ao.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Se(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return mhe.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;Ce(this,t),this.length=n,this.height=e,this.flags=i}return Se(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Ho.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Ho.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),ph=function(t){xt(e,ghe);var n=wt(e);function e(i,r){var o;return Ce(this,e),(o=n.call(this,i,r,go.Text)).collapsed=0,o.widgetHeight=0,o}return Se(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof Q0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof Q0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):od.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),Q0=function(t){xt(e,od);var n=wt(e);function e(i){return Ce(this,e),n.call(this,i,0)}return Se(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new cg(f.from,f.length,m,p,go.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new cg(v.from,v.length,o+u*g,u,go.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Ho.ByHeight)return this.blockAt(i,o,s,a);if(r==Ho.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new cg(c,l.to-c,0,0,go.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new cg(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,go.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new cg(m.from,m.length,p,v,go.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return od.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new ph(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=od.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),ott=function(t){xt(e,od);var n=wt(e);function e(i,r,o){var s;return Ce(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Se(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Ho.ByPosNoHeight?Ho.ByPosNoHeight:Ho.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Ho.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=Re(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&vhe(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?od.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function vhe(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof Q0&&(i=t[n+1])instanceof Q0&&t.splice(n-1,3,new Q0(e.length+1+i.length))}var stt=function(){function t(n,e){Ce(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Se(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof ph?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new ph(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new ph(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new Q0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof ph)return n;var e=new ph(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=go.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=go.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof ph||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function utt(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var o4=function(){function t(n,e,i){Ce(this,t),this.from=n,this.to=e,this.size=i}return Se(t,[{key:"draw",value:function(n){return mi.replace({widget:new dtt(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new Jk(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?_he:new ftt(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:Rb(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(Pb).filter(function(c){return"function"!=typeof c});var o=J0.extendWithRanges(n.changedRanges,function att(t,n,e){var i=new ltt;return Vo.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:id.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(kde)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?rs.RTL:rs.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?utt:ctt)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var _=n.docView.measureTextSize(),w=_.lineHeight,k=_.charWidth;(s=w>0&&r.refresh(o,w,k,v/k,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var D,L=Re(this.viewports);try{for(L.s();!(D=L.n()).done;){var z=D.value,R=z.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(z);this.heightMap=(s?od.empty().applyChanges(this.stateDeco,ao.empty,this.heightOracle,[new J0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new rtt(z.from,R))}}catch(G){L.e(G)}finally{L.f()}r.heightChanged&&(c|=2)}var U=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return U&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||U)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new Jk(r.lineAt(this.visibleTop-1e3*i,Ho.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Ho.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Ho.ByPos,o,0,0);l=new Jk(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Ho.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Ho.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=rs.LTR&&!r)return[];var l,c=[],u=function X(te,P,W,J){if(!(P-tete&&I=W.from&&re.to<=W.to&&Math.abs(re.from-te)de})});if(!q){if(P=P})){var V=e.moveToLineBoundary(Qt.cursor(P),!1,!0).head;V>te&&(P=V)}q=new o4(te,P,i.gapSize(W,te,P,J))}c.push(q)}},d=Re(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||Rb(this.heightMap.lineAt(n,Ho.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return Rb(this.heightMap.lineAt(this.scaler.fromDOM(n),Ho.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return Rb(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),Jk=Se(function t(n,e){Ce(this,t),this.from=n,this.to=e});function htt(t,n,e){var i=[],r=t,o=0;return Vo.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function Qk(t,n){var e,i=0,r=Re(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var _he={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},ftt=function(){function t(n,e,i){Ce(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Ho.ByPos,n,0,0).top,p=e.lineAt(h,Ho.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=Re(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Se(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),a4=Dp.newName(),bhe=Dp.newName(),xhe=Dp.newName(),whe={"&light":"."+bhe,"&dark":"."+xhe};function l4(t,n,e){return new Dp(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var ptt=l4("."+a4,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},whe),mtt=Se(function t(n,e,i,r){Ce(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,_=m.focusOffset;return g&&(p.push(new Vde(g,v)),y==g&&_==v||p.push(new Vde(y,_))),p}(n),c=new $de(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?Qt.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!W0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!W0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=Qt.single(h,d)}});function Che(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||Qn.android&&n.text.length0&&J>0&&R.charCodeAt(W-1)==U.charCodeAt(J-1);)W--,J--;return"end"==X&&(G-=W+Math.max(0,P-Math.min(W,J))-P),W=W?P-G:0)+(J-W),W=P):J=J?P-G:0)+(W-J),J=P),{from:P,toA:W,toB:J}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(Qn.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:ao.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(Yk)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(Qn.mac||Qn.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=Qt.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:ao.of([" "])}):Qn.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=Qt.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:ao.of([" "])}),e){var d=t.state;if(Qn.ios&&t.inputState.flushIOSKey(t)||Qn.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&X0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&X0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&X0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(wde).some(function(R){return R(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),_=zde(t)||t.state.doc.lineAt(r.head),w=r.to-e.to,k=r.to-r.from;h=d.changeByRange(function(R){if(R.from==r.from&&R.to==r.to)return{changes:g,range:v||R.map(g)};var U=R.to-w,G=U-y.length;if(R.to-R.from!=k||t.state.sliceDoc(G,U)!=y||_&&R.to>=_.from&&R.from<=_.to)return{range:R};var X=d.changes({from:G,to:U,insert:e.insert}),te=R.to-r.to;return{changes:X,range:v?Qt.range(Math.max(0,v.anchor+te),Math.max(0,v.head+te)):R.map(X)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var D="input.type";return t.composing&&(D+=".compose",t.inputState.compositionFirstChange&&(D+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:D}),!0}if(i&&!i.main.eq(r)){var L=!1,z="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(L=!0),z=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:L,userEvent:z}),!0}return!1}var gtt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},c4=Qn.ie&&Qn.ie_version<=11,vtt=function(){function t(n){var e=this;Ce(this,t),this.view=n,this.active=!1,this.selectionRange=new Iet,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(Qn.ie&&Qn.ie_version<=11||Qn.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),c4&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Se(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(Yk)?i.root.activeElement==this.dom:Uk(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(Qn.ie&&Qn.ie_version<=11||Qn.android&&Qn.chrome)&&!i.state.selection.main.empty&&r.focusNode&&zk(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=Qn.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(zk(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||Hk(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=Uk(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=Re(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=Re(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&Uk(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new mtt(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=Che(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=She(e,n.previousSibling||n.target.previousSibling,-1),r=She(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=Re(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function She(t,n,e){for(;n;){var i=ys.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Gn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ce(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function Net(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new yhe(e.state||Eo.create(e)),this.plugins=this.state.facet(Fb).map(function(s){return new Xj(s)});var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new vtt(this),this.inputState=new Qet(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Hde(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Se(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof ql?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=Re(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(R){l.e(R)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(R){return R.annotation(hhe)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=fhe(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Eo.phrases)!=this.state.facet(Eo.phrases))return this.setState(a);(i=Ode.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=Re(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var _=y.state.selection.main;m=new Dde(_.empty?_:Qt.cursor(_.head,_.head>_.anchor?-1:1))}var w,k=Re(y.effects);try{for(k.s();!(w=k.n()).done;){var D=w.value;D.is(Tde)&&(m=D.value)}}catch(R){k.e(R)}finally{k.f()}}}catch(R){v.e(R)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=Dhe.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(jb)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(R){return R.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(Zk)!=i.state.facet(Zk)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var L,z=Re(this.state.facet(Yj));try{for(z.s();!(L=z.n()).done;)(0,L.value)(i)}catch(R){z.e(R)}finally{z.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!Che(e,p)&&f.force&&X0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new yhe(n),this.plugins=n.facet(Fb).map(function(a){return new Xj(a)}),this.pluginMap.clear();var o,s=Re(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Hde(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(Fb),i=n.state.facet(Fb);if(e!=i){var r,o=[],s=Re(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new Xj(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=Re(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=Re(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(R){try{return R.read(n)}catch(U){return Tc(n.state,U),khe}}),g=Ode.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var _=0;_1||k<-1)&&(this.scrollDOM.scrollTop+=k,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var D,L=Re(this.state.facet(Yj));try{for(L.s();!(D=L.n()).done;)(0,D.value)(i)}catch(R){L.e(R)}finally{L.f()}}}}},{key:"themeClasses",get:function(){return a4+" "+(this.state.facet(s4)?xhe:bhe)+" "+this.state.facet(Zk)}},{key:"updateAttrs",value:function(){var n=this,e=The(this,Ede,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Yk)?"true":"false",class:"cm-content",style:"".concat(Qn.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),The(this,Jj,i);var r=this.observer.ignore(function(){var o=zj(n.contentDOM,n.contentAttrs,i),s=zj(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=Re(n);try{for(r.s();!(e=r.n()).done;){var o,s=Re(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(jb),Dp.mount(this.root,this.styleModules.concat(ptt).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==rs.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return Qt.cursor(l,e?-1:1)}var c=rd.find(t.docView,n.head);return Qt.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return n4(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return Qt.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var _=u+(v+y)*c,w=Xde(r,{x:g,y:_},!1,c);if(_h.bottom||(c<0?wl))return Qt.cursor(w,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Xde(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return Ij(i,o[K0.find(o,n-r.from,-1,e)].dir==rs.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(Sde)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>ytt)return Rde(n.length);var e,i=this.textDirectionAt(n.from),r=Re(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==Kj?1:2,d=l==Kj?2:1;if(!a||1==u&&!Bet.test(a))return Rde(c);for(var h=0,f=u,p=u;h=0;te-=3)if(fh[te+1]==-z){var P=fh[te+2],W=2&P?u:4&P?1&P?d:u:0;W&&(os[U]=os[fh[te]]=W),G=te;break}}else{if(189==fh.length)break;fh[G++]=U,fh[G++]=L,fh[G++]=X}else if(2==(R=os[U])||1==R){var J=R==u;X=J?0:1;for(var H=G-3;H>=0;H-=3){var le=fh[H+2];if(2&le)break;if(J)fh[H+2]|=2;else{if(4&le)break;fh[H+2]|=4}}}for(var E=0;EOe;){for(var Le=Xe,rt=2!=os[--Xe];Xe>Oe&&rt==(2!=os[Xe-1]);)Xe--;re.push(new K0(Xe,Le,rt?2:1))}else re.push(new K0(Oe,de,0))}else for(var $=0;$Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){Zue(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=Re(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Tde.of(new Dde("number"==typeof n?Qt.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return ya.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=Dp.newName(),r=[Zk.of(i),jb.of(l4(".".concat(i),n))];return e&&e.dark&&r.push(s4.of(!0)),r}},{key:"baseTheme",value:function(n){return z0.lowest(jb.of(l4("."+a4,n,whe)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&ys.get(i)||ys.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Gn.styleModule=jb,Gn.inputHandler=wde,Gn.focusChangeEffect=Cde,Gn.perLineTextDirection=Sde,Gn.exceptionSink=xde,Gn.updateListener=Yj,Gn.editable=Yk,Gn.mouseSelectionStyle=bde,Gn.dragMovesSelection=_de,Gn.clickAddsSelectionRange=yde,Gn.decorations=Pb,Gn.atomicRanges=Ade,Gn.scrollMargins=Mde,Gn.darkTheme=s4,Gn.contentAttributes=Jj,Gn.editorAttributes=Ede,Gn.lineWrapping=Gn.contentAttributes.of({class:"cm-lineWrapping"}),Gn.announce=ur.define();var ytt=4096,khe={},Dhe=function(){function t(n,e,i,r){Ce(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Se(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:rs.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&Hj(s,e)}return e}var _tt=Qn.mac?"mac":Qn.windows?"win":Qn.linux?"linux":"key";function eD(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var xtt=z0.default(Gn.domEventHandlers({keydown:function(t,n){return Mhe(Ahe(n.state),t,n,"editor")}})),tD=Kn.define({enables:xtt}),Ehe=new WeakMap;function Ahe(t){var n=t.facet(tD),e=Ehe.get(n);return e||Ehe.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_tt,s=Object.create(null),a=Object.create(null),l=function(D,L){var z=a[D];if(null==z)a[D]=L;else if(z!=L)throw new Error("Key binding "+D+" is used both as a regular binding and as a multi-stroke prefix")},c=function(D,L,z,R){for(var U,G,X=s[D]||(s[D]=Object.create(null)),te=L.split(/ (?!$)/).map(function(le){return function btt(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==rs.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=Ohe(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=Nhe(t,i),f=Nhe(t,r),p=h.type==go.Text?h:null,m=f.type==go.Text?f:null;if(t.lineWrapping&&(p&&(p=Ihe(t,i,p)),m&&(m=Ihe(t,r,m))),p&&m&&p.from==m.from)return w(k(e.from,e.to,p));var g=p?k(e.from,null,p):D(h,!1),v=m?k(null,e.to,m):D(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(_(u,g.bottom,d,v.top)):g.bottomW&&le.from=O)break;Oe>E&&te(Math.max(de,E),null==L&&de<=W,Math.min(Oe,O),null==z&&Oe>=J,re.dir)}}catch(ye){V.e(ye)}finally{V.f()}if((E=q.to+1)>=O)break}}}catch(ye){H.e(ye)}finally{H.f()}return 0==X.length&&te(W,null==L,J,null==z,t.textDirection),{top:U,bottom:G,horizontal:X}}function D(L,z){var R=a.top+(z?L.top:L.bottom);return{top:R,bottom:R,horizontal:[]}}}(n,e,i)}}]),t}();function Ohe(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==rs.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function Ihe(t,n,e){var i=Qt.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:go.Text}}function Nhe(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=Re(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==go.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var Ctt=function(){function t(n,e){Ce(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Se(t,[{key:"update",value:function(n){n.startState.facet(nD)!=n.state.facet(nD)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(nD);e0&&void 0!==arguments[0]?arguments[0]:{}),ktt,Dtt,Ttt,kde.of(!0)]}function jhe(t){return t.startState.facet(Lb)!=t.state.facet(Lb)}var ktt=Fhe({above:!0,markers:function(t){var n,e=t.state,i=e.facet(Lb),r=[],o=Re(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||Phe:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:Qt.cursor(s.head,s.head>s.anchor?-1:1),d=Re(u4.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=jhe(t);return e&&Rhe(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){Rhe(n.state,t)},class:"cm-cursorLayer"});function Rhe(t,n){n.style.animationDuration=t.facet(Lb).cursorBlinkRate+"ms"}var Dtt=Fhe({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:u4.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||jhe(t)},class:"cm-selectionLayer"}),Lhe={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Phe&&(Lhe[".cm-line"].caretColor="transparent !important");var Ttt=z0.highest(Gn.theme(Lhe)),$he=ur.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),$b=ja.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is($he)?i.value:e},t)}}),Ett=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Se(t,[{key:"update",value:function(n){var e,i=n.state.field($b);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field($b)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field($b),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field($b)!=n&&this.view.dispatch({effects:$he.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Bhe(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var Att=function(){function t(n){Ce(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Se(t,[{key:"createDeco",value:function(n){var e,i=this,r=new ag,o=r.add.bind(r),s=Re(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=Re(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(_){m.e(_)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Bhe(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=Re(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),d4=null!=/x/.unicode?"gu":"g",Mtt=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",d4),Ott={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},h4=null,iD=Kn.define({combine:function(t){var n=au(t,{render:null,specialChars:Mtt,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==h4&&typeof document<"u"&&document.body){var i=document.body.style;h4=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return h4||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,d4)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,d4)),n}});function Itt(){return[iD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Vhe||(Vhe=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.decorations=mi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(iD)),this.decorations=this.decorator.createDeco(n)}return Se(t,[{key:"makeDecorator",value:function(n){var e=this;return new Att({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Pa(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=Eb(l.text,c,o-l.from);return mi.replace({widget:new Ptt((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=mi.replace({widget:new Ftt(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(iD);n.startState.facet(iD)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var Vhe=null,Ftt=function(t){xt(e,Ep);var n=wt(e);function e(i,r){var o;return Ce(this,e),(o=n.call(this)).options=i,o.code=r,o}return Se(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(Ott[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Ptt=function(t){xt(e,Ep);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).width=i,r}return Se(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),jtt=mi.line({class:"cm-activeLine"}),Rtt=ya.fromClass(function(){function t(n){Ce(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=Re(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(jtt.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return mi.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Hhe(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):Eb(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function $tt(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Gn.mouseSelectionStyle.of(function(e,i){return n(i)?function Ltt(t,n){var e=Hhe(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Hhe(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(Qt.range(y.from+m,y.to+g))}else for(var _=Math.min(u.col,d.col),w=Math.max(u.col,d.col),k=h;k<=f;k++){var D=c.doc.line(k),L=Aj(D.text,_,c.tabSize,!0);if(L<0)p.push(Qt.cursor(D.to));else{var z=Aj(D.text,w,c.tabSize);p.push(Qt.range(D.from+L,D.from+z))}}return p}(t.state,e,a);return l.length?Qt.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var Btt={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},Vtt={style:"cursor: crosshair"};function Htt(){var n=Un(Btt[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=ya.fromClass(function(){function o(s){Ce(this,o),this.view=s,this.isDown=!1}return Se(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Gn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?Vtt:null})]}var Uhe=function(){function t(n,e,i){Ce(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Se(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=Re(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Se(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(f4);if(r.position!=this.position){this.position=r.position;var o,s=Re(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=Re(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=Re(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(f4).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=zhe.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||Gtt,v=this.view.textDirection==rs.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),_=!!a.above;!a.strictSide&&(_?u.top-(d.bottom-d.top)-g.yr.bottom)&&_==r.bottom-u.bottom>u.top-r.top&&(_=!_);var w=(_?u.top-r.top:r.bottom-u.bottom)-f;if(wy&&R.topk&&(k=_?R.top-m-2-f:R.bottom+f+2)}}catch(U){z.e(U)}finally{z.f()}}"absolute"==this.position?(c.style.top=k-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=k+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:k,right:D,bottom:k+m}),c.classList.toggle("cm-tooltip-above",_),c.classList.toggle("cm-tooltip-below",!_),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),ztt=Gn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Gtt={x:0,y:0},rD=Kn.define({enables:[Ghe,ztt]}),oD=Kn.define(),Wtt=function(){function t(n){var e=this;Ce(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Uhe(n,oD,function(i){return e.createHostedView(i)})}return Se(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),qtt=rD.compute([oD],function(t){var n=t.facet(oD).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,ri(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,ri(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:Wtt.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),Ytt=function(){function t(n,e,i,r,o){Ce(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Se(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==rs.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=ur.define(),i=ja.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Tl.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=Re(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(Ktt)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return oD.from(r)}});return[i,ya.define(function(r){return new Ytt(r,t,i,e,n.hoverTime||300)}),qtt]}var Ktt=ur.define(),qhe=Kn.define({combine:function(t){var n,e,i,r=Re(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function Bb(t,n){var e=t.plugin(Yhe),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Yhe=ya.fromClass(function(){function t(n){Ce(this,t),this.input=n.state.facet(Vb),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(qhe);this.top=new sD(n,!0,e.topContainer),this.bottom=new sD(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=Re(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Se(t,[{key:"update",value:function(n){var e=n.state.facet(qhe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new sD(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new sD(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(Vb);if(i!=this.input){var r,o=i.filter(function(w){return w}),s=[],a=[],l=[],c=[],u=Re(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(w){u.e(w)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),efe=function(){function t(n,e){var i=this;Ce(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=Qhe(e.markers(n)),e.initialSpacer&&(this.spacer=new tfe(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Se(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=Qhe(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!Vo.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=Re(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),tfe=function(){function t(n,e,i,r){Ce(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Se(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Khe(),nnt]}function nfe(t){for(var n=9;ni&&(i=s,e.push(rnt.range(s)))}}catch(a){r.e(a)}finally{r.f()}return Vo.of(e)}),snt=0,v4=Se(function t(n,e){Ce(this,t),this.from=n,this.to=e}),pr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ce(this,t),this.id=snt++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Se(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=lu.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();pr.closedBy=new pr({deserialize:function(t){return t.split(" ")}}),pr.openedBy=new pr({deserialize:function(t){return t.split(" ")}}),pr.group=new pr({deserialize:function(t){return t.split(" ")}}),pr.contextHash=new pr({perNode:!0}),pr.lookAhead=new pr({perNode:!0}),pr.mounted=new pr({perNode:!0});var ant=Object.create(null),lu=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Ce(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Se(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(pr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):ant,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=Re(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=Re(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(pr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();lu.none=new lu("",Object.create(null),0,8);var La,lnt=function(){function t(n){Ce(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=lD.get(this)||this.topNode,r=new dD(i);return r.moveTo(n,e),lD.set(this,r._tree),r}},{key:"topNode",get:function(){return new zb(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e1(lD.get(this)||this.topNode,n,e,!1);return lD.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e1(ife.get(this)||this.topNode,n,e,!0);return ife.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|La.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:b4(lu.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(lu.none,i,r,o)})}}],[{key:"build",value:function(n){return function dnt(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new cnt(e,e.length):e,d=i.types,h=0,f=0;function p(k,D,L,z,R){for(var U=u.id,G=u.start,X=u.end,te=u.size,P=f;te<0;){if(u.next(),-1==te)return L.push(a[U]),void z.push(G-k);if(-3==te)return void(h=U);if(-4==te)return void(f=U);throw new RangeError("Unrecognized record size: ".concat(te))}var J,H,rt,le=d[U],E=G-k;if(X-G<=o&&(H=function(rt,$){var ne=u.fork(),ie=0,Me=0,Ye=0,je=ne.end-o,gt={size:0,start:0,skip:0};e:for(var Tt=ne.pos-rt;ne.pos>Tt;){var fn=ne.size;if(ne.id==$&&fn>=0)gt.size=ie,gt.start=Me,gt.skip=Ye,Ye+=4,ie+=4,ne.next();else{var Hn=ne.pos-fn;if(fn<0||Hn=c?4:0,Ei=ne.start;for(ne.next();ne.pos>Hn;){if(ne.size<0){if(-3!=ne.size)break e;Zt+=4}else ne.id>=c&&(Zt+=4);ne.next()}Me=Ei,ie+=fn,Ye+=Zt}}return($<0||ie==rt)&&(gt.size=ie,gt.start=Me,gt.skip=Ye),gt.size>4?gt:void 0}(u.pos-D,R))){for(var O=new Uint16Array(H.size-H.skip),I=u.pos-H.size,q=O.length;u.pos>I;)q=v(H.start,O,q);J=new Ub(O,X-H.start,i),E=H.start-k}else{var V=u.pos-te;u.next();for(var re=[],de=[],Oe=U>=c?U:-1,ye=0,Xe=X;u.pos>V;)Oe>=0&&u.id==Oe&&u.size>=0?(u.end<=Xe-o&&(m(re,de,G,ye,u.end,Xe,Oe,P),ye=re.length,Xe=u.end),u.next()):p(G,V,re,de,Oe);if(Oe>=0&&ye>0&&ye-1&&ye>0){var Le=(rt=le,function($,ne,ie){var Me,Ye,je=0,gt=$.length-1;if(gt>=0&&(Me=$[gt])instanceof $a){if(!gt&&Me.type==rt&&Me.length==ie)return Me;(Ye=Me.prop(pr.lookAhead))&&(je=ne[gt]+Me.length+Ye)}return g(rt,$,ne,ie,je)});J=b4(le,re,de,0,re.length,0,X-G,Le,Le)}else J=g(le,re,de,X-G,P-X)}L.push(J),z.push(E)}function m(k,D,L,z,R,U,G,X){for(var te=[],P=[];k.length>z;)te.push(k.pop()),P.push(D.pop()+L-R);k.push(g(i.types[G],te,P,U-R,X-U)),D.push(R-L)}function g(k,D,L,z){var R=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,U=arguments.length>5?arguments[5]:void 0;if(h){var G=[pr.contextHash,h];U=U?[G].concat(U):[G]}if(R>25){var X=[pr.lookAhead,R];U=U?[X].concat(U):[X]}return new $a(k,D,L,z,U)}function v(k,D,L){var z=u.id,R=u.start,U=u.end,G=u.size;if(u.next(),G>=0&&z4)for(var te=u.pos-(G-4);u.pos>te;)L=v(k,D,L);D[--L]=X,D[--L]=U-k,D[--L]=R-k,D[--L]=z}else-3==G?h=z:-4==G&&(f=z);return L}for(var y=[],_=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,_,-1);var w=null!==(n=t.length)&&void 0!==n?n:y.length?_[0]+y[0].length:0;return new $a(d[t.topID],y.reverse(),_.reverse(),w)}(n)}}]),t}();$a.empty=new $a(lu.none,[],[],0);var cnt=function(){function t(n,e){Ce(this,t),this.buffer=n,this.index=e}return Se(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),Ub=function(){function t(n,e,i){Ce(this,t),this.buffer=n,this.length=e,this.set=i}return Se(t,[{key:"type",get:function(){return lu.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function ofe(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function e1(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(rfe(r,i,h,h+d.length))if(d instanceof Ub){if(o&La.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new y4(new unt(s,d,n,h),null,f)}else if(o&La.IncludeAnonymous||!d.type.isAnonymous||_4(d)){var p=void 0;if(!(o&La.IgnoreMounts)&&d.props&&(p=d.prop(pr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&La.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&La.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&La.IgnoreOverlays)&&(i=this._tree.prop(pr.mounted))&&i.overlay){var o,s=n-this.from,a=Re(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new dD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return e1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return e1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return ofe(this,n)}},{key:"getChild",value:function(n){var r=cD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return cD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return uD(this,n)}}]),t}();function cD(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function uD(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var unt=Se(function t(n,e,i,r){Ce(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),y4=function(){function t(n,e,i){Ce(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&La.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new dD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new $a(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return e1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return e1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return ofe(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=cD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return cD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return uD(this,n)}}]),t}(),dD=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Ce(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof zb)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof zb?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&La.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&La.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&La.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&La.IncludeAnonymous||u instanceof Ub||!u.type.isAnonymous||_4(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return uD(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function _4(t){return t.children.some(function(n){return n instanceof Ub||!n.type.isAnonymous||_4(n)})}var sfe=new WeakMap;function hD(t,n){if(!t.isAnonymous||n instanceof Ub||n.type!=t)return 1;var e=sfe.get(n);if(null==e){e=1;var i,r=Re(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof $a)){e=1;break}e+=hD(t,o)}}catch(s){r.e(s)}finally{r.f()}sfe.set(n,e)}return e}function b4(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;L+=z}if(w==k+1){if(L>d){var R=m[k];p(R.children,R.positions,0,R.children.length,g[k]+_);continue}h.push(m[k])}else h.push(b4(t,m,g,k,w,D,g[w-1]+m[w-1].length-D,null,l));f.push(D+_-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var fD=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Ce(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Se(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=Re(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:lfe.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),pnt=0,lfe=function(){function t(){Ce(this,t),this.instances=[],this.id=pnt++}return Se(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,_){return y==v[_]});var g,v});if(i)return i;var r,o=[],s=new Mp(o,n,e),a=Re(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=cfe(e),u=Re(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=Re(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function cfe(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new mnt(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return dfe.add(n)}var dfe=new pr,mnt=function(){function t(n,e,i,r){Ce(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Se(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new ynt(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var x4,ynt=function(){function t(n,e,i){Ce(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Se(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function(L){return!L.scope||L.scope(s)}));for(var c=r,u=s.prop(dfe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=gnt(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(pr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function(L){return!L.scope||L.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var _=v=w)&&n.nextSibling()););if(!_||w>i)break;(y=_.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,_.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),xn=Mp.define,pD=xn(),Op=xn(),ffe=xn(Op),pfe=xn(Op),Ip=xn(),mD=xn(Ip),w4=xn(Ip),gh=xn(),ug=xn(gh),vh=xn(),yh=xn(),C4=xn(),Gb=xn(C4),gD=xn(),dn={comment:pD,lineComment:xn(pD),blockComment:xn(pD),docComment:xn(pD),name:Op,variableName:xn(Op),typeName:ffe,tagName:xn(ffe),propertyName:pfe,attributeName:xn(pfe),className:xn(Op),labelName:xn(Op),namespace:xn(Op),macroName:xn(Op),literal:Ip,string:mD,docString:xn(mD),character:xn(mD),attributeValue:xn(mD),number:w4,integer:xn(w4),float:xn(w4),bool:xn(Ip),regexp:xn(Ip),escape:xn(Ip),color:xn(Ip),url:xn(Ip),keyword:vh,self:xn(vh),null:xn(vh),atom:xn(vh),unit:xn(vh),modifier:xn(vh),operatorKeyword:xn(vh),controlKeyword:xn(vh),definitionKeyword:xn(vh),moduleKeyword:xn(vh),operator:yh,derefOperator:xn(yh),arithmeticOperator:xn(yh),logicOperator:xn(yh),bitwiseOperator:xn(yh),compareOperator:xn(yh),updateOperator:xn(yh),definitionOperator:xn(yh),typeOperator:xn(yh),controlOperator:xn(yh),punctuation:C4,separator:xn(C4),bracket:Gb,angleBracket:xn(Gb),squareBracket:xn(Gb),paren:xn(Gb),brace:xn(Gb),content:gh,heading:ug,heading1:xn(ug),heading2:xn(ug),heading3:xn(ug),heading4:xn(ug),heading5:xn(ug),heading6:xn(ug),contentSeparator:xn(gh),list:xn(gh),quote:xn(gh),emphasis:xn(gh),strong:xn(gh),link:xn(gh),monospace:xn(gh),strikethrough:xn(gh),inserted:xn(),deleted:xn(),changed:xn(),invalid:xn(),meta:gD,documentMeta:xn(gD),annotation:xn(gD),processingInstruction:xn(gD),definition:Mp.defineModifier(),constant:Mp.defineModifier(),function:Mp.defineModifier(),standard:Mp.defineModifier(),local:Mp.defineModifier(),special:Mp.defineModifier()};hfe([{tag:dn.link,class:"tok-link"},{tag:dn.heading,class:"tok-heading"},{tag:dn.emphasis,class:"tok-emphasis"},{tag:dn.strong,class:"tok-strong"},{tag:dn.keyword,class:"tok-keyword"},{tag:dn.atom,class:"tok-atom"},{tag:dn.bool,class:"tok-bool"},{tag:dn.url,class:"tok-url"},{tag:dn.labelName,class:"tok-labelName"},{tag:dn.inserted,class:"tok-inserted"},{tag:dn.deleted,class:"tok-deleted"},{tag:dn.literal,class:"tok-literal"},{tag:dn.string,class:"tok-string"},{tag:dn.number,class:"tok-number"},{tag:[dn.regexp,dn.escape,dn.special(dn.string)],class:"tok-string2"},{tag:dn.variableName,class:"tok-variableName"},{tag:dn.local(dn.variableName),class:"tok-variableName tok-local"},{tag:dn.definition(dn.variableName),class:"tok-variableName tok-definition"},{tag:dn.special(dn.variableName),class:"tok-variableName2"},{tag:dn.definition(dn.propertyName),class:"tok-propertyName tok-definition"},{tag:dn.typeName,class:"tok-typeName"},{tag:dn.namespace,class:"tok-namespace"},{tag:dn.className,class:"tok-className"},{tag:dn.macroName,class:"tok-macroName"},{tag:dn.propertyName,class:"tok-propertyName"},{tag:dn.operator,class:"tok-operator"},{tag:dn.comment,class:"tok-comment"},{tag:dn.meta,class:"tok-meta"},{tag:dn.invalid,class:"tok-invalid"},{tag:dn.punctuation,class:"tok-punctuation"}]);var t1=new pr,_nt=new pr,sd=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Ce(this,t),this.data=n,this.name=r,Eo.prototype.hasOwnProperty("tree")||Object.defineProperty(Eo.prototype,"tree",{get:function(){return sl(this)}}),this.parser=e,this.extension=[Np.of(this),Eo.languageData.of(function(o,s,a){var l=mfe(o,s,a),c=l.type.prop(t1);if(!c)return[];var u=o.facet(c),d=l.type.prop(_nt);if(d){var h,f=l.resolve(s-l.from,a),p=Re(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Se(t,[{key:"isActiveAt",value:function(n,e){return mfe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(t1)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(Np);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(t1)!=e.data){var l=s.prop(pr.mounted);if(l){if(l.tree.prop(t1)==e.data){if(l.overlay){var c,u=Re(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),Wb=null,wnt=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;Ce(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Se(t,[{key:"startParse",value:function(){return this.parser.startParse(new xnt(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=$a.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(fD.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=Wb;Wb=this;try{return n()}finally{Wb=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=gfe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=fD.applyChanges(i,l),r=$a.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=Re(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=gfe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],$a.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){xt(r,afe);var i=wt(r);function r(){return Ce(this,r),i.apply(this,arguments)}return Se(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=Wb;if(u){var d,h=Re(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new $a(lu.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return Wb}}]),t}();function gfe(t,n,e){return fD.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var S4=function(){function t(n){Ce(this,t),this.context=n,this.tree=n.tree}return Se(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=wnt.create(n.facet(Np).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();sd.state=ja.define({create:S4.init,update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(sd.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(Np)!=n.state.facet(Np)?S4.init(n.state):t.apply(n)}});var vfe=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(vfe=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var k4=typeof navigator<"u"&&null!==(x4=navigator.scheduling)&&void 0!==x4&&x4.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,Cnt=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Se(t,[{key:"update",value:function(n){var e=this.view.state.field(sd.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(sd.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=vfe(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return k4&&k4()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:sd.setState.of(new S4(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return Tc(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),Np=Kn.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[sd.state,Cnt,Gn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),Snt=Se(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ce(this,t),this.language=n,this.support=e,this.extension=[n,e]}),knt=Kn.define(),vD=Kn.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function n1(t){var n=t.facet(vD);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function qb(t,n){var e="",i=t.tabSize,r=t.facet(vD)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};Ce(this,t),this.state=n,this.options=e,this.unit=n1(n)}return Se(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return Eb(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),yfe=new pr;function Dnt(t){var n=t.type.prop(yfe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(pr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),_=v.lastChild;if(!y)return null;for(var w=g.options.simulateBreak,k=g.state.doc.lineAt(y.from),D=null==w||w<=k.from?k.to:Math.min(k.to,w),L=y.to;;){var z=v.childAfter(L);if(!z||z==_)return null;if(!z.type.isSkipped)return z.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var Mnt=Kn.define(),xfe=new pr;function _D(t,n,e){var i,r=Re(t.facet(Mnt));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=sl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function wfe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var bD=ur.define({map:wfe}),Yb=ur.define({map:wfe});function Cfe(t){var n,e=[],i=Re(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var dg=ja.define({create:function(){return mi.none},update:function(t,n){t=t.map(n.changes);var e,i=Re(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(bD)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[Efe.range(a.value.from,a.value.to)]}):a.is(Yb)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Gn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function Sfe(t,n){return t.field(dg,!1)?n:n.concat(ur.appendConfig.of(Tfe()))}function kfe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Gn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var Ont=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=Re(Cfe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=_D(t.state,i.from,i.to);if(r)return t.dispatch({effects:Sfe(t.state,[bD.of(r),kfe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(dg,!1))return!1;var n,e=[],i=Re(Cfe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=xD(t.state,r.from,r.to);o&&e.push(Yb.of(o),kfe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},Nnt),t),e=new T4(n,!0),i=new T4(n,!1),r=ya.fromClass(function(){function s(a){Ce(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Se(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(Np)!=a.state.facet(Np)||a.startState.field(dg,!1)!=a.state.field(dg,!1)||sl(a.startState)!=sl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new ag,u=Re(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=xD(a.state,d.from,d.to)?i:_D(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,Jhe({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||Vo.empty},initialSpacer:function(){return new T4(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=xD(s.state,a.from,a.to);if(c)return s.dispatch({effects:Yb.of(c)}),!0;var u=_D(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:bD.of(u)}),!0)}})}),Tfe()]}var Pnt=Gn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),E4=function(){function t(n,e){var i;function r(a){var l=Dp.newName();return(i||(i=Object.create(null)))["."+l]=a,l}Ce(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof sd?function(a){return a.prop(t1)==s.data}:s?function(a){return a==s}:void 0,this.style=hfe(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new Dp(i):null,this.themeType=e.themeType}return Se(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),A4=Kn.define(),Afe=Kn.define({combine:function(t){return t.length?[t[0]]:null}});function M4(t){var n=t.facet(A4);return n.length?n:t.facet(Afe)}function Mfe(t,n){var e,i=[Rnt];return t instanceof E4&&(t.module&&i.push(Gn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?Afe.of(t):e?A4.computeN([Gn.darkTheme],function(r){return r.facet(Gn.darkTheme)==("dark"==e)?[t]:[]}):A4.of(t)),i}var jnt=function(){function t(n){Ce(this,t),this.markCache=Object.create(null),this.tree=sl(n.state),this.decorations=this.buildDeco(n,M4(n.state))}return Se(t,[{key:"update",value:function(n){var e=sl(n.state),i=M4(n.state),r=i!=M4(n.startState);e.length0&&_h(n.state,s.head-1,1,r)||r.afterCursor&&(_h(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),znt]}var Wnt=new pr;function O4(t,n,e){var i=t.prop(n<0?pr.openedBy:pr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function I4(t){var n=t.type.prop(Wnt);return n?n(t.node):t}function _h(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=sl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=O4(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return qnt(0,0,e,l,u,c,o)}}return function Ynt(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function qnt(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(Nfe.push(t),console.warn(n))}function Znt(t,n){var e,i=null,r=Re(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||dn[o];s?"function"==typeof s?i?i=s(i):F4(o,"Modifier ".concat(o," used at start of tag")):i?F4(o,"Tag ".concat(o," used as modifier")):i=s:F4(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=lu.define({id:Ife.length,name:a,props:[ufe(Hl({},a,i))]});return Ife.push(l),l.id}function P4(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var eit=P4(function rit(t,n){var e,r=[],o=-1,s=Re(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=j4(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var te,P=[],W=Re(r);try{for(W.s();!(te=W.n()).done;){var J=te.value,H=J.line,le=J.comment;if(le>=0){var O=H.from+le,I=O+J.token.length;" "==H.text[I-H.from]&&I++,P.push({from:O,to:I})}}}catch(q){W.e(q)}finally{W.f()}return{changes:P}}return null},0),tit=P4(jfe,0),nit=P4(function(t,n){return jfe(t,n,function(e){var i,r=[],o=Re(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function j4(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function jfe(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return j4(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function iit(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Gn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?$4:"historyRedo"==n.inputType?CD:null;return!!i&&(n.preventDefault(),i(e))}})]}function wD(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(L4,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var $4=wD(0,!1),CD=wD(1,!1),lit=wD(0,!0),cit=wD(1,!0);function Lfe(t){return function(n){var e=n.field(L4,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var uit=Lfe(0),dit=Lfe(1),mf=function(){function t(n,e,i,r,o){Ce(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Se(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&id.fromJSON(n.changes),[],n.mapped&&U0.fromJSON(n.mapped),n.startSelection&&Qt.fromJSON(n.startSelection),n.selectionsAfter.map(Qt.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=cu,o=Re(n.startState.facet(sit));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,cu)}},{key:"selection",value:function(n){return new t(void 0,cu,void 0,void 0,n)}}]),t}();function SD(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function $fe(t,n){return t.length?n.length?t.concat(n):t:n}var cu=[];function Bfe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),SD(t,t.length-1,1e9,e.setSelAfter(i)))}return[mf.selection([n])]}function hit(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function B4(t,n){if(!t.length)return t;for(var e=t.length,i=cu;e;){var r=fit(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[mf.selection(i)]:cu}function fit(t,n,e){var i=$fe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):cu,e);if(!t.changes)return mf.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new mf(r,ur.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var pit=/^(input\.type|delete)($|\.)/,Xb=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;Ce(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Se(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||pit.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?SD(s,s.length-1,r.minDepth,new mf(n.changes.compose(a.changes),$fe(n.effects,a.effects),a.mapped,a.startSelection,cu)):SD(s,s.length,r.minDepth,n),cu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:cu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function DD(t,n,e){for(var i=sl(t).resolveInner(n.head),r=e?pr.closedBy:pr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;git(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?_h(t,i.from,1):_h(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,Qt.cursor(l,e?-1:1)}function Gfe(t,n){return ad(t,function(e){if(!e.empty)return kD(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var Wfe=function(t){return Gfe(t,!1)},qfe=function(t){return Gfe(t,!0)};function Yfe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=ED(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=ED(t,s,!1),a=ED(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:Qt.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Gn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ED(t,n,e){if(t instanceof Gn){var i,r=Re(t.state.facet(Gn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var dpe=function(t,n){return TD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function gpe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=Re(AD(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=Re(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(Qt.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=Re(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(Qt.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:Qt.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function vpe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=Re(AD(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var vit=ype(!1),yit=ype(!0);function ype(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=sl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(pr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new yD(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=D4(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:Qt.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var _pe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(U4(n,function(i,r){r.push({from:i.from,insert:n.facet(vD)})}),{userEvent:"input.indent"})),!0)},bpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(U4(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=Eb(o,n.tabSize),a=0,l=qb(n,Math.max(0,s-n1(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:mpe}].concat(_it.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),xit=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return ad(t,function(n){return DD(t.state,n,!al(t))})},shift:function(t){return uu(t,function(n){return DD(t.state,n,!al(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return ad(t,function(n){return DD(t.state,n,al(t))})},shift:function(t){return uu(t,function(n){return DD(t.state,n,al(t))})}},{key:"Alt-ArrowUp",run:function(t){return gpe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return vpe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return gpe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return vpe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=Qt.create([i.main]):i.main.empty||(r=Qt.create([Qt.cursor(i.main.head)])),!!r&&(e(bh(n,r)),!0)}},{key:"Mod-Enter",run:yit},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=AD(n).map(function(r){return Qt.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:Qt.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=i1(n.selection,function(r){for(var o,s=sl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return Qt.range(s.to,s.from)});return e(bh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:bpe},{key:"Mod-]",run:_pe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new yD(n,{overrideIndentation:function(s){return i[s]??-1}}),o=U4(n,function(s,a,l){var c=D4(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=qb(n,c);(u!=d||l.from0?o--:s0&&_h(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;Ce(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(wpe(a))}:wpe,this.query=this.normalize(e)}return Se(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Pa(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=fj(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Sc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(Ce(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=Cpe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new Dpe(n,e,i,r,o);this.re=new RegExp(e,z4+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=MD(n,r),this.getLine(this.curLineStart)}return Se(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=MD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return G4.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=MD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=kpe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function MD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function W4(t){var n=Ao("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Un(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:OD.of(!1),selection:Qt.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Ao("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:OD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Ao("label",t.state.phrase("Go to line"),": ",n)," ",Ao("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(Spe.prototype[Symbol.iterator]=Dpe.prototype[Symbol.iterator]=function(){return this});var OD=ur.define(),Tpe=ja.define({create:function(){return!0},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(OD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Vb.from(t,function(n){return n?W4:null})}}),Cit=Gn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Sit={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Epe=Kn.define({combine:function(t){return au(t,Sit,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),kit=mi.mark({class:"cm-selectionMatch"}),Dit=mi.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Ape(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==is.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==is.Word)}var Tit=ya.fromClass(function(){function t(n){Ce(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(Epe),i=n.state,r=i.selection;if(r.ranges.length>1)return mi.none;var o,y,_,w,k,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return mi.none;var l=i.wordAt(s.head);if(!l)return mi.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return mi.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!Ape(a=i.charCategorizer(s.head),i,s.from,s.to)||(k=s.to,(y=a)((_=i).sliceDoc(w=s.from,w+1))!=is.Word||y(_.sliceDoc(k-1,k))!=is.Word))return mi.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return mi.none}var u,d=[],h=Re(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new r1(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||Ape(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Dit.range(g,v)):(g>=s.to||v<=s.from)&&d.push(kit.range(g,v)),d.length>e.maxMatches))return mi.none}}catch(y){h.e(y)}finally{h.f()}return mi.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),Eit=Gn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),ID=Kn.define({combine:function(t){return au(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new Lit(n)}})}});function Ait(t){return t?[ID.of(t),eR]:eR}var Mpe=function(){function t(n){Ce(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,z4),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Se(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new Oit(this):new Mit(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Eo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?s1(this,r,e,i):o1(this,r,e,i)}}]),t}(),Ope=Se(function t(n){Ce(this,t),this.spec=n});function o1(t,n,e,i){return new r1(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=o1(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function s1(t,n,e,i){return new Spe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(ND(a.input,a.index))!=is.Word||r(FD(a.input,a.index))!=is.Word)&&(r(FD(a.input,a.index+a[0].length))!=is.Word||r(ND(a.input,a.index+a[0].length))!=is.Word)}):void 0},e,i);var r}function ND(t,n){return t.slice(Dl(t,n,!1),n)}function FD(t,n){return t.slice(n,Dl(t,n))}var Oit=function(t){xt(e,Ope);var n=wt(e);function e(){return Ce(this,e),n.apply(this,arguments)}return Se(e,[{key:"nextMatch",value:function(i,r,o){var s=s1(this.spec,i,o,i.doc.length).next();return s.done&&(s=s1(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=s1(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=s1(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),Jb=ur.define(),q4=ur.define(),Pp=ja.define({create:function(t){return new Y4(J4(t).create(),null)},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(Jb)?t=new Y4(r.value.create(),t.panel):r.is(q4)&&(t=new Y4(t.query,r.value?X4:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Vb.from(t,function(n){return n.panel})}}),Y4=Se(function t(n,e){Ce(this,t),this.query=n,this.panel=e}),Iit=mi.mark({class:"cm-searchMatch"}),Nit=mi.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Fit=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Pp))}return Se(t,[{key:"update",value:function(n){var e=n.state.field(Pp);(e!=n.startState.field(Pp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return mi.none;for(var i=this.view,r=new ag,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Nit:Iit)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function Kb(t){return function(n){var e=n.state.field(Pp,!1);return e&&e.query.spec.valid?t(n,e):K4(n)}}var PD=Kb(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:Z4(t,r),userEvent:"select.search"}),!0)}),jD=Kb(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:Z4(t,o),userEvent:"select.search"}),!0)}),Pit=Kb(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:Qt.create(e.map(function(i){return Qt.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),Ipe=Kb(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Gn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(Z4(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),jit=Kb(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Gn.announce.of(r),userEvent:"input.replace.all"}),!0});function X4(t){return t.state.facet(ID).createPanel(t)}function J4(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(ID);return new Mpe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var K4=function(t){var n=t.state.field(Pp,!1);if(n&&n.panel){var e=Bb(t,X4);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=J4(t.state,n.query.spec);r.valid&&t.dispatch({effects:Jb.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[q4.of(!0),n?Jb.of(J4(t.state,n.query.spec)):ur.appendConfig.of(eR)]});return!0},Q4=function(t){var n=t.state.field(Pp,!1);if(!n||!n.panel)return!1;var e=Bb(t,X4);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:q4.of(!1)}),!0},Rit=[{key:"Mod-f",run:K4,scope:"editor search-panel"},{key:"F3",run:PD,shift:jD,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:PD,shift:jD,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Q4,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new r1(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(Qt.range(c.value.from,c.value.to))}return e(n.update({selection:Qt.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=Bb(t,W4);if(!n){var e=[OD.of(!0)];null==t.state.field(Tpe,!1)&&e.push(ur.appendConfig.of([Tpe,Cit])),t.dispatch({effects:e}),n=Bb(t,W4)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=Qt.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||Qt.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(w){return w.from==y.value.from}))return m=y,p=v,"continue";if(h){var _=s.wordAt(y.value.from);if(!_||_.from!=y.value.from||_.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new r1(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new r1(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===mn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(Qt.range(o.from,o.to),!1),effects:Gn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],Lit=function(){function t(n){var e=this;Ce(this,t),this.view=n;var i=this.query=n.state.field(Pp).query.spec;function r(o,s,a){return Ao("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Ao("input",{value:i.search,placeholder:Ec(n,"Find"),"aria-label":Ec(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ao("input",{value:i.replace,placeholder:Ec(n,"Replace"),"aria-label":Ec(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ao("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Ao("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Ao("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Ao("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return PD(n)},[Ec(n,"next")]),r("prev",function(){return jD(n)},[Ec(n,"previous")]),r("select",function(){return Pit(n)},[Ec(n,"all")]),Ao("label",null,[this.caseField,Ec(n,"match case")]),Ao("label",null,[this.reField,Ec(n,"regexp")]),Ao("label",null,[this.wordField,Ec(n,"by word")])].concat(ri(n.state.readOnly?[]:[Ao("br"),this.replaceField,r("replace",function(){return Ipe(n)},[Ec(n,"replace")]),r("replaceAll",function(){return jit(n)},[Ec(n,"replace all")])]),[Ao("button",{name:"close",onclick:function(){return Q4(n)},"aria-label":Ec(n,"close"),type:"button"},["\xd7"])]))}return Se(t,[{key:"commit",value:function(){var n=new Mpe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:Jb.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return Mhe(Ahe(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?jD:PD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),Ipe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=Re(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=Re(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(Jb)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(ID).top}}]),t}();function Ec(t,n){return t.state.phrase(n)}var RD=/[\s\.,:;?!]/;function Z4(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!RD.test(l[c+1])&&RD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!RD.test(l[u-1])&&RD.test(l[u])){l=l.slice(0,u);break}return Gn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var $it=Gn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),eR=[Pp,z0.lowest(Fit),$it],Npe=function(){function t(n,e,i){Ce(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Se(t,[{key:"tokenBefore",value:function(n){for(var e=sl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(jpe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function Fpe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var Ppe=Se(function t(n,e,i){Ce(this,t),this.completion=n,this.source=e,this.match=i});function jp(t){return t.selection.main.head}function jpe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function Rpe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:Qt.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:Qt.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Lpe=new WeakMap;function Vit(t){if(!Array.isArray(t))return t;var n=Lpe.get(t);return n||Lpe.set(t,n=function Bit(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Un(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=Re(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&R<=57||R>=97&&R<=122?2:R>=65&&R<=90?1:0:(U=fj(R))!=U.toLowerCase()?1:U!=U.toUpperCase()?2:0;(!D||1==G&&w||0==z&&0!=G)&&(e[m]==R||i[m]==R&&(g=!0)?s[m++]=D:s.length&&(k=!1)),z=G,D+=Sc(R)}return m==c&&0==s[0]&&k?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,_]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,_]:m==c?this.result((g?-200:0)-100-700+(k?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=Re(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Sc(Pa(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),xh=Kn.define({combine:function(t){return au(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function $pe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var Uit=function(){function t(n,e){var i=this;Ce(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(xh);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,ri(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var w=p.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(m.slice(y,_))),w.className="cm-completionMatchedText",g=_}return g=this.range.to)&&(this.range=$pe(i.options.length,i.selected,this.view.state.facet(xh).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return Tc(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,Vpe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=Re(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,_=v.result.getMatch,w=Re(v.result.options);try{for(w.s();!(y=w.n()).done;){var k=y.value,D=[1e9-m++];if(_){var L,z=Re(_(k));try{for(z.s();!(L=z.n()).done;)D.push(L.value)}catch(I){z.e(I)}finally{z.f()}}p.push(new Ppe(k,v,D))}}catch(I){w.e(I)}finally{w.f()}}else{var U,G=new Hit(h.sliceDoc(v.from,v.to)),X=void 0,te=Re(v.result.options);try{for(te.s();!(U=te.n()).done;){var P=U.value;(X=G.match(P.label))&&(null!=P.boost&&(X[0]+=P.boost),p.push(new Ppe(P,v,X)))}}catch(I){te.e(I)}finally{te.f()}}}}catch(I){g.e(I)}finally{g.f()}var W,J=[],H=null,le=h.facet(xh).compareCompletions,E=Re(p.sort(function(I,q){return q.match[0]-I.match[0]||le(I.completion,q.completion)}));try{for(E.s();!(W=E.n()).done;){var O=W.value;!H||H.label!=O.completion.label||H.detail!=O.completion.detail||null!=H.type&&null!=O.completion.type&&H.type!=O.completion.type||H.apply!=O.completion.apply?J.push(O):Bpe(O.completion)>Bpe(H)&&(J[J.length-1]=O),H=O.completion}}catch(I){E.e(I)}finally{E.f()}return J}(n,e);if(!s.length)return null;var a,l=e.facet(xh).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var qit=[];function tR(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var hg=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;Ce(this,t),this.source=n,this.state=e,this.explicitPos=i}return Se(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=tR(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(nR))r=new t(r.source,1,a.value?jp(n.state):-1);else if(a.is(LD))r=new t(r.source,0);else if(a.is(Hpe)){var l,c=Re(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(jp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),Yit=function(t){xt(e,hg);var n=wt(e);function e(i,r,o,s,a){var l;return Ce(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Se(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=jp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&jp(i.startState)==this.from)return new hg(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):jpe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new Npe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:jp(i.state)):new hg(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new hg(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),nR=ur.define(),LD=ur.define(),Hpe=ur.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Upe=ur.define(),du=ja.define({create:function(){return Git.start()},update:function(t,n){return t.update(n)},provide:function(t){return[rD.from(t,function(n){return n.tooltip}),Gn.contentAttributes.from(t,function(n){return n.attrs})]}});function $D(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(du,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function Jtt(t,n){var e=t.plugin(Ghe);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Upe.of(a)}),!0}}var Xit=Se(function t(n,e){Ce(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),Jit=ya.fromClass(function(){function t(n){Ce(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=Re(n.state.field(du).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Se(t,[{key:"update",value:function(n){var e=this,i=n.state.field(du);if(n.selectionSet||n.docChanged||n.startState.field(du)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!tR(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=Re(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){Tc(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,ri(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=Re(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==tR(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=Re(this.view.state.field(du).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=jp(i),o=new Npe(i,r,n.explicitPos==r),s=new Xit(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:LD.of(null)}),Tc(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(xh),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new Yit(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:jp(l.updates.length?l.updates[0].startState:e.view.state)),d=Re(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(du).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new hg(l.active.source,0),g=Re(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),BD={brackets:["(","[","{","'",'"'],before:")]}:;>"},fg=ur.define({map:function(t,n){return n.mapPos(t,-1,Tl.TrackAfter)??void 0}}),iR=ur.define({map:function(t,n){return n.mapPos(t)}}),rR=new(function(t){xt(e,sg);var n=wt(e);function e(){return Ce(this,e),n.apply(this,arguments)}return Se(e)}());rR.startSide=1,rR.endSide=-1;var zpe=ja.define({create:function(){return Vo.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=Vo.empty)}t=t.map(n.changes);var r,o=Re(n.effects);try{var s=function(){var a=r.value;a.is(fg)?t=t.update({add:[rR.range(a.value,a.value+1)]}):a.is(iR)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Gpe(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return fj(t<128?t:t+1)}function Wpe(t,n){return t.languageDataAt("closeBrackets",n)[0]||BD}var Qit="object"==(typeof navigator>"u"?"undefined":mn(navigator))&&/Android\b/.test(navigator.userAgent),Zit=Gn.inputHandler.of(function(t,n,e,i){if((Qit?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Sc(Pa(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=Wpe(s,s.selection.main.head),u=c.brackets||BD.brackets,d=Re(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Gpe(Pa(h,0));if(a==h)return f==h?irt(s,h,u.indexOf(h+h+h)>-1):trt(s,h,f,c.before||BD.before);if(a==f&&qpe(s,s.selection.main.from))return nrt(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),ert=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Wpe(n,n.selection.main.head).brackets||BD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Sc(Pa(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=Re(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&VD(n.doc,s.head)==Gpe(Pa(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:Qt.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function qpe(t,n){var e=!1;return t.field(zpe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function VD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Sc(Pa(e,0)))}function trt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:fg.of(s.to+n.length),range:Qt.range(s.anchor+n.length,s.head+n.length)};var a=VD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:fg.of(s.head+n.length),range:Qt.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function nrt(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&VD(t.doc,o.head)==e?Qt.cursor(o.head+e.length):i=o});return i?null:t.update({selection:Qt.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return iR.of(o.from)})})}function irt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:fg.of(o.to+n.length),range:Qt.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=VD(t.doc,s);if(a==n){if(Ype(t,s))return{changes:{insert:n+n,from:s},effects:fg.of(s+n.length),range:Qt.cursor(s+n.length)};if(qpe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:Qt.cursor(s+n.length*(l?3:1)),effects:iR.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Ype(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:fg.of(s+n.length),range:Qt.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=is.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=is.Word&&!function(u,d,h){for(var f=sl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:fg.of(s+n.length),range:Qt.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Ype(t,n){var e=sl(t).resolveInner(n+1);return e.parent&&e.from==n}function rrt(){return[du,xh.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Jit,ort,Kit]}var Xpe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(du,!1)&&(t.dispatch({effects:nR.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(du,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:LD.of(null)}),0))}},{key:"ArrowDown",run:$D(!0)},{key:"ArrowUp",run:$D(!1)},{key:"PageDown",run:$D(!0,"page")},{key:"PageUp",run:$D(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(du,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||(Rpe(t,n.open.options[n.open.selected]),0))}}],ort=z0.highest(tD.computeN([xh],function(t){return t.facet(xh).defaultKeymap?[Xpe]:[]})),srt=Se(function t(n,e,i){Ce(this,t),this.from=n,this.to=e,this.diagnostic=i}),Qb=function(){function t(n,e,i){Ce(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Se(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(pg).markerFilter;o&&(r=o(r));var s=mi.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?mi.widget({widget:new drt(a),diagnostic:a}).range(a.from):mi.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,a1(s))}}]),t}();function a1(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new srt(r,o,a.diagnostic),!1}),i}function Jpe(t,n){return!(!t.effects.some(function(e){return e.is(HD)})&&!t.changes.touchesRange(n.pos))}function Kpe(t,n){return t.field(Ac,!1)?n:n.concat(ur.appendConfig.of([Ac,Gn.decorations.compute([Ac],function(e){var i=e.field(Ac),r=i.selected;return r&&i.panel&&r.from!=r.to?mi.set([art.range(r.from,r.to)]):mi.none}),Xtt(lrt,{hideOn:Jpe}),hrt]))}var HD=ur.define(),oR=ur.define(),Qpe=ur.define(),Ac=ja.define({create:function(){return new Qb(mi.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=a1(e,t.selected.diagnostic,r)||a1(e,null,r)}t=new Qb(e,t.panel,i)}var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(HD)?t=Qb.init(a.value,t.panel,n.state):a.is(oR)?t=new Qb(t.diagnostics,a.value?rme.open:null,t.selected):a.is(Qpe)&&(t=new Qb(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[Vb.from(t,function(n){return n.panel}),Gn.decorations.from(t,function(n){return n.diagnostics})]}}),art=mi.mark({class:"cm-lintRange cm-lintRange-active"});function lrt(t,n,e){var i=t.state.field(Ac).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=tme(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=Re(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=a1(this.view.state.field(Ac).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Qpe.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function UD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function sR(t){return UD(''),'width="6" height="3"')}var hrt=Gn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:sR("#d11")},".cm-lintRange-warning":{backgroundImage:sR("orange")},".cm-lintRange-info":{backgroundImage:sR("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),frt=function(t){xt(e,mh);var n=wt(e);function e(i){var r;return Ce(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Se(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(zD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:aR.of({pos:f.from,above:!1,create:function(){return{dom:Zpe(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var _=m.getBoundingClientRect();if(!(y.clientX>_.left-10&&y.clientX<_.right+10&&y.clientY>_.top-10&&y.clientY<_.bottom+10)){for(var w=y.target;w;w=w.parentNode)if(1==w.nodeType&&w.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",v),p.state.field(sme)&&p.dispatch({effects:aR.of(null)})}})}var d=a.state.facet(zD).hoverTime,h=setTimeout(u,d);l.onmouseout=function(){clearTimeout(h),l.onmouseout=l.onmousemove=null},l.onmousemove=function(){clearTimeout(h),h=setTimeout(u,d)}}(i,r,o)}),r}}]),e}();function prt(t,n){var e,i=Object.create(null),r=Re(n);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t.lineAt(o.from);(i[s.from]||(i[s.from]=[])).push(o)}}catch(c){r.e(c)}finally{r.f()}var a=[];for(var l in i)a.push(new frt(i[l]).range(+l));return Vo.of(a,!0)}var mrt=Jhe({class:"cm-gutter-lint",markers:function(t){return t.state.field(ome)}}),ome=ja.define({create:function(){return Vo.empty},update:function(t,n){t=t.map(n.changes);var e,i=n.state.facet(zD).markerFilter,r=Re(n.effects);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.is(HD)){var s=o.value;i&&(s=i(s||[])),t=prt(n.state.doc,s.slice(0))}}}catch(a){r.e(a)}finally{r.f()}return t}}),aR=ur.define(),sme=ja.define({create:function(){return null},update:function(t,n){return t&&n.docChanged&&(t=Jpe(n,t)?null:Object.assign(Object.assign({},t),{pos:n.changes.mapPos(t.pos)})),n.effects.reduce(function(e,i){return i.is(aR)?i.value:e},t)},provide:function(t){return rD.from(t)}}),grt=Gn.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:UD('')},".cm-lint-marker-warning":{content:UD('')},".cm-lint-marker-error":{content:UD('')}}),zD=Kn.define({combine:function(t){return au(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function vrt(){return[zD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ome,mrt,grt,sme]}var ame,yrt=function(){return[int(),ont,Itt(),ait(),Fnt(),Stt(),[$b,Ett],Eo.allowMultipleSelections.of(!0),Eo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=Re(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=D4(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=qb(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),Mfe(Lnt,{fallback:!0}),Gnt(),[Zit,zpe],rrt(),$tt(),Htt(),Rtt,(n=[Eit,Tit],n),tD.of([].concat(ert,ri(xit),Rit,mit,Ont,Xpe,crt))];var n}(),_rt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;Ce(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Se(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new brt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new lme(r,r.start):null,0,null)}}]),t}(),lme=Se(function t(n,e){Ce(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(ame||(ame={}));var brt=function(){function t(n){Ce(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Se(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),xrt=function(){function t(n,e,i){Ce(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Se(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),GD=Se(function t(){Ce(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),cme=new GD,wrt=function(){function t(n,e){Ce(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=cme,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Se(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=cme,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=Re(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),WD=function(){function t(n,e){Ce(this,t),this.data=n,this.id=e}return Se(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function qD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}WD.prototype.contextual=WD.prototype.fallback=WD.prototype.extend=!1;var ume,ld=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),lR=null;function dme(t,n,e){var i=t.cursor(La.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(ume||(ume={}));var hme,Crt=function(){function t(n,e){Ce(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Se(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?dme(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?dme(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof $a){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),Srt=function(){function t(n,e){Ce(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new GD})}return Se(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new GD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new GD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Crt(i,n.nodeSet):null}return Se(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,_=null,w=Re(v);try{for(w.s();!(y=w.n()).done;){var k=y.value,D=k.p.stoppedAt;(k.pos==k.p.stream.end||null!=D&&k.pos>D)&&k.p.parser.stateFlag(k.state,2)&&(!_||_.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(pr.contextHash)||0)==l))return n.useNode(c,u),ld&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof $a)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof $a&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),ld&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(_):i.push(_)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return fme(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),ld&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(ld&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)ld&&(h=this.stackID(d)+" -> ");var p,m=Re(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;ld&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),ld&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),fme(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],_=-v;_>0;_--)d(p[g++],m,y);g++}}}}catch(D){f.e(D)}finally{f.f()}}o.nodeSet=new lnt(s.map(function(D,L){return lu.define({name:L>=o.minRepeatTerm?void 0:D,id:L,props:c[L],top:l.indexOf(L)>-1,error:0==L,skipped:i.skippedNodes&&i.skippedNodes.indexOf(L)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,ri(i.propSources))),o.strict=!1,o.bufferLength=1024;var w=qD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var k=0;k2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=gf(this.data,o+2)}if(r==gf(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=gf(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=pme(this.data,this.tokenPrecTable,r);return o<0||pme(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=Re(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&yme(t);return{c:function(){n=ve("div"),r&&r.c(),e=tt(),o&&o.c(),i=tt(),s&&s.c(),j(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){Pe(a,n,l),r&&r.m(n,null),ue(n,e),o&&o.m(n,null),ue(n,i),s&&s.m(n,null)},p:function(a,l){var c=Un(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=gme(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=vme(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=yme(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:jt,o:jt,d:function(a){a&&Fe(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Nrt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Frt=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Nrt,Irt,ps,{editorState:3},Ort),r}return Se(e)}(),cR=E4.define([{tag:dn.propertyName,color:"var(--jse-key-color)"},{tag:dn.number,color:"var(--jse-value-color-number)"},{tag:dn.bool,color:"var(--jse-value-color-boolean)"},{tag:dn.string,color:"var(--jse-value-color-string)"},{tag:dn.keyword,color:"var(--jse-value-color-null)"}]),Prt=Mfe(cR),jrt=cR.style;function uR(t){return t.doc.lineAt(t.selection.main.head)}function _me(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=_me(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=_me(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=uR(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=Re(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,_=g.from;_<=y;){var w=f.doc.lineAt(_);p.has(w)||p.add(w),_=w.to+1}}catch(k){m.e(k)}finally{m.f()}return p}(this.view,n),o=new Rrt(r,n,this.unitWidth),s=n.facet(YD).hideFirstIndent,a=Re(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=$rt(c,this.unitWidth,s);i.add(l.from,l.from,mi.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function Vrt(){return[YD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lrt,ya.fromClass(Brt,{decorations:function(n){return n.decorations}})]}function Hrt(t){di(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function dR(t){var n=t.slice();return n[93]=0===n[10].length,n}function bme(t){var n,e;return n=new uet({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Urt(t){var n;return{c:function(){(n=ve("div")).innerHTML='
    \n
    loading...
    ',j(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function zrt(t){var n,e,i,r,o,s=t[92]&&xme(t),a=!t[92]&&wme(t);return{c:function(){n=ve("div"),e=tt(),s&&s.c(),i=tt(),a&&a.c(),r=br(),j(n,"class","jse-contents svelte-1yqirn0"),At(n,"jse-hidden",t[92])},m:function(l,c){Pe(l,n,c),t[50](n),Pe(l,e,c),s&&s.m(l,c),Pe(l,i,c),a&&a.m(l,c),Pe(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&At(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&K(s,1)):((s=xme(l)).c(),K(s,1),s.m(i.parentNode,i)):s&&(Rt(),ae(s,1,1,function(){s=null}),Lt()),l[92]?a&&(Rt(),ae(a,1,1,function(){a=null}),Lt()):a?(a.p(l,c),1152&c[0]&&K(a,1)):((a=wme(l)).c(),K(a,1),a.m(r.parentNode,r))},i:function(l){o||(K(s),K(a),o=!0)},o:function(l){ae(s),ae(a),o=!1},d:function(l){l&&Fe(n),t[50](null),l&&Fe(e),s&&s.d(l),l&&Fe(i),a&&a.d(l),l&&Fe(r)}}}function xme(t){var n,e,i,r,o,s=sh(t[10]||"",2e4)+"";return n=new td({props:{icon:tg,type:"error",message:"The JSON document is larger than ".concat(Ik(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Ik(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){ft(n.$$.fragment),e=tt(),i=ve("div"),r=tn(s),j(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){dt(n,a,l),Pe(a,e,l),Pe(a,i,l),ue(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(Ik(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Ik(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=sh(a[10]||"",2e4)+"")&&Wn(r,s)},i:function(a){o||(K(n.$$.fragment,a),o=!0)},o:function(a){ae(n.$$.fragment,a),o=!1},d:function(a){ht(n,a),a&&Fe(e),a&&Fe(i)}}}function wme(t){var n,e,i,r,o,s=!t[13]&&t[8]&&Cse(t[10]),a=t[2]&&Cme(t),l=t[13]&&Sme(t),c=s&&kme(t);return r=new JP({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=tt(),l&&l.c(),e=tt(),c&&c.c(),i=tt(),ft(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),Pe(u,n,d),l&&l.m(u,d),Pe(u,e,d),c&&c.m(u,d),Pe(u,i,d),dt(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&K(a,1)):((a=Cme(u)).c(),K(a,1),a.m(n.parentNode,n)):a&&(Rt(),ae(a,1,1,function(){a=null}),Lt()),u[13]?l?(l.p(u,d),8192&d[0]&&K(l,1)):((l=Sme(u)).c(),K(l,1),l.m(e.parentNode,e)):l&&(Rt(),ae(l,1,1,function(){l=null}),Lt()),9472&d[0]&&(s=!u[13]&&u[8]&&Cse(u[10])),s?c?(c.p(u,d),9472&d[0]&&K(c,1)):((c=kme(u)).c(),K(c,1),c.m(i.parentNode,i)):c&&(Rt(),ae(c,1,1,function(){c=null}),Lt());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(K(a),K(l),K(c),K(r.$$.fragment,u),o=!0)},o:function(u){ae(a),ae(l),ae(c),ae(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&Fe(n),l&&l.d(u),u&&Fe(e),c&&c.d(u),u&&Fe(i),ht(r,u)}}}function Cme(t){var n,e;return n=new Frt({props:{editorState:t[6]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Sme(t){var n,e;return n=new td({props:{type:"error",icon:tg,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function kme(t){var n,e;return n=new td({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:ij,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:F0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:ij,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:F0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Grt(t){var n,e,i,r,o,s=t[1]&&bme(dR(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[zrt,Urt][i](c(t,i)),{c:function(){n=ve("div"),s&&s.c(),e=tt(),r.c(),j(n,"class","jse-text-mode svelte-1yqirn0"),At(n,"no-main-menu",!t[1])},m:function(u,d){Pe(u,n,d),s&&s.m(n,null),ue(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(dR(u),d),2&d[0]&&K(s,1)):((s=bme(dR(u))).c(),K(s,1),s.m(n,e)):s&&(Rt(),ae(s,1,1,function(){s=null}),Lt()),r.p(c(u,i),d),(!o||2&d[0])&&At(n,"no-main-menu",!u[1])},i:function(u){o||(K(s),K(r),o=!0)},o:function(u){ae(s),ae(r),o=!1},d:function(u){u&&Fe(n),s&&s.d(),l[i].d(),t[52](null)}}}function Dme(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function Wrt(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,_=n.onChange,w=n.onChangeMode,k=n.onError,D=n.onFocus,L=n.onBlur,z=n.onRenderMenu,R=n.onSortModal,U=n.onTransformModal,G=ga("jsoneditor:TextMode"),X={key:"Mod-i",run:ie,shift:Me,preventDefault:!0},te=typeof window>"u";G("isSSR:",te);var P=!1,W=!0,J=[],H=new Sp,le=new Sp,E=new Sp,O=new Sp,I=new Sp,q=new Sp,V=h,re=ok(V,f,g),de=m;qc(Ki(pn().mark(function pt(){return pn().wrap(function(In){for(;;)switch(In.prev=In.next){case 0:if(!te){In.next=2;break}return In.abrupt("return");case 2:try{s=Hn({target:o,initialText:Mo(re,P)?"":i.escapeValue(re),readOnly:c,indentation:f})}catch(oi){console.error(oi)}case 3:case"end":return In.stop()}},pt)}))),Vu(function(){s&&(G("Destroy CodeMirror editor"),s.destroy())});var Oe=!1,ye=!1,Xe=hp(),Le=hp();function rt(){s&&(G("focus"),s.focus())}var $=!1;function ne(pt){G("patch",pt);var In=g.parse(re),oi=Yu(In,pt),vi=UZ(In,pt);return dr({text:g.stringify(oi,null,f)}),{json:oi,previousJson:In,undo:vi,redo:pt}}function ie(){if(G("format"),c)return!1;try{var pt=g.parse(re);return dr({text:g.stringify(pt,null,f)}),e(8,W=!0),!0}catch(In){k(In)}return!1}function Me(){if(G("compact"),c)return!1;try{var pt=g.parse(re);return dr({text:g.stringify(pt)}),e(8,W=!1),!0}catch(In){k(In)}return!1}function Ye(){if(G("repair"),!c)try{dr({text:Jd(re)}),e(49,On="valid"),e(13,bt=null)}catch(pt){k(pt)}}function je(pt){var In=pt.id,oi=pt.rootPath,vi=pt.onTransform,Tr=pt.onClose;try{var Hr=g.parse(re);$=!0,U({id:In||Le,json:Hr,rootPath:oi||[],onTransform:function(no){vi?vi({operations:no,json:Hr,transformedJson:Yu(Hr,no)}):(G("onTransform",no),ne(no))},onClose:function(){$=!1,rt(),Tr&&Tr()}})}catch(no){k(no)}}function gt(pt,In){G("setSelection",{anchor:pt,head:In}),s&&s.dispatch(s.state.update({selection:{anchor:pt,head:In},scrollIntoView:!0}))}function Tt(pt,In){if(1===In.state.selection.ranges.length){var oi=In.state.selection.ranges[0],vi=re.slice(oi.from,oi.to);if("{"===vi||"["===vi){var Tr=sS.parse(re),Hr=Object.keys(Tr.pointers).find(function(Hs){var gr;return(null===(gr=Tr.pointers[Hs].value)||void 0===gr?void 0:gr.pos)===oi.from}),no=Tr.pointers[Hr];Hr&&no&&no.value&&no.valueEnd&&(G("pointer found, selecting inner contents of path:",Hr,no),gt(no.value.pos+1,no.valueEnd.pos-1))}}}function fn(){return function(pt){return pg.of({source:pt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(ai,{delay:300})}function Hn(pt){var In=pt.target,oi=pt.initialText,vi=pt.readOnly,Tr=pt.indentation;G("Create CodeMirror editor",{readOnly:vi,indentation:Tr});var Hr=Eo.create({doc:oi,extensions:[tD.of([wit,X]),H.of(fn()),vrt(),yrt,Prt,Vrt({hideFirstIndent:!0}),Gn.domEventHandlers({dblclick:Tt}),Gn.updateListener.of(function(no){e(6,l=no.state),no.docChanged&&gi()}),new Snt(Mrt),Ait({top:!0}),E.of(Eo.readOnly.of(vi)),le.of(Gn.editable.of(!vi)),I.of(Eo.tabSize.of(p)),O.of(sr(Tr)),q.of(Gn.theme({},{dark:Zt()})),Gn.lineWrapping]});return s=new Gn({state:Hr,parent:In})}function Zt(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Ei(pt){var In=pt.path,oi=pt.message,vi=function(Tr,Hr){try{var no=sS.parse(Tr),Hs=an(Hr),gr=no.pointers[Hs];if(gr)return{path:Hr,line:gr.key?gr.key.line:gr.value?gr.value.line:0,column:gr.key?gr.key.column:gr.value?gr.value.column:0,from:gr.key?gr.key.pos:gr.value?gr.value.pos:0,to:gr.keyEnd?gr.keyEnd.pos:gr.valueEnd?gr.valueEnd.pos:0}}catch(Us){console.error(Us)}return null}(i.escapeValue(re),In);return{path:In,line:vi.line,column:vi.column,from:vi.from,to:vi.to,message:oi,severity:Xd.warning,actions:[]}}function ln(pt,In){var Tr=pt.position;return{path:[],line:pt.line,column:pt.column,from:Tr,to:Tr,severity:Xd.error,message:pt.message,actions:In&&!c?[{name:"Auto repair",apply:function(){return Ye()}}]:null}}function dr(pt){var In=arguments.length>1&&void 0!==arguments[1]&&arguments[1],oi=ok(pt,f,g),vi=!rr(pt,V),Tr=V;V=pt,e(10,re=oi),G("setCodeMirrorContent",{isChanged:vi,forceUpdate:In}),s&&(vi||In)&&(Mo(re,P)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(re)}}),mr(),vi&&Vr(V,Tr))}function wr(){if(s){var pt=s?i.unescapeValue(s.state.doc.toString()):"",In=pt!==re;if(G("onChangeCodeMirrorValue",{isChanged:In}),In){var oi=V;e(10,re=pt),V={text:re},mr(),Vr(V,oi)}}}function sr(pt){return vD.of("number"==typeof pt?" ".repeat(pt):pt)}function mr(){e(11,Oe=uit(s.state)>0),e(12,ye=dit(s.state)>0),G({canUndo:Oe,canRedo:ye})}XP({onMount:qc,onDestroy:Vu,getWindow:function(){return x0(a)},hasFocus:function(){return $&&document.hasFocus()||ak(a)},onFocus:D,onBlur:L});var gi=h0(wr,300);function Vr(pt,In){_&&_(pt,In,{contentErrors:Ii(),patchResult:null})}function Mo(pt,In){return!!pt&&pt.length>10485760&&!In}var On="valid",bt=null;function ai(){if(Mo(re,P))return[];var pt=Ii();return Rle(pt)?[Dme(ln(pt.parseError,pt.isRepairable))]:function qJe(t){return Do(t)&&Array.isArray(t.validationErrors)}(pt)?pt.validationErrors.map(Ei).map(Dme):[]}function Ii(){G("validate:start"),gi.flush();var pt=Cr(i.escapeValue(re),v,g,y);return Rle(pt)?(e(49,On=pt.isRepairable?"repairable":"invalid"),e(13,bt=pt.parseError),e(9,J=[])):(e(49,On="valid"),e(13,bt=null),e(9,J=pt?.validationErrors||[])),G("validate:end"),pt}var Cr=xb(OJe);function vo(){bt&&function(pt){G("select parse error",pt);var In=ln(pt,!1);gt(In.from,In.to),rt()}(bt)}var Yo={icon:yXe,text:"Show me",title:"Move to the parse error location",onClick:vo};return t.$$set=function(pt){"readOnly"in pt&&e(0,c=pt.readOnly),"mainMenuBar"in pt&&e(1,u=pt.mainMenuBar),"statusBar"in pt&&e(2,d=pt.statusBar),"externalContent"in pt&&e(29,h=pt.externalContent),"indentation"in pt&&e(30,f=pt.indentation),"tabSize"in pt&&e(31,p=pt.tabSize),"escapeUnicodeCharacters"in pt&&e(32,m=pt.escapeUnicodeCharacters),"parser"in pt&&e(33,g=pt.parser),"validator"in pt&&e(34,v=pt.validator),"validationParser"in pt&&e(35,y=pt.validationParser),"onChange"in pt&&e(36,_=pt.onChange),"onChangeMode"in pt&&e(37,w=pt.onChangeMode),"onError"in pt&&e(38,k=pt.onError),"onFocus"in pt&&e(39,D=pt.onFocus),"onBlur"in pt&&e(40,L=pt.onBlur),"onRenderMenu"in pt&&e(3,z=pt.onRenderMenu),"onSortModal"in pt&&e(41,R=pt.onSortModal),"onTransformModal"in pt&&e(42,U=pt.onTransformModal)},t.$$.update=function(){var pt;2&t.$$.dirty[1]&&(i=mP({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&dr(h),8&t.$$.dirty[1]&&(G("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(fn())})),1073741824&t.$$.dirty[0]&&(pt=f,s&&(G("updateIndentation",pt),s.dispatch({effects:O.reconfigure(sr(pt))}))),1&t.$$.dirty[1]&&function(pt){s&&(G("updateTabSize",pt),s.dispatch({effects:I.reconfigure(Eo.tabSize.of(pt))}))}(p),1&t.$$.dirty[0]&&function(pt){s&&(G("updateReadOnly",pt),s.dispatch({effects:[E.reconfigure(Eo.readOnly.of(pt)),le.reconfigure(Gn.editable.of(!pt))]}))}(c),131074&t.$$.dirty[1]&&de!==m&&(e(48,de=m),G("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(re)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==On||c?[Yo]:[{icon:mk,text:"Auto repair",title:"Automatically repair JSON",onClick:Ye},Yo])},[c,u,d,z,o,a,l,P,W,J,re,Oe,ye,bt,r,te,ie,Me,function(){var pt;if(!c)try{var In=g.parse(re);$=!0,R({id:Xe,json:In,rootPath:[],onSort:(pt=Ki(pn().mark(function oi(vi){var Tr;return pn().wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:G("onSort",Tr=vi.operations),ne(Tr);case 3:case"end":return Hr.stop()}},oi)})),function(oi){return pt.apply(this,arguments)}),onClose:function(){$=!1,rt()}})}catch(oi){k(oi)}},function(){c||je({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?Q4(s):K4(s))},function(){c||s&&($4(s),rt())},function(){c||s&&(CD(s),rt())},function(){e(7,P=!0),dr(h,!0)},function(){w(Wo.tree)},function(){wr()},function(pt){G("select validation error",pt);var In=Ei(pt);gt(In.from,In.to),rt()},Mo,vo,h,f,p,m,g,v,y,_,w,k,D,L,R,U,rt,ne,je,function(){G("refresh"),Ul().then(function(){if(s){var pt=Zt();G("updateTheme",{dark:pt}),s.dispatch({effects:[q.reconfigure(Gn.theme({},{dark:pt}))]})}})},Ii,de,On,function(pt){Hi[pt?"unshift":"push"](function(){e(4,o=pt)})},function(){return e(8,W=!1)},function(pt){Hi[pt?"unshift":"push"](function(){e(5,a=pt)})}]}var qrt=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Wrt,Grt,Ti,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},Hrt,[-1,-1,-1,-1]),r}return Se(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function Yrt(t){var n,e;return n=new Ek({props:{items:t[0]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Xrt(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:vk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:pk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:Mae,title:cN,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:LP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:RP,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var Jrt=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Xrt,Yrt,Ti,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Se(e)}();function Tme(t,n,e){var i=t.slice();return i[9]=n[e],i}function Eme(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],_=qi(v);_.length>0&&!Xc(m,_);)y.unshift({op:"add",path:an(_),value:{}}),_=qi(_);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&Yi(c)&&mp(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var Zrt=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Qrt,Krt,Ti,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Se(e)}();function eot(t){di(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function tot(t){var n,e,i,r,o=sh(t[2].stringify(t[1]),50)+"";return{c:function(){n=ve("button"),e=tn(o),j(n,"type","button"),j(n,"class","jse-inline-value svelte-l28mqd"),At(n,"jse-selected",t[3])},m:function(s,a){Pe(s,n,a),ue(n,e),i||(r=It(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Un(a,1)[0];6&l&&o!==(o=sh(s[2].stringify(s[1]),50)+"")&&Wn(e,o),8&l&&At(n,"jse-selected",s[3])},i:jt,o:jt,d:function(s){s&&Fe(n),i=!1,r()}}}function not(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=eo(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var iot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,not,tot,Ti,{path:0,value:1,parser:2,isSelected:3,onEdit:4},eot),r}return Se(e)}();function rot(t){di(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function Ame(t){var n,e,i,r;return e=new or({props:{data:t[1]===Yc.asc?ou:Aae}}),{c:function(){n=ve("span"),ft(e.$$.fragment),j(n,"class","jse-column-sort-icon svelte-h4fort"),j(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){Pe(o,n,s),dt(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===Yc.asc?ou:Aae),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&j(n,"title",i)},i:function(o){r||(K(e.$$.fragment,o),r=!0)},o:function(o){ae(e.$$.fragment,o),r=!1},d:function(o){o&&Fe(n),ht(e)}}}function oot(t){var n,e,i,r,o,s,a,l,c=sh(t[3],50)+"",u=void 0!==t[1]&&Ame(t);return{c:function(){n=ve("button"),e=ve("span"),i=tn(c),r=tt(),u&&u.c(),j(e,"class","jse-column-name"),j(n,"type","button"),j(n,"class","jse-column-header svelte-h4fort"),j(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),At(n,"jse-readonly",t[0])},m:function(d,h){Pe(d,n,h),ue(n,e),ue(e,i),ue(n,r),u&&u.m(n,null),s=!0,a||(l=It(n,"click",t[4]),a=!0)},p:function(d,h){var f=Un(h,1)[0];(!s||8&f)&&c!==(c=sh(d[3],50)+"")&&Wn(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&K(u,1)):((u=Ame(d)).c(),K(u,1),u.m(n,null)):u&&(Rt(),ae(u,1,1,function(){u=null}),Lt()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&j(n,"title",o),(!s||1&f)&&At(n,"jse-readonly",d[0])},i:function(d){s||(K(u),s=!0)},o:function(d){ae(u),s=!1},d:function(d){d&&Fe(n),u&&u.d(),a=!1,l()}}}function sot(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Ui(s)?"values":nu(Wl(s))),96&t.$$.dirty&&e(1,r=rr(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=$He[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===Yc.asc?Yc.desc:Yc.asc})},s,a,c]}var XD,JD,aot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,sot,oot,Ti,{path:5,sortedColumn:6,readOnly:0,onSort:7},rot),r}return Se(e)}();function Mme(t,n){return XD||(JD=new WeakMap,XD=new ResizeObserver(function(e){var i,r=Re(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=JD.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),JD.set(t,n),XD.observe(t),{destroy:function(){JD.delete(t),XD.unobserve(t)}}}function lot(t){var n,e;return n=new ace({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function cot(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,_=n.onEditValue,w=n.onEditRow,k=n.onToggleEnforceString,D=n.onCut,L=n.onCopy,z=n.onPaste,R=n.onRemove,U=n.onDuplicateRow,G=n.onInsertBeforeRow,X=n.onInsertAfterRow,te=n.onRemoveRow;function P(){y(),_()}function W(){y(),w()}function J(){y(),k()}function H(){y(),D(!0)}function le(){y(),D(!1)}function E(){y(),L(!0)}function O(){y(),L(!1)}function I(){y(),z()}function q(){y(),R()}function V(){y(),U()}function re(){y(),G()}function de(){y(),X()}function Oe(){y(),te()}return t.$$set=function(ye){"json"in ye&&e(2,p=ye.json),"documentState"in ye&&e(3,m=ye.documentState),"parser"in ye&&e(4,g=ye.parser),"showTip"in ye&&e(0,v=ye.showTip),"onCloseContextMenu"in ye&&e(5,y=ye.onCloseContextMenu),"onEditValue"in ye&&e(6,_=ye.onEditValue),"onEditRow"in ye&&e(7,w=ye.onEditRow),"onToggleEnforceString"in ye&&e(8,k=ye.onToggleEnforceString),"onCut"in ye&&e(9,D=ye.onCut),"onCopy"in ye&&e(10,L=ye.onCopy),"onPaste"in ye&&e(11,z=ye.onPaste),"onRemove"in ye&&e(12,R=ye.onRemove),"onDuplicateRow"in ye&&e(13,U=ye.onDuplicateRow),"onInsertBeforeRow"in ye&&e(14,G=ye.onInsertBeforeRow),"onInsertAfterRow"in ye&&e(15,X=ye.onInsertAfterRow),"onRemoveRow"in ye&&e(16,te=ye.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Ui(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Sn(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Ir(i)||vs(i)||Yi(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Ir(i)||Yi(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&db(i)&&!s&&Array.isArray(Sn(p,qi(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&db(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!Lo(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&Zm(i)&&Do(a),29491200&t.$$.dirty[0]&&d&&Zm(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&Zm(i)&&Lo(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&hf(a,m.enforceStringMap,an(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:P,icon:I0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:I0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:P,disabled:!c},{type:"button",icon:h?ab:lb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:J,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:O0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:O0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:O0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:le,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:E,icon:yp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:yp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:E,disabled:!l},{type:"button",icon:yp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:O,disabled:!l}]},{type:"button",onClick:I,icon:Dae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:q,icon:jP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:W,icon:I0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:Nae,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:re,icon:N0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:de,icon:N0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:Oe,icon:jP,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,_,w,k,D,L,z,R,U,G,X,te,o,l,u,h,c,i,a,d,r,s]}var uot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,cot,lot,Ti,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Se(e)}();function dot(t){di(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function Ome(t,n,e){var i=t.slice();i[12]=n[e];var r=Sn(i[0],i[12]).length;return i[13]=r,i}function hot(t){var n,e;return{c:function(){n=tn(t[5]),e=tn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){Pe(i,n,r),Pe(i,e,r)},p:function(i,r){32&r&&Wn(n,i[5])},d:function(i){i&&Fe(n),i&&Fe(e)}}}function fot(t){var n;return{c:function(){n=tn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){Pe(e,n,i)},p:jt,d:function(e){e&&Fe(n)}}}function Ime(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=nu(Wl(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=ve("button"),e=tn(t[6]),i=tn(' "'),r=tn(p),o=tn('"\n '),s=ve("span"),a=tn("("),l=tn(m),c=tt(),u=tn(g),d=tn(")"),j(s,"class","jse-nested-array-count svelte-1te5h1h"),j(n,"type","button"),j(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,_){Pe(y,n,_),ue(n,e),ue(n,i),ue(n,r),ue(n,o),ue(n,s),ue(s,a),ue(s,l),ue(s,c),ue(s,u),ue(s,d),h||(f=It(n,"click",v),h=!0)},p:function(y,_){t=y,64&_&&Wn(e,t[6]),8&_&&p!==(p=nu(Wl(t[12]))+"")&&Wn(r,p),9&_&&m!==(m=t[13]+"")&&Wn(l,m),9&_&&g!==(g=1!==t[13]?"items":"item")&&Wn(u,g)},d:function(y){y&&Fe(n),h=!1,f()}}}function pot(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(z,R){return z[4]?fot:hot}for(var _=y(t),w=_(t),k=t[3],D=[],L=0;L1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){ko(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Ui(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?ko(l)?"An object":eo(l)?"An empty array":"A ".concat(AN(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Wo.tree)}]}var got=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,mot,pot,Ti,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},dot),r}return Se(e)}();function vot(t){di(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function yot(t){var n,e,i,r,o,s;return e=new or({props:{data:SXe}}),{c:function(){n=ve("button"),ft(e.$$.fragment),j(n,"type","button"),j(n,"class","jse-column-header svelte-h4fort"),j(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){Pe(a,n,l),dt(e,n,null),r=!0,o||(s=It(n,"click",t[3]),o=!0)},p:function(a,l){var c=Un(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&j(n,"title",i)},i:function(a){r||(K(e.$$.fragment,a),r=!0)},o:function(a){ae(e.$$.fragment,a),r=!1},d:function(a){a&&Fe(n),ht(e),o=!1,s()}}}function _ot(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var bot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,_ot,yot,Ti,{count:0,maxSampleCount:1,onRefresh:2},vot),r}return Se(e)}();function xot(t){di(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function Nme(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function Fme(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Sn(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function Pme(t,n,e){var i=t.slice();return i[125]=n[e],i}function jme(t){var n,e;return n=new Jrt({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function wot(t){var n;return{c:function(){(n=ve("div")).innerHTML='
    \n
    loading...
    ',j(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){Pe(e,n,i)},p:jt,i:jt,o:jt,d:function(e){e&&Fe(n)}}}function Cot(t){var n,e,i,r,o,s,a,l,c,u=[Dot,kot,Sot],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=ve("label"),e=ve("input"),i=tt(),o.c(),s=br(),j(e,"type","text"),e.readOnly="readonly",j(e,"tabindex","-1"),j(e,"class","jse-hidden-input svelte-hs49xj"),j(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){Pe(f,n,p),ue(n,e),t[71](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=It(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Rt(),ae(d[m],1,1,function(){d[m]=null}),Lt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),K(o,1),o.m(s.parentNode,s))},i:function(f){a||(K(o),a=!0)},o:function(f){ae(o),a=!1},d:function(f){f&&Fe(n),t[71](null),f&&Fe(i),d[r].d(f),f&&Fe(s),l=!1,c()}}}function Sot(t){var n,e;return n=new got({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function kot(t){var n,e,i,r;return n=new td({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:vp,text:"Repair manually",onClick:t[35]}]}}),i=new hue({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){ft(n.$$.fragment),e=tt(),ft(i.$$.fragment)},m:function(o,s){dt(n,o,s),Pe(o,e,s),dt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:vp,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(K(n.$$.fragment,o),K(i.$$.fragment,o),r=!0)},o:function(o){ae(n.$$.fragment,o),ae(i.$$.fragment,o),r=!1},d:function(o){ht(n,o),o&&Fe(e),ht(i,o)}}}function Dot(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R=!Ui(null===(n=t[21])||void 0===n?void 0:n.root),U=R&&Rme(t),G=t[9],X=[],te=0;te"u";a("isSSR:",m);var g,v,y,_,w,k,D=n.readOnly,L=n.externalContent,z=n.mainMenuBar,R=n.escapeControlCharacters,U=n.escapeUnicodeCharacters,G=n.flattenColumns,X=n.parser,te=n.parseMemoizeOne,P=n.validator,W=n.validationParser,J=n.indentation,H=n.onChange,le=n.onChangeMode,E=n.onRenderValue,O=n.onRenderMenu,I=n.onFocus,q=n.onBlur,V=n.onSortModal,re=n.onTransformModal,de=n.onJSONEditorModal;XP({onMount:qc,onDestroy:Vu,getWindow:function(){return x0(v)},hasFocus:function(){return rt&&document.hasFocus()||ak(v)},onFocus:function(){I&&I()},onBlur:function(){q&&q()}});var Oe,ye=void 0,Xe=1e4,Le=[],rt=!1,$={},ne=600,ie=0;function Me(Te){a("updateSelection",Te);var St="function"==typeof Te?Te(je.selection):Te;rr(St,je.selection)||e(10,je=Qe(Qe({},je),{},{selection:St}))}function Ye(Te){void 0!==je.selection&&void 0!==Te&&(je.selection&&Xc(Te,je.selection.anchorPath)&&Xc(Te,je.selection.focusPath)||(a("clearing selection: path does not exist anymore",je.selection),e(10,je=Qe(Qe({},je),{},{selection:D0(Te,je)}))))}var Tt,je=ck(),gt=!1,fn=Sle({onChange:function(Te){e(19,Hn=Te)}}),Hn=fn.getState();function Ei(Te){var St=Te.previousJson,Vt=Te.previousState,rn=Te.previousText,un=Te.previousTextIsRepaired;void 0===St&&void 0===rn||(void 0!==w?fn.add(void 0!==St?{undo:{patch:[{op:"replace",path:"",value:St}],state:rl(Vt),json:void 0,text:rn,textIsRepaired:un},redo:{patch:[{op:"replace",path:"",value:w}],state:rl(je),json:void 0,text:k,textIsRepaired:gt}}:{undo:{patch:void 0,json:void 0,text:rn,state:rl(Vt),textIsRepaired:un},redo:{patch:void 0,json:w,state:rl(je),text:k,textIsRepaired:gt}}):void 0!==St&&fn.add({undo:{patch:void 0,json:St,state:rl(Vt),text:rn,textIsRepaired:un},redo:{patch:void 0,json:void 0,text:k,textIsRepaired:gt,state:rl(je)}}))}var ln=[],dr=xb(kle);function wr(Te,St,Vt,rn){j0(function(){var un;try{un=dr(Te,St,Vt,rn)}catch(ni){un=[{path:[],message:"Failed to validate: "+ni.message,severity:Xd.warning}]}rr(un,ln)||(a("validationErrors changed:",un),e(11,ln=un))},function(un){return a("validationErrors updated in ".concat(un," ms"))})}function sr(){return a("validate"),ye?{parseError:ye,isRepairable:!1}:(wr(w,P,X,W),Ui(ln)?null:{validationErrors:ln})}function mr(Te,St){if(a("patch",Te,St),void 0===w)throw new Error("Cannot apply patch: no JSON");var Vt={json:w},rn=w,un=je,ni=gt,Ni=gae(w,Te),$n=Jse(w,je,Te).json,Zn=function TZe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=su(qu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return rr(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?Qe(Qe({},t),{},{sortedColumn:void 0}):t}(je,Te,Le),Yn="function"==typeof St?St($n,Zn):void 0;e(7,w=Yn&&void 0!==Yn.json?Yn.json:$n);var yr=Yn&&void 0!==Yn.state?Yn.state:Zn;e(10,je=yr),e(15,k=void 0),e(18,gt=!1),e(17,Oe=void 0),fn.add({undo:{patch:Ni,json:void 0,text:void 0,state:rl(un),textIsRepaired:ni},redo:{patch:Te,json:void 0,state:rl(yr),text:void 0,textIsRepaired:gt}});var Er={json:w,previousJson:rn,undo:Ni,redo:Te};return Vr(Vt,Er),Er}function gi(Te,St){if(!D)return mr(Te,St)}function Vr(Te,St){(void 0!==Te.json||void 0!==Te?.text)&&(void 0!==k?H({text:k,json:void 0},Te,{contentErrors:sr(),patchResult:St}):void 0!==w&&H({text:void 0,json:w},Te,{contentErrors:sr(),patchResult:St}))}function Mo(Te){a("handleFind",Te)}function On(Te){a("pasted json as text",Te),e(17,Oe=Te)}function bt(Te){var St=parseInt(Te[0]),Vt=[String(St+1)].concat(ri(Te.slice(1)));return Xc(w,Vt)?fr(Vt,!1):fr(Te,!1)}function ai(){_&&(_.focus(),_.select())}function Ii(){je.selection||Me(function(){if(eo(w)&&!Ui(w)&&!Ui(Le))return fr(["0"].concat(ri(Le[0])),!1)}())}function Cr(Te){var St=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Vt=aj(Te,Le,$,18),rn=Vt-ie,un=pt(Te);a("scrollTo",{path:Te,top:Vt,scrollTop:ie,elem:un});var ni=y.getBoundingClientRect();if(un&&!St){var Ni=un.getBoundingClientRect();if(Ni.bottom>ni.top&&Ni.topVt.right&&e(13,y.scrollLeft+=rn.right-Vt.right,y),rn.left($n=ie+ni.height-18)&&e(13,y.scrollTop+=un-$n,y),rn0&&void 0!==Vt[0])||Vt[0],void 0!==w){rn.next=3;break}return rn.abrupt("return");case 3:return rn.next=5,lue({json:w,documentState:je,indentation:St?J:void 0,parser:X});case 5:case"end":return rn.stop()}},Te)})),Ua.apply(this,arguments)}function Mc(){uue({json:w,text:k,documentState:je,keepSelection:!0,readOnly:D,onChange:H,onPatch:gi})}function xe(){!function EZe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&A0(e.selection)){var s=su(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;kl("duplicate row",{rowIndex:a});var c=[String(a)];o(fae(n,[c]),function(u,d){var h=fr(og({rowIndex:a0?a-1:void 0,h=void 0!==d?fr(og({rowIndex:d,columnIndex:l},i),!1):void 0;return kl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:Qe(Qe({},u),{},{selection:h})}})}}({json:w,documentState:je,columns:Le,readOnly:D,onPatch:gi})}function Ue(){return(Ue=Ki(pn().mark(function Te(St){return pn().wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Vt.next=2,due({char:St,selectInside:!1,refJsonEditor:v,json:w,documentState:je,readOnly:D,parser:X,onPatch:gi,onReplaceJson:kn,onSelect:Me});case 2:case"end":return Vt.stop()}},Te)}))).apply(this,arguments)}function kn(Te,St){var Vt=je,rn=w,un=k,ni={json:w,text:k},Ni=gt,$n=iu(w,je,[],ah),Zn="function"==typeof St?St(Te,$n):void 0;e(7,w=Zn&&void 0!==Zn.json?Zn.json:Te),e(10,je=Zn&&void 0!==Zn.state?Zn.state:$n),e(15,k=void 0),e(18,gt=!1),Ye(w),Ei({previousJson:rn,previousState:Vt,previousText:un,previousTextIsRepaired:Ni}),Vr(ni,null)}function ti(Te,St){a("handleChangeText");var Vt=je,rn=w,un=k,ni={json:w,text:k},Ni=gt;try{e(7,w=te(Te)),e(10,je=iu(w,je,[],ah)),e(15,k=void 0),e(18,gt=!1)}catch{try{e(7,w=te(Jd(Te))),e(10,je=iu(w,je,[],ah)),e(15,k=Te),e(18,gt=!0)}catch{e(7,w=void 0),e(10,je=ck({json:w,expand:ah})),e(15,k=Te),e(18,gt=!1)}}if("function"==typeof St){var $n=St(w,je);e(7,w=$n&&$n.json?$n.json:w),e(10,je=$n&&$n.state?$n.state:je)}Ye(w),Ei({previousJson:rn,previousState:Vt,previousText:un,previousTextIsRepaired:Ni}),Vr(ni,null)}function ci(Te){var Vt=Te.rootPath,rn=Te.onTransform,un=Te.onClose;D||void 0===w||(rt=!0,re({id:Te.id||p,json:w,rootPath:Vt||[],onTransform:rn?function(ni){rn({operations:ni,json:w,transformedJson:Yu(w,ni)})}:function(ni){a("onTransform",Vt,ni),gi(ni)},onClose:function(){rt=!1,ai(),un&&un()}}))}function li(Te){a("openJSONEditorModal",{path:Te}),rt=!0,de({content:{json:Sn(w,Te)},path:Te,onPatch:Tt.onPatch,onClose:function(){rt=!1,ai()}})}function Sr(Te,St){l(Wle,{text:Te,onParse:ik,onRepair:vse,onApply:St},Qe(Qe({},$m),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return ai()}})}function qr(){if(!D&&fn.getState().canUndo){var Te=fn.undo();if(Te){var St={json:w,text:k};e(7,w=Te.undo.patch?Yu(w,Te.undo.patch):Te.undo.json),e(10,je=Te.undo.state),e(15,k=Te.undo.text),e(18,gt=Te.undo.textIsRepaired),a("undo",{item:Te,json:w}),Vr(St,{json:w,previousJson:St.json,redo:Te.undo.patch,undo:Te.redo.patch}),ai(),je.selection&&Cr(je.selection.focusPath,!1)}}}function fi(){if(!D&&fn.getState().canRedo){var Te=fn.redo();if(Te){var St={json:w,text:k};e(7,w=Te.redo.patch?Yu(w,Te.redo.patch):Te.redo.json),e(10,je=Te.redo.state),e(15,k=Te.redo.text),e(18,gt=Te.redo.textIsRepaired),a("redo",{item:Te,json:w}),Vr(St,{json:w,previousJson:St.json,redo:Te.redo.patch,undo:Te.undo.patch}),ai(),je.selection&&Cr(je.selection.focusPath,!1)}}}function vr(Te,St){e(68,$[St]=Te.getBoundingClientRect().height,$)}return t.$$set=function(Te){"readOnly"in Te&&e(0,D=Te.readOnly),"externalContent"in Te&&e(47,L=Te.externalContent),"mainMenuBar"in Te&&e(1,z=Te.mainMenuBar),"escapeControlCharacters"in Te&&e(48,R=Te.escapeControlCharacters),"escapeUnicodeCharacters"in Te&&e(49,U=Te.escapeUnicodeCharacters),"flattenColumns"in Te&&e(50,G=Te.flattenColumns),"parser"in Te&&e(2,X=Te.parser),"parseMemoizeOne"in Te&&e(51,te=Te.parseMemoizeOne),"validator"in Te&&e(52,P=Te.validator),"validationParser"in Te&&e(53,W=Te.validationParser),"indentation"in Te&&e(3,J=Te.indentation),"onChange"in Te&&e(54,H=Te.onChange),"onChangeMode"in Te&&e(4,le=Te.onChangeMode),"onRenderValue"in Te&&e(55,E=Te.onRenderValue),"onRenderMenu"in Te&&e(5,O=Te.onRenderMenu),"onFocus"in Te&&e(56,I=Te.onFocus),"onBlur"in Te&&e(57,q=Te.onBlur),"onSortModal"in Te&&e(58,V=Te.onSortModal),"onTransformModal"in Te&&e(59,re=Te.onTransformModal),"onJSONEditorModal"in Te&&e(60,de=Te.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=mP({escapeControlCharacters:R,escapeUnicodeCharacters:U})),65536&t.$$.dirty[1]&&function Zt(Te){var St=w,Vt=_0(Te)?Te.text!==k:!rr(St,Te.json);if(a("update external content",{isChanged:Vt}),Vt){var rn={json:w,text:k},un=w,ni=je,Ni=k,$n=gt;if(_0(Te))try{e(7,w=te(Te.text)),e(15,k=Te.text),e(18,gt=!1),e(16,ye=void 0)}catch(Zn){try{e(7,w=te(Jd(Te.text))),e(15,k=Te.text),e(18,gt=!0),e(16,ye=void 0)}catch{e(7,w=void 0),e(15,k=L.text),e(18,gt=!1),e(16,ye=rk(k,Zn.message||Zn.toString()))}}else e(7,w=Te.json),e(15,k=void 0),e(18,gt=!1),e(16,ye=void 0);Ye(w),je.sortedColumn&&e(10,je=Qe(Qe({},je),{},{sortedColumn:void 0})),Ei({previousJson:un,previousState:ni,previousText:Ni,previousTextIsRepaired:$n}),Vr(rn,null)}}(L),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,Le=eo(w)?function(Te,St){var Vt,rn=new Set(St.map(an)),un=new Set(Te.map(an)),ni=Re(rn);try{for(ni.s();!(Vt=ni.n()).done;){var Ni=Vt.value;un.has(Ni)||rn.delete(Ni)}}catch(yr){ni.e(yr)}finally{ni.f()}var $n,Zn=Re(un);try{for(Zn.s();!($n=Zn.n()).done;){var Yn=$n.value;rn.has(Yn)||rn.add(Yn)}}catch(yr){Zn.e(yr)}finally{Zn.f()}return ri(rn).map(qu)}(function(Te,St){var Vt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,rn={};Array.isArray(Te)&&function Fqe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;rXe),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Te,St,Vt,rn,un){for(var ni=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,Ni=eo(Vt)?Vt.length:0,$n=function SZe(t,n){var e=Object.values(t);return Ui(e)?n:e.reduce(function(r,o){return r+o})/e.length}(rn,un),Zn=Te-ni,Yn=St+2*ni,yr=function(md){return rn[md]||un},Er=0,Oo=0;Oo0&&(Oo-=yr(--Er));for(var ra=Er,pd=0;pd0?fr(og({rowIndex:yr.rowIndex,columnIndex:Oo-1},Zn),!1):Yn;Me(Vt),Yo(Vt.focusPath)}if("ArrowRight"===St&&(Te.preventDefault(),Ii(),je.selection)){var rn=function(Zn,Yn){var yr=su(Yn.focusPath,Zn),Oo=yr.columnIndex;return Oo0?fr(og({rowIndex:Er-1,columnIndex:yr.columnIndex},Zn),!1):Yn}(Le,je.selection);Me(un),Yo(un.focusPath)}if("ArrowDown"===St&&(Te.preventDefault(),Ii(),je.selection)){var ni=function(Zn,Yn,yr){var Er=su(yr.focusPath,Yn),Oo=Er.rowIndex;return Oo1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Xme({props:{mode:Fn(t[18]).mode,content:Fn(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:hh,onBlur:hh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var w=t[19]&&Jme(t),k=t[18].length>1&&Kme(t);function D(R,U){return R[0]?Lot:$ot}var L=D(t),z=L(t);return{c:function(){n=ve("div"),ft(e.$$.fragment),i=tt(),r=ve("div"),(o=ve("div")).innerHTML='
    Path
    ',s=tt(),a=ve("input"),l=tt(),(c=ve("div")).innerHTML='
    Contents
    ',u=tt(),d=ve("div"),ft(h.$$.fragment),f=tt(),p=ve("div"),w&&w.c(),m=tt(),k&&k.c(),g=tt(),z.c(),j(o,"class","jse-label svelte-1hibiw3"),j(a,"class","jse-path svelte-1hibiw3"),j(a,"type","text"),a.readOnly=!0,j(a,"title","Selected path"),a.value=t[21],j(c,"class","jse-label svelte-1hibiw3"),j(d,"class","jse-modal-inline-editor svelte-1hibiw3"),j(p,"class","jse-actions svelte-1hibiw3"),j(r,"class","jse-modal-contents svelte-1hibiw3"),j(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(R,U){Pe(R,n,U),dt(e,n,null),ue(n,i),ue(n,r),ue(r,o),ue(r,s),ue(r,a),ue(r,l),ue(r,c),ue(r,u),ue(r,d),dt(h,d,null),ue(r,f),ue(r,p),w&&w.m(p,null),ue(p,m),k&&k.m(p,null),ue(p,g),z.m(p,null),v=!0,y||(_=pa(Ak.call(null,n,t[23])),y=!0)},p:function(R,U){var G={};262144&U[0]&&(G.title="Edit nested content "+(R[18].length>1?" (".concat(R[18].length,")"):"")),e.$set(G),(!v||2097152&U[0]&&a.value!==R[21])&&(a.value=R[21]);var X={};262144&U[0]&&(X.mode=Fn(R[18]).mode),262144&U[0]&&(X.content=Fn(R[18]).content),1&U[0]&&(X.readOnly=R[0]),2&U[0]&&(X.indentation=R[1]),4&U[0]&&(X.tabSize=R[2]),32&U[0]&&(X.statusBar=R[5]),8&U[0]&&(X.mainMenuBar=R[3]),16&U[0]&&(X.navigationBar=R[4]),64&U[0]&&(X.escapeControlCharacters=R[6]),128&U[0]&&(X.escapeUnicodeCharacters=R[7]),256&U[0]&&(X.flattenColumns=R[8]),512&U[0]&&(X.parser=R[9]),1048576&U[0]&&(X.parseMemoizeOne=R[20]),1024&U[0]&&(X.validator=R[10]),2048&U[0]&&(X.validationParser=R[11]),4096&U[0]&&(X.pathParser=R[12]),8192&U[0]&&(X.onRenderValue=R[13]),16384&U[0]&&(X.onClassName=R[14]),32768&U[0]&&(X.onRenderMenu=R[15]),65536&U[0]&&(X.onSortModal=R[16]),131072&U[0]&&(X.onTransformModal=R[17]),h.$set(X),R[19]?w?w.p(R,U):((w=Jme(R)).c(),w.m(p,m)):w&&(w.d(1),w=null),R[18].length>1?k?(k.p(R,U),262144&U[0]&&K(k,1)):((k=Kme(R)).c(),K(k,1),k.m(p,g)):k&&(Rt(),ae(k,1,1,function(){k=null}),Lt()),L===(L=D(R))&&z?z.p(R,U):(z.d(1),(z=L(R))&&(z.c(),z.m(p,null)))},i:function(R){v||(K(e.$$.fragment,R),K(h.$$.fragment,R),K(k),v=!0)},o:function(R){ae(e.$$.fragment,R),ae(h.$$.fragment,R),ae(k),v=!1},d:function(R){R&&Fe(n),ht(e),ht(h),w&&w.d(),k&&k.d(),z.d(),y=!1,_()}}}function Qme(t){t.focus()}function Vot(t,n,e){var i,r,o,s=ga("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,_=n.parser,w=n.validator,k=n.validationParser,D=n.pathParser,L=n.onRenderValue,z=n.onClassName,R=n.onRenderMenu,U=n.onSortModal,G=n.onTransformModal,X=ma("simple-modal").close,te=[{mode:W(a),content:a,relativePath:l}],P=void 0;function W(H){return pP(H)&&eo(H.json)?Wo.table:Wo.tree}function J(H){s("handleChange",H);var le=Qe(Qe({},Fn(te)),{},{content:H});e(18,te=[].concat(ri(qi(te)),[le]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,_=H.parser),"validator"in H&&e(10,w=H.validator),"validationParser"in H&&e(11,k=H.validationParser),"pathParser"in H&&e(12,D=H.pathParser),"onRenderValue"in H&&e(13,L=H.onRenderValue),"onClassName"in H&&e(14,z=H.onClassName),"onRenderMenu"in H&&e(15,R=H.onRenderMenu),"onSortModal"in H&&e(16,U=H.onSortModal),"onTransformModal"in H&&e(17,G=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=te.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Ui(i)?"(whole document)":nu(Wl(i))),512&t.$$.dirty[0]&&e(20,o=xb(_.parse))},[u,d,h,f,p,m,g,v,y,_,w,k,D,L,z,R,U,G,te,P,o,r,function(){if(s("handleApply"),!u)try{e(19,P=void 0);var H=[{op:"replace",path:an(Fn(te).relativePath),value:_se(Fn(te).content,_).json}];if(te.length>1){var le={json:Yu(_se(te[te.length-2].content,_).json,H)};e(18,te=qi(te)),J(le)}else c(H),X()}catch(E){e(19,P=E.toString())}},function(){s("handleClose"),te.length>1?(e(18,te=qi(te)),e(19,P=void 0)):X()},J,function(H){s("handleChangeMode",H);var le=Qe(Qe({},Fn(te)),{},{mode:H});e(18,te=[].concat(ri(qi(te)),[le]))},function(H){e(19,P=H.toString()),console.error(H)},function(H){var le=H.content,E=H.path;s("handleJSONEditorModal",{content:le,path:E});var O={mode:W(le),content:le,relativePath:E};e(18,te=[].concat(ri(te),[O]))},a,l,c,i]}var Hot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Vot,Bot,Ti,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Rot,[-1,-1]),r}return Se(e)}();function Uot(t,n,e){var i=ma("simple-modal");return[i.open,i.close]}var zot=function(t){xt(e,Mn);var n=wt(e);function e(i){var r;return Ce(this,e),Nn(En(r=n.call(this)),i,Uot,null,Ti,{open:0,close:1}),r}return Se(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function Got(t){di(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function Zme(t){var n,e;return n=new Xme({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){ft(n.$$.fragment)},m:function(r,o){dt(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(K(n.$$.fragment,r),e=!0)},o:function(r){ae(n.$$.fragment,r),e=!1},d:function(r){t[56](null),ht(n,r)}}}function Wot(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new zot({props:l}),Hi.push(function(){return Uu(n,"open",a)});var c=Zme(t);return{c:function(){ft(n.$$.fragment),i=tt(),r=ve("div"),c.c(),j(r,"class","jse-main svelte-sxaskb"),At(r,"jse-focus",t[20])},m:function(u,d){dt(n,u,d),Pe(u,i,d),Pe(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],Hu(function(){return e=!1})),n.$set(h),524288&d[0]&&Ti(s,s=u[19])?(Rt(),ae(c,1,1,jt),Lt(),(c=Zme(u)).c(),K(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&At(r,"jse-focus",u[20])},i:function(u){o||(K(n.$$.fragment,u),K(c),o=!0)},o:function(u){ae(n.$$.fragment,u),ae(c),o=!1},d:function(u){ht(n,u),u&&Fe(i),u&&Fe(r),c.d(u)}}}function qot(t){var n,e;return n=new FZ({props:{closeOnEsc:!1,$$slots:{default:[Wot]},$$scope:{ctx:t}}}),{c:function(){ft(n.$$.fragment)},m:function(i,r){dt(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(K(n.$$.fragment,i),e=!0)},o:function(i){ae(n.$$.fragment,i),e=!1},d:function(i){ht(n,i)}}}function Yot(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},PZ,{closeOnEsc:!1}],o={$$slots:{default:[qot]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;Ce(this,l),this._names={},this._prefixes=u,this._parent=d}return Se(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){xt(u,l);var c=wt(u);function u(d,h){var f;return Ce(this,u),(f=c.call(this,h)).prefix=d,f}return Se(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(Xq||(Xq=Ee([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)(Jq||(Jq=Ee(["\n"],["\\n"]))),a=function(l){xt(u,l);var c=wt(u);function u(d){var h;return Ce(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=Qe(Qe({},d),{},{_n:d.lines?s:e.nil}),h}return Se(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var _=this._scope[m]||(this._scope[m]=[]),w=_.length;return _[w]=h.ref,p.setValue(h,{property:m,itemIndex:w}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(Kq||(Kq=Ee(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(_){var w=d[_];if(!w)return"continue";var k=p[_]=p[_]||new Map;w.forEach(function(D){if(!k.has(D)){k.set(D,n.Started);var L=h(D);if(L){var z=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(Qq||(Qq=Ee(["",""," "," = ",";",""])),g,z,D,L,f.opts._n)}else{if(!(L=m?.(D)))throw new i(D);g=(0,e._)(Zq||(Zq=Ee(["","","",""])),g,L,f.opts._n)}k.set(D,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(dge)),dge}function xr(){return uge||(uge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=QD(),e=hge(),i=QD();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=hge();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function I(){Ce(this,I)}return Se(I,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(q,V){return this}}]),I}(),s=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe){var ye;return Ce(this,V),(ye=q.call(this)).varKind=re,ye.name=de,ye.rhs=Oe,ye}return Se(V,[{key:"render",value:function(re){var Oe=re._n,ye=re.es5?e.varKinds.var:this.varKind,Xe=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(ye," ").concat(this.name).concat(Xe,";")+Oe}},{key:"optimizeNames",value:function(re,de){if(re[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,re,de)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe){var ye;return Ce(this,V),(ye=q.call(this)).lhs=re,ye.rhs=de,ye.sideEffects=Oe,ye}return Se(V,[{key:"render",value:function(re){var de=re._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+de}},{key:"optimizeNames",value:function(re,de){if(!(this.lhs instanceof n.Name)||re[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,re,de),this}},{key:"names",get:function(){return te(this.lhs instanceof n.Name?{}:Qe({},this.lhs.names),this.rhs)}}]),V}(o),l=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe,ye){var Xe;return Ce(this,V),(Xe=q.call(this,re,Oe,ye)).op=de,Xe}return Se(V,[{key:"render",value:function(re){var de=re._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+de}}]),V}(a),c=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).label=re,de.names={},de}return Se(V,[{key:"render",value:function(re){var de=re._n;return"".concat(this.label,":")+de}}]),V}(o),u=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).label=re,de.names={},de}return Se(V,[{key:"render",value:function(re){var de=re._n,Oe=this.label?" ".concat(this.label):"";return"break".concat(Oe,";")+de}}]),V}(o),d=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).error=re,de}return Se(V,[{key:"render",value:function(re){var de=re._n;return"throw ".concat(this.error,";")+de}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).code=re,de}return Se(V,[{key:"render",value:function(re){var de=re._n;return"".concat(this.code,";")+de}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(re,de){return this.code=P(this.code,re,de),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(I){xt(V,I);var q=wt(V);function V(){var re,de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Ce(this,V),(re=q.call(this)).nodes=de,re}return Se(V,[{key:"render",value:function(re){return this.nodes.reduce(function(de,Oe){return de+Oe.render(re)},"")}},{key:"optimizeNodes",value:function(){for(var re=this.nodes,de=re.length;de--;){var Oe=re[de].optimizeNodes();Array.isArray(Oe)?re.splice.apply(re,[de,1].concat(ri(Oe))):Oe?re[de]=Oe:re.splice(de,1)}return re.length>0?this:void 0}},{key:"optimizeNames",value:function(re,de){for(var Oe=this.nodes,ye=Oe.length;ye--;){var Xe=Oe[ye];Xe.optimizeNames(re,de)||(W(re,Xe.names),Oe.splice(ye,1))}return Oe.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(re,de){return X(re,de.names)},{})}}]),V}(o),p=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V,[{key:"render",value:function(re){return"{"+re._n+hr(Wi(V.prototype),"render",this).call(this,re)+"}"+re._n}}]),V}(f),m=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V)}(f),g=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V)}(p);g.kind="else";var v=function(I){xt(V,I);var q=wt(V);function V(re,de){var Oe;return Ce(this,V),(Oe=q.call(this,de)).condition=re,Oe}return Se(V,[{key:"render",value:function(re){var de="if(".concat(this.condition,")")+hr(Wi(V.prototype),"render",this).call(this,re);return this.else&&(de+="else "+this.else.render(re)),de}},{key:"optimizeNodes",value:function(){hr(Wi(V.prototype),"optimizeNodes",this).call(this);var re=this.condition;if(!0===re)return this.nodes;var de=this.else;if(de){var Oe=de.optimizeNodes();de=this.else=Array.isArray(Oe)?new g(Oe):Oe}return de?!1===re?de instanceof V?de:de.nodes:this.nodes.length?this:new V(J(re),de instanceof V?[de]:de.nodes):!1!==re&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(re,de){var Oe;if(this.else=null===(Oe=this.else)||void 0===Oe?void 0:Oe.optimizeNames(re,de),hr(Wi(V.prototype),"optimizeNames",this).call(this,re,de)||this.else)return this.condition=P(this.condition,re,de),this}},{key:"names",get:function(){var re=hr(Wi(V.prototype),"names",this);return te(re,this.condition),this.else&&X(re,this.else.names),re}}]),V}(p);v.kind="if";var y=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V)}(p);y.kind="for";var _=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).iteration=re,de}return Se(V,[{key:"render",value:function(re){return"for(".concat(this.iteration,")")+hr(Wi(V.prototype),"render",this).call(this,re)}},{key:"optimizeNames",value:function(re,de){if(hr(Wi(V.prototype),"optimizeNames",this).call(this,re,de))return this.iteration=P(this.iteration,re,de),this}},{key:"names",get:function(){return X(hr(Wi(V.prototype),"names",this),this.iteration.names)}}]),V}(y),w=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe,ye){var Xe;return Ce(this,V),(Xe=q.call(this)).varKind=re,Xe.name=de,Xe.from=Oe,Xe.to=ye,Xe}return Se(V,[{key:"render",value:function(re){var Oe=this.name,ye=this.from,Xe=this.to;return"for(".concat(re.es5?e.varKinds.var:this.varKind," ").concat(Oe,"=").concat(ye,"; ").concat(Oe,"<").concat(Xe,"; ").concat(Oe,"++)")+hr(Wi(V.prototype),"render",this).call(this,re)}},{key:"names",get:function(){var re=te(hr(Wi(V.prototype),"names",this),this.from);return te(re,this.to)}}]),V}(y),k=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe,ye){var Xe;return Ce(this,V),(Xe=q.call(this)).loop=re,Xe.varKind=de,Xe.name=Oe,Xe.iterable=ye,Xe}return Se(V,[{key:"render",value:function(re){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+hr(Wi(V.prototype),"render",this).call(this,re)}},{key:"optimizeNames",value:function(re,de){if(hr(Wi(V.prototype),"optimizeNames",this).call(this,re,de))return this.iterable=P(this.iterable,re,de),this}},{key:"names",get:function(){return X(hr(Wi(V.prototype),"names",this),this.iterable.names)}}]),V}(y),D=function(I){xt(V,I);var q=wt(V);function V(re,de,Oe){var ye;return Ce(this,V),(ye=q.call(this)).name=re,ye.args=de,ye.async=Oe,ye}return Se(V,[{key:"render",value:function(re){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+hr(Wi(V.prototype),"render",this).call(this,re)}}]),V}(p);D.kind="func";var L=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V,[{key:"render",value:function(re){return"return "+hr(Wi(V.prototype),"render",this).call(this,re)}}]),V}(f);L.kind="return";var z=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V,[{key:"render",value:function(re){var de="try"+hr(Wi(V.prototype),"render",this).call(this,re);return this.catch&&(de+=this.catch.render(re)),this.finally&&(de+=this.finally.render(re)),de}},{key:"optimizeNodes",value:function(){var re,de;return hr(Wi(V.prototype),"optimizeNodes",this).call(this),null===(re=this.catch)||void 0===re||re.optimizeNodes(),null===(de=this.finally)||void 0===de||de.optimizeNodes(),this}},{key:"optimizeNames",value:function(re,de){var Oe,ye;return hr(Wi(V.prototype),"optimizeNames",this).call(this,re,de),null===(Oe=this.catch)||void 0===Oe||Oe.optimizeNames(re,de),null===(ye=this.finally)||void 0===ye||ye.optimizeNames(re,de),this}},{key:"names",get:function(){var re=hr(Wi(V.prototype),"names",this);return this.catch&&X(re,this.catch.names),this.finally&&X(re,this.finally.names),re}}]),V}(p),R=function(I){xt(V,I);var q=wt(V);function V(re){var de;return Ce(this,V),(de=q.call(this)).error=re,de}return Se(V,[{key:"render",value:function(re){return"catch(".concat(this.error,")")+hr(Wi(V.prototype),"render",this).call(this,re)}}]),V}(p);R.kind="catch";var U=function(I){xt(V,I);var q=wt(V);function V(){return Ce(this,V),q.apply(this,arguments)}return Se(V,[{key:"render",value:function(re){return"finally"+hr(Wi(V.prototype),"render",this).call(this,re)}}]),V}(p);U.kind="finally";var G=function(){function I(q){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ce(this,I),this._values={},this._blockStarts=[],this._constants={},this.opts=Qe(Qe({},V),{},{_n:V.lines?"\n":""}),this._extScope=q,this._scope=new e.Scope({parent:q}),this._nodes=[new m]}return Se(I,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(q){return this._scope.name(q)}},{key:"scopeName",value:function(q){return this._extScope.name(q)}},{key:"scopeValue",value:function(q,V){var re=this._extScope.value(q,V);return(this._values[re.prefix]||(this._values[re.prefix]=new Set)).add(re),re}},{key:"getScopeValue",value:function(q,V){return this._extScope.getValue(q,V)}},{key:"scopeRefs",value:function(q){return this._extScope.scopeRefs(q,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(q,V,re,de){var Oe=this._scope.toName(V);return void 0!==re&&de&&(this._constants[Oe.str]=re),this._leafNode(new s(q,Oe,re)),Oe}},{key:"const",value:function(q,V,re){return this._def(e.varKinds.const,q,V,re)}},{key:"let",value:function(q,V,re){return this._def(e.varKinds.let,q,V,re)}},{key:"var",value:function(q,V,re){return this._def(e.varKinds.var,q,V,re)}},{key:"assign",value:function(q,V,re){return this._leafNode(new a(q,V,re))}},{key:"add",value:function(q,V){return this._leafNode(new l(q,t.operators.ADD,V))}},{key:"code",value:function(q){return"function"==typeof q?q():q!==n.nil&&this._leafNode(new h(q)),this}},{key:"object",value:function(){for(var q=["{"],V=arguments.length,re=new Array(V),de=0;de1&&q.push(","),q.push(Le),(Le!==rt||this.opts.es5)&&(q.push(":"),(0,n.addCodeArg)(q,rt))}return q.push("}"),new n._Code(q)}},{key:"if",value:function(q,V,re){if(this._blockNode(new v(q)),V&&re)this.code(V).else().code(re).endIf();else if(V)this.code(V).endIf();else if(re)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(q){return this._elseNode(new v(q))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(q,V){return this._blockNode(q),V&&this.code(V).endFor(),this}},{key:"for",value:function(q,V){return this._for(new _(q),V)}},{key:"forRange",value:function(q,V,re,de){var Oe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,ye=this._scope.toName(q);return this._for(new w(Oe,ye,V,re),function(){return de(ye)})}},{key:"forOf",value:function(q,V,re){var de=this,Oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,ye=this._scope.toName(q);if(this.opts.es5){var Xe=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(eY||(eY=Ee(["",".length"])),Xe),function(Le){de.var(ye,(0,n._)(tY||(tY=Ee(["","[","]"])),Xe,Le)),re(ye)})}return this._for(new k("of",Oe,ye,V),function(){return re(ye)})}},{key:"forIn",value:function(q,V,re){var de=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(q,(0,n._)(nY||(nY=Ee(["Object.keys(",")"])),V),re);var Oe=this._scope.toName(q);return this._for(new k("in",de,Oe,V),function(){return re(Oe)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(q){return this._leafNode(new c(q))}},{key:"break",value:function(q){return this._leafNode(new u(q))}},{key:"return",value:function(q){var V=new L;if(this._blockNode(V),this.code(q),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(L)}},{key:"try",value:function(q,V,re){if(!V&&!re)throw new Error('CodeGen: "try" without "catch" and "finally"');var de=new z;if(this._blockNode(de),this.code(q),V){var Oe=this.name("e");this._currNode=de.catch=new R(Oe),V(Oe)}return re&&(this._currNode=de.finally=new U,this.code(re)),this._endBlockNode(R,U)}},{key:"throw",value:function(q){return this._leafNode(new d(q))}},{key:"block",value:function(q,V){return this._blockStarts.push(this._nodes.length),q&&this.code(q).endBlock(V),this}},{key:"endBlock",value:function(q){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var re=this._nodes.length-V;if(re<0||void 0!==q&&re!==q)throw new Error("CodeGen: wrong number of nodes: ".concat(re," vs ").concat(q," expected"));return this._nodes.length=V,this}},{key:"func",value:function(q){var de=arguments.length>3?arguments[3]:void 0;return this._blockNode(new D(q,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),de&&this.code(de).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(D)}},{key:"optimize",value:function(){for(var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;q-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(q){return this._currNode.nodes.push(q),this}},{key:"_blockNode",value:function(q){this._currNode.nodes.push(q),this._nodes.push(q)}},{key:"_endBlockNode",value:function(q,V){var re=this._currNode;if(re instanceof q||V&&re instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(q.kind,"/").concat(V.kind):q.kind,'"'))}},{key:"_elseNode",value:function(q){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=q,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var q=this._nodes;return q[q.length-1]},set:function(q){var V=this._nodes;V[V.length-1]=q}}]),I}();function X(I,q){for(var V in q)I[V]=(I[V]||0)+(q[V]||0);return I}function te(I,q){return q instanceof n._CodeOrName?X(I,q.names):I}function P(I,q,V){return I instanceof n.Name?re(I):(de=I)instanceof n._Code&&de._items.some(function(Oe){return Oe instanceof n.Name&&1===q[Oe.str]&&void 0!==V[Oe.str]})?new n._Code(I._items.reduce(function(de,Oe){return Oe instanceof n.Name&&(Oe=re(Oe)),Oe instanceof n._Code?de.push.apply(de,ri(Oe._items)):de.push(Oe),de},[])):I;var de;function re(de){var Oe=V[de.str];return void 0===Oe||1!==q[de.str]?de:(delete q[de.str],Oe)}}function W(I,q){for(var V in q)I[V]=(I[V]||0)-(q[V]||0)}function J(I){return"boolean"==typeof I||"number"==typeof I||null===I?!I:(0,n._)(iY||(iY=Ee(["!",""])),O(I))}t.CodeGen=G,t.not=J;var H=E(t.operators.AND);t.and=function(){for(var I=arguments.length,q=new Array(I),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,_,w,k){var D=void 0===w?_:w instanceof n.Name?(_ instanceof n.Name?p(y,_,w):m(y,_,w),w):_ instanceof n.Name?(m(y,w,_),_):g(_,w);return k!==n.Name||D instanceof n.Name?D:v(y,D)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(yY||(yY=Ee(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(_Y||(_Y=Ee(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=Re(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(sY||(sY=Ee(["",""])),p)}return(0,n._)(aY||(aY=Ee(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=Re(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(lY||(lY=Ee([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(cY||(cY=Ee([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(uY||(uY=Ee([""," || {}"])),m)).code((0,n._)(dY||(dY=Ee(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(hY||(hY=Ee([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(fY||(fY=Ee([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||Qe(Qe({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(pY||(pY=Ee([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(mY||(mY=Ee([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(gY||(gY=Ee([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(vY||(vY=Ee([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?bY||(bY=Ee(['"[" + ',' + "]"'])):xY||(xY=Ee(['"[\'" + ',' + "\']"'])):g?wY||(wY=Ee(['"/" + ',""])):CY||(CY=Ee(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(Lr);var fge,pge,mge,ZD={};function Rp(){if(fge)return ZD;fge=1,Object.defineProperty(ZD,"__esModule",{value:!0});var t=xr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return ZD.default=n,ZD}function eT(){return pge||(pge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=xr(),e=Lr,i=Rp();function r(d,h){var f=d.const("err",h);d.if((0,n._)(RY||(RY=Ee([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(LY||(LY=Ee(["[","]"])),f))},(0,n._)($Y||($Y=Ee(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(BY||(BY=Ee(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(VY||(VY=Ee(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(HY||(HY=Ee(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(SY||(SY=Ee(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(kY||(kY=Ee(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(DY||(DY=Ee(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,_=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,_):o(m,(0,n._)(TY||(TY=Ee(["[","]"])),_))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(EY||(EY=Ee([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(AY||(AY=Ee(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(_){h.const(y,(0,n._)(MY||(MY=Ee(["","[","]"])),i.default.vErrors,_)),h.if((0,n._)(OY||(OY=Ee(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(IY||(IY=Ee(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(NY||(NY=Ee(["",".schemaPath"])),y),(0,n.str)(FY||(FY=Ee(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(PY||(PY=Ee(["",".schema"])),y),p),h.assign((0,n._)(jY||(jY=Ee(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(UY||(UY=Ee(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,_=d.it,w=_.opts,k=_.propertyName,D=_.topSchemaRef,L=_.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(qY||(qY=Ee(["{}"])))]),w.messages&&f.push([s.message,"function"==typeof m?m(d):m]),w.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(YY||(YY=Ee(["","",""])),D,L)],[i.default.data,v]),k&&f.push([s.propertyName,k])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(zY||(zY=Ee(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(GY||(GY=Ee(["","/",""])),p,f);return m&&(g=(0,n.str)(WY||(WY=Ee(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(sge)),sge}var Zb={},vg={};Object.defineProperty(vg,"__esModule",{value:!0}),vg.getRules=vg.isJSONType=void 0;var rst=new Set(["string","number","integer","boolean","null","object","array"]);vg.isJSONType=function(t){return"string"==typeof t&&rst.has(t)},vg.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Qe(Qe({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var gge,yf={};function vge(){if(gge)return yf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return gge=1,Object.defineProperty(yf,"__esModule",{value:!0}),yf.shouldUseRule=yf.shouldUseGroup=yf.schemaHasRulesForType=void 0,yf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},yf.shouldUseGroup=t,yf.shouldUseRule=n,yf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=vg,i=vge(),r=eT(),o=xr(),s=Lr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var D,m=f.gen,g=f.data,v=f.opts,y=(D=v.coerceTypes)?p.filter(function(L){return l.has(L)||"array"===D&&"array"===L}):[],_=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(_){var w=u(p,g,v.strictNumbers,n.Wrong);m.if(w,function(){y.length?function(k,D,L){var z=k.gen,R=k.data,U=k.opts,G=z.let("dataType",(0,o._)(JY||(JY=Ee(["typeof ",""])),R)),X=z.let("coerced",(0,o._)(KY||(KY=Ee(["undefined"]))));"array"===U.coerceTypes&&z.if((0,o._)(QY||(QY=Ee([""," == 'object' && Array.isArray(",") && ",".length == 1"])),G,R,R),function(){return z.assign(R,(0,o._)(ZY||(ZY=Ee(["","[0]"])),R)).assign(G,(0,o._)(eX||(eX=Ee(["typeof ",""])),R)).if(u(D,R,U.strictNumbers),function(){return z.assign(X,R)})}),z.if((0,o._)(tX||(tX=Ee([""," !== undefined"])),X));var te,P=Re(L);try{for(P.s();!(te=P.n()).done;){var W=te.value;(l.has(W)||"array"===W&&"array"===U.coerceTypes)&&J(W)}}catch(H){P.e(H)}finally{P.f()}function J(H){switch(H){case"string":return void z.elseIf((0,o._)(iX||(iX=Ee(["",' == "number" || ',' == "boolean"'])),G,G)).assign(X,(0,o._)(rX||(rX=Ee(['"" + ',""])),R)).elseIf((0,o._)(oX||(oX=Ee([""," === null"])),R)).assign(X,(0,o._)(sX||(sX=Ee(['""']))));case"number":return void z.elseIf((0,o._)(aX||(aX=Ee(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),G,R,G,R,R,R)).assign(X,(0,o._)(lX||(lX=Ee(["+",""])),R));case"integer":return void z.elseIf((0,o._)(cX||(cX=Ee(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),G,R,G,R,R,R,R)).assign(X,(0,o._)(uX||(uX=Ee(["+",""])),R));case"boolean":return void z.elseIf((0,o._)(dX||(dX=Ee(["",' === "false" || '," === 0 || "," === null"])),R,R,R)).assign(X,!1).elseIf((0,o._)(hX||(hX=Ee(["",' === "true" || '," === 1"])),R,R)).assign(X,!0);case"null":return z.elseIf((0,o._)(fX||(fX=Ee(["",' === "" || '," === 0 || "," === false"])),R,R,R)),void z.assign(X,null);case"array":z.elseIf((0,o._)(pX||(pX=Ee(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),G,G,G,R)).assign(X,(0,o._)(mX||(mX=Ee(["[","]"])),R))}}z.else(),h(k),z.endIf(),z.if((0,o._)(nX||(nX=Ee([""," !== undefined"])),X),function(){var H,le,E,O,I;z.assign(R,X),le=X,O=(H=k).parentData,I=H.parentDataProperty,(E=H.gen).if((0,o._)(gX||(gX=Ee([""," !== undefined"])),O),function(){return E.assign((0,o._)(vX||(vX=Ee(["","[","]"])),O,I),le)})})}(f,p,y):h(f)})}return _};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(yX||(yX=Ee([""," "," null"])),p,y);case"array":g=(0,o._)(_X||(_X=Ee(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(bX||(bX=Ee([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=_((0,o._)(xX||(xX=Ee(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=_();break;default:return(0,o._)(wX||(wX=Ee(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function _(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(CX||(CX=Ee(["typeof ",' == "number"'])),p),w,m?(0,o._)(SX||(SX=Ee(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var _=(0,o._)(kX||(kX=Ee(["typeof ",' != "object"'])),p);v=y.null?_:(0,o._)(DX||(DX=Ee(["!"," || ",""])),p,_),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var w in y.number&&delete y.integer,y)v=(0,o.and)(v,c(w,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(TX||(TX=Ee(["{type: ","}"])),p):(0,o._)(EX||(EX=Ee(["{type: ","}"])),m)}};function h(f){var m,g,v,y,_,p=(g=(m=f).gen,v=m.data,_=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:_,schemaValue:_,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(Zb);var yge,_ge,bge,ex={},cd={},lo={};function ud(){if(_ge)return lo;_ge=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.validateUnion=lo.validateArray=lo.usePattern=lo.callValidateCode=lo.schemaProperties=lo.allSchemaProperties=lo.noPropertyInData=lo.propertyInData=lo.isOwnProperty=lo.hasPropFunc=lo.reportMissingProp=lo.checkMissingProp=lo.checkReportMissingProp=void 0;var t=xr(),n=Lr,e=Rp(),i=Lr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(PX||(PX=Ee(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(jX||(jX=Ee(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)($X||($X=Ee(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}lo.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(NX||(NX=Ee(["",""])),u)},!0),c.error()})},lo.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,ri(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(FX||(FX=Ee([""," = ",""])),d,m))})))},lo.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},lo.hasPropFunc=r,lo.isOwnProperty=o,lo.propertyInData=function(c,u,d,h){var f=(0,t._)(RX||(RX=Ee(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(LX||(LX=Ee([""," && ",""])),f,o(c,u,d)):f},lo.noPropertyInData=s,lo.allSchemaProperties=a,lo.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},lo.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,_=m.errorPath,w=c.it,k=h?(0,t._)(BX||(BX=Ee(["",", ",", ","",""])),f,p,v,y):p,D=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,_)],[e.default.parentData,w.parentData],[e.default.parentDataProperty,w.parentDataProperty],[e.default.rootData,e.default.rootData]];w.opts.dynamicRef&&D.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var L=(0,t._)(VX||(VX=Ee(["",", ",""])),k,g.object.apply(g,D));return d!==t.nil?(0,t._)(HX||(HX=Ee(["",".call(",", ",")"])),u,d,L):(0,t._)(UX||(UX=Ee(["","(",")"])),u,L)};var l=(0,t._)(zX||(zX=Ee(["new RegExp"])));return lo.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(GX||(GX=Ee(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},lo.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(WX||(WX=Ee(["",".length"])),d));u.forRange("i",0,y,function(_){c.subschema({keyword:h,dataProp:_,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},lo.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(qX||(qX=Ee([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},lo}var xge,_f={},Ba={},wge=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==mn(n)&&"object"==mn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},hR={},sst={get exports(){return hR},set exports(t){hR=t}},Lp=sst.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),tT(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function tT(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==mn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Lp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!fR(t):!!n&&Cge(t)<=n)};var dst=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function fR(t){for(var n in t){if(dst.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(fR)||"object"==mn(e)&&fR(e))return!0}return!1}function Cge(t){var n=0;for(var e in t)if("$ref"===e||(n++,!ust.has(e)&&("object"==mn(t[e])&&(0,ast.eachItem)(t[e],function(i){return n+=Cge(i)}),n===1/0)))return 1/0;return n}function Sge(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=c1(n));var i=t.parse(n);return kge(t,i)}function kge(t,n){return t.serialize(n).split("#")[0]+"#"}Ba.getFullPath=Sge,Ba._getFullPath=kge;var hst=/#\/?$/;function c1(t){return t?t.replace(hst,""):""}Ba.normalizeId=c1,Ba.resolveUrl=function(t,n,e){return e=c1(e),t.resolve(n,e)};var Dge,fst=/^[a-z_][-a-z0-9._]*$/i;function nT(){if(Dge)return vf;Dge=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.getData=vf.KeywordCxt=vf.validateFunctionCode=void 0;var t=function(){if(mge)return gg;mge=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.boolOrEmptySchema=gg.topBoolOrEmptySchema=void 0;var P=eT(),W=xr(),J=Rp(),H={message:"boolean schema is false"};function le(E,O){(0,P.reportError)({gen:E.gen,keyword:"false schema",data:E.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:E},H,void 0,O)}return gg.topBoolOrEmptySchema=function(E){var O=E.gen,I=E.schema,q=E.validateName;!1===I?le(E,!1):"object"==mn(I)&&!0===I.$async?O.return(J.default.data):(O.assign((0,W._)(XY||(XY=Ee(["",".errors"])),q),null),O.return(!0))},gg.boolOrEmptySchema=function(E,O){var I=E.gen;!1===E.schema?(I.var(O,!1),le(E)):I.var(O,!0)},gg}(),n=Zb,e=vge(),i=Zb,r=function(){if(yge)return ex;yge=1,Object.defineProperty(ex,"__esModule",{value:!0}),ex.assignDefaults=void 0;var P=xr(),W=Lr;function J(H,le,E){var O=H.gen,I=H.compositeRule,q=H.data,V=H.opts;if(void 0!==E){var re=(0,P._)(AX||(AX=Ee(["","",""])),q,(0,P.getProperty)(le));if(I)(0,W.checkStrictMode)(H,"default is ignored for: ".concat(re));else{var de=(0,P._)(MX||(MX=Ee([""," === undefined"])),re);"empty"===V.useDefaults&&(de=(0,P._)(OX||(OX=Ee([""," || "," === null || ",' === ""'])),de,re,re)),O.if(de,(0,P._)(IX||(IX=Ee([""," = ",""])),re,(0,P.stringify)(E)))}}}return ex.assignDefaults=function(H,le){var E=H.schema,O=E.properties,I=E.items;if("object"===le&&O)for(var q in O)J(H,q,O[q].default);else"array"===le&&Array.isArray(I)&&I.forEach(function(V,re){return J(H,re,V.default)})},ex}(),o=function ost(){if(bge)return cd;bge=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.validateKeywordUsage=cd.validSchemaType=cd.funcKeywordCode=cd.macroKeywordCode=void 0;var t=xr(),n=Rp(),e=ud(),i=eT();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(eJ||(eJ=Ee(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return cd.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},cd.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(w,k){if(k.async&&!w.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(QX||(QX=Ee(["await "]))):t.nil,k=p.opts.passContext?n.default.this:n.default.self,D=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(ZX||(ZX=Ee(["","",""])),w,(0,e.callValidateCode)(s,g,k,D)),a.modifying)}function _(w){var k;c.if((0,t.not)(null!==(k=a.valid)&&void 0!==k?k:v),w)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),_(function(){return s.error()});else{var w=a.async?(D=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(YX||(YX=Ee(["await "]))))},function(L){return c.assign(v,!1).if((0,t._)(XX||(XX=Ee([""," instanceof ",""])),L,p.ValidationError),function(){return c.assign(D,(0,t._)(JX||(JX=Ee(["",".errors"])),L))},function(){return c.throw(L)})}),D):(k=(0,t._)(KX||(KX=Ee(["",".errors"])),g),c.assign(k,null),y(t.nil),k);a.modifying&&r(s),_(function(){return function(D,L){var z=D.gen;z.if((0,t._)(tJ||(tJ=Ee(["Array.isArray(",")"])),L),function(){z.assign(n.default.vErrors,(0,t._)(nJ||(nJ=Ee([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,L,n.default.vErrors,L)).assign(n.default.errors,(0,t._)(iJ||(iJ=Ee(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(D)},function(){return D.error()})}(s,w)})}var D,k}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},cd.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==mn(s)&&!Array.isArray(s):mn(s)==c||l&&void 0===s})},cd.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},cd}(),s=function(){if(xge)return _f;xge=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.extendSubschemaMode=_f.extendSubschemaData=_f.getSubschema=void 0;var P=xr(),W=Lr;return _f.getSubschema=function(J,H){var le=H.keyword,E=H.schemaProp,O=H.schema,I=H.schemaPath,q=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==le&&void 0!==O)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==le){var re=J.schema[le];return void 0===E?{schema:re,schemaPath:(0,P._)(rJ||(rJ=Ee(["","",""])),J.schemaPath,(0,P.getProperty)(le)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(le)}:{schema:re[E],schemaPath:(0,P._)(oJ||(oJ=Ee(["","","",""])),J.schemaPath,(0,P.getProperty)(le),(0,P.getProperty)(E)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(le,"/").concat((0,W.escapeFragment)(E))}}if(void 0!==O){if(void 0===I||void 0===q||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:O,schemaPath:I,topSchemaRef:V,errSchemaPath:q}}throw new Error('either "keyword" or "schema" must be passed')},_f.extendSubschemaData=function(J,H,le){var E=le.dataProp,O=le.dataPropType,I=le.data,q=le.dataTypes,V=le.propertyName;if(void 0!==I&&void 0!==E)throw new Error('both "data" and "dataProp" passed, only one allowed');var re=H.gen;if(void 0!==E){var de=H.errorPath,Oe=H.dataPathArr,ye=H.opts;Xe(re.let("data",(0,P._)(sJ||(sJ=Ee(["","",""])),H.data,(0,P.getProperty)(E)),!0)),J.errorPath=(0,P.str)(aJ||(aJ=Ee(["","",""])),de,(0,W.getErrorPath)(E,O,ye.jsPropertySyntax)),J.parentDataProperty=(0,P._)(lJ||(lJ=Ee(["",""])),E),J.dataPathArr=[].concat(ri(Oe),[J.parentDataProperty])}function Xe(Le){J.data=Le,J.dataLevel=H.dataLevel+1,J.dataTypes=[],H.definedProperties=new Set,J.parentData=H.data,J.dataNames=[].concat(ri(H.dataNames),[Le])}void 0!==I&&(Xe(I instanceof P.Name?I:re.let("data",I,!0)),void 0!==V&&(J.propertyName=V)),q&&(J.dataTypes=q)},_f.extendSubschemaMode=function(J,H){var le=H.jtdDiscriminator,E=H.jtdMetadata,O=H.compositeRule,I=H.createErrors,q=H.allErrors;void 0!==O&&(J.compositeRule=O),void 0!==I&&(J.createErrors=I),void 0!==q&&(J.allErrors=q),J.jtdDiscriminator=le,J.jtdMetadata=E},_f}(),a=xr(),l=Rp(),c=Ba,u=Lr,d=eT();function h(P,W){var I,J=P.gen,H=P.validateName,le=P.schema,E=P.schemaEnv,O=P.opts;O.code.es5?J.func(H,(0,a._)(cJ||(cJ=Ee(["",", ",""])),l.default.data,l.default.valCxt),E.$async,function(){var I,q;J.code((0,a._)(uJ||(uJ=Ee(['"use strict"; ',""])),f(le,O))),q=O,(I=J).if(l.default.valCxt,function(){I.var(l.default.instancePath,(0,a._)(pJ||(pJ=Ee(["",".",""])),l.default.valCxt,l.default.instancePath)),I.var(l.default.parentData,(0,a._)(mJ||(mJ=Ee(["",".",""])),l.default.valCxt,l.default.parentData)),I.var(l.default.parentDataProperty,(0,a._)(gJ||(gJ=Ee(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),I.var(l.default.rootData,(0,a._)(vJ||(vJ=Ee(["",".",""])),l.default.valCxt,l.default.rootData)),q.dynamicRef&&I.var(l.default.dynamicAnchors,(0,a._)(yJ||(yJ=Ee(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){I.var(l.default.instancePath,(0,a._)(_J||(_J=Ee(['""'])))),I.var(l.default.parentData,(0,a._)(bJ||(bJ=Ee(["undefined"])))),I.var(l.default.parentDataProperty,(0,a._)(xJ||(xJ=Ee(["undefined"])))),I.var(l.default.rootData,l.default.data),q.dynamicRef&&I.var(l.default.dynamicAnchors,(0,a._)(wJ||(wJ=Ee(["{}"]))))}),J.code(W)}):J.func(H,(0,a._)(dJ||(dJ=Ee(["",", ",""])),l.default.data,(I=O,(0,a._)(hJ||(hJ=Ee(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,I.dynamicRef?(0,a._)(fJ||(fJ=Ee([", ","={}"])),l.default.dynamicAnchors):a.nil))),E.$async,function(){return J.code(f(le,O)).code(W)})}function f(P,W){var J="object"==mn(P)&&P[W.schemaId];return J&&(W.code.source||W.code.process)?(0,a._)(MJ||(MJ=Ee(["/*# sourceURL="," */"])),J):a.nil}function m(P){var W=P.schema,J=P.self;if("boolean"==typeof W)return!W;for(var H in W)if(J.RULES.all[H])return!0;return!1}function g(P){return"boolean"!=typeof P.schema}function v(P){var W,J,H,E;(0,u.checkUnknownRules)(P),H=(W=P).errSchemaPath,E=W.self,(J=W.schema).$ref&&W.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(J,E.RULES)&&E.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(P,W){if(P.opts.jtd)return w(P,[],!1,W);var J=(0,n.getSchemaTypes)(P.schema);w(P,J,!(0,n.coerceAndCheckDataType)(P,J),W)}function _(P){var W=P.gen,J=P.schemaEnv,le=P.errSchemaPath,E=P.opts,O=P.schema.$comment;if(!0===E.$comment)W.code((0,a._)(IJ||(IJ=Ee(["",".logger.log(",")"])),l.default.self,O));else if("function"==typeof E.$comment){var I=(0,a.str)(NJ||(NJ=Ee(["","/$comment"])),le),q=W.scopeValue("root",{ref:J.root});W.code((0,a._)(FJ||(FJ=Ee(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,O,I,q))}}function w(P,W,J,H){var de,Oe,ye,Xe,le=P.gen,E=P.schema,O=P.data,I=P.allErrors,q=P.opts,V=P.self.RULES;function re(de){(0,e.shouldUseGroup)(E,de)&&(de.type?(le.if((0,i.checkDataType)(de.type,O,q.strictNumbers)),k(P,de),1===W.length&&W[0]===de.type&&J&&(le.else(),(0,i.reportTypeError)(P)),le.endIf()):k(P,de),I||le.if((0,a._)(VJ||(VJ=Ee([""," === ",""])),l.default.errors,H||0)))}!E.$ref||!q.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(E,V)?(q.jtd||(Oe=W,(de=P).schemaEnv.meta||!de.opts.strictTypes||(function(ye,Xe){if(Xe.length){if(!ye.dataTypes.length)return void(ye.dataTypes=Xe);Xe.forEach(function(Le){L(ye.dataTypes,Le)||z(ye,'type "'.concat(Le,'" not allowed by context "').concat(ye.dataTypes.join(","),'"'))}),function(Le,rt){var $,ne=[],ie=Re(Le.dataTypes);try{for(ie.s();!($=ie.n()).done;){var Me=$.value;L(rt,Me)?ne.push(Me):rt.includes("integer")&&"number"===Me&&ne.push("integer")}}catch(Ye){ie.e(Ye)}finally{ie.f()}Le.dataTypes=ne}(ye,Xe)}}(de,Oe),de.opts.allowUnionTypes||(ye=de,(Xe=Oe).length>1&&(2!==Xe.length||!Xe.includes("null"))&&z(ye,"use allowUnionTypes to allow union type keyword")),function(ye,Xe){var Le=ye.self.RULES.all;for(var rt in Le){var $=Le[rt];if("object"==mn($)&&(0,e.shouldUseRule)(ye.schema,$)){var ne=$.definition.type;ne.length&&!ne.some(function(ie){return D(Xe,ie)})&&z(ye,'missing type "'.concat(ne.join(","),'" for keyword "').concat(rt,'"'))}}}(de,de.dataTypes))),le.block(function(){var de,Oe=Re(V.rules);try{for(Oe.s();!(de=Oe.n()).done;)re(de.value)}catch(ye){Oe.e(ye)}finally{Oe.f()}re(V.post)})):le.block(function(){return U(P,"$ref",V.all.$ref.definition)})}function k(P,W){var J=P.gen,H=P.schema;P.opts.useDefaults&&(0,r.assignDefaults)(P,W.type),J.block(function(){var le,E=Re(W.rules);try{for(E.s();!(le=E.n()).done;){var O=le.value;(0,e.shouldUseRule)(H,O)&&U(P,O.keyword,O.definition,W.type)}}catch(I){E.e(I)}finally{E.f()}})}function D(P,W){return P.includes(W)||"number"===W&&P.includes("integer")}function L(P,W){return P.includes(W)||"integer"===W&&P.includes("number")}function z(P,W){W+=' at "'.concat(P.schemaEnv.baseId+P.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(P,W,P.opts.strictTypes)}vf.validateFunctionCode=function(P){var W,J,H,le;g(P)&&(v(P),m(P))?(J=(W=P).schema,H=W.opts,le=W.gen,h(W,function(){var E,I;H.$comment&&J.$comment&&_(W),I=(E=W).opts,void 0!==E.schema.default&&I.useDefaults&&I.strictSchema&&(0,u.checkStrictMode)(E,"default is ignored in the schema root"),le.let(l.default.vErrors,null),le.let(l.default.errors,0),H.unevaluated&&function(E){var O=E.gen,I=E.validateName;E.evaluated=O.const("evaluated",(0,a._)(CJ||(CJ=Ee(["",".evaluated"])),I)),O.if((0,a._)(SJ||(SJ=Ee(["",".dynamicProps"])),E.evaluated),function(){return O.assign((0,a._)(kJ||(kJ=Ee(["",".props"])),E.evaluated),(0,a._)(DJ||(DJ=Ee(["undefined"]))))}),O.if((0,a._)(TJ||(TJ=Ee(["",".dynamicItems"])),E.evaluated),function(){return O.assign((0,a._)(EJ||(EJ=Ee(["",".items"])),E.evaluated),(0,a._)(AJ||(AJ=Ee(["undefined"]))))})}(W),y(W),function(E){var de,Oe,ye,Xe,Le,O=E.gen,q=E.validateName,V=E.ValidationError,re=E.opts;E.schemaEnv.$async?O.if((0,a._)(PJ||(PJ=Ee([""," === 0"])),l.default.errors),function(){return O.return(l.default.data)},function(){return O.throw((0,a._)(jJ||(jJ=Ee(["new ","(",")"])),V,l.default.vErrors))}):(O.assign((0,a._)(RJ||(RJ=Ee(["",".errors"])),q),l.default.vErrors),re.unevaluated&&(Oe=(de=E).gen,ye=de.evaluated,Le=de.items,(Xe=de.props)instanceof a.Name&&Oe.assign((0,a._)($J||($J=Ee(["",".props"])),ye),Xe),Le instanceof a.Name&&Oe.assign((0,a._)(BJ||(BJ=Ee(["",".items"])),ye),Le)),O.return((0,a._)(LJ||(LJ=Ee([""," === 0"])),l.default.errors)))}(W)})):h(P,function(){return(0,t.topBoolOrEmptySchema)(P)})};var R=function(){function P(W,J,H){if(Ce(this,P),(0,o.validateKeywordUsage)(W,J,H),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=H,this.data=W.data,this.schema=W.schema[H],this.$data=J.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(W,this.schema,H,this.$data),this.schemaType=J.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=J,this.$data)this.schemaCode=W.gen.const("vSchema",te(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(J.schemaType)));("code"in J?J.trackErrors:!1!==J.errors)&&(this.errsCount=W.gen.const("_errs",l.default.errors))}return Se(P,[{key:"result",value:function(W,J,H){this.failResult((0,a.not)(W),J,H)}},{key:"failResult",value:function(W,J,H){this.gen.if(W),H?H():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(W,J){this.failResult((0,a.not)(W),void 0,J)}},{key:"fail",value:function(W){if(void 0===W)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(W){if(!this.$data)return this.fail(W);var J=this.schemaCode;this.fail((0,a._)(HJ||(HJ=Ee([""," !== undefined && (",")"])),J,(0,a.or)(this.invalid$data(),W)))}},{key:"error",value:function(W,J,H){if(J)return this.setParams(J),this._error(W,H),void this.setParams({});this._error(W,H)}},{key:"_error",value:function(W,J){(W?d.reportExtraError:d.reportError)(this,this.def.error,J)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(W){this.allErrors||this.gen.if(W)}},{key:"setParams",value:function(W,J){J?Object.assign(this.params,W):this.params=W}},{key:"block$data",value:function(W,J){var H=this,le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(W,le),J()})}},{key:"check$data",value:function(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,le=this.schemaCode,E=this.schemaType,O=this.def;H.if((0,a.or)((0,a._)(UJ||(UJ=Ee([""," === undefined"])),le),J)),W!==a.nil&&H.assign(W,!0),(E.length||O.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),W!==a.nil&&H.assign(W,!1)),H.else()}}},{key:"invalid$data",value:function(){var W=this.gen,J=this.schemaCode,H=this.schemaType,le=this.def,E=this.it;return(0,a.or)(function(){if(H.length){if(!(J instanceof a.Name))throw new Error("ajv implementation error");var O=Array.isArray(H)?H:[H];return(0,a._)(zJ||(zJ=Ee(["",""])),(0,i.checkDataTypes)(O,J,E.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(le.validateSchema){var O=W.scopeValue("validate$data",{ref:le.validateSchema});return(0,a._)(GJ||(GJ=Ee(["!","(",")"])),O,J)}return a.nil}())}},{key:"subschema",value:function(W,J){var H=(0,s.getSubschema)(this.it,W);(0,s.extendSubschemaData)(H,this.it,W),(0,s.extendSubschemaMode)(H,W);var le=Qe(Qe(Qe({},this.it),H),{},{items:void 0,props:void 0});return function p(P,W){g(P)&&(v(P),m(P))?function(J,H){var I,q,E=J.gen;J.opts.$comment&&J.schema.$comment&&_(J),(q=(I=J).schema[I.opts.schemaId])&&(I.baseId=(0,c.resolveUrl)(I.opts.uriResolver,I.baseId,q)),function(I){if(I.schema.$async&&!I.schemaEnv.$async)throw new Error("async schema in sync schema")}(J);var O=E.const("_errs",l.default.errors);y(J,O),E.var(H,(0,a._)(OJ||(OJ=Ee([""," === ",""])),O,l.default.errors))}(P,W):(0,t.boolOrEmptySchema)(P,W)}(le,J),le}},{key:"mergeEvaluated",value:function(W,J){var H=this.it,le=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==W.props&&(H.props=u.mergeEvaluated.props(le,W.props,H.props,J)),!0!==H.items&&void 0!==W.items&&(H.items=u.mergeEvaluated.items(le,W.items,H.items,J)))}},{key:"mergeValidEvaluated",value:function(W,J){var H=this,le=this.it;if(le.opts.unevaluated&&(!0!==le.props||!0!==le.items))return this.gen.if(J,function(){return H.mergeEvaluated(W,a.Name)}),!0}}]),P}();function U(P,W,J,H){var le=new R(P,J,W);"code"in J?J.code(le,H):le.$data&&J.validate?(0,o.funcKeywordCode)(le,J):"macro"in J?(0,o.macroKeywordCode)(le,J):(J.compile||J.validate)&&(0,o.funcKeywordCode)(le,J)}vf.KeywordCxt=R;var G=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function te(P,W){var J,H,le=W.dataLevel,E=W.dataNames,O=W.dataPathArr;if(""===P)return l.default.rootData;if("/"===P[0]){if(!G.test(P))throw new Error("Invalid JSON-pointer: ".concat(P));J=P,H=l.default.rootData}else{var I=X.exec(P);if(!I)throw new Error("Invalid JSON-pointer: ".concat(P));var q=+I[1];if("#"===(J=I[2])){if(q>=le)throw new Error(ye("property/index",q));return O[le-q]}if(q>le)throw new Error(ye("data",q));if(H=E[le-q],!J)return H}var V,re=H,de=Re(J.split("/"));try{for(de.s();!(V=de.n()).done;){var Oe=V.value;Oe&&(H=(0,a._)(WJ||(WJ=Ee(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(Oe))),re=(0,a._)(qJ||(qJ=Ee([""," && ",""])),re,H))}}catch(Xe){de.e(Xe)}finally{de.f()}return re;function ye(Xe,Le){return"Cannot access ".concat(Xe," ").concat(Le," levels up, current level is ").concat(le)}}return vf.getData=te,vf}Ba.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=c1(t[r]||n),a={"":s},l=Sge(o,s,!1),c={},u=new Set;return cst(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=_.call(e,f[r])),w.call(e,f.$anchor),w.call(e,f.$dynamicAnchor),a[p]=y}function _(k){if(k=c1(y?(0,this.opts.uriResolver.resolve)(y,k):k),u.has(k))throw h(k);u.add(k);var L=this.refs[k];return"string"==typeof L&&(L=this.refs[L]),"object"==mn(L)?d(f,L.schema,k):k!==c1(v)&&("#"===k[0]?(d(f,c[k],k),c[k]=f):this.refs[k]=v),k}function w(k){if("string"==typeof k){if(!fst.test(k))throw new Error('invalid anchor "'.concat(k,'"'));_.call(this,"#".concat(k))}}}),c;function d(f,p,m){if(void 0!==p&&!lst(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var Tge,iT={};function pR(){if(Tge)return iT;Tge=1,Object.defineProperty(iT,"__esModule",{value:!0});var t=function(n){xt(i,M_(Error));var e=wt(i);function i(r){var o;return Ce(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Se(i)}();return iT.default=t,iT}var Ege,rT={};function mR(){if(Ege)return rT;Ege=1,Object.defineProperty(rT,"__esModule",{value:!0});var t=Ba,n=function(e){xt(r,M_(Error));var i=wt(r);function r(o,s,a,l){var c;return Ce(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Se(r)}();return rT.default=n,rT}var Yl={};Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.resolveSchema=Yl.getCompilingSchema=Yl.resolveRef=Yl.compileSchema=Yl.SchemaEnv=void 0;var dd=xr(),pst=pR(),yg=Rp(),hd=Ba,Age=Lr,mst=nT(),oT=Se(function t(n){var e,i;Ce(this,t),this.refs={},this.dynamicAnchors={},"object"==mn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,hd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function gR(t){var n=Mge.call(this,t);if(n)return n;var e,i=(0,hd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new dd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:pst.default,code:(0,dd._)(YJ||(YJ=Ee(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:yg.default.data,parentData:yg.default.parentData,parentDataProperty:yg.default.parentDataProperty,dataNames:[yg.default.data],dataPathArr:[dd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,dd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:dd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,dd._)(XJ||(XJ=Ee(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,mst.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(yg.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(yg.default.self),"".concat(yg.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof dd.Name?void 0:p,items:m instanceof dd.Name?void 0:m,dynamicProps:p instanceof dd.Name,dynamicItems:m instanceof dd.Name},f.source&&(f.source.evaluated=(0,dd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function gst(t){return(0,hd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:gR.call(this,t)}function Mge(t){var n,e,i,r=Re(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function vst(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||sT.call(this,t,n)}function sT(t,n){var e=this.opts.uriResolver.parse(n),i=(0,hd._getFullPath)(this.opts.uriResolver,e),r=(0,hd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return vR.call(this,e,t);var o=(0,hd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=sT.call(this,t,s);return"object"!==mn(a?.schema)?void 0:vR.call(this,e,a)}if("object"===mn(s?.schema)){if(s.validate||gR.call(this,s),o===(0,hd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,hd.resolveUrl)(this.opts.uriResolver,r,u)),new oT({schema:l,schemaId:c,root:t,baseId:r})}return vR.call(this,e,s)}}Yl.SchemaEnv=oT,Yl.compileSchema=gR,Yl.resolveRef=function(t,n,e){var i;e=(0,hd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=vst.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new oT({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=gst.call(this,o):void 0},Yl.getCompilingSchema=Mge,Yl.resolveSchema=sT;var yst=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function vR(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=Re(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,Age.unescapeFragment)(c)];if(void 0===u)return;var d="object"===mn(r=u)&&r[this.opts.schemaId];!yst.has(c)&&d&&(i=(0,hd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,Age.schemaHasRulesButRef)(r,this.RULES)){var h=(0,hd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=sT.call(this,o,h)}return(a=a||new oT({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var _st={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},yR={},Oge={};(function(t){function n(){for(var xe=arguments.length,He=Array(xe),We=0;We1){He[0]=He[0].slice(0,-1);for(var lt=He.length-1,Ue=1;Ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=Math.floor,G=String.fromCharCode;function X(xe){throw new RangeError(z[xe])}function P(xe,He){var We=xe.split("@"),lt="";return We.length>1&&(lt=We[0]+"@",xe=We[1]),lt+function te(xe,He){for(var We=[],lt=xe.length;lt--;)We[lt]=He(xe[lt]);return We}((xe=xe.replace(L,".")).split("."),He).join(".")}function W(xe){for(var He=[],We=0,lt=xe.length;We=55296&&Ue<=56319&&We>1,xe+=U(xe/He);xe>455;lt+=f)xe=U(xe/35);return U(lt+36*xe/(xe+38))},O=function(xe){var He=[],We=xe.length,lt=0,Ue=128,kn=72,ti=xe.lastIndexOf("-");ti<0&&(ti=0);for(var ci=0;ci=128&&X("not-basic"),He.push(xe.charCodeAt(ci));for(var li=ti>0?ti+1:0;li=We&&X("invalid-input");var vr=H(xe.charCodeAt(li++));(vr>=f||vr>U((h-lt)/qr))&&X("overflow"),lt+=vr*qr;var Te=fi<=kn?1:fi>=kn+26?26:fi-kn;if(vrU(h/St)&&X("overflow"),qr*=St}var Vt=He.length+1;kn=E(lt-Sr,Vt,0==Sr),U(lt/Vt)>h-Ue&&X("overflow"),Ue+=U(lt/Vt),lt%=Vt,He.splice(lt++,0,Ue)}return String.fromCodePoint.apply(String,He)},I=function(xe){var He=[],We=(xe=W(xe)).length,lt=128,Ue=0,kn=72,ti=!0,ci=!1,li=void 0;try{for(var Sr,qr=xe[Symbol.iterator]();!(ti=(Sr=qr.next()).done);ti=!0){var fi=Sr.value;fi<128&&He.push(G(fi))}}catch(gd){ci=!0,li=gd}finally{try{!ti&&qr.return&&qr.return()}finally{if(ci)throw li}}var vr=He.length,Te=vr;for(vr&&He.push("-");Te=lt&&$nU((h-Ue)/Zn)&&X("overflow"),Ue+=(St-lt)*Zn,lt=St;var Yn=!0,yr=!1,Er=void 0;try{for(var Oo,ra=xe[Symbol.iterator]();!(Yn=(Oo=ra.next()).done);Yn=!0){var pd=Oo.value;if(pdh&&X("overflow"),pd==lt){for(var fu=Ue,oa=f;;oa+=f){var El=oa<=kn?1:oa>=kn+26?26:oa-kn;if(fu>6|192).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase():"%"+(He>>12|224).toString(16).toUpperCase()+"%"+(He>>6&63|128).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase()}function ye(xe){for(var He="",We=0,lt=xe.length;We=194&&Ue<224){if(lt-We>=6){var kn=parseInt(xe.substr(We+4,2),16);He+=String.fromCharCode((31&Ue)<<6|63&kn)}else He+=xe.substr(We,6);We+=6}else if(Ue>=224){if(lt-We>=9){var ti=parseInt(xe.substr(We+4,2),16),ci=parseInt(xe.substr(We+7,2),16);He+=String.fromCharCode((15&Ue)<<12|(63&ti)<<6|63&ci)}else He+=xe.substr(We,9);We+=9}else He+=xe.substr(We,3),We+=3}return He}function Xe(xe,He){function We(lt){var Ue=ye(lt);return Ue.match(He.UNRESERVED)?Ue:lt}return xe.scheme&&(xe.scheme=String(xe.scheme).replace(He.PCT_ENCODED,We).toLowerCase().replace(He.NOT_SCHEME,"")),void 0!==xe.userinfo&&(xe.userinfo=String(xe.userinfo).replace(He.PCT_ENCODED,We).replace(He.NOT_USERINFO,Oe).replace(He.PCT_ENCODED,r)),void 0!==xe.host&&(xe.host=String(xe.host).replace(He.PCT_ENCODED,We).toLowerCase().replace(He.NOT_HOST,Oe).replace(He.PCT_ENCODED,r)),void 0!==xe.path&&(xe.path=String(xe.path).replace(He.PCT_ENCODED,We).replace(xe.scheme?He.NOT_PATH:He.NOT_PATH_NOSCHEME,Oe).replace(He.PCT_ENCODED,r)),void 0!==xe.query&&(xe.query=String(xe.query).replace(He.PCT_ENCODED,We).replace(He.NOT_QUERY,Oe).replace(He.PCT_ENCODED,r)),void 0!==xe.fragment&&(xe.fragment=String(xe.fragment).replace(He.PCT_ENCODED,We).replace(He.NOT_FRAGMENT,Oe).replace(He.PCT_ENCODED,r)),xe}function Le(xe){return xe.replace(/^0*(.*)/,"$1")||"0"}function rt(xe,He){var We=xe.match(He.IPV4ADDRESS)||[],lt=u(We,2)[1];return lt?lt.split(".").map(Le).join("."):xe}function $(xe,He){var We=xe.match(He.IPV6ADDRESS)||[],lt=u(We,3),Ue=lt[1],kn=lt[2];if(Ue){for(var ti=Ue.toLowerCase().split("::").reverse(),ci=u(ti,2),li=ci[0],Sr=ci[1],qr=Sr?Sr.split(":").map(Le):[],fi=li.split(":").map(Le),vr=He.IPV4ADDRESS.test(fi[fi.length-1]),Te=vr?7:8,St=fi.length-Te,Vt=Array(Te),rn=0;rn1){var Ni=Vt.slice(0,un.index),$n=Vt.slice(un.index+un.length);ni=Ni.join(":")+"::"+$n.join(":")}else ni=Vt.join(":");return kn&&(ni+="%"+kn),ni}return xe}var ne=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ie=void 0==="".match(/(){0}/)[1];function Me(xe){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},We={},lt=!1!==He.iri?c:l;"suffix"===He.reference&&(xe=(He.scheme?He.scheme+":":"")+"//"+xe);var Ue=xe.match(ne);if(Ue){ie?(We.scheme=Ue[1],We.userinfo=Ue[3],We.host=Ue[4],We.port=parseInt(Ue[5],10),We.path=Ue[6]||"",We.query=Ue[7],We.fragment=Ue[8],isNaN(We.port)&&(We.port=Ue[5])):(We.scheme=Ue[1]||void 0,We.userinfo=-1!==xe.indexOf("@")?Ue[3]:void 0,We.host=-1!==xe.indexOf("//")?Ue[4]:void 0,We.port=parseInt(Ue[5],10),We.path=Ue[6]||"",We.query=-1!==xe.indexOf("?")?Ue[7]:void 0,We.fragment=-1!==xe.indexOf("#")?Ue[8]:void 0,isNaN(We.port)&&(We.port=xe.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ue[4]:void 0)),We.host&&(We.host=$(rt(We.host,lt),lt)),We.reference=void 0!==We.scheme||void 0!==We.userinfo||void 0!==We.host||void 0!==We.port||We.path||void 0!==We.query?void 0===We.scheme?"relative":void 0===We.fragment?"absolute":"uri":"same-document",He.reference&&"suffix"!==He.reference&&He.reference!==We.reference&&(We.error=We.error||"URI is not a "+He.reference+" reference.");var kn=de[(He.scheme||We.scheme||"").toLowerCase()];if(He.unicodeSupport||kn&&kn.unicodeSupport)Xe(We,lt);else{if(We.host&&(He.domainHost||kn&&kn.domainHost))try{We.host=re.toASCII(We.host.replace(lt.PCT_ENCODED,ye).toLowerCase())}catch(ti){We.error=We.error||"Host's domain name can not be converted to ASCII via punycode: "+ti}Xe(We,l)}kn&&kn.parse&&kn.parse(We,He)}else We.error=We.error||"URI can not be parsed.";return We}var je=/^\.\.?\//,gt=/^\/\.(\/|$)/,Tt=/^\/\.\.(\/|$)/,fn=/^\/?(?:.|\n)*?(?=\/|$)/;function Hn(xe){for(var He=[];xe.length;)if(xe.match(je))xe=xe.replace(je,"");else if(xe.match(gt))xe=xe.replace(gt,"/");else if(xe.match(Tt))xe=xe.replace(Tt,"/"),He.pop();else if("."===xe||".."===xe)xe="";else{var We=xe.match(fn);if(!We)throw new Error("Unexpected dot segment condition");var lt=We[0];xe=xe.slice(lt.length),He.push(lt)}return He.join("")}function Zt(xe){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},We=He.iri?c:l,lt=[],Ue=de[(He.scheme||xe.scheme||"").toLowerCase()];if(Ue&&Ue.serialize&&Ue.serialize(xe,He),xe.host&&!We.IPV6ADDRESS.test(xe.host)&&(He.domainHost||Ue&&Ue.domainHost))try{xe.host=He.iri?re.toUnicode(xe.host):re.toASCII(xe.host.replace(We.PCT_ENCODED,ye).toLowerCase())}catch(ci){xe.error=xe.error||"Host's domain name can not be converted to "+(He.iri?"Unicode":"ASCII")+" via punycode: "+ci}Xe(xe,We),"suffix"!==He.reference&&xe.scheme&&(lt.push(xe.scheme),lt.push(":"));var kn=function Ye(xe,He){var We=!1!==He.iri?c:l,lt=[];return void 0!==xe.userinfo&&(lt.push(xe.userinfo),lt.push("@")),void 0!==xe.host&<.push($(rt(String(xe.host),We),We).replace(We.IPV6ADDRESS,function(Ue,kn,ti){return"["+kn+(ti?"%25"+ti:"")+"]"})),"number"!=typeof xe.port&&"string"!=typeof xe.port||(lt.push(":"),lt.push(String(xe.port))),lt.length?lt.join(""):void 0}(xe,He);if(void 0!==kn&&("suffix"!==He.reference&<.push("//"),lt.push(kn),xe.path&&"/"!==xe.path.charAt(0)&<.push("/")),void 0!==xe.path){var ti=xe.path;He.absolutePath||Ue&&Ue.absolutePath||(ti=Hn(ti)),void 0===kn&&(ti=ti.replace(/^\/\//,"/%2F")),lt.push(ti)}return void 0!==xe.query&&(lt.push("?"),lt.push(xe.query)),void 0!==xe.fragment&&(lt.push("#"),lt.push(xe.fragment)),lt.join("")}function Ei(xe,He){var We=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},lt={};return arguments[3]||(xe=Me(Zt(xe,We),We),He=Me(Zt(He,We),We)),!(We=We||{}).tolerant&&He.scheme?(lt.scheme=He.scheme,lt.userinfo=He.userinfo,lt.host=He.host,lt.port=He.port,lt.path=Hn(He.path||""),lt.query=He.query):(void 0!==He.userinfo||void 0!==He.host||void 0!==He.port?(lt.userinfo=He.userinfo,lt.host=He.host,lt.port=He.port,lt.path=Hn(He.path||""),lt.query=He.query):(He.path?("/"===He.path.charAt(0)?lt.path=Hn(He.path):(lt.path=void 0===xe.userinfo&&void 0===xe.host&&void 0===xe.port||xe.path?xe.path?xe.path.slice(0,xe.path.lastIndexOf("/")+1)+He.path:He.path:"/"+He.path,lt.path=Hn(lt.path)),lt.query=He.query):(lt.path=xe.path,lt.query=void 0!==He.query?He.query:xe.query),lt.userinfo=xe.userinfo,lt.host=xe.host,lt.port=xe.port),lt.scheme=xe.scheme),lt.fragment=He.fragment,lt}function mr(xe,He){return xe&&xe.toString().replace(He&&He.iri?c.PCT_ENCODED:l.PCT_ENCODED,ye)}var gi={scheme:"http",domainHost:!0,parse:function(xe,He){return xe.host||(xe.error=xe.error||"HTTP URIs must have a host."),xe},serialize:function(xe,He){var We="https"===String(xe.scheme).toLowerCase();return xe.port!==(We?443:80)&&""!==xe.port||(xe.port=void 0),xe.path||(xe.path="/"),xe}},Vr={scheme:"https",domainHost:gi.domainHost,parse:gi.parse,serialize:gi.serialize};function Mo(xe){return"boolean"==typeof xe.secure?xe.secure:"wss"===String(xe.scheme).toLowerCase()}var On={scheme:"ws",domainHost:!0,parse:function(xe,He){var We=xe;return We.secure=Mo(We),We.resourceName=(We.path||"/")+(We.query?"?"+We.query:""),We.path=void 0,We.query=void 0,We},serialize:function(xe,He){if(xe.port!==(Mo(xe)?443:80)&&""!==xe.port||(xe.port=void 0),"boolean"==typeof xe.secure&&(xe.scheme=xe.secure?"wss":"ws",xe.secure=void 0),xe.resourceName){var We=xe.resourceName.split("?"),lt=u(We,2),Ue=lt[0],kn=lt[1];xe.path=Ue&&"/"!==Ue?Ue:void 0,xe.query=kn,xe.resourceName=void 0}return xe.fragment=void 0,xe}},bt={scheme:"wss",domainHost:On.domainHost,parse:On.parse,serialize:On.serialize},ai={},Ii="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Cr="[0-9A-Fa-f]",vo=e(e("%[EFef]"+Cr+"%"+Cr+Cr+"%"+Cr+Cr)+"|"+e("%[89A-Fa-f]"+Cr+"%"+Cr+Cr)+"|"+e("%"+Cr+Cr)),pt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),oi=new RegExp(Ii,"g"),vi=new RegExp(vo,"g"),Tr=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',pt),"g"),Hr=new RegExp(n("[^]",Ii,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),no=Hr;function Hs(xe){var He=ye(xe);return He.match(oi)?He:xe}var gr={scheme:"mailto",parse:function(xe,He){var We=xe,lt=We.to=We.path?We.path.split(","):[];if(We.path=void 0,We.query){for(var Ue=!1,kn={},ti=We.query.split("&"),ci=0,li=ti.length;ci string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=function(){function E(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ce(this,E),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,O=this.opts=Qe(Qe({},O),function y(E){var O,I,q,V,re,de,Oe,ye,Xe,Le,rt,$,ne,ie,Me,Ye,je,gt,Tt,fn,Hn,Zt,Ei,ln,dr,wr=E.strict,sr=null===(O=E.code)||void 0===O?void 0:O.optimize,mr=!0===sr||void 0===sr?1:sr||0,gi=null!==(q=null===(I=E.code)||void 0===I?void 0:I.regExp)&&void 0!==q?q:f,Vr=null!==(V=E.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(de=null!==(re=E.strictSchema)&&void 0!==re?re:wr)||void 0===de||de,strictNumbers:null===(ye=null!==(Oe=E.strictNumbers)&&void 0!==Oe?Oe:wr)||void 0===ye||ye,strictTypes:null!==(Le=null!==(Xe=E.strictTypes)&&void 0!==Xe?Xe:wr)&&void 0!==Le?Le:"log",strictTuples:null!==($=null!==(rt=E.strictTuples)&&void 0!==rt?rt:wr)&&void 0!==$?$:"log",strictRequired:null!==(ie=null!==(ne=E.strictRequired)&&void 0!==ne?ne:wr)&&void 0!==ie&&ie,code:E.code?Qe(Qe({},E.code),{},{optimize:mr,regExp:gi}):{optimize:mr,regExp:gi},loopRequired:null!==(Me=E.loopRequired)&&void 0!==Me?Me:200,loopEnum:null!==(Ye=E.loopEnum)&&void 0!==Ye?Ye:200,meta:null===(je=E.meta)||void 0===je||je,messages:null===(gt=E.messages)||void 0===gt||gt,inlineRefs:null===(Tt=E.inlineRefs)||void 0===Tt||Tt,schemaId:null!==(fn=E.schemaId)&&void 0!==fn?fn:"$id",addUsedSchema:null===(Hn=E.addUsedSchema)||void 0===Hn||Hn,validateSchema:null===(Zt=E.validateSchema)||void 0===Zt||Zt,validateFormats:null===(Ei=E.validateFormats)||void 0===Ei||Ei,unicodeRegExp:null===(ln=E.unicodeRegExp)||void 0===ln||ln,int32range:null===(dr=E.int32range)||void 0===dr||dr,uriResolver:Vr}}(O));var I=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:I.es5,lines:I.lines}),this.logger=function G(E){if(!1===E)return U;if(void 0===E)return console;if(E.log&&E.warn&&E.error)return E;throw new Error("logger must implement log, warn and error methods")}(O.logger);var re=O.validateFormats;O.validateFormats=!1,this.RULES=(0,o.getRules)(),w.call(this,g,O,"NOT SUPPORTED"),w.call(this,v,O,"DEPRECATED","warn"),this._metaOpts=R.call(this),O.formats&&L.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),O.keywords&&z.call(this,O.keywords),"object"==mn(O.meta)&&this.addMetaSchema(O.meta),D.call(this),O.validateFormats=re}return Se(E,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var O=this.opts,I=O.$data,q=O.meta,V=O.schemaId,re=d;"id"===V&&((re=Qe({},d)).id=re.$id,delete re.$id),q&&I&&this.addMetaSchema(re,re[V],!1)}},{key:"defaultMeta",value:function(){var O=this.opts,I=O.meta,q=O.schemaId;return this.opts.defaultMeta="object"==mn(I)?I[q]||I:void 0}},{key:"validate",value:function(O,I){var q;if("string"==typeof O){if(!(q=this.getSchema(O)))throw new Error('no schema with key or ref "'.concat(O,'"'))}else q=this.compile(O);var V=q(I);return"$async"in q||(this.errors=q.errors),V}},{key:"compile",value:function(O,I){var q=this._addSchema(O,I);return q.validate||this._compileSchemaEnv(q)}},{key:"compileAsync",value:function(O,I){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var q=this.opts.loadSchema;return V.call(this,O,I);function V(Me,Ye){return re.apply(this,arguments)}function re(){return(re=Ki(pn().mark(function Me(Ye,je){var gt;return pn().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,de.call(this,Ye.$schema);case 2:return gt=this._addSchema(Ye,je),Tt.abrupt("return",gt.validate||ye.call(this,gt));case 4:case"end":return Tt.stop()}},Me,this)}))).apply(this,arguments)}function de(Me){return Oe.apply(this,arguments)}function Oe(){return(Oe=Ki(pn().mark(function Me(Ye){return pn().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!Ye||this.getSchema(Ye)){je.next=3;break}return je.next=3,V.call(this,{$ref:Ye},!0);case 3:case"end":return je.stop()}},Me,this)}))).apply(this,arguments)}function ye(Me){return Xe.apply(this,arguments)}function Xe(){return(Xe=Ki(pn().mark(function Me(Ye){return pn().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.prev=0,je.abrupt("return",this._compileSchemaEnv(Ye));case 4:if(je.prev=4,je.t0=je.catch(0),je.t0 instanceof r.default){je.next=8;break}throw je.t0;case 8:return Le.call(this,je.t0),je.next=11,rt.call(this,je.t0.missingSchema);case 11:return je.abrupt("return",ye.call(this,Ye));case 12:case"end":return je.stop()}},Me,this,[[0,4]])}))).apply(this,arguments)}function Le(Me){var Ye=Me.missingSchema,je=Me.missingRef;if(this.refs[Ye])throw new Error("AnySchema ".concat(Ye," is loaded but ").concat(je," cannot be resolved"))}function rt(Me){return $.apply(this,arguments)}function $(){return($=Ki(pn().mark(function Me(Ye){var je;return pn().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return gt.next=2,ne.call(this,Ye);case 2:if(je=gt.sent,this.refs[Ye]){gt.next=6;break}return gt.next=6,de.call(this,je.$schema);case 6:this.refs[Ye]||this.addSchema(je,Ye,I);case 7:case"end":return gt.stop()}},Me,this)}))).apply(this,arguments)}function ne(Me){return ie.apply(this,arguments)}function ie(){return(ie=Ki(pn().mark(function Me(Ye){var je;return pn().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if(!(je=this._loading[Ye])){gt.next=3;break}return gt.abrupt("return",je);case 3:return gt.prev=3,gt.next=6,this._loading[Ye]=q(Ye);case 6:return gt.abrupt("return",gt.sent);case 7:return gt.prev=7,delete this._loading[Ye],gt.finish(7);case 10:case"end":return gt.stop()}},Me,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(O,I,q){var V,re=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(O)){var de,Oe=Re(O);try{for(Oe.s();!(de=Oe.n()).done;)this.addSchema(de.value,void 0,q,re)}catch(Le){Oe.e(Le)}finally{Oe.f()}return this}if("object"===mn(O)){var Xe=this.opts.schemaId;if(void 0!==(V=O[Xe])&&"string"!=typeof V)throw new Error("schema ".concat(Xe," must be string"))}return I=(0,l.normalizeId)(I||V),this._checkUnique(I),this.schemas[I]=this._addSchema(O,q,I,re,!0),this}},{key:"addMetaSchema",value:function(O,I){return this.addSchema(O,I,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(O,I){if("boolean"==typeof O)return!0;var q;if(void 0!==(q=O.$schema)&&"string"!=typeof q)throw new Error("$schema must be a string");if(!(q=q||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(q,O);if(!V&&I){var re="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(re);this.logger.error(re)}return V}},{key:"getSchema",value:function(O){for(var I;"string"==typeof(I=k.call(this,O));)O=I;if(void 0===I){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(I=s.resolveSchema.call(this,V,O)))return;this.refs[O]=I}return I.validate||this._compileSchemaEnv(I)}},{key:"removeSchema",value:function(O){if(O instanceof RegExp)return this._removeAllSchemas(this.schemas,O),this._removeAllSchemas(this.refs,O),this;switch(mn(O)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var I=k.call(this,O);return"object"==mn(I)&&this._cache.delete(I.schema),delete this.schemas[O],delete this.refs[O],this;case"object":this._cache.delete(O);var V=O[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(O){var I,q=Re(O);try{for(q.s();!(I=q.n()).done;)this.addKeyword(I.value)}catch(re){q.e(re)}finally{q.f()}return this}},{key:"addKeyword",value:function(O,I){var q,V=this;if("string"==typeof O)q=O,"object"==mn(I)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),I.keyword=q);else{if("object"!=mn(O)||void 0!==I)throw new Error("invalid addKeywords parameters");if(q=(I=O).keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(te.call(this,q,I),!I)return(0,u.eachItem)(q,function(de){return P.call(V,de)}),this;J.call(this,I);var re=Qe(Qe({},I),{},{type:(0,c.getJSONTypes)(I.type),schemaType:(0,c.getJSONTypes)(I.schemaType)});return(0,u.eachItem)(q,0===re.type.length?function(de){return P.call(V,de,re)}:function(de){return re.type.forEach(function(Oe){return P.call(V,de,re,Oe)})}),this}},{key:"getKeyword",value:function(O){var I=this.RULES.all[O];return"object"==mn(I)?I.definition:!!I}},{key:"removeKeyword",value:function(O){var I=this.RULES;delete I.keywords[O],delete I.all[O];var q,V=Re(I.rules);try{for(V.s();!(q=V.n()).done;){var re=q.value,de=re.rules.findIndex(function(Oe){return Oe.keyword===O});de>=0&&re.rules.splice(de,1)}}catch(Oe){V.e(Oe)}finally{V.f()}return this}},{key:"addFormat",value:function(O,I){return"string"==typeof I&&(I=new RegExp(I)),this.formats[O]=I,this}},{key:"errorsText",value:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},q=I.separator,V=void 0===q?", ":q,re=I.dataVar,de=void 0===re?"data":re;return O&&0!==O.length?O.map(function(Oe){return"".concat(de).concat(Oe.instancePath," ").concat(Oe.message)}).reduce(function(Oe,ye){return Oe+V+ye}):"No errors"}},{key:"$dataMetaSchema",value:function(O,I){var q=this.RULES.all;O=JSON.parse(JSON.stringify(O));var V,re=Re(I);try{for(re.s();!(V=re.n()).done;){var de,Oe=V.value.split("/").slice(1),ye=O,Xe=Re(Oe);try{for(Xe.s();!(de=Xe.n()).done;)ye=ye[de.value]}catch(ie){Xe.e(ie)}finally{Xe.f()}for(var Le in q){var rt=q[Le];if("object"==mn(rt)){var ne=ye[Le];rt.definition.$data&&ne&&(ye[Le]=le(ne))}}}}catch(ie){re.e(ie)}finally{re.f()}return O}},{key:"_removeAllSchemas",value:function(O,I){for(var q in O){var V=O[q];I&&!I.test(q)||("string"==typeof V?delete O[q]:V&&!V.meta&&(this._cache.delete(V.schema),delete O[q]))}}},{key:"_addSchema",value:function(O,I,q){var V,re=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,de=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,Oe=this.opts.schemaId;if("object"==mn(O))V=O[Oe];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof O)throw new Error("schema must be object or boolean")}var ye=this._cache.get(O);if(void 0!==ye)return ye;q=(0,l.normalizeId)(V||q);var Xe=l.getSchemaRefs.call(this,O,q);return ye=new s.SchemaEnv({schema:O,schemaId:Oe,meta:I,baseId:q,localRefs:Xe}),this._cache.set(ye.schema,ye),de&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=ye),re&&this.validateSchema(O,!0),ye}},{key:"_checkUnique",value:function(O){if(this.schemas[O]||this.refs[O])throw new Error('schema with key or id "'.concat(O,'" already exists'))}},{key:"_compileSchemaEnv",value:function(O){if(O.meta?this._compileMetaSchema(O):s.compileSchema.call(this,O),!O.validate)throw new Error("ajv implementation error");return O.validate}},{key:"_compileMetaSchema",value:function(O){var I=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,O)}finally{this.opts=I}}}]),E}();function w(E,O,I){var q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in E){var re=V;re in O&&this.logger[q]("".concat(I,": option ").concat(V,". ").concat(E[re]))}}function k(E){return E=(0,l.normalizeId)(E),this.schemas[E]||this.refs[E]}function D(){var E=this.opts.schemas;if(E)if(Array.isArray(E))this.addSchema(E);else for(var O in E)this.addSchema(E[O],O)}function L(){for(var E in this.opts.formats){var O=this.opts.formats[E];O&&this.addFormat(E,O)}}function z(E){if(Array.isArray(E))this.addVocabulary(E);else for(var O in this.logger.warn("keywords option as map is deprecated, pass array"),E){var I=E[O];I.keyword||(I.keyword=O),this.addKeyword(I)}}function R(){var E,O=Qe({},this.opts),I=Re(p);try{for(I.s();!(E=I.n()).done;)delete O[E.value]}catch(q){I.e(q)}finally{I.f()}return O}t.default=_,_.ValidationError=i.default,_.MissingRefError=r.default;var U={log:function(){},warn:function(){},error:function(){}},X=/^[a-z_$][a-z0-9_$:-]*$/i;function te(E,O){var I=this.RULES;if((0,u.eachItem)(E,function(q){if(I.keywords[q])throw new Error("Keyword ".concat(q," is already defined"));if(!X.test(q))throw new Error("Keyword ".concat(q," has invalid name"))}),O&&O.$data&&!("code"in O)&&!("validate"in O))throw new Error('$data keyword must have "code" or "validate" function')}function P(E,O,I){var q,V=this,re=O?.post;if(I&&re)throw new Error('keyword with "post" flag cannot have "type"');var de=this.RULES,Oe=re?de.post:de.rules.find(function(Xe){return Xe.type===I});if(Oe||de.rules.push(Oe={type:I,rules:[]}),de.keywords[E]=!0,O){var ye={keyword:E,definition:Qe(Qe({},O),{},{type:(0,c.getJSONTypes)(O.type),schemaType:(0,c.getJSONTypes)(O.schemaType)})};O.before?W.call(this,Oe,ye,O.before):Oe.rules.push(ye),de.all[E]=ye,null===(q=O.implements)||void 0===q||q.forEach(function(Xe){return V.addKeyword(Xe)})}}function W(E,O,I){var q=E.rules.findIndex(function(V){return V.keyword===I});q>=0?E.rules.splice(q,0,O):(E.rules.push(O),this.logger.warn("rule ".concat(I," is not defined")))}function J(E){var O=E.metaSchema;void 0!==O&&(E.$data&&this.opts.$data&&(O=le(O)),E.validateSchema=this.compile(O,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function le(E){return{anyOf:[E,H]}}}(oge);var _R={},bR={},xR={};Object.defineProperty(xR,"__esModule",{value:!0}),xR.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var _g={};Object.defineProperty(_g,"__esModule",{value:!0}),_g.callRef=_g.getValidate=void 0;var xst=mR(),Nge=ud(),Xl=xr(),u1=Rp(),Fge=Yl,aT=Lr,wst={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return lT(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return lT(t,(0,Xl._)(JJ||(JJ=Ee(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=Fge.resolveRef.call(l,c,r,e);if(void 0===p)throw new xst.default(i.opts.uriResolver,r,e);return p instanceof Fge.SchemaEnv?(g=Pge(t,m=p),void lT(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,Xl.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:Xl.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function Pge(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,Xl._)(KJ||(KJ=Ee(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function lT(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?u1.default.this:Xl.nil;function c(d){var h=(0,Xl._)(eK||(eK=Ee(["",".errors"])),d);r.assign(u1.default.vErrors,(0,Xl._)(tK||(tK=Ee([""," === null ? "," : ",".concat(",")"])),u1.default.vErrors,h,u1.default.vErrors,h)),r.assign(u1.default.errors,(0,Xl._)(nK||(nK=Ee(["",".length"])),u1.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=aT.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,Xl._)(iK||(iK=Ee(["",".evaluated.props"])),d));o.props=aT.mergeEvaluated.props(r,p,o.props,Xl.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=aT.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,Xl._)(rK||(rK=Ee(["",".evaluated.items"])),d));o.items=aT.mergeEvaluated.items(r,m,o.items,Xl.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,Xl._)(QJ||(QJ=Ee(["await ",""])),(0,Nge.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,Xl._)(ZJ||(ZJ=Ee(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,Nge.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}_g.getValidate=Pge,_g.callRef=lT,_g.default=wst,Object.defineProperty(bR,"__esModule",{value:!0}),bR.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",xR.default,_g.default];var wR={},CR={};Object.defineProperty(CR,"__esModule",{value:!0});var cT=xr(),$p=cT.operators,uT={maximum:{okStr:"<=",ok:$p.LTE,fail:$p.GT},minimum:{okStr:">=",ok:$p.GTE,fail:$p.LT},exclusiveMaximum:{okStr:"<",ok:$p.LT,fail:$p.GTE},exclusiveMinimum:{okStr:">",ok:$p.GT,fail:$p.LTE}},kst={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,cT.str)(oK||(oK=Ee(["must be "," ",""])),uT[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,cT._)(sK||(sK=Ee(["{comparison: ",", limit: ","}"])),uT[n].okStr,e)}},Dst={keyword:Object.keys(uT),type:"number",schemaType:"number",$data:!0,error:kst,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,cT._)(aK||(aK=Ee([""," "," "," || isNaN(",")"])),e,uT[n].fail,i,e))}};CR.default=Dst;var SR={};Object.defineProperty(SR,"__esModule",{value:!0});var tx=xr(),Tst={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,tx.str)(lK||(lK=Ee(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,tx._)(cK||(cK=Ee(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,tx._)(uK||(uK=Ee(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,tx._)(dK||(dK=Ee([""," !== parseInt(",")"])),o,o);t.fail$data((0,tx._)(hK||(hK=Ee(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};SR.default=Tst;var kR={},DR={};function jge(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(rx.nil,g);else{var v,y=Re(e);try{for(y.s();!(v=y.n()).done;)(0,ix.checkReportMissingProp)(t,v.value)}catch(w){y.e(w)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return w=y,t.setParams({missingProperty:_=v}),void n.forOf(_,i,function(){n.assign(w,(0,ix.propertyInData)(n,r,_,a.ownProperties)),n.if((0,rx.not)(w),function(){t.error(),n.break()})},rx.nil);var _,w}),t.ok(y)}else n.if((0,ix.checkMissingProp)(t,e,v)),(0,ix.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=Re(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,jst.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,ix.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};AR.default=Rst;var MR={};Object.defineProperty(MR,"__esModule",{value:!0});var ox=xr(),Lst={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,ox.str)(TK||(TK=Ee(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,ox._)(EK||(EK=Ee(["{limit: ","}"])),n)}},$st={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Lst,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?ox.operators.GT:ox.operators.LT;t.fail$data((0,ox._)(AK||(AK=Ee(["",".length "," ",""])),e,r,i))}};MR.default=$st;var OR={},sx={};Object.defineProperty(sx,"__esModule",{value:!0});var Rge=wge;Rge.code='require("ajv/dist/runtime/equal").default',sx.default=Rge,Object.defineProperty(OR,"__esModule",{value:!0});var IR=Zb,Va=xr(),Bst=Lr,Vst=sx,Hst={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Va.str)(MK||(MK=Ee(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Va._)(OK||(OK=Ee(["{i: ",", j: ","}"])),e,i)}},Ust={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Hst,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,IR.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Va._)(NK||(NK=Ee(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Va._)(FK||(FK=Ee([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Va._)(IK||(IK=Ee([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,IR.checkDataTypes)(c,p,a.opts.strictNumbers,IR.DataType.Wrong),g=n.const("indices",(0,Va._)(PK||(PK=Ee(["{}"]))));n.for((0,Va._)(jK||(jK=Ee([";","--;"])),h),function(){n.let(p,(0,Va._)(RK||(RK=Ee(["","[","]"])),e,h)),n.if(m,(0,Va._)(LK||(LK=Ee(["continue"])))),c.length>1&&n.if((0,Va._)($K||($K=Ee(["typeof ",' == "string"'])),p),(0,Va._)(BK||(BK=Ee(["",' += "_"'])),p)),n.if((0,Va._)(VK||(VK=Ee(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Va._)(HK||(HK=Ee(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Va._)(UK||(UK=Ee(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,Bst.useFunc)(n,Vst.default),m=n.name("outer");n.label(m).for((0,Va._)(zK||(zK=Ee([";","--;"])),h),function(){return n.for((0,Va._)(GK||(GK=Ee([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Va._)(WK||(WK=Ee(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};OR.default=Ust;var NR={};Object.defineProperty(NR,"__esModule",{value:!0});var FR=xr(),zst=Lr,Gst=sx,Wst={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,FR._)(qK||(qK=Ee(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==mn(o)?t.fail$data((0,FR._)(YK||(YK=Ee(["!","(",", ",")"])),(0,zst.useFunc)(n,Gst.default),e,r)):t.fail((0,FR._)(XK||(XK=Ee([""," !== ",""])),o,e))}};NR.default=Wst;var PR={};Object.defineProperty(PR,"__esModule",{value:!0});var ax=xr(),qst=Lr,Yst=sx,Xst={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,ax._)(JK||(JK=Ee(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,qst.useFunc)(n,Yst.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,ax._)(KK||(KK=Ee(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=ax.or.apply(void 0,ri(r.map(function(h,f){return p=d,"object"===mn(g=r[m=f])&&null!==g?(0,ax._)(QK||(QK=Ee(["","(",", ","[","])"])),u(),e,p,m):(0,ax._)(ZK||(ZK=Ee([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};PR.default=Xst,Object.defineProperty(wR,"__esModule",{value:!0}),wR.default=[CR.default,SR.default,kR.default,TR.default,ER.default,AR.default,MR.default,OR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},NR.default,PR.default];var jR={},d1={};Object.defineProperty(d1,"__esModule",{value:!0}),d1.validateAdditionalItems=void 0;var xg=xr(),RR=Lr,sat={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,xg.str)(eQ||(eQ=Ee(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,xg._)(tQ||(tQ=Ee(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Lge(t,i):(0,RR.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Lge(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,xg._)(nQ||(nQ=Ee(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,xg._)(iQ||(iQ=Ee([""," <= ",""])),a,n.length));else if("object"==mn(i)&&!(0,RR.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,xg._)(rQ||(rQ=Ee([""," <= ",""])),a,n.length));e.if((0,xg.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:RR.Type.Num},c),s.allErrors||e.if((0,xg.not)(c),function(){return e.break()})});var c}),t.ok(l)}}d1.validateAdditionalItems=Lge,d1.default=sat;var LR={},h1={};Object.defineProperty(h1,"__esModule",{value:!0}),h1.validateTuple=void 0;var $ge=xr(),hT=Lr,aat=ud(),lat={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Bge(t,"additionalItems",n);e.items=!0,(0,hT.alwaysValidSchema)(e,n)||t.ok((0,aat.validateArray)(t))}};function Bge(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,hT.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=hT.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,$ge._)(oQ||(oQ=Ee(["",".length"])),o));e.forEach(function(d,h){(0,hT.alwaysValidSchema)(a,d)||(i.if((0,$ge._)(sQ||(sQ=Ee([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}h1.validateTuple=Bge,h1.default=lat,Object.defineProperty(LR,"__esModule",{value:!0});var cat=h1,uat={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,cat.validateTuple)(t,"items")}};LR.default=uat;var $R={};Object.defineProperty($R,"__esModule",{value:!0});var Vge=xr(),dat=Lr,hat=ud(),fat=d1,pat={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Vge.str)(aQ||(aQ=Ee(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Vge._)(lQ||(lQ=Ee(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,dat.alwaysValidSchema)(i,n)||(r?(0,fat.validateAdditionalItems)(t,r):t.ok((0,hat.validateArray)(t)))}};$R.default=pat;var BR={};Object.defineProperty(BR,"__esModule",{value:!0});var hu=xr(),fT=Lr,mat={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,hu.str)(cQ||(cQ=Ee(["must contain at least "," valid item(s)"])),e):(0,hu.str)(uQ||(uQ=Ee(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,hu._)(dQ||(dQ=Ee(["{minContains: ","}"])),e):(0,hu._)(hQ||(hQ=Ee(["{minContains: ",", maxContains: ","}"])),e,i)}},gat={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:mat,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,hu._)(fQ||(fQ=Ee(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,fT.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,fT.alwaysValidSchema)(a,r)){var d=(0,hu._)(pQ||(pQ=Ee([""," >= ",""])),u,n);return void 0!==e&&(d=(0,hu._)(mQ||(mQ=Ee([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,hu._)(gQ||(gQ=Ee(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,fT.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,hu._)(vQ||(vQ=Ee(["","++"])),v)),void(void 0===e?i.if((0,hu._)(yQ||(yQ=Ee([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,hu._)(_Q||(_Q=Ee([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,hu._)(bQ||(bQ=Ee([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:fT.Type.Num,compositeRule:!0},m),g()})}}};BR.default=gat;var Hge={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=xr(),e=Lr,i=ud();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(xQ||(xQ=Ee(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(wQ||(wQ=Ee(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Un(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,_=Re(g);try{for(_.s();!(y=_.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(k){_.e(k)}finally{_.f()}}):(c.if((0,n._)(CQ||(CQ=Ee([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Hge);var VR={};Object.defineProperty(VR,"__esModule",{value:!0});var Uge=xr(),vat=Lr,yat={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Uge._)(SQ||(SQ=Ee(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,vat.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Uge.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};VR.default=yat;var pT={};Object.defineProperty(pT,"__esModule",{value:!0});var mT=ud(),fd=xr(),_at=Rp(),gT=Lr,bat={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,fd._)(kQ||(kQ=Ee(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,gT.alwaysValidSchema)(s,e)){var c=(0,mT.allSchemaProperties)(i.properties),u=(0,mT.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,gT.schemaRefOrVal)(s,i.properties,"properties");g=(0,mT.isOwnProperty)(n,v,m)}else g=c.length?fd.or.apply(void 0,ri(c.map(function(y){return(0,fd._)(TQ||(TQ=Ee([""," === ",""])),m,y)}))):fd.nil;return u.length&&(g=fd.or.apply(void 0,[g].concat(ri(u.map(function(y){return(0,fd._)(EQ||(EQ=Ee(["",".test(",")"])),(0,mT.usePattern)(t,y),m)}))))),(0,fd.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,fd._)(DQ||(DQ=Ee([""," === ",""])),o,_at.default.errors))}function d(p){n.code((0,fd._)(AQ||(AQ=Ee(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==mn(e)&&!(0,gT.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,fd.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,fd.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:gT.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};pT.default=bat;var HR={};Object.defineProperty(HR,"__esModule",{value:!0});var xat=nT(),zge=ud(),UR=Lr,Gge=pT,wat={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Gge.default.code(new xat.KeywordCxt(o,Gge.default,"additionalProperties"));var s,a=(0,zge.allSchemaProperties)(e),l=Re(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=UR.mergeEvaluated.props(n,(0,UR.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,UR.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=Re(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,zge.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};HR.default=wat;var zR={};Object.defineProperty(zR,"__esModule",{value:!0});var Wge=ud(),vT=xr(),qge=Lr,Yge=Lr,Cat={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,Wge.allSchemaProperties)(e),l=a.filter(function(p){return(0,qge.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof vT.Name||(o.props=(0,Yge.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=Re(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,qge.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,vT._)(MQ||(MQ=Ee(["",".test(",")"])),(0,Wge.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Yge.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,vT._)(OQ||(OQ=Ee(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,vT.not)(u),function(){return n.break()})})})}}};zR.default=Cat;var GR={};Object.defineProperty(GR,"__esModule",{value:!0});var Sat=Lr,kat={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,Sat.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};GR.default=kat;var WR={};Object.defineProperty(WR,"__esModule",{value:!0});var Dat={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ud().validateUnion,error:{message:"must match a schema in anyOf"}};WR.default=Dat;var qR={};Object.defineProperty(qR,"__esModule",{value:!0});var yT=xr(),Tat=Lr,Eat={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,yT._)(IQ||(IQ=Ee(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Tat.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,yT._)(NQ||(NQ=Ee([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,yT._)(FQ||(FQ=Ee(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,yT.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};qR.default=Eat;var YR={};Object.defineProperty(YR,"__esModule",{value:!0});var Aat=Lr,Mat={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Aat.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};YR.default=Mat;var XR={};Object.defineProperty(XR,"__esModule",{value:!0});var _T=xr(),Xge=Lr,Oat={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,_T.str)(PQ||(PQ=Ee(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,_T._)(jQ||(jQ=Ee(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Xge.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=Jge(i,"then"),o=Jge(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,_T.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,_T._)(RQ||(RQ=Ee(["",""])),d)):t.setParams({ifClause:d})}}}};function Jge(t,n){var e=t.schema[n];return void 0!==e&&!(0,Xge.alwaysValidSchema)(t,e)}XR.default=Oat;var JR={};Object.defineProperty(JR,"__esModule",{value:!0});var Iat=Lr,Nat={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,Iat.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};JR.default=Nat,Object.defineProperty(jR,"__esModule",{value:!0});var Fat=d1,Pat=LR,jat=h1,Rat=$R,Lat=BR,$at=Hge,Bat=VR,Vat=pT,Hat=HR,Uat=zR,zat=GR,Gat=WR,Wat=qR,qat=YR,Yat=XR,Xat=JR;jR.default=function(){var n=[zat.default,Gat.default,Wat.default,qat.default,Yat.default,Xat.default,Bat.default,Vat.default,$at.default,Hat.default,Uat.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Pat.default,Rat.default):n.push(Fat.default,jat.default),n.push(Lat.default),n};var KR={},QR={};Object.defineProperty(QR,"__esModule",{value:!0});var As=xr(),Jat={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,As.str)(LQ||(LQ=Ee(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,As._)($Q||($Q=Ee(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,As._)(BQ||(BQ=Ee(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,As._)(VQ||(VQ=Ee(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,As._)(HQ||(HQ=Ee(["",'.type || "string"'])),f)).assign(m,(0,As._)(UQ||(UQ=Ee(["",".validate"])),f))},function(){return e.assign(p,(0,As._)(zQ||(zQ=Ee(['"string"'])))).assign(m,f)}),t.fail$data((0,As.or)(!1===l.strictSchema?As.nil:(0,As._)(GQ||(GQ=Ee([""," && !",""])),s,m),(g=u.$async?(0,As._)(WQ||(WQ=Ee(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,As._)(qQ||(qQ=Ee(["","(",")"])),m,i),v=(0,As._)(YQ||(YQ=Ee(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,As._)(XQ||(XQ=Ee([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Un(function(v){var y=v instanceof RegExp?(0,As.regexpCode)(v):l.code.formats?(0,As._)(JQ||(JQ=Ee(["","",""])),l.code.formats,(0,As.getProperty)(o)):void 0,_=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=mn(v)||v instanceof RegExp?["string",v,_]:[v.type||"string",v.validate,(0,As._)(KQ||(KQ=Ee(["",".validate"])),_)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==mn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,As._)(QQ||(QQ=Ee(["await ","(",")"])),g,i)}return(0,As._)("function"==typeof m?ZQ||(ZQ=Ee(["","(",")"])):eZ||(eZ=Ee(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};QR.default=Jat,Object.defineProperty(KR,"__esModule",{value:!0}),KR.default=[QR.default];var f1={};Object.defineProperty(f1,"__esModule",{value:!0}),f1.contentVocabulary=f1.metadataVocabulary=void 0,f1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],f1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(_R,"__esModule",{value:!0});var elt=KR,Kge=f1,tlt=[bR.default,wR.default,(0,jR.default)(),elt.default,Kge.metadataVocabulary,Kge.contentVocabulary];_R.default=tlt;var ZR={},Qge={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(Qge),Object.defineProperty(ZR,"__esModule",{value:!0});var p1=xr(),eL=Qge,Zge=Yl,nlt=Lr,ilt={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===eL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,p1._)(tZ||(tZ=Ee(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,p1._)(nZ||(nZ=Ee(["","",""])),e,(0,p1.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,p1.Name),h}n.if((0,p1._)(iZ||(iZ=Ee(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=w(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",_="Expref",w="Pipe",L="EQ",z="GT",R="LT",U="GTE",G="LTE",X="NE",te="Flatten",P="Star",W="Filter",J="Dot",le="Lbrace",E="Lbracket",O="Lparen",I="Literal",q={".":J,"*":P,",":p,":":m,"{":le,"}":g,"]":h,"(":O,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},re={" ":!0,"\t":!0,"\n":!0};function de($){return $>="0"&&$<="9"||"-"===$}function Oe(){}Oe.prototype={tokenize:function($){var ne,ie,Me,Ye,je=[];for(this._current=0;this._current<$.length;)if((Ye=$[this._current])>="a"&&Ye<="z"||Ye>="A"&&Ye<="Z"||"_"===Ye)ne=this._current,ie=this._consumeUnquotedIdentifier($),je.push({type:u,value:ie,start:ne});else if(void 0!==q[$[this._current]])je.push({type:q[$[this._current]],value:$[this._current],start:this._current}),this._current++;else if(de($[this._current]))Me=this._consumeNumber($),je.push(Me);else if("["===$[this._current])Me=this._consumeLBracket($),je.push(Me);else if('"'===$[this._current])ne=this._current,ie=this._consumeQuotedIdentifier($),je.push({type:d,value:ie,start:ne});else if("'"===$[this._current])ne=this._current,ie=this._consumeRawStringLiteral($),je.push({type:I,value:ie,start:ne});else if("`"===$[this._current]){ne=this._current;var gt=this._consumeLiteral($);je.push({type:I,value:gt,start:ne})}else if(void 0!==V[$[this._current]])je.push(this._consumeOperator($));else if(void 0!==re[$[this._current]])this._current++;else if("&"===$[this._current])ne=this._current,this._current++,"&"===$[this._current]?(this._current++,je.push({type:"And",value:"&&",start:ne})):je.push({type:_,value:"&",start:ne});else{if("|"!==$[this._current]){var Tt=new Error("Unknown character:"+$[this._current]);throw Tt.name="LexerError",Tt}ne=this._current,this._current++,"|"===$[this._current]?(this._current++,je.push({type:"Or",value:"||",start:ne})):je.push({type:w,value:"|",start:ne})}return je},_consumeUnquotedIdentifier:function($){var ne,ie=this._current;for(this._current++;this._current<$.length&&((ne=$[this._current])>="a"&&ne<="z"||ne>="A"&&ne<="Z"||ne>="0"&&ne<="9"||"_"===ne);)this._current++;return $.slice(ie,this._current)},_consumeQuotedIdentifier:function($){var ne=this._current;this._current++;for(var ie=$.length;'"'!==$[this._current]&&this._current"===ie?"="===$[this._current]?(this._current++,{type:U,value:">=",start:ne}):{type:z,value:">",start:ne}:"="===ie&&"="===$[this._current]?(this._current++,{type:L,value:"==",start:ne}):void 0},_consumeLiteral:function($){this._current++;for(var ne,ie=this._current,Me=$.length;"`"!==$[this._current]&&this._current=0||["true","false","null"].indexOf($)>=0)return!0;if(!("-0123456789".indexOf($[0])>=0))return!1;try{return JSON.parse($),!0}catch{return!1}}};var ye={};function Xe(){}function Le($){this.runtime=$}function rt($){this._interpreter=$,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}ye.EOF=0,ye.UnquotedIdentifier=0,ye.QuotedIdentifier=0,ye.Rbracket=0,ye.Rparen=0,ye.Comma=0,ye.Rbrace=0,ye.Number=0,ye.Current=0,ye.Expref=0,ye.Pipe=1,ye.Or=2,ye.And=3,ye.EQ=5,ye.GT=5,ye.LT=5,ye.GTE=5,ye.LTE=5,ye.NE=5,ye.Flatten=9,ye.Star=20,ye.Filter=21,ye.Dot=40,ye.Not=45,ye.Lbrace=50,ye.Lbracket=55,ye.Lparen=60,Xe.prototype={parse:function($){this._loadTokens($),this.index=0;var ne=this.expression(0);if("EOF"!==this._lookahead(0)){var ie=this._lookaheadToken(0),Me=new Error("Unexpected token type: "+ie.type+", value: "+ie.value);throw Me.name="ParserError",Me}return ne},_loadTokens:function($){var ne=(new Oe).tokenize($);ne.push({type:"EOF",value:"",start:$.length}),this.tokens=ne},expression:function($){var ne=this._lookaheadToken(0);this._advance();for(var ie=this.nud(ne),Me=this._lookahead(0);$=0?this.expression($):ne===E?(this._match(E),this._parseMultiselectList()):ne===le?(this._match(le),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function($){var ne;if(ye[this._lookahead(0)]<10)ne={type:"Identity"};else if(this._lookahead(0)===E)ne=this.expression($);else if(this._lookahead(0)===W)ne=this.expression($);else{if(this._lookahead(0)!==J){var ie=this._lookaheadToken(0),Me=new Error("Sytanx error, unexpected token: "+ie.value+"("+ie.type+")");throw Me.name="ParserError",Me}this._match(J),ne=this._parseDotRHS($)}return ne},_parseMultiselectList:function(){for(var $=[];this._lookahead(0)!==h;){var ne=this.expression(0);if($.push(ne),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:$}},_parseMultiselectHash:function(){for(var $,ne,ie,Me=[],Ye=[u,d];;){if($=this._lookaheadToken(0),Ye.indexOf($.type)<0)throw new Error("Expecting an identifier token, got: "+$.type);if(ne=$.value,this._advance(),this._match(m),ie={type:"KeyValuePair",name:ne,value:this.expression(0)},Me.push(ie),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Me}}},Le.prototype={search:function($,ne){return this.visit($,ne)},visit:function($,ne){var ie,Me,Ye,je,gt,Tt,fn,Hn,Zt;switch($.type){case"Field":return null!==ne&&e(ne)?void 0===(Tt=ne[$.name])?null:Tt:null;case"Subexpression":for(Ye=this.visit($.children[0],ne),Zt=1;Zt<$.children.length;Zt++)if(null===(Ye=this.visit($.children[1],Ye)))return null;return Ye;case"IndexExpression":return fn=this.visit($.children[0],ne),this.visit($.children[1],fn);case"Index":if(!n(ne))return null;var Ei=$.value;return Ei<0&&(Ei=ne.length+Ei),void 0===(Ye=ne[Ei])&&(Ye=null),Ye;case"Slice":if(!n(ne))return null;var ln=$.children.slice(0),dr=this.computeSliceParams(ne.length,ln),wr=dr[0],sr=dr[1],mr=dr[2];if(Ye=[],mr>0)for(Zt=wr;Ztsr;Zt+=mr)Ye.push(ne[Zt]);return Ye;case"Projection":var gi=this.visit($.children[0],ne);if(!n(gi))return null;for(Hn=[],Zt=0;Ztgt;break;case U:Ye=je>=gt;break;case R:Ye=je=$&&(ne=ie<0?$-1:$),ne}},rt.prototype={callFunction:function($,ne){var ie=this.functionTable[$];if(void 0===ie)throw new Error("Unknown function: "+$+"()");return this._validateArgs($,ne,ie._signature),ie._func.call(this,ne)},_validateArgs:function($,ne,ie){var Me,Ye,je,gt;if(ie[ie.length-1].variadic){if(ne.length=0;Me--)ie+=ne[Me];return ie}var Ye=$[0].slice(0);return Ye.reverse(),Ye},_functionAbs:function($){return Math.abs($[0])},_functionCeil:function($){return Math.ceil($[0])},_functionAvg:function($){for(var ne=0,ie=$[0],Me=0;Me=0},_functionFloor:function($){return Math.floor($[0])},_functionLength:function($){return e($[0])?Object.keys($[0]).length:$[0].length},_functionMap:function($){for(var ne=[],ie=this._interpreter,Me=$[0],Ye=$[1],je=0;je0){if(this._getTypeName($[0][0])===s)return Math.max.apply(Math,$[0]);for(var ne=$[0],ie=ne[0],Me=1;Me0){if(this._getTypeName($[0][0])===s)return Math.min.apply(Math,$[0]);for(var ne=$[0],ie=ne[0],Me=1;Meln?1:Eigt&&(gt=ie,ne=Ye[Tt]);return ne},_functionMinBy:function($){for(var ne,ie,Ye=$[0],je=this.createKeyFunction($[1],[s,a]),gt=1/0,Tt=0;Tt1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var llt=function(){function t(n,e,i,r){tL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=bT(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=bT(p,4),_=m[3];void 0===_&&(_=1),o.rgba=[m[0],m[1],m[2],_]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return nL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return nve(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return nve(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=alt[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=bT(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),clt=function(){function t(){tL(this,t),this._events=[]}return nL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function iL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function wh(t,n){return(n||document).querySelector(t)}function ive(t){t.preventDefault(),t.stopPropagation()}function rL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&ive(o),i(o))})}var rve=function(){function t(n){tL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new clt,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return nL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),rL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(ive(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new llt(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=wh(".picker_hue",o),this._domSL=wh(".picker_sl",o),this._domA=wh(".picker_alpha",o),this._domEdit=wh(".picker_editor input",o),this._domSample=wh(".picker_sample",o),this._domOkay=wh(".picker_done button",o),this._domCancel=wh(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),iL(r,this._domH,function(l,c){return e._setHSLA(l)}),iL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&iL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),rL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),rL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=wh(".picker_selector",this._domH),d=wh(".picker_selector",l),h=wh(".picker_selector",c);_(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,_(0,d,i[1]),w(0,d,1-i[2]),l.style.color=o,w(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function _(k,D,L){D.style.left=100*L+"%"}function w(k,D,L){D.style.top=100*L+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),oL=document.createElement("style");oL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(oL),rve.StyleElement=oL;var ult=Object.freeze({__proto__:null,default:rve});const dlt=["editor"];function hlt(t,n){if(1&t&&(b(0,"ngb-alert",38),ge(1,"img",39),b(2,"h6",40),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error while modifying storage object: ",e.error,"")}}function flt(t,n){1&t&&(b(0,"ngb-alert",41),ge(1,"img",42),b(2,"h6",40),N(3,"Storage object was modified successfully."),x()()),2&t&&S("dismissible",!1)}function plt(t,n){1&t&&(b(0,"span"),N(1,"Save as a copy"),x())}function mlt(t,n){1&t&&N(0,"Save")}function glt(t,n){if(1&t&&(b(0,"button",43),Z(1,plt,2,0,"span",44),Z(2,mlt,1,0,"ng-template",null,45,Uo),x()),2&t){const e=qs(3),i=B();S("disabled",i.updating),C(1),S("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const sL=function(){return["/storage"]},vlt=function(t){return{collection:t}},ylt=function(t,n){return{collection:t,key:n}},_lt=function(t,n,e){return{collection:t,key:n,user_id:e}},aL=function(t){return{"is-invalid":t}},cx=function(t){return{active:t}};let blt=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";object;objectForm;updating=!1;updated=!1;ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",wo.required],keyname:["",wo.required],user_id:["",wo.required],permission_read:[{value:0,disabled:!1},wo.required],permission_write:[{value:0,disabled:!1},wo.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=b0(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(dlt,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:88,vars:60,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["id","permission_read","name","permission_read",1,"btn-group","btn-group-toggle"],[1,"btn","btn-outline-secondary",3,"ngClass"],["formControlName","permission_read","type","radio",3,"value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["id","permission_write","name","permission_write",1,"btn-group","btn-group-toggle"],["formControlName","permission_write","type","radio",3,"value"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Storage Object"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),N(6,"Storage"),x(),b(7,"li",4)(8,"a",5),N(9),x()(),b(10,"li",4)(11,"a",5),N(12),x()(),b(13,"li",4)(14,"a",5),N(15),x()()()()(),Z(16,hlt,4,2,"ngb-alert",6),Z(17,flt,4,1,"ngb-alert",7),b(18,"form",8),be("ngSubmit",function(){return r.updateObject()}),b(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),N(23,"Collection"),x()(),ge(24,"input",13),b(25,"div",14),N(26,"Collection is required"),x()(),b(27,"div",10)(28,"div",11)(29,"label",15),N(30,"Key"),x()(),ge(31,"input",16),b(32,"div",14),N(33,"Key is required"),x()()(),b(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),N(38,"User ID"),x()(),ge(39,"input",18),b(40,"div",14),N(41,"User ID is required"),x()(),b(42,"div",19)(43,"div",11)(44,"label",20),N(45,"Read Permission"),x()(),b(46,"div",21)(47,"label",22),ge(48,"input",23),N(49," No Read "),x(),b(50,"label",22),ge(51,"input",23),N(52," Owner Read "),x(),b(53,"label",22),ge(54,"input",23),N(55," Public Read "),x()()()(),b(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),N(60,"Version"),x()(),ge(61,"input",25),x(),b(62,"div",19)(63,"div",11)(64,"label",26),N(65,"Write Permission"),x()(),b(66,"div",27)(67,"label",22),ge(68,"input",28),N(69," No Write "),x(),b(70,"label",22),ge(71,"input",28),N(72," Owner Write "),x()()()(),b(73,"div",29)(74,"div",10)(75,"div",11)(76,"label",30),N(77,"Create Time"),x()(),ge(78,"input",31),x(),b(79,"div",10)(80,"div",11)(81,"label",32),N(82,"Update Time"),x()(),ge(83,"input",33),x()(),b(84,"div",34),ge(85,"div",35,36),x(),Z(87,glt,4,3,"button",37),x()),2&i&&(C(8),S("routerLink",pl(32,sL))("queryParams",nr(33,vlt,r.object.collection)),C(1),kt(r.object.collection),C(2),S("routerLink",pl(35,sL))("queryParams",Mr(36,ylt,r.object.collection,r.object.key)),C(1),kt(r.object.key),C(2),S("routerLink",pl(39,sL))("queryParams",ey(40,_lt,r.object.collection,r.object.key,r.object.user_id)),C(1),kt(r.object.user_id),C(1),S("ngIf",r.error),C(1),S("ngIf",r.updated),C(1),S("formGroup",r.objectForm),C(6),S("ngClass",nr(44,aL,r.f.collection.dirty&&r.f.collection.errors)),C(1),S("hidden",r.f.collection.disabled||r.f.collection.valid||r.f.collection.pristine),C(6),S("ngClass",nr(46,aL,r.f.keyname.dirty&&r.f.keyname.errors)),C(1),S("hidden",r.f.keyname.disabled||r.f.keyname.valid||r.f.keyname.pristine),C(7),S("ngClass",nr(48,aL,r.f.user_id.dirty&&r.f.user_id.errors)),C(1),S("hidden",r.f.user_id.disabled||r.f.user_id.valid||r.f.user_id.pristine),C(7),S("ngClass",nr(50,cx,0==r.f.permission_read.value)),C(1),S("value",0),C(2),S("ngClass",nr(52,cx,1==r.f.permission_read.value)),C(1),S("value",1),C(2),S("ngClass",nr(54,cx,2==r.f.permission_read.value)),C(1),S("value",2),C(7),S("value",r.object.version),C(6),S("ngClass",nr(56,cx,0==r.f.permission_write.value)),C(1),S("value",0),C(2),S("ngClass",nr(58,cx,1==r.f.permission_write.value)),C(1),S("value",1),C(7),S("value",r.object.create_time),C(5),S("value",r.object.update_time),C(4),S("ngIf",r.updateAllowed()))},dependencies:[Mu,Af,_n,po,el,Ta,F3,Qa,Za,Hf,ca,Aa],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),xlt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wlt(t,n){if(1&t&&(b(0,"ngb-alert",18),ge(1,"img",19),b(2,"h6",20),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error while processing request: ",e.error,"")}}function Clt(t,n){1&t&&(b(0,"th",21),N(1,"Remove"),x())}function Slt(t,n){if(1&t){const e=yt();b(0,"td",25),be("click",function(){$e(e);const r=B().$implicit;return Be(B().viewLeaderboardEntries(r))}),N(1,"Yes"),x()}}function klt(t,n){if(1&t){const e=yt();b(0,"td",25),be("click",function(){$e(e);const r=B().$implicit;return Be(B().viewLeaderboardEntries(r))}),N(1,"No"),x()}}function Dlt(t,n){if(1&t){const e=yt();b(0,"td",25),be("click",function(){$e(e);const r=B().$implicit;return Be(B().viewLeaderboardEntries(r))}),N(1,"Yes"),x()}}function Tlt(t,n){if(1&t){const e=yt();b(0,"td",25),be("click",function(){$e(e);const r=B().$implicit;return Be(B().viewLeaderboardEntries(r))}),N(1,"No"),x()}}function Elt(t,n){if(1&t){const e=yt();b(0,"td",26)(1,"button",27),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteLeaderboard(r,s,a))}),N(2,"Delete"),x()()}}function Alt(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",22),be("click",function(){const o=$e(e).$implicit;return Be(B().viewLeaderboardEntries(o))}),N(2),x(),b(3,"td",22),be("click",function(){const o=$e(e).$implicit;return Be(B().viewLeaderboardEntries(o))}),N(4),x(),b(5,"td",22),be("click",function(){const o=$e(e).$implicit;return Be(B().viewLeaderboardEntries(o))}),N(6),x(),b(7,"td",22),be("click",function(){const o=$e(e).$implicit;return Be(B().viewLeaderboardEntries(o))}),N(8),x(),Z(9,Slt,2,0,"td",23),Z(10,klt,2,0,"td",23),Z(11,Dlt,2,0,"td",23),Z(12,Tlt,2,0,"td",23),Z(13,Elt,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.id),C(2),kt(i.orderString[e.sort_order]),C(2),kt(i.operatorString[e.operator]),C(2),kt(""===e.reset_schedule?"-":e.reset_schedule),C(1),S("ngIf",e.authoritative),C(1),S("ngIf",!e.authoritative),C(1),S("ngIf",e.tournament),C(1),S("ngIf",!e.tournament),C(1),S("ngIf",i.deleteAllowed())}}function Mlt(t,n){1&t&&(b(0,"tr")(1,"td",28),N(2,"No leaderboards were found."),x()())}let Olt=(()=>{class t{route;router;authService;consoleService;error="";leaderboards=[];nextCursor="";leaderboardsCount=0;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};constructor(e,i,r,o){this.route=e,this.router=i,this.authService=r,this.consoleService=o}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(zo),he(bi))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(b(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),N(4,"Leaderboards"),x(),b(5,"h6",4),N(6),x()(),b(7,"div",5)(8,"div",6)(9,"button",7),be("click",function(){return r.search(0)}),ge(10,"img",8),x(),b(11,"button",7),be("click",function(){return r.search(1)}),ge(12,"img",9),x()()()()(),Z(13,wlt,4,2,"ngb-alert",10),b(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),N(18,"Leaderboard ID"),x(),b(19,"th",13),N(20,"Sort Order"),x(),b(21,"th",13),N(22,"Operator"),x(),b(23,"th",13),N(24,"Reset Schedule"),x(),b(25,"th",14),N(26,"Authoritative"),x(),b(27,"th",14),N(28,"Tournament"),x(),Z(29,Clt,2,0,"th",15),x()(),b(30,"tbody"),Z(31,Alt,14,9,"tr",16),Z(32,Mlt,3,0,"tr",17),x()()),2&i&&(C(6),yn("",r.leaderboardsCount," leaderboards found."),C(3),S("disabled",0===r.leaderboards.length),C(2),S("disabled",""===r.nextCursor),C(2),S("ngIf",r.error),C(16),S("ngIf",r.deleteAllowed()),C(2),S("ngForOf",r.leaderboards),C(1),S("ngIf",0===r.leaderboards.length))},dependencies:[Ln,_n,po],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Ilt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nlt(t,n){if(1&t&&(b(0,"ngb-alert",31),ge(1,"img",32),b(2,"h6",33),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error when querying accounts: ",e.error,"")}}function Flt(t,n){1&t&&(b(0,"th",34),N(1,"Remove"),x())}function Plt(t,n){1&t&&(b(0,"tr")(1,"td",35),N(2,"No users found - change the filter criteria or add new user accounts."),x()())}function jlt(t,n){1&t&&ge(0,"td")}function Rlt(t,n){if(1&t){const e=yt();b(0,"td",38)(1,"button",39),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteAccount(r,s,a))}),N(2,"Delete"),x()()}}function Llt(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",36),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(2),x(),b(3,"td",36),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(4),x(),b(5,"td",36),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(6),x(),b(7,"td",36),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(8),x(),Z(9,jlt,1,0,"td",29),Z(10,Rlt,3,0,"td",37),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.id),C(2),kt(e.username),C(2),kt(e.display_name),C(2),kt(e.update_time),C(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),C(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let $lt=(()=>{class t{route;router;consoleService;authService;formBuilder;systemUserId="00000000-0000-0000-0000-000000000000";error="";accountsCount=0;accounts=[];nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"})},o=>{this.error=o})}deleteAccount(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:45,vars:9,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Accounts"),x(),b(2,"h6",1),N(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),be("ngSubmit",function(){return r.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"span",9),be("click",function(){return r.f.filter.setValue(r.systemUserId)}),ge(12,"img",10),x()(),b(13,"div",8)(14,"div",11)(15,"button",12),be("click",function(){return r.f.filter_type.setValue(0),r.search(0)}),N(16,"Search"),x(),b(17,"div",13),ge(18,"button",14),b(19,"div",15)(20,"button",16),be("click",function(){return r.f.filter_type.setValue(1),r.search(0)}),N(21,"Tombstones"),x()()()()()()()(),b(22,"div",17)(23,"div",18)(24,"button",19),be("click",function(){return r.search(0)}),ge(25,"img",20),x(),b(26,"button",19),be("click",function(){return r.search(1)}),ge(27,"img",21),x()()()()(),Z(28,Nlt,4,2,"ngb-alert",22),b(29,"div",23)(30,"table",24)(31,"thead",25)(32,"tr")(33,"th",26),N(34,"User ID"),x(),b(35,"th"),N(36,"Username"),x(),b(37,"th"),N(38,"Display Name"),x(),b(39,"th",27),N(40,"Last Update"),x(),Z(41,Flt,2,0,"th",28),x()(),b(42,"tbody"),Z(43,Plt,3,0,"tr",29),Z(44,Llt,11,6,"tr",30),x()()()),2&i&&(C(3),yn("",r.accountsCount," accounts found."),C(4),S("formGroup",r.searchForm),C(11),S("disabled",!r.f.filter.value||""===r.f.filter.value),C(6),S("disabled",0===r.accounts.length),C(2),S("disabled",""===r.nextCursor),C(2),S("ngIf",r.error),C(13),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.accounts.length),C(1),S("ngForOf",r.accounts))},dependencies:[Ln,_n,po,ju,bm,qf,Wf,el,Ta,Qa,Za,ca,Aa],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Blt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vlt(t,n){if(1&t){const e=yt();b(0,"button",15),be("click",function(r){return $e(e),Be(B().exportAccount(r))}),ge(1,"img",16),N(2,"Export"),x()}}function Hlt(t,n){1&t&&(b(0,"span"),N(1,"Unban"),x())}function Ult(t,n){1&t&&(b(0,"span"),N(1,"Ban"),x())}function zlt(t,n){if(1&t){const e=yt();b(0,"button",15),be("click",function(r){return $e(e),Be(B().banUnbanAccount(r))}),ge(1,"img",17),Z(2,Hlt,2,0,"span",18),Z(3,Ult,2,0,"span",18),x()}if(2&t){const e=B();C(2),S("ngIf",e.account.disable_time),C(1),S("ngIf",!e.account.disable_time)}}function Glt(t,n){if(1&t){const e=yt();b(0,"button",19),be("click",function(r){return $e(e),Be(B().deleteAccount(r,!1))}),ge(1,"img",20),N(2,"Delete"),x()}}function Wlt(t,n){if(1&t){const e=yt();b(0,"button",19),be("click",function(r){return $e(e),Be(B().deleteAccount(r,!0))}),ge(1,"img",21),N(2,"Recorded delete"),x()}}function qlt(t,n){if(1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}const Ylt=function(t,n){return["/accounts",t,n]};function Xlt(t,n){if(1&t&&(b(0,"div"),oc(1,25),b(2,"a",26),N(3),x(),sc(),x()),2&t){const e=n.$implicit,i=B();C(1),S("ngbNavItem",e.path),C(1),S("routerLink",Mr(3,Ylt,i.account.user.id,e.path)),C(1),kt(e.label)}}const Jlt=function(){return["/accounts"]},Klt=function(){return["/storage"]},Qlt=function(t){return{user_id:t}};let Zlt=(()=>{class t{route;router;consoleService;authService;account;error="";views=[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,WI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Account"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),N(7,"Account"),x()(),b(8,"li",6),N(9),x()()(),b(10,"div"),Z(11,Vlt,3,0,"button",7),Z(12,zlt,4,2,"button",7),Z(13,Glt,3,0,"button",8),Z(14,Wlt,3,0,"button",8),x()(),Z(15,qlt,4,2,"ngb-alert",9),b(16,"nav",10,11),Z(18,Xlt,4,6,"div",12),b(19,"div"),oc(20,13),b(21,"a",14),N(22," Storage "),x(),sc(),x()(),ge(23,"router-outlet")),2&i&&(C(6),S("routerLink",pl(10,Jlt)),C(3),kt(r.account.user.id),C(2),S("ngIf",r.exportAllowed()),C(1),S("ngIf",r.banAllowed()),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.error),C(3),S("ngForOf",r.views),C(3),S("routerLink",pl(11,Klt))("queryParams",nr(12,Qlt,r.account.user.id)))},dependencies:[am,Mu,Iy,Ln,_n,po,Ud,Wh,i_,Yf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),ect=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const tct=["editor"];function nct(t,n){if(1&t&&(b(0,"ngb-alert",29),ge(1,"img",30),b(2,"h6",31),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function ict(t,n){1&t&&(b(0,"ngb-alert",32),ge(1,"img",33),b(2,"h6",31),N(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function rct(t,n){1&t&&(b(0,"button",34),N(1,"Save"),x()),2&t&&S("disabled",B().updating)}const oct=function(t){return{"is-invalid":t}};let sct=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",wo.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=b0(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(tct,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(Z(0,nct,4,2,"ngb-alert",0),Z(1,ict,4,1,"ngb-alert",1),b(2,"form",2),be("ngSubmit",function(){return r.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),N(7,"User ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),N(12,"Username"),x()(),ge(13,"input",9),b(14,"div",10),N(15,"Username is required"),x()()(),b(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),N(20,"Display Name"),x()(),ge(21,"input",12),x(),b(22,"div",13)(23,"div",5)(24,"label",14),N(25,"Avatar URL"),x()(),ge(26,"input",15),x()(),b(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),N(31,"Location"),x()(),ge(32,"input",17),x(),b(33,"div",13)(34,"div",5)(35,"label",18),N(36,"Timezone"),x()(),ge(37,"input",19),x()(),b(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),N(42,"Create Time"),x()(),ge(43,"input",22),x(),b(44,"div",4)(45,"div",5)(46,"label",23),N(47,"Update Time"),x()(),ge(48,"input",24),x()(),b(49,"div",25),ge(50,"div",26,27),x(),Z(52,rct,2,1,"button",28),x()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",r.updated),C(1),S("formGroup",r.accountForm),C(6),S("value",r.account.user.id),C(5),S("ngClass",nr(9,oct,r.f.username.dirty&&r.f.username.errors)),C(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),C(29),S("value",r.account.user.create_time),C(5),S("value",r.account.user.update_time),C(4),S("ngIf",r.updateAllowed()))},dependencies:[Af,_n,po,el,Ta,Qa,Za,Hf,ca,Aa]})}return t})();function act(t,n){if(1&t&&(b(0,"ngb-alert",36),ge(1,"img",37),b(2,"h6",38),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function lct(t,n){1&t&&(b(0,"ngb-alert",39),ge(1,"img",40),b(2,"h6",38),N(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function cct(t,n){if(1&t&&(b(0,"option",41),N(1),x()),2&t){const e=n.$implicit,i=n.index;kf("value",i),S("selected",0===i),C(1),kt(e.id)}}function uct(t,n){1&t&&(b(0,"button",42),N(1,"Save"),x()),2&t&&S("disabled",B().updating)}let dct=(()=>{class t{route;router;consoleService;authService;formBuilder;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(Z(0,act,4,2,"ngb-alert",0),Z(1,lct,4,1,"ngb-alert",1),b(2,"form",2),be("ngSubmit",function(){return r.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),N(7,"Device IDs"),x()(),b(8,"div",7)(9,"button",8),be("click",function(){return r.copyDeviceIdToClipboard(r.f.selected_device_id_index.value)}),ge(10,"img",9),N(11," Copy "),x(),b(12,"select",10),Z(13,cct,2,3,"option",11),x(),b(14,"div",12)(15,"button",13),be("click",function(s){return r.unlinkDeviceId(s)}),N(16,"Unlink"),x()()()(),b(17,"div",4)(18,"div",5)(19,"label",14),N(20,"Custom ID"),x()(),b(21,"div",7),ge(22,"input",15),b(23,"div",12)(24,"button",13),be("click",function(s){return r.unlinkCustomID(s)}),N(25,"Unlink"),x()()()()(),b(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),N(30,"Facebook ID"),x()(),b(31,"div",7),ge(32,"input",17),b(33,"div",12)(34,"button",13),be("click",function(s){return r.unlinkFacebook(s)}),N(35,"Unlink"),x()()()(),b(36,"div",18)(37,"div",5)(38,"label",19),N(39,"FB Instant Game ID"),x()(),b(40,"div",7),ge(41,"input",20),b(42,"div",12)(43,"button",13),be("click",function(s){return r.unlinkFacebookInstantGames(s)}),N(44,"Unlink"),x()()()()(),b(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),N(49,"Apple ID"),x()(),b(50,"div",7),ge(51,"input",22),b(52,"div",12)(53,"button",13),be("click",function(s){return r.unlinkApple(s)}),N(54,"Unlink"),x()()()(),b(55,"div",18)(56,"div",5)(57,"label",23),N(58,"GameCenter ID"),x()(),b(59,"div",7),ge(60,"input",24),b(61,"div",12)(62,"button",13),be("click",function(s){return r.unlinkGameCenter(s)}),N(63,"Unlink"),x()()()()(),b(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),N(68,"Google ID"),x()(),b(69,"div",7),ge(70,"input",26),b(71,"div",12)(72,"button",13),be("click",function(s){return r.unlinkGoogle(s)}),N(73,"Unlink"),x()()()(),b(74,"div",4)(75,"div",5)(76,"label",27),N(77,"Steam ID"),x()(),b(78,"div",7),ge(79,"input",28),b(80,"div",12)(81,"button",13),be("click",function(s){return r.unlinkSteam(s)}),N(82,"Unlink"),x()()()()(),b(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),N(87,"Email"),x(),ge(88,"br"),x(),ge(89,"input",30),x(),b(90,"div",4)(91,"div",5)(92,"label",31),N(93,"Password"),x()(),ge(94,"input",32),x()(),b(95,"div",33)(96,"div",4),ge(97,"div",5),b(98,"span",34),N(99),x()(),ge(100,"div",4),x(),Z(101,uct,2,1,"button",35),x()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",r.updated),C(1),S("formGroup",r.accountForm),C(11),S("ngForOf",r.account.devices),C(2),S("disabled",!r.updateAllowed()||0===r.account.devices.length),C(7),S("value",r.account.custom_id),C(2),S("disabled",!r.updateAllowed()||!r.account.custom_id||""===r.account.custom_id),C(8),S("value",r.account.user.facebook_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_id||""===r.account.user.facebook_id),C(7),S("value",r.account.user.facebook_instant_game_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_instant_game_id||""===r.account.user.facebook_instant_game_id),C(8),S("value",r.account.user.apple_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.apple_id||""===r.account.user.apple_id),C(7),S("value",r.account.user.gamecenter_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.gamecenter_id||""===r.account.user.gamecenter_id),C(8),S("value",r.account.user.google_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.google_id||""===r.account.user.google_id),C(7),S("value",r.account.user.steam_id),C(2),S("disabled",!r.updateAllowed()||!r.account.user.steam_id||""===r.account.user.steam_id),C(18),yn("Verification Status: ",null===r.account.verify_time?"Not Verified":"Verified",""),C(2),S("ngIf",r.updateAllowed()))},dependencies:[Ln,_n,po,el,VC,HC,Ta,Cv,Qa,Za,ca,Aa],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})}return t})();const hct=["editor"];function fct(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function pct(t,n){1&t&&(b(0,"ngb-alert",27),ge(1,"img",28),b(2,"h6",26),N(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function mct(t,n){if(1&t){const e=yt();b(0,"button",29),be("click",function(){return $e(e),Be(B().updateWallet())}),N(1,"Save"),x()}2&t&&S("disabled",B().updating)}function gct(t,n){1&t&&(b(0,"th",30),N(1,"Remove"),x())}function vct(t,n){1&t&&(b(0,"tr")(1,"td",31),N(2,"No wallet ledger items found."),x()())}function yct(t,n){1&t&&ge(0,"div",37)}function _ct(t,n){1&t&&ge(0,"div",38)}function bct(t,n){if(1&t){const e=yt();b(0,"td")(1,"button",39),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteLedgerItem(r,s,a))}),N(2,"Delete"),x()()}}function xct(t,n){if(1&t&&(b(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),N(4),x()()()()),2&t){const e=B().$implicit;C(4),kt(e.metadata)}}function wct(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td")(2,"div",32),be("click",function(){const o=$e(e).index,s=B();return Be(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),Z(3,yct,1,0,"div",33),Z(4,_ct,1,0,"div",34),x(),N(5),x(),b(6,"td",35)(7,"pre",36),N(8),x()(),b(9,"td"),N(10),x(),Z(11,bct,3,0,"td",22),x(),Z(12,xct,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=B();C(3),S("ngIf",!r.walletLedgerMetadataOpen[e]),C(1),S("ngIf",r.walletLedgerMetadataOpen[e]),C(1),yn(" ",i.id," "),C(3),kt(i.changeset),C(2),kt(i.update_time),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.walletLedgerMetadataOpen[e])}}let Cct=(()=>{class t{route;router;consoleService;authService;editor;jsonEditor;error="";account;walletLedger=[];walletLedgerMetadataOpen=[];updating=!1;updated=!1;nextCursor="";prevCursor="";limit=100;userID;constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=b0(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(hct,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(Z(0,fct,4,2,"ngb-alert",0),Z(1,pct,4,1,"ngb-alert",1),b(2,"div",2),ge(3,"div",3,4),x(),Z(5,mct,2,1,"button",5),ge(6,"hr",6),b(7,"div",7)(8,"div",8),ge(9,"div",9),b(10,"div",10)(11,"div",11)(12,"button",12),be("click",function(){return r.loadData("")}),ge(13,"img",13),x(),b(14,"button",12),be("click",function(){return r.loadData(r.prevCursor)}),ge(15,"img",14),x(),b(16,"button",12),be("click",function(){return r.loadData(r.nextCursor)}),ge(17,"img",15),x()()()()(),b(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),N(23,"ID"),x(),b(24,"th"),N(25,"Changeset"),x(),b(26,"th",20),N(27,"Update Time"),x(),Z(28,gct,2,0,"th",21),x()(),b(29,"tbody"),Z(30,vct,3,0,"tr",22),Z(31,wct,13,7,"ng-template",23),x()()()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",r.updated),C(4),S("ngIf",r.updateAllowed()),C(7),S("disabled",0===r.walletLedger.length),C(2),S("disabled",""===r.prevCursor),C(2),S("disabled",""===r.nextCursor),C(12),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.walletLedger.length),C(1),S("ngForOf",r.walletLedger))},dependencies:[Ln,_n,po],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})}return t})(),Sct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kct(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function Dct(t,n){1&t&&(b(0,"th",13),N(1,"Remove"),x())}function Tct(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No friends found."),x()())}function Ect(t,n){1&t&&(b(0,"span"),N(1,"Friend (0)"),x())}function Act(t,n){1&t&&(b(0,"span"),N(1,"Invite Sent (1)"),x())}function Mct(t,n){1&t&&(b(0,"span"),N(1,"Invite Received (2)"),x())}function Oct(t,n){1&t&&(b(0,"span"),N(1,"Blocked (3)"),x())}function Ict(t,n){if(1&t){const e=yt();b(0,"td",16)(1,"button",17),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteFriend(r,s,a))}),N(2,"Delete"),x()()}}function Nct(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td"),N(4),x(),b(5,"td"),Z(6,Ect,2,0,"span",8),Z(7,Act,2,0,"span",8),Z(8,Mct,2,0,"span",8),Z(9,Oct,2,0,"span",8),x(),b(10,"td"),N(11),x(),Z(12,Ict,3,0,"td",15),x()),2&t){const e=n.$implicit,i=B();C(2),kt(e.user.id),C(2),kt(e.user.username),C(2),S("ngIf",0===e.state),C(1),S("ngIf",1===e.state),C(1),S("ngIf",2===e.state),C(1),S("ngIf",3===e.state),C(2),kt(e.update_time),C(1),S("ngIf",i.deleteAllowed())}}let Fct=(()=>{class t{route;router;consoleService;authService;error="";account;friends=[];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(Z(0,kct,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),N(6,"User ID"),x(),b(7,"th"),N(8,"Username"),x(),b(9,"th",5),N(10,"State"),x(),b(11,"th",6),N(12,"Update Time"),x(),Z(13,Dct,2,0,"th",7),x()(),b(14,"tbody"),Z(15,Tct,3,0,"tr",8),Z(16,Nct,13,8,"tr",9),x()()()),2&i&&(S("ngIf",r.error),C(13),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.friends.length),C(1),S("ngForOf",r.friends))},dependencies:[Ln,_n,po],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Pct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jct(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function Rct(t,n){1&t&&(b(0,"th",13),N(1,"Remove"),x())}function Lct(t,n){1&t&&(b(0,"tr")(1,"td",14),N(2,"No group membership found."),x()())}function $ct(t,n){1&t&&(b(0,"span"),N(1,"Superadmin (0)"),x())}function Bct(t,n){1&t&&(b(0,"span"),N(1,"Admin (1)"),x())}function Vct(t,n){1&t&&(b(0,"span"),N(1,"Member (2)"),x())}function Hct(t,n){1&t&&(b(0,"span"),N(1,"Join Request (3)"),x())}function Uct(t,n){1&t&&(b(0,"span"),N(1,"Banned (4)"),x())}function zct(t,n){if(1&t){const e=yt();b(0,"td")(1,"button",16),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteGroupUser(r,s,a))}),N(2,"Delete"),x()()}}function Gct(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",15),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(2),x(),b(3,"td",15),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(4),x(),b(5,"td",15),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),Z(6,$ct,2,0,"span",8),Z(7,Bct,2,0,"span",8),Z(8,Vct,2,0,"span",8),Z(9,Hct,2,0,"span",8),Z(10,Uct,2,0,"span",8),x(),b(11,"td",15),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(12),x(),Z(13,zct,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.group.id),C(2),kt(e.group.name),C(2),S("ngIf",0===e.state),C(1),S("ngIf",1===e.state),C(1),S("ngIf",2===e.state),C(1),S("ngIf",3===e.state),C(1),S("ngIf",4===e.state),C(2),kt(e.group.update_time),C(1),S("ngIf",i.deleteAllowed())}}let Wct=(()=>{class t{route;router;consoleService;authService;error="";account;groups=[];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(Z(0,jct,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),N(6,"Group ID"),x(),b(7,"th"),N(8,"Name"),x(),b(9,"th",5),N(10,"State"),x(),b(11,"th",6),N(12,"Update Time"),x(),Z(13,Rct,2,0,"th",7),x()(),b(14,"tbody"),Z(15,Lct,3,0,"tr",8),Z(16,Gct,14,9,"tr",9),x()()()),2&i&&(S("ngIf",r.error),C(13),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.groups.length),C(1),S("ngForOf",r.groups))},dependencies:[Ln,_n,po],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),qct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Yct=["editor"];function Xct(t,n){if(1&t&&(b(0,"ngb-alert",34),ge(1,"img",35),b(2,"h6",36),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function Jct(t,n){1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",36),N(3,"Group was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Kct(t,n){1&t&&(b(0,"button",39),N(1,"Save"),x()),2&t&&S("disabled",B().updating)}const Qct=function(t){return["/accounts",t]},Zct=function(t){return{"is-invalid":t}};let eut=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";group;groupForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",wo.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=b0(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(Yct,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(Z(0,Xct,4,2,"ngb-alert",0),Z(1,Jct,4,1,"ngb-alert",1),b(2,"form",2),be("ngSubmit",function(){return r.updateGroup()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),N(7,"Group ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),N(12,"Creator ID"),x()(),b(13,"a",9),ge(14,"input",10),x()()(),b(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),N(19,"Name"),x()(),ge(20,"input",12),b(21,"div",13),N(22,"Name is required"),x()(),b(23,"div",4)(24,"div",5)(25,"label",14),N(26,"Description"),x()(),ge(27,"input",15),x()(),b(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),N(32,"Avatar URL"),x()(),ge(33,"input",18),x(),b(34,"div",4)(35,"div",5)(36,"label",19),N(37,"Language"),x()(),ge(38,"input",20),x()(),b(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),N(43,"Members"),x()(),ge(44,"input",21),x(),b(45,"div",16)(46,"div",5)(47,"label",22),N(48,"Max Count"),x()(),ge(49,"input",23),x()(),b(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),N(54,"Open"),x()(),ge(55,"input",24),x()(),b(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),N(60,"Create Time"),x()(),ge(61,"input",27),x(),b(62,"div",4)(63,"div",5)(64,"label",28),N(65,"Update Time"),x()(),ge(66,"input",29),x()(),b(67,"div",30),ge(68,"div",31,32),x(),Z(70,Kct,2,1,"button",33),x()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",r.updated),C(1),S("formGroup",r.groupForm),C(6),S("value",r.group.id),C(5),S("routerLink",nr(12,Qct,r.group.creator_id)),C(1),S("value",r.group.creator_id),C(6),S("ngClass",nr(14,Zct,r.f.name.dirty&&r.f.name.errors)),C(1),S("hidden",r.f.name.disabled||r.f.name.valid||r.f.name.pristine),C(23),S("value",r.group.edge_count),C(17),S("value",r.group.create_time),C(5),S("value",r.group.update_time),C(4),S("ngIf",r.updateAllowed()))},dependencies:[Mu,Af,_n,po,el,Ta,MC,Qa,Za,Hf,ca,Aa]})}return t})();function tut(t,n){if(1&t&&(b(0,"ngb-alert",13),ge(1,"img",14),b(2,"h6",15),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function nut(t,n){1&t&&(b(0,"span"),N(1,"Add by membership state"),x())}function iut(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B(2);C(1),kt(e.activeState)}}function rut(t,n){if(1&t){const e=yt();b(0,"button",20),be("click",function(){const o=$e(e).$implicit;return Be(B(2).activeState=o)}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function out(t,n){if(1&t&&(b(0,"div",16)(1,"button",17),Z(2,nut,2,0,"span",11),Z(3,iut,2,1,"span",11),x(),b(4,"div",18),Z(5,rut,2,1,"button",19),x()()),2&t){const e=B();C(2),S("ngIf",!e.activeState||""===e.activeState),C(1),S("ngIf",e.activeState&&""!==e.activeState),C(2),S("ngForOf",e.states)}}function sut(t,n){if(1&t){const e=yt();b(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),ge(5,"input",26),b(6,"div",27)(7,"div",28)(8,"button",29),be("click",function(){return $e(e),Be(B().add())}),N(9,"Add"),x()()()()()()()()}if(2&t){const e=B();C(3),S("formGroup",e.addForm)}}function aut(t,n){1&t&&(b(0,"th",30),N(1,"Demote"),x())}function lut(t,n){1&t&&(b(0,"th",30),N(1,"Promote"),x())}function cut(t,n){1&t&&(b(0,"th",31),N(1,"Remove"),x())}function uut(t,n){1&t&&(b(0,"tr")(1,"td",32),N(2,"No group membership found."),x()())}function dut(t,n){1&t&&(b(0,"span"),N(1,"Superadmin (0)"),x())}function hut(t,n){1&t&&(b(0,"span"),N(1,"Admin (1)"),x())}function fut(t,n){1&t&&(b(0,"span"),N(1,"Member (2)"),x())}function put(t,n){1&t&&(b(0,"span"),N(1,"Join Request (3)"),x())}function mut(t,n){1&t&&(b(0,"span"),N(1,"Banned (4)"),x())}function gut(t,n){if(1&t){const e=yt();b(0,"td",36)(1,"button",37),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().demoteGroupUser(r,s,a))}),st(),b(2,"svg",38),ge(3,"path",39),x()()()}}function vut(t,n){if(1&t){const e=yt();b(0,"td",36)(1,"button",37),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().promoteGroupUser(r,s,a))}),st(),b(2,"svg",40),ge(3,"path",41),x()()()}}function yut(t,n){if(1&t){const e=yt();b(0,"td",42)(1,"button",43),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteGroupUser(r,s,a))}),N(2,"Delete"),x()()}}function _ut(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",33),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(2),x(),b(3,"td",33),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(4),x(),b(5,"td",33),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),Z(6,dut,2,0,"span",11),Z(7,hut,2,0,"span",11),Z(8,fut,2,0,"span",11),Z(9,put,2,0,"span",11),Z(10,mut,2,0,"span",11),x(),b(11,"td",33),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(12),x(),Z(13,gut,4,0,"td",34),Z(14,vut,4,0,"td",34),Z(15,yut,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.user.id),C(2),kt(e.user.username),C(2),S("ngIf",0===e.state),C(1),S("ngIf",1===e.state),C(1),S("ngIf",2===e.state),C(1),S("ngIf",3===e.state),C(1),S("ngIf",4===e.state),C(2),kt(e.user.update_time),C(1),S("ngIf",i.editionAllowed()),C(1),S("ngIf",i.editionAllowed()),C(1),S("ngIf",i.editionAllowed())}}let but=(()=>{class t{route;router;consoleService;formBuilder;authService;error="";group;members=[];activeState="Add Member";states=["Add Member","Join"];addForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(vl),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(Z(0,tut,4,2,"ngb-alert",0),Z(1,out,6,3,"div",1),Z(2,sut,10,1,"div",2),b(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),N(8,"User ID"),x(),b(9,"th"),N(10,"Name"),x(),b(11,"th",7),N(12,"State"),x(),b(13,"th",8),N(14,"Update Time"),x(),Z(15,aut,2,0,"th",9),Z(16,lut,2,0,"th",9),Z(17,cut,2,0,"th",10),x()(),b(18,"tbody"),Z(19,uut,3,0,"tr",11),Z(20,_ut,16,11,"tr",12),x()()()),2&i&&(S("ngIf",r.error),C(1),S("ngIf",!r.group.open&&r.editionAllowed()),C(1),S("ngIf",r.editionAllowed()),C(13),S("ngIf",r.editionAllowed()),C(1),S("ngIf",r.editionAllowed()),C(1),S("ngIf",r.editionAllowed()),C(2),S("ngIf",0===r.members.length),C(1),S("ngForOf",r.members))},dependencies:[Ln,_n,po,ju,bm,qf,Wf,el,Ta,Qa,Za,ca,Aa],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),xut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wut(t,n){if(1&t&&(b(0,"ngb-alert",28),ge(1,"img",29),b(2,"h6",30),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function Cut(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B();C(1),kt(e.activeType)}}function Sut(t,n){if(1&t){const e=yt();b(0,"button",31),be("click",function(){const o=$e(e).$implicit;return Be(B().activeType=o)}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function kut(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B();C(1),kt(e.activeNode)}}function Dut(t,n){if(1&t){const e=yt();b(0,"button",31),be("click",function(){const o=$e(e).$implicit;return Be(B().activeNode=o)}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function Tut(t,n){1&t&&(b(0,"tr")(1,"td",32),N(2,"No realtime matches were found."),x()())}function Eut(t,n){1&t&&ge(0,"div",40)}function Aut(t,n){1&t&&ge(0,"div",41)}function Mut(t,n){if(1&t){const e=yt();b(0,"div",37),be("click",function(){$e(e);const r=B(),o=r.index,s=r.$implicit,a=B();return a.getMatchState(o,s),Be(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),Z(1,Eut,1,0,"div",38),Z(2,Aut,1,0,"div",39),x()}if(2&t){const e=B().index,i=B();C(1),S("ngIf",!i.matchStatesOpen[e]),C(1),S("ngIf",i.matchStatesOpen[e])}}function Out(t,n){1&t&&ge(0,"div",42)}function Iut(t,n){1&t&&(b(0,"span"),N(1,"Yes"),x())}function Nut(t,n){1&t&&(b(0,"span"),N(1,"No"),x())}function Fut(t,n){1&t&&ge(0,"img",51)}function Put(t,n){if(1&t&&(b(0,"div")(1,"small")(2,"b"),N(3,"Current Tick"),x()(),b(4,"pre",47)(5,"small"),N(6),x()(),b(7,"small")(8,"b"),N(9,"Match State"),x()(),b(10,"pre",47)(11,"small"),N(12),x()()()),2&t){const e=B(2).index,i=B();C(6),kt(i.matchStates[e].tick),C(6),kt(i.matchStates[e].state)}}function jut(t,n){1&t&&ge(0,"img",51)}function Rut(t,n){if(1&t&&(b(0,"pre",47)(1,"small"),N(2),x()()),2&t){const e=B(2).index,i=B();C(2),kt(i.getMatchPresencesString(i.matchStates[e].presences))}}function Lut(t,n){if(1&t&&(b(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),N(6,"Match Label"),x()(),b(7,"pre",47)(8,"small"),N(9),x()()(),b(10,"div",48),Z(11,Fut,1,0,"img",49),Z(12,Put,13,2,"div",7),x(),b(13,"div",48)(14,"small")(15,"b"),N(16,"Match Presences"),x()(),Z(17,jut,1,0,"img",49),Z(18,Rut,3,1,"pre",50),x()()()()),2&t){const e=B(),i=e.$implicit,r=e.index,o=B();C(9),kt(i.api_match.label),C(2),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),C(1),S("ngIf",null!==o.matchStates[r]),C(5),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),C(1),S("ngIf",null!==o.matchStates[r])}}function $ut(t,n){if(1&t&&(b(0,"tr")(1,"td"),Z(2,Mut,3,2,"div",33),Z(3,Out,1,0,"div",34),N(4),x(),b(5,"td"),N(6),x(),b(7,"td",35),Z(8,Iut,2,0,"span",7),Z(9,Nut,2,0,"span",7),x(),b(10,"td"),N(11),x(),b(12,"td"),N(13),x(),b(14,"td"),N(15),x()(),Z(16,Lut,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=B();C(2),S("ngIf",i.api_match.authoritative),C(1),S("ngIf",!i.api_match.authoritative),C(1),yn(" ",i.api_match.match_id," "),C(2),kt(i.api_match.size),C(2),S("ngIf",i.api_match.authoritative),C(1),S("ngIf",!i.api_match.authoritative),C(2),kt(i.node),C(2),kt(i.api_match.handler_name),C(2),kt(i.api_match.authoritative?i.api_match.tick_rate:"-"),C(1),S("ngIf",r.matchStatesOpen[e])}}let But=(()=>{class t{route;router;formBuilder;consoleService;error="";matches=[];matchStates=[];matchStatesOpen=[];updated=!1;searchForm1;searchForm2;searchForm3;type;activeType="All";types=["All","Authoritative","Relayed"];activeNode="All Nodes";nodes=["All Nodes"];constructor(e,i,r,o){this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));const i=e.get("type");this.type=Number(i);const r=e.get("node");if(this.route.data.subscribe(o=>{o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1===this.type||2===this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,ove(this.consoleService,e,0===e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(vl),he(bi))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Active Matches"),x(),b(2,"h6",1),N(3),x(),Z(4,wut,4,2,"ngb-alert",2),b(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),Z(9,Cut,2,1,"span",7),x(),b(10,"div",8),Z(11,Sut,2,1,"button",9),x()()(),b(12,"div",10)(13,"button",11),be("click",function(){return r.search()}),N(14,"Search"),x()()(),b(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),be("ngSubmit",function(){return r.search()}),b(19,"div",16),ge(20,"input",17),x()(),b(21,"form",15),be("ngSubmit",function(){return r.search()}),b(22,"div",16),ge(23,"input",17),x()(),b(24,"form",15),be("ngSubmit",function(){return r.search()}),b(25,"div",16),ge(26,"input",18),b(27,"div",10)(28,"div",5)(29,"button",19),Z(30,kut,2,1,"span",7),x(),b(31,"div",8),Z(32,Dut,2,1,"button",9),x()()()()()()()(),b(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),N(39,"Match ID"),x()(),b(40,"th",23),N(41,"Presence Count"),x(),b(42,"th",24),N(43,"Authoritative"),x(),b(44,"th",24),N(45,"Node"),x(),b(46,"th",25),N(47,"Handler Name"),x(),b(48,"th",26),N(49,"Tick Rate"),x()()(),b(50,"tbody"),Z(51,Tut,3,0,"tr",7),Z(52,$ut,17,10,"ng-template",27),x()()()),2&i&&(C(3),yn("",r.matches.length," running matches found."),C(1),S("ngIf",r.error),C(5),S("ngIf",r.activeType&&""!==r.activeType),C(2),S("ngForOf",r.types),C(7),S("hidden","All"!==r.activeType)("formGroup",r.searchForm1),C(3),S("hidden","Relayed"!==r.activeType)("formGroup",r.searchForm2),C(3),S("hidden","Authoritative"!==r.activeType)("formGroup",r.searchForm3),C(6),S("ngIf",r.activeNode&&""!==r.activeNode),C(2),S("ngForOf",r.nodes),C(6),jn("pl-3",r.matches.length>0),C(13),S("ngIf",0===r.matches.length),C(1),S("ngForOf",r.matches))},dependencies:[Ln,_n,po,ju,bm,qf,Wf,el,Ta,Qa,Za,ca,Aa],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),Vut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));return ove(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Ll(o=>(e.data={...e.data,error:o},Rn(null))))}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ove(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return Rn(null)}let Hut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(et(r=>Rn(r.nodes.map(o=>o.name)))).pipe(Ll(r=>(e.data={...e.data,error:r},Rn([]))))}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uut(t,n){if(1&t&&(b(0,"ngb-alert",25),ge(1,"img",26),b(2,"h6",27),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error when querying groups: ",e.error,"")}}function zut(t,n){1&t&&(b(0,"th",28),N(1,"Remove"),x())}function Gut(t,n){1&t&&(b(0,"tr")(1,"td",29),N(2,"No groups found - change the filter criteria or add new user groups."),x()())}function Wut(t,n){1&t&&ge(0,"td")}function qut(t,n){if(1&t){const e=yt();b(0,"td",32)(1,"button",33),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteGroup(r,s,a))}),N(2,"Delete"),x()()}}function Yut(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td",30),be("click",function(){const o=$e(e).$implicit;return Be(B().viewGroup(o))}),N(2),x(),b(3,"td",30),be("click",function(){const o=$e(e).$implicit;return Be(B().viewGroup(o))}),N(4),x(),b(5,"td",30),be("click",function(){const o=$e(e).$implicit;return Be(B().viewGroup(o))}),N(6),x(),Z(7,Wut,1,0,"td",23),Z(8,qut,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=B();C(2),kt(e.id),C(2),kt(e.name),C(2),kt(e.update_time),C(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),C(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Xut=(()=>{class t{route;router;consoleService;authService;formBuilder;systemUserId="00000000-0000-0000-0000-000000000000";error="";groupsCount=0;groups=[];nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Groups"),x(),b(2,"h6",1),N(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),be("ngSubmit",function(){return r.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"div",9)(12,"button",10),be("click",function(){return r.search(0)}),N(13,"Search"),x()()()()()(),b(14,"div",11)(15,"div",12)(16,"button",13),be("click",function(){return r.search(0)}),ge(17,"img",14),x(),b(18,"button",13),be("click",function(){return r.search(1)}),ge(19,"img",15),x()()()()(),Z(20,Uut,4,2,"ngb-alert",16),b(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),N(26,"Group ID"),x(),b(27,"th"),N(28,"Name"),x(),b(29,"th",21),N(30,"Last Update"),x(),Z(31,zut,2,0,"th",22),x()(),b(32,"tbody"),Z(33,Gut,3,0,"tr",23),Z(34,Yut,9,5,"tr",24),x()()()),2&i&&(C(3),yn("",r.groupsCount," groups found."),C(4),S("formGroup",r.searchForm),C(9),S("disabled",0===r.groups.length),C(2),S("disabled",""===r.nextCursor),C(2),S("ngIf",r.error),C(11),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.groups.length),C(1),S("ngForOf",r.groups))},dependencies:[Ln,_n,po,el,Ta,Qa,Za,ca,Aa],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Jut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Kut(t,n){if(1&t){const e=yt();b(0,"button",13),be("click",function(r){return $e(e),Be(B().exportGroup(r))}),ge(1,"img",14),N(2,"Export"),x()}}function Qut(t,n){if(1&t){const e=yt();b(0,"button",15),be("click",function(r){return $e(e),Be(B().deleteGroup(r,!1))}),ge(1,"img",16),N(2,"Delete"),x()}}function Zut(t,n){if(1&t&&(b(0,"ngb-alert",17),ge(1,"img",18),b(2,"h6",19),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}const edt=function(t,n){return["/groups",t,n]};function tdt(t,n){if(1&t&&(b(0,"div"),oc(1,20),b(2,"a",21),N(3),x(),sc(),x()),2&t){const e=n.$implicit,i=B();C(1),S("ngbNavItem",e.path),C(1),S("routerLink",Mr(3,edt,i.group.id,e.path)),C(1),kt(e.label)}}const ndt=function(){return["/groups"]};let idt=(()=>{class t{route;router;consoleService;authService;group;error="";views=[{label:"Details",path:"details"},{label:"Members",path:"members"}];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,WI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"User Group"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),N(7,"Group"),x()(),b(8,"li",6),N(9),x()()(),b(10,"div"),Z(11,Kut,3,0,"button",7),Z(12,Qut,3,0,"button",8),x()(),Z(13,Zut,4,2,"ngb-alert",9),b(14,"nav",10,11),Z(16,tdt,4,6,"div",12),x(),ge(17,"router-outlet")),2&i&&(C(6),S("routerLink",pl(6,ndt)),C(3),kt(r.group.id),C(2),S("ngIf",r.exportAllowed()),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.error),C(3),S("ngForOf",r.views))},dependencies:[am,Mu,Iy,Ln,_n,po,Ud,Wh,i_,Yf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),rdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function odt(t,n){if(1&t){const e=yt();b(0,"button",12),be("click",function(r){return $e(e),Be(B().deleteLeaderboard(r))}),ge(1,"img",13),N(2,"Delete Leaderboard"),x()}}function sdt(t,n){if(1&t&&(b(0,"ngb-alert",14),ge(1,"img",15),b(2,"h6",16),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}const adt=function(t,n){return["/leaderboards",t,n]};function ldt(t,n){if(1&t&&(b(0,"div"),oc(1,17),b(2,"a",18),N(3),x(),sc(),x()),2&t){const e=n.$implicit,i=B();C(1),S("ngbNavItem",e.path),C(1),S("routerLink",Mr(3,adt,i.leaderboard.id,e.path)),C(1),kt(e.label)}}const cdt=function(){return["/leaderboards"]};let udt=(()=>{class t{route;router;consoleService;authService;leaderboard;error="";views=[{label:"Details",path:"details"},{label:"Records",path:"records"}];constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_DEVELOPER}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Leaderboard"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),N(7,"Leaderboards"),x()(),b(8,"li",6),N(9),x()()(),b(10,"div"),Z(11,odt,3,0,"button",7),x()(),Z(12,sdt,4,2,"ngb-alert",8),b(13,"nav",9,10),Z(15,ldt,4,6,"div",11),x(),ge(16,"router-outlet")),2&i&&(C(6),S("routerLink",pl(5,cdt)),C(3),kt(r.leaderboard.id),C(2),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.error),C(3),S("ngForOf",r.views))},dependencies:[am,Mu,Iy,Ln,_n,po,Ud,Wh,i_,Yf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),ddt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const hdt=["editor"];function fdt(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function pdt(t,n){if(1&t&&(b(0,"div",27)(1,"h6"),N(2,"Tournament"),x(),ge(3,"hr",28),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),N(8,"Title"),x()(),ge(9,"input",30),x(),b(10,"div",3)(11,"div",4)(12,"label",31),N(13,"Description"),x()(),ge(14,"input",32),x()(),b(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),N(19,"Category"),x()(),ge(20,"input",34),x(),b(21,"div",3)(22,"div",4)(23,"label",35),N(24,"Max Num Score"),x()(),ge(25,"input",36),x()(),b(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),N(30,"Size"),x()(),ge(31,"input",38),x(),b(32,"div",3)(33,"div",4)(34,"label",39),N(35,"Max Size"),x()(),ge(36,"input",40),x()(),b(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),N(41,"Duration"),x()(),ge(42,"input",42),x(),b(43,"div",3)(44,"div",4)(45,"label",43),N(46,"Join Required"),x()(),ge(47,"input",44),x()(),b(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),N(52,"Start Time"),x()(),ge(53,"input",46),x(),b(54,"div",3)(55,"div",4)(56,"label",47),N(57,"End Time"),x()(),ge(58,"input",48),x()(),b(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),N(63,"Start Active"),x()(),ge(64,"input",50),x(),b(65,"div",3)(66,"div",4)(67,"label",51),N(68,"End Active"),x()(),ge(69,"input",52),x()()()),2&t){const e=B();C(9),S("value",e.leaderboard.title),C(5),S("value",e.leaderboard.description),C(6),S("value",e.leaderboard.category),C(5),S("value",e.leaderboard.max_num_score),C(6),S("value",e.leaderboard.size),C(5),S("value",e.leaderboard.max_size),C(6),S("value",e.leaderboard.duration),C(5),S("value",e.leaderboard.join_required),C(6),S("value",e.leaderboard.start_time),C(5),S("value",e.leaderboard.end_time),C(6),S("value",e.leaderboard.start_active),C(5),S("value",e.leaderboard.end_active)}}let mdt=(()=>{class t{route;editor;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};jsonEditor;leaderboard;error="";constructor(e){this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}static \u0275fac=function(i){return new(i||t)(he(Pr))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&jo(hdt,5),2&i){let o;wn(o=Cn())&&(r.editor=o.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(i,r){1&i&&(Z(0,fdt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),N(6,"ID"),x()(),ge(7,"input",6),x(),b(8,"div",3)(9,"div",4)(10,"label",7),N(11,"Authoritative"),x()(),ge(12,"input",8),x()(),b(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),N(17,"Sort Order"),x()(),ge(18,"input",10),x(),b(19,"div",3)(20,"div",4)(21,"label",11),N(22,"Operator"),x()(),ge(23,"input",12),x()(),b(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),N(28,"Reset Schedule"),x()(),ge(29,"input",14),x(),b(30,"div",3)(31,"div",4)(32,"label",15),N(33,"Create Time"),x()(),ge(34,"input",16),x()(),b(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),N(39,"Prev Reset"),x()(),ge(40,"input",18),x(),b(41,"div",3)(42,"div",4)(43,"label",15),N(44,"Next Reset"),x()(),ge(45,"input",19),x()()(),Z(46,pdt,70,12,"div",20),b(47,"div",21),ge(48,"div",22,23),x()),2&i&&(S("ngIf",r.error),C(7),S("value",r.leaderboard.id),C(5),S("value",r.leaderboard.authoritative),C(6),S("value",r.orderString[r.leaderboard.sort_order]),C(5),S("value",r.operatorString[r.leaderboard.operator]),C(6),S("value",r.leaderboard.reset_schedule),C(5),S("value",r.leaderboard.create_time),C(6),S("value",r.leaderboard.prev_reset),C(5),S("value",r.leaderboard.next_reset),C(1),S("ngIf",r.leaderboard.tournament))},dependencies:[_n,po],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})();function gdt(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("An error occurred: ",e.error,"")}}function vdt(t,n){1&t&&(b(0,"th",22),N(1,"Remove"),x())}function ydt(t,n){1&t&&(b(0,"tr")(1,"td",23),N(2,"No records found."),x()())}function _dt(t,n){1&t&&ge(0,"div",28)}function bdt(t,n){1&t&&ge(0,"div",29)}function xdt(t,n){if(1&t){const e=yt();b(0,"td",30)(1,"button",31),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteRecord(r,s,a))}),N(2,"Delete"),x()()}}function wdt(t,n){if(1&t&&(b(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),N(4),x()()()()),2&t){const e=B().$implicit;C(4),kt(e.metadata)}}function Cdt(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td")(2,"div",24),be("click",function(){const o=$e(e).index,s=B();return Be(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),Z(3,_dt,1,0,"div",25),Z(4,bdt,1,0,"div",26),x(),N(5),x(),b(6,"td"),N(7),x(),b(8,"td"),N(9),x(),b(10,"td"),N(11),x(),b(12,"td"),N(13),x(),b(14,"td"),N(15),x(),b(16,"td"),N(17),x(),Z(18,xdt,3,0,"td",27),x(),Z(19,wdt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=B();C(3),S("ngIf",!r.recordsMetadataOpen[e]),C(1),S("ngIf",r.recordsMetadataOpen[e]),C(1),yn(" ",i.owner_id," "),C(2),kt(i.username),C(2),kt(i.score),C(2),kt(i.subscore),C(2),kt(i.rank),C(2),kt(i.num_score),C(2),kt(i.expiry_time?i.expiry_time:"-"),C(1),S("ngIf",r.deleteAllowed()),C(1),S("ngIf",r.recordsMetadataOpen[e])}}let Sdt=(()=>{class t{route;consoleService;authService;error="";leaderboard;records=[];recordsMetadataOpen=[];nextCursor="";prevCursor="";constructor(e,i,r){this.route=e,this.consoleService=i,this.authService=r}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(he(Pr),he(bi),he(zo))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(Z(0,gdt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),be("click",function(){return r.loadRecords(0)}),ge(7,"img",7),x(),b(8,"button",6),be("click",function(){return r.loadRecords(-1)}),ge(9,"img",8),x(),b(10,"button",6),be("click",function(){return r.loadRecords(1)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),N(17,"Owner ID"),x(),b(18,"th"),N(19,"Username"),x(),b(20,"th",14),N(21,"Score"),x(),b(22,"th",14),N(23,"Subscore"),x(),b(24,"th",14),N(25,"Rank"),x(),b(26,"th",14),N(27,"No. of scores"),x(),b(28,"th",15),N(29,"Expiry Time"),x(),Z(30,vdt,2,0,"th",16),x()(),b(31,"tbody"),Z(32,ydt,3,0,"tr",17),Z(33,Cdt,20,11,"ng-template",18),x()()()),2&i&&(S("ngIf",r.error),C(6),S("disabled",0===r.records.length),C(2),S("disabled",""===r.prevCursor),C(2),S("disabled",""===r.nextCursor),C(20),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.records.length),C(1),S("ngForOf",r.records))},dependencies:[Ln,_n,po]})}return t})(),kdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Ddt=["editor"],Tdt=["editorResponse"];function Edt(t,n){if(1&t&&(b(0,"ngb-alert",23),ge(1,"img",24),b(2,"h6",25),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error whilst making RPC call: ",e.error,"")}}function Adt(t,n){if(1&t&&(b(0,"option",26),N(1),x()),2&t){const e=n.$implicit;kf("value",e.method),C(1),kt(e.method)}}function Mdt(t,n){if(1&t&&(b(0,"option",26),N(1),x()),2&t){const e=n.$implicit;kf("value",e.method),C(1),kt(e.method)}}let Odt=(()=>{class t{route;router;consoleService;formBuilder;editor;editorResponse;jsonEditor;jsonEditorResponse;error="";rpcEndpoints=[];endpoints=[];endpointCallForm;constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",wo.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditor=new mg({target:this.editor.nativeElement,props:{mode:Wo.text,readOnly:!0}}),this.jsonEditorResponse=new mg({target:this.editorResponse.nativeElement,props:{mode:Wo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=b0(this.jsonEditor.get()).text}catch(o){return void(this.error=o)}const i={user_id:this.f.user_id.value,body:e};let r=null;r=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,i):this.consoleService.callApiEndpoint("",this.f.method.value,i),r.subscribe(o=>{if(o.error_message&&""!==o.error_message)this.jsonEditorResponse.set({json:o.error_message});else{e="";try{e=JSON.stringify(JSON.parse(o.body),null,2)}catch(s){return void(this.error=s)}this.jsonEditorResponse.set({text:e})}},o=>{this.jsonEditorResponse.set({text:""}),this.error=o})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditor){if(!e||""===e)return this.jsonEditor.set({text:""}),void this.jsonEditor.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditor.set({text:i}),this.jsonEditor.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}get f(){return this.endpointCallForm.controls}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(vl))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&(jo(Ddt,5),jo(Tdt,5)),2&i){let o;wn(o=Cn())&&(r.editor=o.first),wn(o=Cn())&&(r.editorResponse=o.first)}},decls:35,vars:6,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"d-flex"],[1,"w-50","py-3"],[1,"mb-4"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","500px"],["editor",""],[1,"w-50","pl-3","py-3"],["editorResponse",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"API Explorer"),x(),Z(2,Edt,4,2,"ngb-alert",1),b(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),be("ngSubmit",function(){return r.sendRequest()}),b(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),N(11,"Select Endpoint"),x(),Z(12,Adt,2,2,"option",10),b(13,"option",11),N(14,"----"),x(),Z(15,Mdt,2,2,"option",10),x()(),ge(16,"input",12),b(17,"div",13)(18,"button",14),N(19,"Send Request"),x()()()()()()(),b(20,"div",15)(21,"div",16)(22,"h5"),N(23,"Request Body"),x(),ge(24,"hr",17),b(25,"div",18),ge(26,"div",19,20),x()(),b(28,"div",21)(29,"h5"),N(30,"Response"),x(),ge(31,"hr",17),b(32,"div",18),ge(33,"div",19,22),x()()()),2&i&&(C(2),S("ngIf",r.error),C(4),S("formGroup",r.endpointCallForm),C(4),S("value",""),C(2),S("ngForOf",r.rpcEndpoints),C(3),S("ngForOf",r.endpoints),C(3),S("disabled",r.f.method.invalid))},dependencies:[Ln,_n,po,el,VC,HC,Ta,Cv,Qa,Za,ca,Aa],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})}return t})(),Idt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ndt(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error while processing request: ",e.error,"")}}function Fdt(t,n){1&t&&ge(0,"div",23)}function Pdt(t,n){1&t&&ge(0,"div",24)}function jdt(t,n){if(1&t&&(b(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),N(6,"Provider Response"),x()()(),b(7,"div")(8,"pre",28)(9,"small"),N(10),x()()()()()()),2&t){const e=B().$implicit;C(10),kt(e.provider_response)}}function Rdt(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td")(2,"div",19),be("click",function(){const o=$e(e).index,s=B();return Be(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),Z(3,Fdt,1,0,"div",20),Z(4,Pdt,1,0,"div",21),x(),N(5),x(),b(6,"td"),N(7),x(),b(8,"td"),N(9),x(),b(10,"td"),N(11),x(),b(12,"td"),N(13),x()(),Z(14,jdt,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=B();C(3),S("ngIf",!r.purchasesRowsOpen[e]),C(1),S("ngIf",r.purchasesRowsOpen[e]),C(1),yn(" ",i.product_id," "),C(2),kt(i.transaction_id),C(2),kt(r.getStoreText(i.store)),C(2),kt(i.purchase_time),C(2),kt(i.create_time),C(1),S("ngIf",r.purchasesRowsOpen[e])}}function Ldt(t,n){1&t&&(b(0,"tr")(1,"td",29),N(2,"No purchases were found."),x()())}let $dt=(()=>{class t{route;router;consoleService;purchases=[];purchasesRowsOpen=[];error="";nextCursor="";prevCursor="";userID;limit=100;constructor(e,i,r){this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.purchases=e[0].validated_purchases,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listPurchases("",this.userID,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Uy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi))};static \u0275cmp=$t({type:t,selectors:[["app-purchases"]],decls:29,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","5",1,"text-muted"]],template:function(i,r){1&i&&(Z(0,Ndt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),be("click",function(){return r.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),be("click",function(){return r.loadData(r.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),be("click",function(){return r.loadData(r.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),N(17,"Product ID"),x(),b(18,"th"),N(19,"Transaction ID"),x(),b(20,"th"),N(21,"Store"),x(),b(22,"th",13),N(23,"Purchase Time"),x(),b(24,"th",13),N(25,"Create Time"),x()()(),b(26,"tbody"),Z(27,Rdt,15,8,"ng-template",14),Z(28,Ldt,3,0,"tr",15),x()()()),2&i&&(S("ngIf",r.error),C(6),S("disabled",0===r.purchases.length),C(2),S("disabled",""===r.prevCursor),C(2),S("disabled",""===r.nextCursor),C(17),S("ngForOf",r.purchases),C(1),S("ngIf",0===r.purchases.length))},dependencies:[Ln,_n,po]})}return t})(),Bdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listPurchases("",r,100,"")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vdt(t,n){1&t&&(b(0,"span"),N(1,"Filter by type"),x())}function Hdt(t,n){if(1&t&&(b(0,"span"),N(1),x()),2&t){const e=B();C(1),kt(e.activeFilter)}}function Udt(t,n){if(1&t){const e=yt();b(0,"button",40),be("click",function(){const o=$e(e).$implicit;return Be(B().activeFilter=o)}),N(1),x()}if(2&t){const e=n.$implicit;C(1),kt(e)}}function zdt(t,n){if(1&t&&(b(0,"h6"),N(1),x()),2&t){const e=B();C(1),yn("Showing results for chat room label: ",e.f1.label.value,"")}}const Gdt=function(t){return["/groups",t]};function Wdt(t,n){if(1&t&&(b(0,"h6"),N(1,"Showing results for group ID: "),b(2,"a",41),N(3),x()()),2&t){const e=B();C(2),S("routerLink",nr(2,Gdt,e.route.snapshot.queryParamMap.get("group_id"))),C(1),kt(e.f2.group_id.value)}}const sve=function(t){return["/accounts",t]};function qdt(t,n){if(1&t&&(b(0,"h6"),N(1,"Showing results for user IDs: "),b(2,"a",41),N(3),x(),N(4,", "),b(5,"a",41),N(6),x()()),2&t){const e=B();C(2),S("routerLink",nr(4,sve,e.route.snapshot.queryParamMap.get("user_id_one"))),C(1),kt(e.f3.user_id_one.value),C(2),S("routerLink",nr(6,sve,e.route.snapshot.queryParamMap.get("user_id_two"))),C(1),kt(e.f3.user_id_two.value)}}function Ydt(t,n){if(1&t&&(b(0,"ngb-alert",42),ge(1,"img",43),b(2,"h6",44),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error when querying messages: ",e.error,"")}}function Xdt(t,n){1&t&&(b(0,"th",45),N(1,"Remove"),x())}function Jdt(t,n){if(1&t&&(b(0,"tr")(1,"td",46),N(2,"No messages found."),x()()),2&t){const e=B();C(1),ut("colspan",e.deleteAllowed()?6:5)}}function Kdt(t,n){1&t&&ge(0,"div",55)}function Qdt(t,n){1&t&&ge(0,"div",56)}function Zdt(t,n){1&t&&ge(0,"td")}function eht(t,n){if(1&t){const e=yt();b(0,"td",57)(1,"button",58),be("click",function(r){$e(e);const o=B(),s=o.index,a=o.$implicit;return Be(B().deleteMessage(r,s,a))}),N(2,"Delete"),x()()}}function tht(t,n){if(1&t&&(b(0,"tr",59)(1,"td"),N(2),x()()),2&t){const e=B().$implicit,i=B();C(1),ut("colspan",i.deleteAllowed()?6:5),C(1),yn(" ",e.content," ")}}function nht(t,n){if(1&t){const e=yt();b(0,"tr")(1,"td"),N(2),x(),b(3,"td",47),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(4),x(),b(5,"td",48),be("click",function(){const o=$e(e).$implicit;return Be(B().viewAccount(o))}),N(6),x(),b(7,"td",49)(8,"div",50),be("click",function(){const o=$e(e).index,s=B();return Be(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),Z(9,Kdt,1,0,"div",51),Z(10,Qdt,1,0,"div",52),x(),N(11),x(),b(12,"td"),N(13),x(),Z(14,Zdt,1,0,"td",3),Z(15,eht,3,0,"td",53),x(),Z(16,tht,3,2,"tr",54)}if(2&t){const e=n.$implicit,i=n.index,r=B();C(2),kt(e.code),C(2),kt(e.sender_id),C(2),kt(e.username),C(3),S("ngIf",!r.messageStatesOpen[i]),C(1),S("ngIf",r.messageStatesOpen[i]),C(1),yn(" ",e.content," "),C(2),kt(e.create_time),C(1),S("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),C(1),S("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),C(1),S("ngIf",r.messageStatesOpen[i])}}function iht(t,n){if(1&t&&(b(0,"ngb-alert",60),ge(1,"img",43),b(2,"h6",44),N(3,"Failed to delete data."),x(),b(4,"p",61),N(5),x()()),2&t){const e=B();S("dismissible",!1),C(5),kt(e.deleteError)}}function rht(t,n){if(1&t){const e=yt();b(0,"ngb-alert",62),be("close",function(){return $e(e),Be(B().deleteSuccess=!1)}),ge(1,"img",63),b(2,"h6",44),N(3),x()()}if(2&t){const e=B();S("dismissible",!0),C(3),Tf("",e.total_deleted," messages ",e.total_deleted>0?"successfully":""," deleted.")}}const oht=function(t){return{"is-invalid":t}};function sht(t,n){if(1&t){const e=yt();b(0,"div",64)(1,"h5",65),N(2,"Delete messages"),x(),b(3,"button",66),be("click",function(){return Be($e(e).$implicit.dismiss())}),b(4,"span",67),N(5,"\xd7"),x()()(),b(6,"div",68)(7,"div",69)(8,"form",70)(9,"div",71)(10,"p")(11,"b"),N(12,"Choose how many days to retain: "),x(),ge(13,"input",72),x()(),ge(14,"input",73),x()()(),b(15,"div",74)(16,"button",75),be("click",function(){return Be($e(e).$implicit.dismiss())}),N(17,"Cancel"),x(),b(18,"button",76),be("click",function(){return Be($e(e).$implicit.close())}),N(19,"DELETE"),x()()}if(2&t){const e=B();C(8),S("formGroup",e.confirmDeleteForm),C(6),S("ngClass",nr(3,oht,e.f.delete.touched&&e.f.delete.invalid)),C(4),S("disabled",e.f.delete.invalid)}}function aht(t,n){if(1&t){const e=yt();b(0,"button",76),be("click",function(){$e(e);const r=B(),o=qs(68);return Be(r.openDeleteDataModal(o))}),N(1,"Delete messages"),x()}2&t&&S("disabled",B().deleting)}let lht=(()=>{class t{route;router;consoleService;authService;formBuilder;modalService;systemUserId="00000000-0000-0000-0000-000000000000";error="";messages=[];nextCursor="";searchForm1;searchForm2;searchForm3;type;confirmDeleteForm;deleteError="";deleteSuccess=!1;deleting=!1;total_deleted=0;activeFilter="";filters=["Chat Room","Group Chat","Direct Chat"];messageStatesOpen=[];constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",wo.compose([wo.required,wo.pattern("DELETE")])],days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");let i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2==this.type||3==this.type||4==this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=ii.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}deleteData(){this.deleteError="",this.deleting=!0;let e=new Date;e.setDate(e.getDate()-this.f.days.value),this.consoleService.deleteChannelMessages("",e.toISOString(),null).subscribe(i=>{this.total_deleted=Number(i.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const r=this.route.snapshot.queryParamMap;let o=r.get("type"),s=r.get("label");s||(s="0");let a=r.get("group_id"),l=r.get("user_id_one"),c=r.get("user_id_two"),u=r.get("cursor");u||(u=""),o&&this.updateMessages(Number(o),s,a,l,c,u)},i=>{this.deleting=!1,this.deleteError=i})}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi),he(zo),he(vl),he(SO))};static \u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:70,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["confirmDelete",""],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],[1,"mt-2"],["type","number","value","30","min","0","formControlName","days",2,"width","80px"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(i,r){1&i&&(b(0,"h2",0),N(1,"Chat Messages"),x(),b(2,"div",1)(3,"button",2),Z(4,Vdt,2,0,"span",3),Z(5,Hdt,2,1,"span",3),x(),b(6,"div",4),Z(7,Udt,2,1,"button",5),x()(),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),ge(13,"input",11),b(14,"div",12)(15,"div",13)(16,"button",14),be("click",function(){return r.type=2,r.search(0)}),N(17,"Search"),x()()()()(),b(18,"form",9)(19,"div",10),ge(20,"input",15),b(21,"div",12)(22,"div",13)(23,"button",14),be("click",function(){return r.type=3,r.search(0)}),N(24,"Search "),x()()()()(),b(25,"form",9)(26,"div",10),ge(27,"input",16),b(28,"div",12)(29,"span",17),be("click",function(){return r.f3.user_id_one.setValue(r.systemUserId)}),ge(30,"img",18),x()(),ge(31,"input",19),b(32,"div",12)(33,"div",13)(34,"button",14),be("click",function(){return r.type=4,r.search(0)}),N(35,"Search "),x()()()()()(),b(36,"div",20)(37,"div",21)(38,"button",22),be("click",function(){return r.search(0)}),ge(39,"img",23),x(),b(40,"button",22),be("click",function(){return r.search(1)}),ge(41,"img",24),x()()()()(),Z(42,zdt,2,1,"h6",3),Z(43,Wdt,4,4,"h6",3),Z(44,qdt,7,8,"h6",3),Z(45,Ydt,4,2,"ngb-alert",25),b(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),N(51,"Code"),x(),b(52,"th",30),N(53,"Sender ID"),x(),b(54,"th",31),N(55,"Username"),x(),b(56,"th"),N(57,"Content"),x(),b(58,"th",32),N(59,"Create Time"),x(),Z(60,Xdt,2,0,"th",33),x()(),b(61,"tbody"),Z(62,Jdt,3,1,"tr",3),Z(63,nht,17,10,"ng-template",34),x()()(),Z(64,iht,6,2,"ngb-alert",35),Z(65,rht,4,3,"ngb-alert",36),b(66,"div",37),Z(67,sht,20,5,"ng-template",null,38,Uo),Z(69,aht,2,1,"button",39),x()),2&i&&(C(4),S("ngIf",!r.activeFilter||""===r.activeFilter),C(1),S("ngIf",r.activeFilter&&""!==r.activeFilter),C(2),S("ngForOf",r.filters),C(4),S("hidden","Chat Room"!==r.activeFilter)("formGroup",r.searchForm1),C(7),S("hidden","Group Chat"!==r.activeFilter)("formGroup",r.searchForm2),C(7),S("hidden","Direct Chat"!==r.activeFilter)("formGroup",r.searchForm3),C(13),S("disabled",0===r.messages.length),C(2),S("disabled",""===r.nextCursor||null===r.nextCursor),C(2),S("ngIf",0!=r.messages.length&&""===r.error&&2==r.type),C(1),S("ngIf",0!=r.messages.length&&""===r.error&&3==r.type),C(1),S("ngIf",0!=r.messages.length&&""===r.error&&4==r.type),C(1),S("ngIf",r.error),C(15),S("ngIf",r.deleteAllowed()),C(2),S("ngIf",0===r.messages.length),C(1),S("ngForOf",r.messages),C(1),S("ngIf",r.deleteError),C(1),S("ngIf",r.deleteSuccess),C(4),S("ngIf",r.deleteMessagesAllowed()))},dependencies:[Mu,Af,Ln,_n,po,ju,bm,qf,Wf,el,Ta,N3,Qa,Za,$3,ca,Aa],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})}return t})(),cht=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ll(o=>(e.data={...e.data,error:o},Rn(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ll(o=>(e.data={...e.data,error:o},Rn(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ll(o=>(e.data={...e.data,error:o},Rn(null))));default:return Rn(null)}}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uht(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),N(3),x()()),2&t){const e=B();S("dismissible",!1),C(3),yn("Error while processing request: ",e.error,"")}}function dht(t,n){if(1&t&&(b(0,"tr")(1,"td"),N(2),x(),b(3,"td"),N(4),x(),b(5,"td"),N(6),x(),b(7,"td"),N(8),x(),b(9,"td"),N(10),x(),b(11,"td"),N(12),x()()),2&t){const e=n.$implicit,i=B();C(2),kt(e.product_id),C(2),kt(e.original_transaction_id),C(2),kt(i.getStoreText(e.store)),C(2),kt(e.purchase_time),C(2),kt(e.expiry_time),C(2),kt(e.create_time)}}function hht(t,n){1&t&&(b(0,"tr")(1,"td",19),N(2,"No purchases were found."),x()())}const fht=[{path:"",component:zPe,canActivate:[u3e],canActivateChild:[GPe],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:tVe,resolve:[nVe]},{path:"config",component:OVe,resolve:[IVe]},{path:"users",component:RVe,resolve:[LVe]},{path:"modules",component:QVe,resolve:[ZVe]},{path:"storage",component:lHe,resolve:[cHe,uHe],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:blt,resolve:[xlt],pathMatch:"full"},{path:"leaderboards",component:Olt,resolve:[Ilt]},{path:"leaderboards/:id",component:udt,resolve:[ddt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:mdt,resolve:[]},{path:"records",component:Sdt,resolve:[kdt]}]},{path:"matches",component:But,resolve:[Vut,Hut]},{path:"groups",component:Xut,resolve:[Jut]},{path:"groups/:id",component:idt,resolve:[rdt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:eut,resolve:[]},{path:"members",component:but,resolve:[xut],runGuardsAndResolvers:"always"}]},{path:"accounts",component:$lt,resolve:[Blt]},{path:"accounts/:id",component:Zlt,resolve:[ect],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:sct,resolve:[]},{path:"authentication",component:dct,resolve:[]},{path:"wallet",component:Cct,resolve:[Sct]},{path:"friends",component:Fct,resolve:[Pct]},{path:"groups",component:Wct,resolve:[qct]},{path:"purchases",component:$dt,resolve:[Bdt]},{path:"subscriptions",component:(()=>{class t{route;router;consoleService;subscriptions=[];error="";nextCursor="";prevCursor="";userID;limit=100;constructor(e,i,r){this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.subscriptions=e[0].validated_subscriptions,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listSubscriptions("",this.userID,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Uy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(he(Pr),he(lr),he(bi))};static \u0275cmp=$t({type:t,selectors:[["app-subscriptions"]],decls:31,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["colspan","6",1,"text-muted"]],template:function(i,r){1&i&&(Z(0,uht,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),be("click",function(){return r.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),be("click",function(){return r.loadData(r.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),be("click",function(){return r.loadData(r.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),N(17,"Product ID"),x(),b(18,"th"),N(19,"Original Transaction ID"),x(),b(20,"th"),N(21,"Store"),x(),b(22,"th",13),N(23,"Purchase Time"),x(),b(24,"th",13),N(25,"Expiry Time"),x(),b(26,"th",13),N(27,"Create Time"),x()()(),b(28,"tbody"),Z(29,dht,13,6,"ng-template",14),Z(30,hht,3,0,"tr",15),x()()()),2&i&&(S("ngIf",r.error),C(6),S("disabled",0===r.subscriptions.length),C(2),S("disabled",""===r.prevCursor),C(2),S("disabled",""===r.nextCursor),C(19),S("ngForOf",r.subscriptions),C(1),S("ngIf",0===r.subscriptions.length))},dependencies:[Ln,_n,po]})}return t})(),resolve:[(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listSubscriptions("",r,100,"")}static \u0275fac=function(i){return new(i||t)(vt(bi))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()]}]},{path:"apiexplorer",component:Odt,resolve:[Idt]},{path:"chat",component:lht,resolve:[cht]}]},{path:"login",component:l3e,canActivate:[c3e]},{path:"**",redirectTo:""}];let pht=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ki({type:t});static \u0275inj=wi({imports:[RV.forRoot(fht,{useHash:!0}),RV]})}return t})(),mht=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=$t({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(i,r){1&i&&ge(0,"router-outlet")},dependencies:[am]})}return t})();new class vht extends Bd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let _ht=1;const bht=Promise.resolve(),xT={};function ave(t){return t in xT&&(delete xT[t],!0)}const lve={setImmediate(t){const n=_ht++;return xT[n]=!0,bht.then(()=>ave(n)&&t()),n},clearImmediate(t){ave(t)}};new class wht extends Bd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=lve.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(lve.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Qht=new Vn("ng-select-selection-model");function Zht(){return new eft}class eft{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}let tft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ki({type:t}),t.\u0275inj=wi({providers:[{provide:Qht,useValue:Zht}],imports:[Mf]}),t})(),nft=(()=>{class t{authenticationService;constructor(e){this.authenticationService=e}intercept(e,i){const r=this.authenticationService.currentSessionValue;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}static \u0275fac=function(i){return new(i||t)(vt(zo))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),ift=(()=>{class t{authenticationService;router;constructor(e,i){this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Ll(r=>(401===r.status?this.authenticationService.logout().subscribe({next:()=>{e.url.includes("/v3/auth")||this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}}):r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`),rm(r.error.message||r.statusText))))}static \u0275fac=function(i){return new(i||t)(vt(zo),vt(lr))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),rft=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ki({type:t,bootstrap:[mht]});static \u0275inj=wi({providers:[o3e,Pz,{provide:W3,useValue:{host:document.location.origin,timeout:15e3}},{provide:z3,useClass:nft,multi:!0},{provide:z3,useClass:ift,multi:!0}],imports:[dVe,pht,gM,FDe,n3e,PPe,F9e,FMe.forRoot({apiKey:"dHl7FTjJ9icepBjEdOCcyMFQYL1BBiQO",debug:!1,loadOnInitialization:!0}),PDe,OMe,MMe,tft]})}return t})();TSe().bootstrapModule(rft).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},343:(Yt,Dn)=>{"use strict";Dn.byteLength=function Ve(A){var F=Ze(A),Ae=F[1];return 3*(F[0]+Ae)/4-Ae},Dn.toByteArray=function oe(A){var F,gn,ee=Ze(A),Ae=ee[0],Je=ee[1],Ct=new Ie(function me(A,F,ee){return 3*(F+ee)/4-ee}(0,Ae,Je)),Ft=0,Gt=Je>0?Ae-4:Ae;for(gn=0;gn>16&255,Ct[Ft++]=F>>8&255,Ct[Ft++]=255&F;return 2===Je&&(F=nt[A.charCodeAt(gn)]<<2|nt[A.charCodeAt(gn+1)]>>4,Ct[Ft++]=255&F),1===Je&&(F=nt[A.charCodeAt(gn)]<<10|nt[A.charCodeAt(gn+1)]<<4|nt[A.charCodeAt(gn+2)]>>2,Ct[Ft++]=F>>8&255,Ct[Ft++]=255&F),Ct},Dn.fromByteArray=function T(A){for(var F,ee=A.length,Ae=ee%3,Je=[],Ft=0,Gt=ee-Ae;FtGt?Gt:Ft+16383));return 1===Ae?Je.push(ke[(F=A[ee-1])>>2]+ke[F<<4&63]+"=="):2===Ae&&Je.push(ke[(F=(A[ee-2]<<8)+A[ee-1])>>10]+ke[F>>4&63]+ke[F<<2&63]+"="),Je.join("")};for(var ke=[],nt=[],Ie=typeof Uint8Array<"u"?Uint8Array:Array,ct="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=0,_e=ct.length;ze<_e;++ze)ke[ze]=ct[ze],nt[ct.charCodeAt(ze)]=ze;function Ze(A){var F=A.length;if(F%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ee=A.indexOf("=");return-1===ee&&(ee=F),[ee,ee===F?0:4-ee%4]}function ce(A){return ke[A>>18&63]+ke[A>>12&63]+ke[A>>6&63]+ke[63&A]}function se(A,F,ee){for(var Je=[],Ct=F;Ct{"use strict";var Ie=ke(343),ct=ke(461),ze="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Dn.lW=me,Dn.h2=50;var _e=2147483647;function Ve(De){if(De>_e)throw new RangeError('The value "'+De+'" is invalid for option "size"');var Y=new Uint8Array(De);return Object.setPrototypeOf(Y,me.prototype),Y}function me(De,Y,Q){if("number"==typeof De){if("string"==typeof Y)throw new TypeError('The "string" argument must be of type string. Received type number');return T(De)}return oe(De,Y,Q)}function oe(De,Y,Q){if("string"==typeof De)return function A(De,Y){if(("string"!=typeof Y||""===Y)&&(Y="utf8"),!me.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var Q=0|Gt(De,Y),Ne=Ve(Q),et=Ne.write(De,Y);return et!==Q&&(Ne=Ne.slice(0,et)),Ne}(De,Y);if(ArrayBuffer.isView(De))return function ee(De){if(sa(De,Uint8Array)){var Y=new Uint8Array(De);return Ae(Y.buffer,Y.byteOffset,Y.byteLength)}return F(De)}(De);if(null==De)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof De);if(sa(De,ArrayBuffer)||De&&sa(De.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(sa(De,SharedArrayBuffer)||De&&sa(De.buffer,SharedArrayBuffer)))return Ae(De,Y,Q);if("number"==typeof De)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ne=De.valueOf&&De.valueOf();if(null!=Ne&&Ne!==De)return me.from(Ne,Y,Q);var et=function Je(De){if(me.isBuffer(De)){var Y=0|Ct(De.length),Q=Ve(Y);return 0===Q.length||De.copy(Q,0,0,Y),Q}return void 0!==De.length?"number"!=typeof De.length||ro(De.length)?Ve(0):F(De):"Buffer"===De.type&&Array.isArray(De.data)?F(De.data):void 0}(De);if(et)return et;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof De[Symbol.toPrimitive])return me.from(De[Symbol.toPrimitive]("string"),Y,Q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof De)}function ce(De){if("number"!=typeof De)throw new TypeError('"size" argument must be of type number');if(De<0)throw new RangeError('The value "'+De+'" is invalid for option "size"')}function T(De){return ce(De),Ve(De<0?0:0|Ct(De))}function F(De){for(var Y=De.length<0?0:0|Ct(De.length),Q=Ve(Y),Ne=0;Ne=_e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e.toString(16)+" bytes");return 0|De}function Gt(De,Y){if(me.isBuffer(De))return De.length;if(ArrayBuffer.isView(De)||sa(De,ArrayBuffer))return De.byteLength;if("string"!=typeof De)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof De);var Q=De.length,Ne=arguments.length>2&&!0===arguments[2];if(!Ne&&0===Q)return 0;for(var et=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return Q;case"utf8":case"utf-8":return Ic(De).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Q;case"hex":return Q>>>1;case"base64":return yu(De).length;default:if(et)return Ne?-1:Ic(De).length;Y=(""+Y).toLowerCase(),et=!0}}function gn(De,Y,Q){var Ne=!1;if((void 0===Y||Y<0)&&(Y=0),Y>this.length||((void 0===Q||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0)<=(Y>>>=0))return"";for(De||(De="utf8");;)switch(De){case"hex":return vu(this,Y,Q);case"utf8":case"utf-8":return vn(this,Y,Q);case"ascii":return Jn(this,Y,Q);case"latin1":case"binary":return Oc(this,Y,Q);case"base64":return _a(this,Y,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return No(this,Y,Q);default:if(Ne)throw new TypeError("Unknown encoding: "+De);De=(De+"").toLowerCase(),Ne=!0}}function en(De,Y,Q){var Ne=De[Y];De[Y]=De[Q],De[Q]=Ne}function Ai(De,Y,Q,Ne,et){if(0===De.length)return-1;if("string"==typeof Q?(Ne=Q,Q=0):Q>2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),ro(Q=+Q)&&(Q=et?0:De.length-1),Q<0&&(Q=De.length+Q),Q>=De.length){if(et)return-1;Q=De.length-1}else if(Q<0){if(!et)return-1;Q=0}if("string"==typeof Y&&(Y=me.from(Y,Ne)),me.isBuffer(Y))return 0===Y.length?-1:$r(De,Y,Q,Ne,et);if("number"==typeof Y)return Y&=255,"function"==typeof Uint8Array.prototype.indexOf?et?Uint8Array.prototype.indexOf.call(De,Y,Q):Uint8Array.prototype.lastIndexOf.call(De,Y,Q):$r(De,[Y],Q,Ne,et);throw new TypeError("val must be string, number or Buffer")}function $r(De,Y,Q,Ne,et){var ot,Ht=1,Kt=De.length,Zi=Y.length;if(void 0!==Ne&&("ucs2"===(Ne=String(Ne).toLowerCase())||"ucs-2"===Ne||"utf16le"===Ne||"utf-16le"===Ne)){if(De.length<2||Y.length<2)return-1;Ht=2,Kt/=2,Zi/=2,Q/=2}function M(hn,fe){return 1===Ht?hn[fe]:hn.readUInt16BE(fe*Ht)}if(et){var Dt=-1;for(ot=Q;otKt&&(Q=Kt-Zi),ot=Q;ot>=0;ot--){for(var Ut=!0,Bt=0;Btet&&(Ne=et):Ne=et;var Ht=Y.length;Ne>Ht/2&&(Ne=Ht/2);for(var Kt=0;Kt>8,Ht.push(Q%256),Ht.push(Ne);return Ht}(Y,De.length-Q),De,Q,Ne)}function _a(De,Y,Q){return Ie.fromByteArray(0===Y&&Q===De.length?De:De.slice(Y,Q))}function vn(De,Y,Q){Q=Math.min(De.length,Q);for(var Ne=[],et=Y;et239?4:Ht>223?3:Ht>191?2:1;if(et+Zi<=Q)switch(Zi){case 1:Ht<128&&(Kt=Ht);break;case 2:128==(192&(M=De[et+1]))&&(Ut=(31&Ht)<<6|63&M)>127&&(Kt=Ut);break;case 3:ot=De[et+2],128==(192&(M=De[et+1]))&&128==(192&ot)&&(Ut=(15&Ht)<<12|(63&M)<<6|63&ot)>2047&&(Ut<55296||Ut>57343)&&(Kt=Ut);break;case 4:ot=De[et+2],Dt=De[et+3],128==(192&(M=De[et+1]))&&128==(192&ot)&&128==(192&Dt)&&(Ut=(15&Ht)<<18|(63&M)<<12|(63&ot)<<6|63&Dt)>65535&&Ut<1114112&&(Kt=Ut)}null===Kt?(Kt=65533,Zi=1):Kt>65535&&(Ne.push((Kt-=65536)>>>10&1023|55296),Kt=56320|1023&Kt),Ne.push(Kt),et+=Zi}return function Cd(De){var Y=De.length;if(Y<=wd)return String.fromCharCode.apply(String,De);for(var Q="",Ne=0;Neet.length?me.from(Kt).copy(et,Ht):Uint8Array.prototype.set.call(et,Kt,Ht);else{if(!me.isBuffer(Kt))throw new TypeError('"list" argument must be an Array of Buffers');Kt.copy(et,Ht)}Ht+=Kt.length}return et},me.byteLength=Gt,me.prototype._isBuffer=!0,me.prototype.swap16=function(){var Y=this.length;if(Y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;QQ&&(Y+=" ... "),""},ze&&(me.prototype[ze]=me.prototype.inspect),me.prototype.compare=function(Y,Q,Ne,et,Ht){if(sa(Y,Uint8Array)&&(Y=me.from(Y,Y.offset,Y.byteLength)),!me.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(void 0===Q&&(Q=0),void 0===Ne&&(Ne=Y?Y.length:0),void 0===et&&(et=0),void 0===Ht&&(Ht=this.length),Q<0||Ne>Y.length||et<0||Ht>this.length)throw new RangeError("out of range index");if(et>=Ht&&Q>=Ne)return 0;if(et>=Ht)return-1;if(Q>=Ne)return 1;if(this===Y)return 0;for(var Kt=(Ht>>>=0)-(et>>>=0),Zi=(Ne>>>=0)-(Q>>>=0),M=Math.min(Kt,Zi),ot=this.slice(et,Ht),Dt=Y.slice(Q,Ne),Ut=0;Ut>>=0,isFinite(Ne)?(Ne>>>=0,void 0===et&&(et="utf8")):(et=Ne,Ne=void 0)}var Ht=this.length-Q;if((void 0===Ne||Ne>Ht)&&(Ne=Ht),Y.length>0&&(Ne<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");for(var Kt=!1;;)switch(et){case"hex":return Ur(this,Y,Q,Ne);case"utf8":case"utf-8":return ss(this,Y,Q,Ne);case"ascii":case"latin1":case"binary":return za(this,Y,Q,Ne);case"base64":return _r(this,Y,Q,Ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gu(this,Y,Q,Ne);default:if(Kt)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),Kt=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var wd=4096;function Jn(De,Y,Q){var Ne="";Q=Math.min(De.length,Q);for(var et=Y;etNe)&&(Q=Ne);for(var et="",Ht=Y;HtQ)throw new RangeError("Trying to access beyond buffer length")}function io(De,Y,Q,Ne,et,Ht){if(!me.isBuffer(De))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>et||YDe.length)throw new RangeError("Index out of range")}function ba(De,Y,Q,Ne,et,Ht){if(Q+Ne>De.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Yr(De,Y,Q,Ne,et){return Y=+Y,Q>>>=0,et||ba(De,0,Q,4),ct.write(De,Y,Q,Ne,23,4),Q+4}function ll(De,Y,Q,Ne,et){return Y=+Y,Q>>>=0,et||ba(De,0,Q,8),ct.write(De,Y,Q,Ne,52,8),Q+8}me.prototype.slice=function(Y,Q){var Ne=this.length;(Y=~~Y)<0?(Y+=Ne)<0&&(Y=0):Y>Ne&&(Y=Ne),(Q=void 0===Q?Ne:~~Q)<0?(Q+=Ne)<0&&(Q=0):Q>Ne&&(Q=Ne),Q>>=0,Q>>>=0,Ne||_o(Y,Q,this.length);for(var et=this[Y],Ht=1,Kt=0;++Kt>>=0,Q>>>=0,Ne||_o(Y,Q,this.length);for(var et=this[Y+--Q],Ht=1;Q>0&&(Ht*=256);)et+=this[Y+--Q]*Ht;return et},me.prototype.readUint8=me.prototype.readUInt8=function(Y,Q){return Y>>>=0,Q||_o(Y,1,this.length),this[Y]},me.prototype.readUint16LE=me.prototype.readUInt16LE=function(Y,Q){return Y>>>=0,Q||_o(Y,2,this.length),this[Y]|this[Y+1]<<8},me.prototype.readUint16BE=me.prototype.readUInt16BE=function(Y,Q){return Y>>>=0,Q||_o(Y,2,this.length),this[Y]<<8|this[Y+1]},me.prototype.readUint32LE=me.prototype.readUInt32LE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+16777216*this[Y+3]},me.prototype.readUint32BE=me.prototype.readUInt32BE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),16777216*this[Y]+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},me.prototype.readIntLE=function(Y,Q,Ne){Y>>>=0,Q>>>=0,Ne||_o(Y,Q,this.length);for(var et=this[Y],Ht=1,Kt=0;++Kt=(Ht*=128)&&(et-=Math.pow(2,8*Q)),et},me.prototype.readIntBE=function(Y,Q,Ne){Y>>>=0,Q>>>=0,Ne||_o(Y,Q,this.length);for(var et=Q,Ht=1,Kt=this[Y+--et];et>0&&(Ht*=256);)Kt+=this[Y+--et]*Ht;return Kt>=(Ht*=128)&&(Kt-=Math.pow(2,8*Q)),Kt},me.prototype.readInt8=function(Y,Q){return Y>>>=0,Q||_o(Y,1,this.length),128&this[Y]?-1*(255-this[Y]+1):this[Y]},me.prototype.readInt16LE=function(Y,Q){Y>>>=0,Q||_o(Y,2,this.length);var Ne=this[Y]|this[Y+1]<<8;return 32768&Ne?4294901760|Ne:Ne},me.prototype.readInt16BE=function(Y,Q){Y>>>=0,Q||_o(Y,2,this.length);var Ne=this[Y+1]|this[Y]<<8;return 32768&Ne?4294901760|Ne:Ne},me.prototype.readInt32LE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},me.prototype.readInt32BE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},me.prototype.readFloatLE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),ct.read(this,Y,!0,23,4)},me.prototype.readFloatBE=function(Y,Q){return Y>>>=0,Q||_o(Y,4,this.length),ct.read(this,Y,!1,23,4)},me.prototype.readDoubleLE=function(Y,Q){return Y>>>=0,Q||_o(Y,8,this.length),ct.read(this,Y,!0,52,8)},me.prototype.readDoubleBE=function(Y,Q){return Y>>>=0,Q||_o(Y,8,this.length),ct.read(this,Y,!1,52,8)},me.prototype.writeUintLE=me.prototype.writeUIntLE=function(Y,Q,Ne,et){Y=+Y,Q>>>=0,Ne>>>=0,et||io(this,Y,Q,Ne,Math.pow(2,8*Ne)-1,0);var Kt=1,Zi=0;for(this[Q]=255&Y;++Zi>>=0,Ne>>>=0,et||io(this,Y,Q,Ne,Math.pow(2,8*Ne)-1,0);var Kt=Ne-1,Zi=1;for(this[Q+Kt]=255&Y;--Kt>=0&&(Zi*=256);)this[Q+Kt]=Y/Zi&255;return Q+Ne},me.prototype.writeUint8=me.prototype.writeUInt8=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,1,255,0),this[Q]=255&Y,Q+1},me.prototype.writeUint16LE=me.prototype.writeUInt16LE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,2,65535,0),this[Q]=255&Y,this[Q+1]=Y>>>8,Q+2},me.prototype.writeUint16BE=me.prototype.writeUInt16BE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,2,65535,0),this[Q]=Y>>>8,this[Q+1]=255&Y,Q+2},me.prototype.writeUint32LE=me.prototype.writeUInt32LE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,4,4294967295,0),this[Q+3]=Y>>>24,this[Q+2]=Y>>>16,this[Q+1]=Y>>>8,this[Q]=255&Y,Q+4},me.prototype.writeUint32BE=me.prototype.writeUInt32BE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,4,4294967295,0),this[Q]=Y>>>24,this[Q+1]=Y>>>16,this[Q+2]=Y>>>8,this[Q+3]=255&Y,Q+4},me.prototype.writeIntLE=function(Y,Q,Ne,et){if(Y=+Y,Q>>>=0,!et){var Ht=Math.pow(2,8*Ne-1);io(this,Y,Q,Ne,Ht-1,-Ht)}var Kt=0,Zi=1,M=0;for(this[Q]=255&Y;++Kt>0)-M&255;return Q+Ne},me.prototype.writeIntBE=function(Y,Q,Ne,et){if(Y=+Y,Q>>>=0,!et){var Ht=Math.pow(2,8*Ne-1);io(this,Y,Q,Ne,Ht-1,-Ht)}var Kt=Ne-1,Zi=1,M=0;for(this[Q+Kt]=255&Y;--Kt>=0&&(Zi*=256);)Y<0&&0===M&&0!==this[Q+Kt+1]&&(M=1),this[Q+Kt]=(Y/Zi>>0)-M&255;return Q+Ne},me.prototype.writeInt8=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,1,127,-128),Y<0&&(Y=255+Y+1),this[Q]=255&Y,Q+1},me.prototype.writeInt16LE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,2,32767,-32768),this[Q]=255&Y,this[Q+1]=Y>>>8,Q+2},me.prototype.writeInt16BE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,2,32767,-32768),this[Q]=Y>>>8,this[Q+1]=255&Y,Q+2},me.prototype.writeInt32LE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,4,2147483647,-2147483648),this[Q]=255&Y,this[Q+1]=Y>>>8,this[Q+2]=Y>>>16,this[Q+3]=Y>>>24,Q+4},me.prototype.writeInt32BE=function(Y,Q,Ne){return Y=+Y,Q>>>=0,Ne||io(this,Y,Q,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[Q]=Y>>>24,this[Q+1]=Y>>>16,this[Q+2]=Y>>>8,this[Q+3]=255&Y,Q+4},me.prototype.writeFloatLE=function(Y,Q,Ne){return Yr(this,Y,Q,!0,Ne)},me.prototype.writeFloatBE=function(Y,Q,Ne){return Yr(this,Y,Q,!1,Ne)},me.prototype.writeDoubleLE=function(Y,Q,Ne){return ll(this,Y,Q,!0,Ne)},me.prototype.writeDoubleBE=function(Y,Q,Ne){return ll(this,Y,Q,!1,Ne)},me.prototype.copy=function(Y,Q,Ne,et){if(!me.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(Ne||(Ne=0),!et&&0!==et&&(et=this.length),Q>=Y.length&&(Q=Y.length),Q||(Q=0),et>0&&et=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),Y.length-Q>>=0,Ne=void 0===Ne?this.length:Ne>>>0,Y||(Y=0),"number"==typeof Y)for(Kt=Q;Kt55295&&Q<57344){if(!et){if(Q>56319){(Y-=3)>-1&&Ht.push(239,191,189);continue}if(Kt+1===Ne){(Y-=3)>-1&&Ht.push(239,191,189);continue}et=Q;continue}if(Q<56320){(Y-=3)>-1&&Ht.push(239,191,189),et=Q;continue}Q=65536+(et-55296<<10|Q-56320)}else et&&(Y-=3)>-1&&Ht.push(239,191,189);if(et=null,Q<128){if((Y-=1)<0)break;Ht.push(Q)}else if(Q<2048){if((Y-=2)<0)break;Ht.push(Q>>6|192,63&Q|128)}else if(Q<65536){if((Y-=3)<0)break;Ht.push(Q>>12|224,Q>>6&63|128,63&Q|128)}else{if(!(Q<1114112))throw new Error("Invalid code point");if((Y-=4)<0)break;Ht.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,63&Q|128)}}return Ht}function yu(De){return Ie.toByteArray(function Sd(De){if((De=(De=De.split("=")[0]).trim().replace(Kl,"")).length<2)return"";for(;De.length%4!=0;)De+="=";return De}(De))}function Ga(De,Y,Q,Ne){for(var et=0;et=Y.length||et>=De.length);++et)Y[et+Q]=De[et];return et}function sa(De,Y){return De instanceof Y||null!=De&&null!=De.constructor&&null!=De.constructor.name&&De.constructor.name===Y.name}function ro(De){return De!=De}var Ml=function(){for(var De="0123456789abcdef",Y=new Array(256),Q=0;Q<16;++Q)for(var Ne=16*Q,et=0;et<16;++et)Y[Ne+et]=De[Q]+De[et];return Y}()},797:function(Yt){Yt.exports=function(Dn){var ke={};function nt(Ie){if(ke[Ie])return ke[Ie].exports;var ct=ke[Ie]={exports:{},id:Ie,loaded:!1};return Dn[Ie].call(ct.exports,ct,ct.exports,nt),ct.loaded=!0,ct.exports}return nt.m=Dn,nt.c=ke,nt.p="",nt(0)}([function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(1),ct=nt(3),ze=nt(8),_e=nt(15);function Ze(se,T,A){var F=null,ee=function(Ai,$r){A&&A(Ai,$r),F&&F.visit(Ai,$r)},Ae="function"==typeof A?ee:null,Je=!1;if(T){var Ct="boolean"==typeof T.attachComment&&T.attachComment;((Je="boolean"==typeof T.comment&&T.comment)||Ct)&&((F=new Ie.CommentHandler).attach=Ct,T.comment=!0,Ae=ee)}var Gt,Ft=!1;T&&"string"==typeof T.sourceType&&(Ft="module"===T.sourceType),Gt=T&&"boolean"==typeof T.jsx&&T.jsx?new ct.JSXParser(se,T,Ae):new ze.Parser(se,T,Ae);var en=Ft?Gt.parseModule():Gt.parseScript();return Je&&F&&(en.comments=F.comments),Gt.config.tokens&&(en.tokens=Gt.tokens),Gt.config.tolerant&&(en.errors=Gt.errorHandler.errors),en}ke.parse=Ze,ke.parseModule=function Ve(se,T,A){var F=T||{};return F.sourceType="module",Ze(se,F,A)},ke.parseScript=function me(se,T,A){var F=T||{};return F.sourceType="script",Ze(se,F,A)},ke.tokenize=function oe(se,T,A){var ee,F=new _e.Tokenizer(se,T);ee=[];try{for(;;){var Ae=F.getNextToken();if(!Ae)break;A&&(Ae=A(Ae)),ee.push(Ae)}}catch(Je){F.errorHandler.tolerate(Je)}return F.errorHandler.tolerant&&(ee.errors=F.errors()),ee};var ce=nt(2);ke.Syntax=ce.Syntax,ke.version="4.0.1"},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(2),ct=function(){function ze(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return ze.prototype.insertInnerComments=function(_e,Ze){if(_e.type===Ie.Syntax.BlockStatement&&0===_e.body.length){for(var Ve=[],me=this.leading.length-1;me>=0;--me){var oe=this.leading[me];Ze.end.offset>=oe.start&&(Ve.unshift(oe.comment),this.leading.splice(me,1),this.trailing.splice(me,1))}Ve.length&&(_e.innerComments=Ve)}},ze.prototype.findTrailingComments=function(_e){var Ze=[];if(this.trailing.length>0){for(var Ve=this.trailing.length-1;Ve>=0;--Ve){var me=this.trailing[Ve];me.start>=_e.end.offset&&Ze.unshift(me.comment)}return this.trailing.length=0,Ze}var oe=this.stack[this.stack.length-1];if(oe&&oe.node.trailingComments){var ce=oe.node.trailingComments[0];ce&&ce.range[0]>=_e.end.offset&&(Ze=oe.node.trailingComments,delete oe.node.trailingComments)}return Ze},ze.prototype.findLeadingComments=function(_e){for(var Ve,Ze=[];this.stack.length>0&&(me=this.stack[this.stack.length-1])&&me.start>=_e.start.offset;)Ve=me.node,this.stack.pop();if(Ve){for(var ce=(Ve.leadingComments?Ve.leadingComments.length:0)-1;ce>=0;--ce){var se=Ve.leadingComments[ce];se.range[1]<=_e.start.offset&&(Ze.unshift(se),Ve.leadingComments.splice(ce,1))}return Ve.leadingComments&&0===Ve.leadingComments.length&&delete Ve.leadingComments,Ze}for(ce=this.leading.length-1;ce>=0;--ce){var me;(me=this.leading[ce]).start<=_e.start.offset&&(Ze.unshift(me.comment),this.leading.splice(ce,1))}return Ze},ze.prototype.visitNode=function(_e,Ze){if(!(_e.type===Ie.Syntax.Program&&_e.body.length>0)){this.insertInnerComments(_e,Ze);var Ve=this.findTrailingComments(Ze),me=this.findLeadingComments(Ze);me.length>0&&(_e.leadingComments=me),Ve.length>0&&(_e.trailingComments=Ve),this.stack.push({node:_e,start:Ze.start.offset})}},ze.prototype.visitComment=function(_e,Ze){var Ve="L"===_e.type[0]?"Line":"Block",me={type:Ve,value:_e.value};if(_e.range&&(me.range=_e.range),_e.loc&&(me.loc=_e.loc),this.comments.push(me),this.attach){var oe={comment:{type:Ve,value:_e.value,range:[Ze.start.offset,Ze.end.offset]},start:Ze.start.offset};_e.loc&&(oe.comment.loc=_e.loc),_e.type=Ve,this.leading.push(oe),this.trailing.push(oe)}},ze.prototype.visit=function(_e,Ze){"LineComment"===_e.type||"BlockComment"===_e.type?this.visitComment(_e,Ze):this.attach&&this.visitNode(_e,Ze)},ze}();ke.CommentHandler=ct},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Dn,ke,nt){"use strict";var T,Ie=this&&this.__extends||(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,F){A.__proto__=F}||function(A,F){for(var ee in F)F.hasOwnProperty(ee)&&(A[ee]=F[ee])},function(A,F){function ee(){this.constructor=A}T(A,F),A.prototype=null===F?Object.create(F):(ee.prototype=F.prototype,new ee)});Object.defineProperty(ke,"__esModule",{value:!0});var ct=nt(4),ze=nt(5),_e=nt(6),Ze=nt(7),Ve=nt(8),me=nt(13),oe=nt(14);function ce(T){var A;switch(T.type){case _e.JSXSyntax.JSXIdentifier:A=T.name;break;case _e.JSXSyntax.JSXNamespacedName:var ee=T;A=ce(ee.namespace)+":"+ce(ee.name);break;case _e.JSXSyntax.JSXMemberExpression:var Ae=T;A=ce(Ae.object)+"."+ce(Ae.property)}return A}me.TokenName[100]="JSXIdentifier",me.TokenName[101]="JSXText";var se=function(T){function A(F,ee,Ae){return T.call(this,F,ee,Ae)||this}return Ie(A,T),A.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():T.prototype.parsePrimaryExpression.call(this)},A.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},A.prototype.finishJSX=function(){this.nextToken()},A.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},A.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},A.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},A.prototype.scanXHTMLEntity=function(F){for(var ee="&",Ae=!0,Je=!1,Ct=!1,Ft=!1;!this.scanner.eof()&&Ae&&!Je;){var Gt=this.scanner.source[this.scanner.index];if(Gt===F)break;if(Je=";"===Gt,ee+=Gt,++this.scanner.index,!Je)switch(ee.length){case 2:Ct="#"===Gt;break;case 3:Ct&&(Ae=(Ft="x"===Gt)||ct.Character.isDecimalDigit(Gt.charCodeAt(0)),Ct=Ct&&!Ft);break;default:Ae=(Ae=Ae&&!(Ct&&!ct.Character.isDecimalDigit(Gt.charCodeAt(0))))&&!(Ft&&!ct.Character.isHexDigit(Gt.charCodeAt(0)))}}if(Ae&&Je&&ee.length>2){var gn=ee.substr(1,ee.length-2);Ct&&gn.length>1?ee=String.fromCharCode(parseInt(gn.substr(1),10)):Ft&&gn.length>2?ee=String.fromCharCode(parseInt("0"+gn.substr(1),16)):!Ct&&!Ft&&oe.XHTMLEntities[gn]&&(ee=oe.XHTMLEntities[gn])}return ee},A.prototype.lexJSX=function(){var F=this.scanner.source.charCodeAt(this.scanner.index);if(60===F||62===F||47===F||58===F||61===F||123===F||125===F)return{type:7,value:ee=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===F||39===F){for(var Ae=this.scanner.index,Je=this.scanner.source[this.scanner.index++],Ct="";!this.scanner.eof()&&(Ft=this.scanner.source[this.scanner.index++])!==Je;)Ct+="&"===Ft?this.scanXHTMLEntity(Je):Ft;return{type:8,value:Ct,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(46===F){var ee,Gt=this.scanner.source.charCodeAt(this.scanner.index+1),gn=this.scanner.source.charCodeAt(this.scanner.index+2);return Ae=this.scanner.index,this.scanner.index+=(ee=46===Gt&&46===gn?"...":".").length,{type:7,value:ee,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(96===F)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(ct.Character.isIdentifierStart(F)&&92!==F){for(Ae=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var Ft=this.scanner.source.charCodeAt(this.scanner.index);if(ct.Character.isIdentifierPart(Ft)&&92!==Ft)++this.scanner.index;else{if(45!==Ft)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Ae,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}return this.scanner.lex()},A.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var F=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(F)),F},A.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var F=this.scanner.index,ee="";!this.scanner.eof();){var Ae=this.scanner.source[this.scanner.index];if("{"===Ae||"<"===Ae)break;++this.scanner.index,ee+=Ae,ct.Character.isLineTerminator(Ae.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Ae&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Je={type:101,value:ee,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:F,end:this.scanner.index};return ee.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Je)),Je},A.prototype.peekJSXToken=function(){var F=this.scanner.saveState();this.scanner.scanComments();var ee=this.lexJSX();return this.scanner.restoreState(F),ee},A.prototype.expectJSX=function(F){var ee=this.nextJSXToken();(7!==ee.type||ee.value!==F)&&this.throwUnexpectedToken(ee)},A.prototype.matchJSX=function(F){var ee=this.peekJSXToken();return 7===ee.type&&ee.value===F},A.prototype.parseJSXIdentifier=function(){var F=this.createJSXNode(),ee=this.nextJSXToken();return 100!==ee.type&&this.throwUnexpectedToken(ee),this.finalize(F,new ze.JSXIdentifier(ee.value))},A.prototype.parseJSXElementName=function(){var F=this.createJSXNode(),ee=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ae=ee;this.expectJSX(":");var Je=this.parseJSXIdentifier();ee=this.finalize(F,new ze.JSXNamespacedName(Ae,Je))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var Ct=ee;this.expectJSX(".");var Ft=this.parseJSXIdentifier();ee=this.finalize(F,new ze.JSXMemberExpression(Ct,Ft))}return ee},A.prototype.parseJSXAttributeName=function(){var ee,F=this.createJSXNode(),Ae=this.parseJSXIdentifier();if(this.matchJSX(":")){var Je=Ae;this.expectJSX(":");var Ct=this.parseJSXIdentifier();ee=this.finalize(F,new ze.JSXNamespacedName(Je,Ct))}else ee=Ae;return ee},A.prototype.parseJSXStringLiteralAttribute=function(){var F=this.createJSXNode(),ee=this.nextJSXToken();8!==ee.type&&this.throwUnexpectedToken(ee);var Ae=this.getTokenRaw(ee);return this.finalize(F,new Ze.Literal(ee.value,Ae))},A.prototype.parseJSXExpressionAttribute=function(){var F=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var ee=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(F,new ze.JSXExpressionContainer(ee))},A.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},A.prototype.parseJSXNameValueAttribute=function(){var F=this.createJSXNode(),ee=this.parseJSXAttributeName(),Ae=null;return this.matchJSX("=")&&(this.expectJSX("="),Ae=this.parseJSXAttributeValue()),this.finalize(F,new ze.JSXAttribute(ee,Ae))},A.prototype.parseJSXSpreadAttribute=function(){var F=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var ee=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(F,new ze.JSXSpreadAttribute(ee))},A.prototype.parseJSXAttributes=function(){for(var F=[];!this.matchJSX("/")&&!this.matchJSX(">");){var ee=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();F.push(ee)}return F},A.prototype.parseJSXOpeningElement=function(){var F=this.createJSXNode();this.expectJSX("<");var ee=this.parseJSXElementName(),Ae=this.parseJSXAttributes(),Je=this.matchJSX("/");return Je&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(F,new ze.JSXOpeningElement(ee,Je,Ae))},A.prototype.parseJSXBoundaryElement=function(){var F=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var ee=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(F,new ze.JSXClosingElement(ee))}var Ae=this.parseJSXElementName(),Je=this.parseJSXAttributes(),Ct=this.matchJSX("/");return Ct&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(F,new ze.JSXOpeningElement(Ae,Ct,Je))},A.prototype.parseJSXEmptyExpression=function(){var F=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(F,new ze.JSXEmptyExpression)},A.prototype.parseJSXExpressionContainer=function(){var ee,F=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(ee=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),ee=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(F,new ze.JSXExpressionContainer(ee))},A.prototype.parseJSXChildren=function(){for(var F=[];!this.scanner.eof();){var ee=this.createJSXChildNode(),Ae=this.nextJSXText();if(Ae.start0))break;Ft=this.finalize(F.node,new ze.JSXElement(F.opening,F.children,F.closing)),(F=ee[ee.length-1]).children.push(Ft),ee.pop()}}return F},A.prototype.parseJSXElement=function(){var F=this.createJSXNode(),ee=this.parseJSXOpeningElement(),Ae=[],Je=null;if(!ee.selfClosing){var Ct=this.parseComplexJSXElement({node:F,opening:ee,closing:Je,children:Ae});Ae=Ct.children,Je=Ct.closing}return this.finalize(F,new ze.JSXElement(ee,Ae,Je))},A.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var F=this.parseJSXElement();return this.finishJSX(),F},A.prototype.isStartOfExpression=function(){return T.prototype.isStartOfExpression.call(this)||this.match("<")},A}(Ve.Parser);ke.JSXParser=se},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var nt={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\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\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\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\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\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};ke.Character={fromCodePoint:function(Ie){return Ie<65536?String.fromCharCode(Ie):String.fromCharCode(55296+(Ie-65536>>10))+String.fromCharCode(56320+(Ie-65536&1023))},isWhiteSpace:function(Ie){return 32===Ie||9===Ie||11===Ie||12===Ie||160===Ie||Ie>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(Ie)>=0},isLineTerminator:function(Ie){return 10===Ie||13===Ie||8232===Ie||8233===Ie},isIdentifierStart:function(Ie){return 36===Ie||95===Ie||Ie>=65&&Ie<=90||Ie>=97&&Ie<=122||92===Ie||Ie>=128&&nt.NonAsciiIdentifierStart.test(ke.Character.fromCodePoint(Ie))},isIdentifierPart:function(Ie){return 36===Ie||95===Ie||Ie>=65&&Ie<=90||Ie>=97&&Ie<=122||Ie>=48&&Ie<=57||92===Ie||Ie>=128&&nt.NonAsciiIdentifierPart.test(ke.Character.fromCodePoint(Ie))},isDecimalDigit:function(Ie){return Ie>=48&&Ie<=57},isHexDigit:function(Ie){return Ie>=48&&Ie<=57||Ie>=65&&Ie<=70||Ie>=97&&Ie<=102},isOctalDigit:function(Ie){return Ie>=48&&Ie<=55}}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(6);ke.JSXClosingElement=function F(ee){this.type=Ie.JSXSyntax.JSXClosingElement,this.name=ee},ke.JSXElement=function F(ee,Ae,Je){this.type=Ie.JSXSyntax.JSXElement,this.openingElement=ee,this.children=Ae,this.closingElement=Je},ke.JSXEmptyExpression=function F(){this.type=Ie.JSXSyntax.JSXEmptyExpression},ke.JSXExpressionContainer=function F(ee){this.type=Ie.JSXSyntax.JSXExpressionContainer,this.expression=ee},ke.JSXIdentifier=function F(ee){this.type=Ie.JSXSyntax.JSXIdentifier,this.name=ee},ke.JSXMemberExpression=function F(ee,Ae){this.type=Ie.JSXSyntax.JSXMemberExpression,this.object=ee,this.property=Ae},ke.JSXAttribute=function F(ee,Ae){this.type=Ie.JSXSyntax.JSXAttribute,this.name=ee,this.value=Ae},ke.JSXNamespacedName=function F(ee,Ae){this.type=Ie.JSXSyntax.JSXNamespacedName,this.namespace=ee,this.name=Ae},ke.JSXOpeningElement=function F(ee,Ae,Je){this.type=Ie.JSXSyntax.JSXOpeningElement,this.name=ee,this.selfClosing=Ae,this.attributes=Je},ke.JSXSpreadAttribute=function F(ee){this.type=Ie.JSXSyntax.JSXSpreadAttribute,this.argument=ee},ke.JSXText=function F(ee,Ae){this.type=Ie.JSXSyntax.JSXText,this.value=ee,this.raw=Ae}},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(2);ke.ArrayExpression=function Ge(qe){this.type=Ie.Syntax.ArrayExpression,this.elements=qe},ke.ArrayPattern=function Ge(qe){this.type=Ie.Syntax.ArrayPattern,this.elements=qe},ke.ArrowFunctionExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.ArrowFunctionExpression,this.id=null,this.params=qe,this.body=_t,this.generator=!1,this.expression=bn,this.async=!1},ke.AssignmentExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.AssignmentExpression,this.operator=qe,this.left=_t,this.right=bn},ke.AssignmentPattern=function Ge(qe,_t){this.type=Ie.Syntax.AssignmentPattern,this.left=qe,this.right=_t},ke.AsyncArrowFunctionExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.ArrowFunctionExpression,this.id=null,this.params=qe,this.body=_t,this.generator=!1,this.expression=bn,this.async=!0},ke.AsyncFunctionDeclaration=function Ge(qe,_t,bn){this.type=Ie.Syntax.FunctionDeclaration,this.id=qe,this.params=_t,this.body=bn,this.generator=!1,this.expression=!1,this.async=!0},ke.AsyncFunctionExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.FunctionExpression,this.id=qe,this.params=_t,this.body=bn,this.generator=!1,this.expression=!1,this.async=!0},ke.AwaitExpression=function Ge(qe){this.type=Ie.Syntax.AwaitExpression,this.argument=qe},ke.BinaryExpression=function Ge(qe,_t,bn){this.type="||"===qe||"&&"===qe?Ie.Syntax.LogicalExpression:Ie.Syntax.BinaryExpression,this.operator=qe,this.left=_t,this.right=bn},ke.BlockStatement=function Ge(qe){this.type=Ie.Syntax.BlockStatement,this.body=qe},ke.BreakStatement=function Ge(qe){this.type=Ie.Syntax.BreakStatement,this.label=qe},ke.CallExpression=function Ge(qe,_t){this.type=Ie.Syntax.CallExpression,this.callee=qe,this.arguments=_t},ke.CatchClause=function Ge(qe,_t){this.type=Ie.Syntax.CatchClause,this.param=qe,this.body=_t},ke.ClassBody=function Ge(qe){this.type=Ie.Syntax.ClassBody,this.body=qe},ke.ClassDeclaration=function Ge(qe,_t,bn){this.type=Ie.Syntax.ClassDeclaration,this.id=qe,this.superClass=_t,this.body=bn},ke.ClassExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.ClassExpression,this.id=qe,this.superClass=_t,this.body=bn},ke.ComputedMemberExpression=function Ge(qe,_t){this.type=Ie.Syntax.MemberExpression,this.computed=!0,this.object=qe,this.property=_t},ke.ConditionalExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.ConditionalExpression,this.test=qe,this.consequent=_t,this.alternate=bn},ke.ContinueStatement=function Ge(qe){this.type=Ie.Syntax.ContinueStatement,this.label=qe},ke.DebuggerStatement=function Ge(){this.type=Ie.Syntax.DebuggerStatement},ke.Directive=function Ge(qe,_t){this.type=Ie.Syntax.ExpressionStatement,this.expression=qe,this.directive=_t},ke.DoWhileStatement=function Ge(qe,_t){this.type=Ie.Syntax.DoWhileStatement,this.body=qe,this.test=_t},ke.EmptyStatement=function Ge(){this.type=Ie.Syntax.EmptyStatement},ke.ExportAllDeclaration=function Ge(qe){this.type=Ie.Syntax.ExportAllDeclaration,this.source=qe},ke.ExportDefaultDeclaration=function Ge(qe){this.type=Ie.Syntax.ExportDefaultDeclaration,this.declaration=qe},ke.ExportNamedDeclaration=function Ge(qe,_t,bn){this.type=Ie.Syntax.ExportNamedDeclaration,this.declaration=qe,this.specifiers=_t,this.source=bn},ke.ExportSpecifier=function Ge(qe,_t){this.type=Ie.Syntax.ExportSpecifier,this.exported=_t,this.local=qe},ke.ExpressionStatement=function Ge(qe){this.type=Ie.Syntax.ExpressionStatement,this.expression=qe},ke.ForInStatement=function Ge(qe,_t,bn){this.type=Ie.Syntax.ForInStatement,this.left=qe,this.right=_t,this.body=bn,this.each=!1},ke.ForOfStatement=function Ge(qe,_t,bn){this.type=Ie.Syntax.ForOfStatement,this.left=qe,this.right=_t,this.body=bn},ke.ForStatement=function Ge(qe,_t,bn,Nr){this.type=Ie.Syntax.ForStatement,this.init=qe,this.test=_t,this.update=bn,this.body=Nr},ke.FunctionDeclaration=function Ge(qe,_t,bn,Nr){this.type=Ie.Syntax.FunctionDeclaration,this.id=qe,this.params=_t,this.body=bn,this.generator=Nr,this.expression=!1,this.async=!1},ke.FunctionExpression=function Ge(qe,_t,bn,Nr){this.type=Ie.Syntax.FunctionExpression,this.id=qe,this.params=_t,this.body=bn,this.generator=Nr,this.expression=!1,this.async=!1},ke.Identifier=function Ge(qe){this.type=Ie.Syntax.Identifier,this.name=qe},ke.IfStatement=function Ge(qe,_t,bn){this.type=Ie.Syntax.IfStatement,this.test=qe,this.consequent=_t,this.alternate=bn},ke.ImportDeclaration=function Ge(qe,_t){this.type=Ie.Syntax.ImportDeclaration,this.specifiers=qe,this.source=_t},ke.ImportDefaultSpecifier=function Ge(qe){this.type=Ie.Syntax.ImportDefaultSpecifier,this.local=qe},ke.ImportNamespaceSpecifier=function Ge(qe){this.type=Ie.Syntax.ImportNamespaceSpecifier,this.local=qe},ke.ImportSpecifier=function Ge(qe,_t){this.type=Ie.Syntax.ImportSpecifier,this.local=qe,this.imported=_t},ke.LabeledStatement=function Ge(qe,_t){this.type=Ie.Syntax.LabeledStatement,this.label=qe,this.body=_t},ke.Literal=function Ge(qe,_t){this.type=Ie.Syntax.Literal,this.value=qe,this.raw=_t},ke.MetaProperty=function Ge(qe,_t){this.type=Ie.Syntax.MetaProperty,this.meta=qe,this.property=_t},ke.MethodDefinition=function Ge(qe,_t,bn,Nr,m1){this.type=Ie.Syntax.MethodDefinition,this.key=qe,this.computed=_t,this.value=bn,this.kind=Nr,this.static=m1},ke.Module=function Ge(qe){this.type=Ie.Syntax.Program,this.body=qe,this.sourceType="module"},ke.NewExpression=function Ge(qe,_t){this.type=Ie.Syntax.NewExpression,this.callee=qe,this.arguments=_t},ke.ObjectExpression=function Ge(qe){this.type=Ie.Syntax.ObjectExpression,this.properties=qe},ke.ObjectPattern=function Ge(qe){this.type=Ie.Syntax.ObjectPattern,this.properties=qe},ke.Property=function Ge(qe,_t,bn,Nr,m1,Mi){this.type=Ie.Syntax.Property,this.key=_t,this.computed=bn,this.value=Nr,this.kind=qe,this.method=m1,this.shorthand=Mi},ke.RegexLiteral=function Ge(qe,_t,bn,Nr){this.type=Ie.Syntax.Literal,this.value=qe,this.raw=_t,this.regex={pattern:bn,flags:Nr}},ke.RestElement=function Ge(qe){this.type=Ie.Syntax.RestElement,this.argument=qe},ke.ReturnStatement=function Ge(qe){this.type=Ie.Syntax.ReturnStatement,this.argument=qe},ke.Script=function Ge(qe){this.type=Ie.Syntax.Program,this.body=qe,this.sourceType="script"},ke.SequenceExpression=function Ge(qe){this.type=Ie.Syntax.SequenceExpression,this.expressions=qe},ke.SpreadElement=function Ge(qe){this.type=Ie.Syntax.SpreadElement,this.argument=qe},ke.StaticMemberExpression=function Ge(qe,_t){this.type=Ie.Syntax.MemberExpression,this.computed=!1,this.object=qe,this.property=_t},ke.Super=function Ge(){this.type=Ie.Syntax.Super},ke.SwitchCase=function Ge(qe,_t){this.type=Ie.Syntax.SwitchCase,this.test=qe,this.consequent=_t},ke.SwitchStatement=function Ge(qe,_t){this.type=Ie.Syntax.SwitchStatement,this.discriminant=qe,this.cases=_t},ke.TaggedTemplateExpression=function Ge(qe,_t){this.type=Ie.Syntax.TaggedTemplateExpression,this.tag=qe,this.quasi=_t},ke.TemplateElement=function Ge(qe,_t){this.type=Ie.Syntax.TemplateElement,this.value=qe,this.tail=_t},ke.TemplateLiteral=function Ge(qe,_t){this.type=Ie.Syntax.TemplateLiteral,this.quasis=qe,this.expressions=_t},ke.ThisExpression=function Ge(){this.type=Ie.Syntax.ThisExpression},ke.ThrowStatement=function Ge(qe){this.type=Ie.Syntax.ThrowStatement,this.argument=qe},ke.TryStatement=function Ge(qe,_t,bn){this.type=Ie.Syntax.TryStatement,this.block=qe,this.handler=_t,this.finalizer=bn},ke.UnaryExpression=function Ge(qe,_t){this.type=Ie.Syntax.UnaryExpression,this.operator=qe,this.argument=_t,this.prefix=!0},ke.UpdateExpression=function Ge(qe,_t,bn){this.type=Ie.Syntax.UpdateExpression,this.operator=qe,this.argument=_t,this.prefix=bn},ke.VariableDeclaration=function Ge(qe,_t){this.type=Ie.Syntax.VariableDeclaration,this.declarations=qe,this.kind=_t},ke.VariableDeclarator=function Ge(qe,_t){this.type=Ie.Syntax.VariableDeclarator,this.id=qe,this.init=_t},ke.WhileStatement=function Ge(qe,_t){this.type=Ie.Syntax.WhileStatement,this.test=qe,this.body=_t},ke.WithStatement=function Ge(qe,_t){this.type=Ie.Syntax.WithStatement,this.object=qe,this.body=_t},ke.YieldExpression=function Ge(qe,_t){this.type=Ie.Syntax.YieldExpression,this.argument=qe,this.delegate=_t}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(9),ct=nt(10),ze=nt(11),_e=nt(7),Ze=nt(12),Ve=nt(2),me=nt(13),oe="ArrowParameterPlaceHolder",ce=function(){function se(T,A,F){void 0===A&&(A={}),this.config={range:"boolean"==typeof A.range&&A.range,loc:"boolean"==typeof A.loc&&A.loc,source:null,tokens:"boolean"==typeof A.tokens&&A.tokens,comment:"boolean"==typeof A.comment&&A.comment,tolerant:"boolean"==typeof A.tolerant&&A.tolerant},this.config.loc&&A.source&&null!==A.source&&(this.config.source=String(A.source)),this.delegate=F,this.errorHandler=new ct.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new Ze.Scanner(T,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return se.prototype.throwError=function(T){for(var A=[],F=1;F0&&this.delegate)for(var A=0;A>="===T||">>>="===T||"&="===T||"^="===T||"|="===T},se.prototype.isolateCoverGrammar=function(T){var A=this.context.isBindingElement,F=this.context.isAssignmentTarget,ee=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=T.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=A,this.context.isAssignmentTarget=F,this.context.firstCoverInitializedNameError=ee,Ae},se.prototype.inheritCoverGrammar=function(T){var A=this.context.isBindingElement,F=this.context.isAssignmentTarget,ee=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=T.call(this);return this.context.isBindingElement=this.context.isBindingElement&&A,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&F,this.context.firstCoverInitializedNameError=ee||this.context.firstCoverInitializedNameError,Ae},se.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},se.prototype.parsePrimaryExpression=function(){var A,F,ee,T=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),A=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(T,new _e.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,ze.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,F=this.nextToken(),ee=this.getTokenRaw(F),A=this.finalize(T,new _e.Literal(F.value,ee));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,F=this.nextToken(),ee=this.getTokenRaw(F),A=this.finalize(T,new _e.Literal("true"===F.value,ee));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,F=this.nextToken(),ee=this.getTokenRaw(F),A=this.finalize(T,new _e.Literal(null,ee));break;case 10:A=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,A=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":A=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":A=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,F=this.nextRegexToken(),ee=this.getTokenRaw(F),A=this.finalize(T,new _e.RegexLiteral(F.regex,ee,F.pattern,F.flags));break;default:A=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?A=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?A=this.finalize(T,new _e.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?A=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),A=this.finalize(T,new _e.ThisExpression)):A=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:A=this.throwUnexpectedToken(this.nextToken())}return A},se.prototype.parseSpreadElement=function(){var T=this.createNode();this.expect("...");var A=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(T,new _e.SpreadElement(A))},se.prototype.parseArrayInitializer=function(){var T=this.createNode(),A=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),A.push(null);else if(this.match("...")){var F=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),A.push(F)}else A.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(T,new _e.ArrayExpression(A))},se.prototype.parsePropertyMethod=function(T){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var A=this.context.strict,F=this.context.allowStrictDirective;this.context.allowStrictDirective=T.simple;var ee=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&T.firstRestricted&&this.tolerateUnexpectedToken(T.firstRestricted,T.message),this.context.strict&&T.stricted&&this.tolerateUnexpectedToken(T.stricted,T.message),this.context.strict=A,this.context.allowStrictDirective=F,ee},se.prototype.parsePropertyMethodFunction=function(){var A=this.createNode(),F=this.context.allowYield;this.context.allowYield=!0;var ee=this.parseFormalParameters(),Ae=this.parsePropertyMethod(ee);return this.context.allowYield=F,this.finalize(A,new _e.FunctionExpression(null,ee.params,Ae,!1))},se.prototype.parsePropertyMethodAsyncFunction=function(){var T=this.createNode(),A=this.context.allowYield,F=this.context.await;this.context.allowYield=!1,this.context.await=!0;var ee=this.parseFormalParameters(),Ae=this.parsePropertyMethod(ee);return this.context.allowYield=A,this.context.await=F,this.finalize(T,new _e.AsyncFunctionExpression(null,ee.params,Ae))},se.prototype.parseObjectPropertyKey=function(){var F,T=this.createNode(),A=this.nextToken();switch(A.type){case 8:case 6:this.context.strict&&A.octal&&this.tolerateUnexpectedToken(A,ze.Messages.StrictOctalLiteral);var ee=this.getTokenRaw(A);F=this.finalize(T,new _e.Literal(A.value,ee));break;case 3:case 1:case 5:case 4:F=this.finalize(T,new _e.Identifier(A.value));break;case 7:"["===A.value?(F=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):F=this.throwUnexpectedToken(A);break;default:F=this.throwUnexpectedToken(A)}return F},se.prototype.isPropertyKey=function(T,A){return T.type===Ve.Syntax.Identifier&&T.name===A||T.type===Ve.Syntax.Literal&&T.value===A},se.prototype.parseObjectProperty=function(T){var ee,A=this.createNode(),F=this.lookahead,Ae=null,Je=null,Ct=!1,Ft=!1,Gt=!1,gn=!1;if(3===F.type){var en=F.value;this.nextToken(),Ct=this.match("["),Ae=(gn=!(this.hasLineTerminator||"async"!==en||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(A,new _e.Identifier(en))}else this.match("*")?this.nextToken():(Ct=this.match("["),Ae=this.parseObjectPropertyKey());var Ai=this.qualifiedPropertyName(this.lookahead);if(3===F.type&&!gn&&"get"===F.value&&Ai)ee="get",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod();else if(3===F.type&&!gn&&"set"===F.value&&Ai)ee="set",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),Je=this.parseSetterMethod();else if(7===F.type&&"*"===F.value&&Ai)ee="init",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),Ft=!0;else if(Ae||this.throwUnexpectedToken(this.lookahead),ee="init",this.match(":")&&!gn)!Ct&&this.isPropertyKey(Ae,"__proto__")&&(T.value&&this.tolerateError(ze.Messages.DuplicateProtoProperty),T.value=!0),this.nextToken(),Je=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Je=gn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),Ft=!0;else if(3===F.type)if(en=this.finalize(A,new _e.Identifier(F.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),Gt=!0;var $r=this.isolateCoverGrammar(this.parseAssignmentExpression);Je=this.finalize(A,new _e.AssignmentPattern(en,$r))}else Gt=!0,Je=en;else this.throwUnexpectedToken(this.nextToken());return this.finalize(A,new _e.Property(ee,Ae,Ct,Je,Ft,Gt))},se.prototype.parseObjectInitializer=function(){var T=this.createNode();this.expect("{");for(var A=[],F={value:!1};!this.match("}");)A.push(this.parseObjectProperty(F)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(T,new _e.ObjectExpression(A))},se.prototype.parseTemplateHead=function(){Ie.assert(this.lookahead.head,"Template literal must start with a template head");var T=this.createNode(),A=this.nextToken();return this.finalize(T,new _e.TemplateElement({raw:A.value,cooked:A.cooked},A.tail))},se.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var T=this.createNode(),A=this.nextToken();return this.finalize(T,new _e.TemplateElement({raw:A.value,cooked:A.cooked},A.tail))},se.prototype.parseTemplateLiteral=function(){var T=this.createNode(),A=[],F=[],ee=this.parseTemplateHead();for(F.push(ee);!ee.tail;)A.push(this.parseExpression()),ee=this.parseTemplateElement(),F.push(ee);return this.finalize(T,new _e.TemplateLiteral(F,A))},se.prototype.reinterpretExpressionAsPattern=function(T){switch(T.type){case Ve.Syntax.Identifier:case Ve.Syntax.MemberExpression:case Ve.Syntax.RestElement:case Ve.Syntax.AssignmentPattern:break;case Ve.Syntax.SpreadElement:T.type=Ve.Syntax.RestElement,this.reinterpretExpressionAsPattern(T.argument);break;case Ve.Syntax.ArrayExpression:T.type=Ve.Syntax.ArrayPattern;for(var A=0;A")||this.expect("=>"),T={type:oe,params:[],async:!1};else{var A=this.lookahead,F=[];if(this.match("..."))T=this.parseRestElement(F),this.expect(")"),this.match("=>")||this.expect("=>"),T={type:oe,params:[T],async:!1};else{var ee=!1;if(this.context.isBindingElement=!0,T=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Ae=[];for(this.context.isAssignmentTarget=!1,Ae.push(T);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Je=0;Je")||this.expect("=>"),this.context.isBindingElement=!1,Je=0;Je")&&(T.type===Ve.Syntax.Identifier&&"yield"===T.name&&(ee=!0,T={type:oe,params:[T],async:!1}),!ee)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),T.type===Ve.Syntax.SequenceExpression)for(Je=0;Je")){for(var Ft=0;Ft0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Ae=[T,this.lookahead],Je=A,Ct=this.isolateCoverGrammar(this.parseExponentiationExpression),Ft=[Je,F.value,Ct],Gt=[ee];!((ee=this.binaryPrecedence(this.lookahead))<=0);){for(;Ft.length>2&&ee<=Gt[Gt.length-1];){Ct=Ft.pop();var gn=Ft.pop();Gt.pop(),Je=Ft.pop(),Ae.pop();var en=this.startNode(Ae[Ae.length-1]);Ft.push(this.finalize(en,new _e.BinaryExpression(gn,Je,Ct)))}Ft.push(this.nextToken().value),Gt.push(ee),Ae.push(this.lookahead),Ft.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Ai=Ft.length-1;A=Ft[Ai];for(var $r=Ae.pop();Ai>1;){var Ur=Ae.pop();en=this.startNode(Ur,$r&&$r.lineStart),A=this.finalize(en,new _e.BinaryExpression(gn=Ft[Ai-1],Ft[Ai-2],A)),Ai-=2,$r=Ur}}return A},se.prototype.parseConditionalExpression=function(){var T=this.lookahead,A=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var F=this.context.allowIn;this.context.allowIn=!0;var ee=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=F,this.expect(":");var Ae=this.isolateCoverGrammar(this.parseAssignmentExpression);A=this.finalize(this.startNode(T),new _e.ConditionalExpression(A,ee,Ae)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return A},se.prototype.checkPatternParam=function(T,A){switch(A.type){case Ve.Syntax.Identifier:this.validateParam(T,A,A.name);break;case Ve.Syntax.RestElement:this.checkPatternParam(T,A.argument);break;case Ve.Syntax.AssignmentPattern:this.checkPatternParam(T,A.left);break;case Ve.Syntax.ArrayPattern:for(var F=0;F")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Ae=T.async,Je=this.reinterpretAsCoverFormalsList(T);if(Je){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var Ct=this.context.strict,Ft=this.context.allowStrictDirective;this.context.allowStrictDirective=Je.simple;var Gt=this.context.allowYield,gn=this.context.await;this.context.allowYield=!0,this.context.await=Ae;var en=this.startNode(A);this.expect("=>");var Ai=void 0;if(this.match("{")){var $r=this.context.allowIn;this.context.allowIn=!0,Ai=this.parseFunctionSourceElements(),this.context.allowIn=$r}else Ai=this.isolateCoverGrammar(this.parseAssignmentExpression);var Ur=Ai.type!==Ve.Syntax.BlockStatement;this.context.strict&&Je.firstRestricted&&this.throwUnexpectedToken(Je.firstRestricted,Je.message),this.context.strict&&Je.stricted&&this.tolerateUnexpectedToken(Je.stricted,Je.message),T=this.finalize(en,Ae?new _e.AsyncArrowFunctionExpression(Je.params,Ai,Ur):new _e.ArrowFunctionExpression(Je.params,Ai,Ur)),this.context.strict=Ct,this.context.allowStrictDirective=Ft,this.context.allowYield=Gt,this.context.await=gn}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(ze.Messages.InvalidLHSInAssignment),this.context.strict&&T.type===Ve.Syntax.Identifier){var ss=T;this.scanner.isRestrictedWord(ss.name)&&this.tolerateUnexpectedToken(F,ze.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(ss.name)&&this.tolerateUnexpectedToken(F,ze.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(T):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var za=(F=this.nextToken()).value,_r=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(A),new _e.AssignmentExpression(za,T,_r)),this.context.firstCoverInitializedNameError=null}}return T},se.prototype.parseExpression=function(){var T=this.lookahead,A=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var F=[];for(F.push(A);2!==this.lookahead.type&&this.match(",");)this.nextToken(),F.push(this.isolateCoverGrammar(this.parseAssignmentExpression));A=this.finalize(this.startNode(T),new _e.SequenceExpression(F))}return A},se.prototype.parseStatementListItem=function(){var T;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,ze.Messages.IllegalExportDeclaration),T=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,ze.Messages.IllegalImportDeclaration),T=this.parseImportDeclaration();break;case"const":T=this.parseLexicalDeclaration({inFor:!1});break;case"function":T=this.parseFunctionDeclaration();break;case"class":T=this.parseClassDeclaration();break;case"let":T=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:T=this.parseStatement()}else T=this.parseStatement();return T},se.prototype.parseBlock=function(){var T=this.createNode();this.expect("{");for(var A=[];!this.match("}");)A.push(this.parseStatementListItem());return this.expect("}"),this.finalize(T,new _e.BlockStatement(A))},se.prototype.parseLexicalBinding=function(T,A){var F=this.createNode(),Ae=this.parsePattern([],T);this.context.strict&&Ae.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(Ae.name)&&this.tolerateError(ze.Messages.StrictVarName);var Je=null;return"const"===T?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(ze.Messages.DeclarationMissingInitializer,"const")):(!A.inFor&&Ae.type!==Ve.Syntax.Identifier||this.match("="))&&(this.expect("="),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(F,new _e.VariableDeclarator(Ae,Je))},se.prototype.parseBindingList=function(T,A){for(var F=[this.parseLexicalBinding(T,A)];this.match(",");)this.nextToken(),F.push(this.parseLexicalBinding(T,A));return F},se.prototype.isLexicalDeclaration=function(){var T=this.scanner.saveState();this.scanner.scanComments();var A=this.scanner.lex();return this.scanner.restoreState(T),3===A.type||7===A.type&&"["===A.value||7===A.type&&"{"===A.value||4===A.type&&"let"===A.value||4===A.type&&"yield"===A.value},se.prototype.parseLexicalDeclaration=function(T){var A=this.createNode(),F=this.nextToken().value;Ie.assert("let"===F||"const"===F,"Lexical declaration must be either let or const");var ee=this.parseBindingList(F,T);return this.consumeSemicolon(),this.finalize(A,new _e.VariableDeclaration(ee,F))},se.prototype.parseBindingRestElement=function(T,A){var F=this.createNode();this.expect("...");var ee=this.parsePattern(T,A);return this.finalize(F,new _e.RestElement(ee))},se.prototype.parseArrayPattern=function(T,A){var F=this.createNode();this.expect("[");for(var ee=[];!this.match("]");)if(this.match(","))this.nextToken(),ee.push(null);else{if(this.match("...")){ee.push(this.parseBindingRestElement(T,A));break}ee.push(this.parsePatternWithDefault(T,A)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(F,new _e.ArrayPattern(ee))},se.prototype.parsePropertyPattern=function(T,A){var Ct,Ft,F=this.createNode(),ee=!1,Ae=!1;if(3===this.lookahead.type){var Gt=this.lookahead;Ct=this.parseVariableIdentifier();var gn=this.finalize(F,new _e.Identifier(Gt.value));if(this.match("=")){T.push(Gt),Ae=!0,this.nextToken();var en=this.parseAssignmentExpression();Ft=this.finalize(this.startNode(Gt),new _e.AssignmentPattern(gn,en))}else this.match(":")?(this.expect(":"),Ft=this.parsePatternWithDefault(T,A)):(T.push(Gt),Ae=!0,Ft=gn)}else ee=this.match("["),Ct=this.parseObjectPropertyKey(),this.expect(":"),Ft=this.parsePatternWithDefault(T,A);return this.finalize(F,new _e.Property("init",Ct,ee,Ft,!1,Ae))},se.prototype.parseObjectPattern=function(T,A){var F=this.createNode(),ee=[];for(this.expect("{");!this.match("}");)ee.push(this.parsePropertyPattern(T,A)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(F,new _e.ObjectPattern(ee))},se.prototype.parsePattern=function(T,A){var F;return this.match("[")?F=this.parseArrayPattern(T,A):this.match("{")?F=this.parseObjectPattern(T,A):(this.matchKeyword("let")&&("const"===A||"let"===A)&&this.tolerateUnexpectedToken(this.lookahead,ze.Messages.LetInLexicalBinding),T.push(this.lookahead),F=this.parseVariableIdentifier(A)),F},se.prototype.parsePatternWithDefault=function(T,A){var F=this.lookahead,ee=this.parsePattern(T,A);if(this.match("=")){this.nextToken();var Ae=this.context.allowYield;this.context.allowYield=!0;var Je=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Ae,ee=this.finalize(this.startNode(F),new _e.AssignmentPattern(ee,Je))}return ee},se.prototype.parseVariableIdentifier=function(T){var A=this.createNode(),F=this.nextToken();return 4===F.type&&"yield"===F.value?this.context.strict?this.tolerateUnexpectedToken(F,ze.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(F):3!==F.type?this.context.strict&&4===F.type&&this.scanner.isStrictModeReservedWord(F.value)?this.tolerateUnexpectedToken(F,ze.Messages.StrictReservedWord):(this.context.strict||"let"!==F.value||"var"!==T)&&this.throwUnexpectedToken(F):(this.context.isModule||this.context.await)&&3===F.type&&"await"===F.value&&this.tolerateUnexpectedToken(F),this.finalize(A,new _e.Identifier(F.value))},se.prototype.parseVariableDeclaration=function(T){var A=this.createNode(),ee=this.parsePattern([],"var");this.context.strict&&ee.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(ee.name)&&this.tolerateError(ze.Messages.StrictVarName);var Ae=null;return this.match("=")?(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseAssignmentExpression)):ee.type!==Ve.Syntax.Identifier&&!T.inFor&&this.expect("="),this.finalize(A,new _e.VariableDeclarator(ee,Ae))},se.prototype.parseVariableDeclarationList=function(T){var A={inFor:T.inFor},F=[];for(F.push(this.parseVariableDeclaration(A));this.match(",");)this.nextToken(),F.push(this.parseVariableDeclaration(A));return F},se.prototype.parseVariableStatement=function(){var T=this.createNode();this.expectKeyword("var");var A=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(T,new _e.VariableDeclaration(A,"var"))},se.prototype.parseEmptyStatement=function(){var T=this.createNode();return this.expect(";"),this.finalize(T,new _e.EmptyStatement)},se.prototype.parseExpressionStatement=function(){var T=this.createNode(),A=this.parseExpression();return this.consumeSemicolon(),this.finalize(T,new _e.ExpressionStatement(A))},se.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(ze.Messages.StrictFunction),this.parseStatement()},se.prototype.parseIfStatement=function(){var A,T=this.createNode(),F=null;this.expectKeyword("if"),this.expect("(");var ee=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),A=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),A=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),F=this.parseIfClause())),this.finalize(T,new _e.IfStatement(ee,A,F))},se.prototype.parseDoWhileStatement=function(){var T=this.createNode();this.expectKeyword("do");var A=this.context.inIteration;this.context.inIteration=!0;var F=this.parseStatement();this.context.inIteration=A,this.expectKeyword("while"),this.expect("(");var ee=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(T,new _e.DoWhileStatement(F,ee))},se.prototype.parseWhileStatement=function(){var A,T=this.createNode();this.expectKeyword("while"),this.expect("(");var F=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),A=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var ee=this.context.inIteration;this.context.inIteration=!0,A=this.parseStatement(),this.context.inIteration=ee}return this.finalize(T,new _e.WhileStatement(F,A))},se.prototype.parseForStatement=function(){var Ae,Je,Ur,T=null,A=null,F=null,ee=!0,Ct=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){T=this.createNode(),this.nextToken();var Ft=this.context.allowIn;this.context.allowIn=!1;var Gt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=Ft,1===Gt.length&&this.matchKeyword("in")){var gn=Gt[0];gn.init&&(gn.id.type===Ve.Syntax.ArrayPattern||gn.id.type===Ve.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(ze.Messages.ForInOfLoopInitializer,"for-in"),T=this.finalize(T,new _e.VariableDeclaration(Gt,"var")),this.nextToken(),Ae=T,Je=this.parseExpression(),T=null}else 1===Gt.length&&null===Gt[0].init&&this.matchContextualKeyword("of")?(T=this.finalize(T,new _e.VariableDeclaration(Gt,"var")),this.nextToken(),Ae=T,Je=this.parseAssignmentExpression(),T=null,ee=!1):(T=this.finalize(T,new _e.VariableDeclaration(Gt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){T=this.createNode();var en=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(Ft=this.context.allowIn,this.context.allowIn=!1,Gt=this.parseBindingList(en,{inFor:!0}),this.context.allowIn=Ft,1===Gt.length&&null===Gt[0].init&&this.matchKeyword("in")?(T=this.finalize(T,new _e.VariableDeclaration(Gt,en)),this.nextToken(),Ae=T,Je=this.parseExpression(),T=null):1===Gt.length&&null===Gt[0].init&&this.matchContextualKeyword("of")?(T=this.finalize(T,new _e.VariableDeclaration(Gt,en)),this.nextToken(),Ae=T,Je=this.parseAssignmentExpression(),T=null,ee=!1):(this.consumeSemicolon(),T=this.finalize(T,new _e.VariableDeclaration(Gt,en)))):(T=this.finalize(T,new _e.Identifier(en)),this.nextToken(),Ae=T,Je=this.parseExpression(),T=null)}else{var Ai=this.lookahead;if(Ft=this.context.allowIn,this.context.allowIn=!1,T=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=Ft,this.matchKeyword("in"))(!this.context.isAssignmentTarget||T.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(ze.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(T),Ae=T,Je=this.parseExpression(),T=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||T.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(ze.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(T),Ae=T,Je=this.parseAssignmentExpression(),T=null,ee=!1;else{if(this.match(",")){for(var $r=[T];this.match(",");)this.nextToken(),$r.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(Ai),new _e.SequenceExpression($r))}this.expect(";")}}if(typeof Ae>"u"&&(this.match(";")||(A=this.parseExpression()),this.expect(";"),this.match(")")||(F=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Ur=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var ss=this.context.inIteration;this.context.inIteration=!0,Ur=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=ss}return this.finalize(Ct,typeof Ae>"u"?new _e.ForStatement(T,A,F,Ur):ee?new _e.ForInStatement(Ae,Je,Ur):new _e.ForOfStatement(Ae,Je,Ur))},se.prototype.parseContinueStatement=function(){var T=this.createNode();this.expectKeyword("continue");var A=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var F=this.parseVariableIdentifier();A=F,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+F.name)||this.throwError(ze.Messages.UnknownLabel,F.name)}return this.consumeSemicolon(),null===A&&!this.context.inIteration&&this.throwError(ze.Messages.IllegalContinue),this.finalize(T,new _e.ContinueStatement(A))},se.prototype.parseBreakStatement=function(){var T=this.createNode();this.expectKeyword("break");var A=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var F=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+F.name)||this.throwError(ze.Messages.UnknownLabel,F.name),A=F}return this.consumeSemicolon(),null===A&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(ze.Messages.IllegalBreak),this.finalize(T,new _e.BreakStatement(A))},se.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(ze.Messages.IllegalReturn);var T=this.createNode();this.expectKeyword("return");var F=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(T,new _e.ReturnStatement(F))},se.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(ze.Messages.StrictModeWith);var A,T=this.createNode();this.expectKeyword("with"),this.expect("(");var F=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),A=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),A=this.parseStatement()),this.finalize(T,new _e.WithStatement(F,A))},se.prototype.parseSwitchCase=function(){var A,T=this.createNode();this.matchKeyword("default")?(this.nextToken(),A=null):(this.expectKeyword("case"),A=this.parseExpression()),this.expect(":");for(var F=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)F.push(this.parseStatementListItem());return this.finalize(T,new _e.SwitchCase(A,F))},se.prototype.parseSwitchStatement=function(){var T=this.createNode();this.expectKeyword("switch"),this.expect("(");var A=this.parseExpression();this.expect(")");var F=this.context.inSwitch;this.context.inSwitch=!0;var ee=[],Ae=!1;for(this.expect("{");!this.match("}");){var Je=this.parseSwitchCase();null===Je.test&&(Ae&&this.throwError(ze.Messages.MultipleDefaultsInSwitch),Ae=!0),ee.push(Je)}return this.expect("}"),this.context.inSwitch=F,this.finalize(T,new _e.SwitchStatement(A,ee))},se.prototype.parseLabelledStatement=function(){var F,T=this.createNode(),A=this.parseExpression();if(A.type===Ve.Syntax.Identifier&&this.match(":")){this.nextToken();var ee=A,Ae="$"+ee.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Ae)&&this.throwError(ze.Messages.Redeclaration,"Label",ee.name),this.context.labelSet[Ae]=!0;var Je=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Je=this.parseClassDeclaration();else if(this.matchKeyword("function")){var Ct=this.lookahead,Ft=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(Ct,ze.Messages.StrictFunction):Ft.generator&&this.tolerateUnexpectedToken(Ct,ze.Messages.GeneratorInLegacyContext),Je=Ft}else Je=this.parseStatement();delete this.context.labelSet[Ae],F=new _e.LabeledStatement(ee,Je)}else this.consumeSemicolon(),F=new _e.ExpressionStatement(A);return this.finalize(T,F)},se.prototype.parseThrowStatement=function(){var T=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(ze.Messages.NewlineAfterThrow);var A=this.parseExpression();return this.consumeSemicolon(),this.finalize(T,new _e.ThrowStatement(A))},se.prototype.parseCatchClause=function(){var T=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var A=[],F=this.parsePattern(A),ee={},Ae=0;Ae0&&this.tolerateError(ze.Messages.BadGetterArity);var Ae=this.parsePropertyMethod(ee);return this.context.allowYield=F,this.finalize(T,new _e.FunctionExpression(null,ee.params,Ae,false))},se.prototype.parseSetterMethod=function(){var T=this.createNode(),F=this.context.allowYield;this.context.allowYield=!0;var ee=this.parseFormalParameters();1!==ee.params.length?this.tolerateError(ze.Messages.BadSetterArity):ee.params[0]instanceof _e.RestElement&&this.tolerateError(ze.Messages.BadSetterRestParameter);var Ae=this.parsePropertyMethod(ee);return this.context.allowYield=F,this.finalize(T,new _e.FunctionExpression(null,ee.params,Ae,false))},se.prototype.parseGeneratorMethod=function(){var T=this.createNode(),F=this.context.allowYield;this.context.allowYield=!0;var ee=this.parseFormalParameters();this.context.allowYield=!1;var Ae=this.parsePropertyMethod(ee);return this.context.allowYield=F,this.finalize(T,new _e.FunctionExpression(null,ee.params,Ae,!0))},se.prototype.isStartOfExpression=function(){var T=!0,A=this.lookahead.value;switch(this.lookahead.type){case 7:T="["===A||"("===A||"{"===A||"+"===A||"-"===A||"!"===A||"~"===A||"++"===A||"--"===A||"/"===A||"/="===A;break;case 4:T="class"===A||"delete"===A||"function"===A||"let"===A||"new"===A||"super"===A||"this"===A||"typeof"===A||"void"===A||"yield"===A}return T},se.prototype.parseYieldExpression=function(){var T=this.createNode();this.expectKeyword("yield");var A=null,F=!1;if(!this.hasLineTerminator){var ee=this.context.allowYield;this.context.allowYield=!1,(F=this.match("*"))?(this.nextToken(),A=this.parseAssignmentExpression()):this.isStartOfExpression()&&(A=this.parseAssignmentExpression()),this.context.allowYield=ee}return this.finalize(T,new _e.YieldExpression(A,F))},se.prototype.parseClassElement=function(T){var A=this.lookahead,F=this.createNode(),ee="",Ae=null,Je=null,Ct=!1,Ft=!1,Gt=!1,gn=!1;if(this.match("*"))this.nextToken();else if(Ct=this.match("["),"static"===(Ae=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(A=this.lookahead,Gt=!0,Ct=this.match("["),this.match("*")?this.nextToken():Ae=this.parseObjectPropertyKey()),3===A.type&&!this.hasLineTerminator&&"async"===A.value){var Ai=this.lookahead.value;":"!==Ai&&"("!==Ai&&"*"!==Ai&&(gn=!0,A=this.lookahead,Ae=this.parseObjectPropertyKey(),3===A.type&&"constructor"===A.value&&this.tolerateUnexpectedToken(A,ze.Messages.ConstructorIsAsync))}var $r=this.qualifiedPropertyName(this.lookahead);return 3===A.type?"get"===A.value&&$r?(ee="get",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod()):"set"===A.value&&$r&&(ee="set",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),Je=this.parseSetterMethod()):7===A.type&&"*"===A.value&&$r&&(ee="init",Ct=this.match("["),Ae=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),Ft=!0),!ee&&Ae&&this.match("(")&&(ee="init",Je=gn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),Ft=!0),ee||this.throwUnexpectedToken(this.lookahead),"init"===ee&&(ee="method"),Ct||(Gt&&this.isPropertyKey(Ae,"prototype")&&this.throwUnexpectedToken(A,ze.Messages.StaticPrototype),!Gt&&this.isPropertyKey(Ae,"constructor")&&(("method"!==ee||!Ft||Je&&Je.generator)&&this.throwUnexpectedToken(A,ze.Messages.ConstructorSpecialMethod),T.value?this.throwUnexpectedToken(A,ze.Messages.DuplicateConstructor):T.value=!0,ee="constructor")),this.finalize(F,new _e.MethodDefinition(Ae,Ct,Je,ee,Gt))},se.prototype.parseClassElementList=function(){var T=[],A={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():T.push(this.parseClassElement(A));return this.expect("}"),T},se.prototype.parseClassBody=function(){var T=this.createNode(),A=this.parseClassElementList();return this.finalize(T,new _e.ClassBody(A))},se.prototype.parseClassDeclaration=function(T){var A=this.createNode(),F=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var ee=T&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Ae=null;this.matchKeyword("extends")&&(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Je=this.parseClassBody();return this.context.strict=F,this.finalize(A,new _e.ClassDeclaration(ee,Ae,Je))},se.prototype.parseClassExpression=function(){var T=this.createNode(),A=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var F=3===this.lookahead.type?this.parseVariableIdentifier():null,ee=null;this.matchKeyword("extends")&&(this.nextToken(),ee=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ae=this.parseClassBody();return this.context.strict=A,this.finalize(T,new _e.ClassExpression(F,ee,Ae))},se.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var T=this.createNode(),A=this.parseDirectivePrologues();2!==this.lookahead.type;)A.push(this.parseStatementListItem());return this.finalize(T,new _e.Module(A))},se.prototype.parseScript=function(){for(var T=this.createNode(),A=this.parseDirectivePrologues();2!==this.lookahead.type;)A.push(this.parseStatementListItem());return this.finalize(T,new _e.Script(A))},se.prototype.parseModuleSpecifier=function(){var T=this.createNode();8!==this.lookahead.type&&this.throwError(ze.Messages.InvalidModuleSpecifier);var A=this.nextToken(),F=this.getTokenRaw(A);return this.finalize(T,new _e.Literal(A.value,F))},se.prototype.parseImportSpecifier=function(){var A,F,T=this.createNode();return 3===this.lookahead.type?(F=A=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),F=this.parseVariableIdentifier())):(F=A=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),F=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(T,new _e.ImportSpecifier(F,A))},se.prototype.parseNamedImports=function(){this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),T},se.prototype.parseImportDefaultSpecifier=function(){var T=this.createNode(),A=this.parseIdentifierName();return this.finalize(T,new _e.ImportDefaultSpecifier(A))},se.prototype.parseImportNamespaceSpecifier=function(){var T=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(ze.Messages.NoAsAfterImportNamespace),this.nextToken();var A=this.parseIdentifierName();return this.finalize(T,new _e.ImportNamespaceSpecifier(A))},se.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(ze.Messages.IllegalImportDeclaration);var T=this.createNode();this.expectKeyword("import");var A,F=[];return 8===this.lookahead.type||(this.match("{")?F=F.concat(this.parseNamedImports()):this.match("*")?F.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(F.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?F.push(this.parseImportNamespaceSpecifier()):this.match("{")?F=F.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?ze.Messages.UnexpectedToken:ze.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),A=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(T,new _e.ImportDeclaration(F,A))},se.prototype.parseExportSpecifier=function(){var T=this.createNode(),A=this.parseIdentifierName(),F=A;return this.matchContextualKeyword("as")&&(this.nextToken(),F=this.parseIdentifierName()),this.finalize(T,new _e.ExportSpecifier(A,F))},se.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(ze.Messages.IllegalExportDeclaration);var A,T=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var F=this.parseFunctionDeclaration(!0);A=this.finalize(T,new _e.ExportDefaultDeclaration(F))}else this.matchKeyword("class")?(F=this.parseClassDeclaration(!0),A=this.finalize(T,new _e.ExportDefaultDeclaration(F))):this.matchContextualKeyword("async")?(F=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),A=this.finalize(T,new _e.ExportDefaultDeclaration(F))):(this.matchContextualKeyword("from")&&this.throwError(ze.Messages.UnexpectedToken,this.lookahead.value),F=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),A=this.finalize(T,new _e.ExportDefaultDeclaration(F)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?ze.Messages.UnexpectedToken:ze.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Ae=this.parseModuleSpecifier();this.consumeSemicolon(),A=this.finalize(T,new _e.ExportAllDeclaration(Ae))}else if(4===this.lookahead.type){switch(F=void 0,this.lookahead.value){case"let":case"const":F=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":F=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}A=this.finalize(T,new _e.ExportNamedDeclaration(F,[],null))}else if(this.matchAsyncFunction())F=this.parseFunctionDeclaration(),A=this.finalize(T,new _e.ExportNamedDeclaration(F,[],null));else{var Je=[],Ct=null,Ft=!1;for(this.expect("{");!this.match("}");)Ft=Ft||this.matchKeyword("default"),Je.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),Ct=this.parseModuleSpecifier(),this.consumeSemicolon()):Ft?this.throwError(this.lookahead.value?ze.Messages.UnexpectedToken:ze.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),A=this.finalize(T,new _e.ExportNamedDeclaration(null,Je,Ct))}return A},se}();ke.Parser=ce},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.assert=function nt(Ie,ct){if(!Ie)throw new Error("ASSERT: "+ct)}},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var nt=function(){function Ie(){this.errors=[],this.tolerant=!1}return Ie.prototype.recordError=function(ct){this.errors.push(ct)},Ie.prototype.tolerate=function(ct){if(!this.tolerant)throw ct;this.recordError(ct)},Ie.prototype.constructError=function(ct,ze){var _e=new Error(ct);try{throw _e}catch(Ze){Object.create&&Object.defineProperty&&(_e=Object.create(Ze),Object.defineProperty(_e,"column",{value:ze}))}return _e},Ie.prototype.createError=function(ct,ze,_e,Ze){var me=this.constructError("Line "+ze+": "+Ze,_e);return me.index=ct,me.lineNumber=ze,me.description=Ze,me},Ie.prototype.throwError=function(ct,ze,_e,Ze){throw this.createError(ct,ze,_e,Ze)},Ie.prototype.tolerateError=function(ct,ze,_e,Ze){var Ve=this.createError(ct,ze,_e,Ze);if(!this.tolerant)throw Ve;this.recordError(Ve)},Ie}();ke.ErrorHandler=nt},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(9),ct=nt(4),ze=nt(11);function _e(me){return"0123456789abcdef".indexOf(me.toLowerCase())}function Ze(me){return"01234567".indexOf(me)}var Ve=function(){function me(oe,ce){this.source=oe,this.errorHandler=ce,this.trackComment=!1,this.isModule=!1,this.length=oe.length,this.index=0,this.lineNumber=oe.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return me.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},me.prototype.restoreState=function(oe){this.index=oe.index,this.lineNumber=oe.lineNumber,this.lineStart=oe.lineStart},me.prototype.eof=function(){return this.index>=this.length},me.prototype.throwUnexpectedToken=function(oe){return void 0===oe&&(oe=ze.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,oe)},me.prototype.tolerateUnexpectedToken=function(oe){void 0===oe&&(oe=ze.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,oe)},me.prototype.skipSingleLineComment=function(oe){var se,T,ce=[];for(this.trackComment&&(ce=[],se=this.index-oe,T={start:{line:this.lineNumber,column:this.index-this.lineStart-oe},end:{}});!this.eof();){var A=this.source.charCodeAt(this.index);if(++this.index,ct.Character.isLineTerminator(A))return this.trackComment&&(T.end={line:this.lineNumber,column:this.index-this.lineStart-1},ce.push({multiLine:!1,slice:[se+oe,this.index-1],range:[se,this.index-1],loc:T})),13===A&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ce}return this.trackComment&&(T.end={line:this.lineNumber,column:this.index-this.lineStart},ce.push({multiLine:!1,slice:[se+oe,this.index],range:[se,this.index],loc:T})),ce},me.prototype.skipMultiLineComment=function(){var ce,se,oe=[];for(this.trackComment&&(oe=[],ce=this.index-2,se={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(ct.Character.isLineTerminator(T))13===T&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===T){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(se.end={line:this.lineNumber,column:this.index-this.lineStart},oe.push({multiLine:!0,slice:[ce+2,this.index-2],range:[ce,this.index],loc:se})),oe;++this.index}else++this.index}return this.trackComment&&(se.end={line:this.lineNumber,column:this.index-this.lineStart},oe.push({multiLine:!0,slice:[ce+2,this.index],range:[ce,this.index],loc:se})),this.tolerateUnexpectedToken(),oe},me.prototype.scanComments=function(){var oe;this.trackComment&&(oe=[]);for(var ce=0===this.index;!this.eof();){var se=this.source.charCodeAt(this.index);if(ct.Character.isWhiteSpace(se))++this.index;else if(ct.Character.isLineTerminator(se))++this.index,13===se&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ce=!0;else if(47===se)if(47===(se=this.source.charCodeAt(this.index+1))){this.index+=2;var T=this.skipSingleLineComment(2);this.trackComment&&(oe=oe.concat(T)),ce=!0}else{if(42!==se)break;this.index+=2,T=this.skipMultiLineComment(),this.trackComment&&(oe=oe.concat(T))}else if(ce&&45===se){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,T=this.skipSingleLineComment(3),this.trackComment&&(oe=oe.concat(T))}else{if(60!==se||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,T=this.skipSingleLineComment(4),this.trackComment&&(oe=oe.concat(T))}}return oe},me.prototype.isFutureReservedWord=function(oe){switch(oe){case"enum":case"export":case"import":case"super":return!0;default:return!1}},me.prototype.isStrictModeReservedWord=function(oe){switch(oe){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},me.prototype.isRestrictedWord=function(oe){return"eval"===oe||"arguments"===oe},me.prototype.isKeyword=function(oe){switch(oe.length){case 2:return"if"===oe||"in"===oe||"do"===oe;case 3:return"var"===oe||"for"===oe||"new"===oe||"try"===oe||"let"===oe;case 4:return"this"===oe||"else"===oe||"case"===oe||"void"===oe||"with"===oe||"enum"===oe;case 5:return"while"===oe||"break"===oe||"catch"===oe||"throw"===oe||"const"===oe||"yield"===oe||"class"===oe||"super"===oe;case 6:return"return"===oe||"typeof"===oe||"delete"===oe||"switch"===oe||"export"===oe||"import"===oe;case 7:return"default"===oe||"finally"===oe||"extends"===oe;case 8:return"function"===oe||"continue"===oe||"debugger"===oe;case 10:return"instanceof"===oe;default:return!1}},me.prototype.codePointAt=function(oe){var ce=this.source.charCodeAt(oe);if(ce>=55296&&ce<=56319){var se=this.source.charCodeAt(oe+1);se>=56320&&se<=57343&&(ce=1024*(ce-55296)+se-56320+65536)}return ce},me.prototype.scanHexEscape=function(oe){for(var ce="u"===oe?4:2,se=0,T=0;T1114111||"}"!==oe)&&this.throwUnexpectedToken(),ct.Character.fromCodePoint(ce)},me.prototype.getIdentifier=function(){for(var oe=this.index++;!this.eof();){var ce=this.source.charCodeAt(this.index);if(92===ce)return this.index=oe,this.getComplexIdentifier();if(ce>=55296&&ce<57343)return this.index=oe,this.getComplexIdentifier();if(!ct.Character.isIdentifierPart(ce))break;++this.index}return this.source.slice(oe,this.index)},me.prototype.getComplexIdentifier=function(){var se,oe=this.codePointAt(this.index),ce=ct.Character.fromCodePoint(oe);for(this.index+=ce.length,92===oe&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,se=this.scanUnicodeCodePointEscape()):(null===(se=this.scanHexEscape("u"))||"\\"===se||!ct.Character.isIdentifierStart(se.charCodeAt(0)))&&this.throwUnexpectedToken(),ce=se);!this.eof()&&(oe=this.codePointAt(this.index),ct.Character.isIdentifierPart(oe));)ce+=se=ct.Character.fromCodePoint(oe),this.index+=se.length,92===oe&&(ce=ce.substr(0,ce.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,se=this.scanUnicodeCodePointEscape()):(null===(se=this.scanHexEscape("u"))||"\\"===se||!ct.Character.isIdentifierPart(se.charCodeAt(0)))&&this.throwUnexpectedToken(),ce+=se);return ce},me.prototype.octalToDecimal=function(oe){var ce="0"!==oe,se=Ze(oe);return!this.eof()&&ct.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ce=!0,se=8*se+Ze(this.source[this.index++]),"0123".indexOf(oe)>=0&&!this.eof()&&ct.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(se=8*se+Ze(this.source[this.index++]))),{code:se,octal:ce}},me.prototype.scanIdentifier=function(){var oe,ce=this.index,se=92===this.source.charCodeAt(ce)?this.getComplexIdentifier():this.getIdentifier();if(3!=(oe=1===se.length?3:this.isKeyword(se)?4:"null"===se?5:"true"===se||"false"===se?1:3)&&ce+se.length!==this.index){var T=this.index;this.index=ce,this.tolerateUnexpectedToken(ze.Messages.InvalidEscapedReservedWord),this.index=T}return{type:oe,value:se,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ce,end:this.index}},me.prototype.scanPunctuator=function(){var oe=this.index,ce=this.source[this.index];switch(ce){case"(":case"{":"{"===ce&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,ce="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(ce=this.source.substr(this.index,4))?this.index+=4:"==="===(ce=ce.substr(0,3))||"!=="===ce||">>>"===ce||"<<="===ce||">>="===ce||"**="===ce?this.index+=3:"&&"===(ce=ce.substr(0,2))||"||"===ce||"=="===ce||"!="===ce||"+="===ce||"-="===ce||"*="===ce||"/="===ce||"++"===ce||"--"===ce||"<<"===ce||">>"===ce||"&="===ce||"|="===ce||"^="===ce||"%="===ce||"<="===ce||">="===ce||"=>"===ce||"**"===ce?this.index+=2:"<>=!+-*%&|^/".indexOf(ce=this.source[this.index])>=0&&++this.index}return this.index===oe&&this.throwUnexpectedToken(),{type:7,value:ce,lineNumber:this.lineNumber,lineStart:this.lineStart,start:oe,end:this.index}},me.prototype.scanHexLiteral=function(oe){for(var ce="";!this.eof()&&ct.Character.isHexDigit(this.source.charCodeAt(this.index));)ce+=this.source[this.index++];return 0===ce.length&&this.throwUnexpectedToken(),ct.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+ce,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:oe,end:this.index}},me.prototype.scanBinaryLiteral=function(oe){for(var se,ce="";!this.eof()&&("0"===(se=this.source[this.index])||"1"===se);)ce+=this.source[this.index++];return 0===ce.length&&this.throwUnexpectedToken(),this.eof()||(se=this.source.charCodeAt(this.index),(ct.Character.isIdentifierStart(se)||ct.Character.isDecimalDigit(se))&&this.throwUnexpectedToken()),{type:6,value:parseInt(ce,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:oe,end:this.index}},me.prototype.scanOctalLiteral=function(oe,ce){var se="",T=!1;for(ct.Character.isOctalDigit(oe.charCodeAt(0))?(T=!0,se="0"+this.source[this.index++]):++this.index;!this.eof()&&ct.Character.isOctalDigit(this.source.charCodeAt(this.index));)se+=this.source[this.index++];return!T&&0===se.length&&this.throwUnexpectedToken(),(ct.Character.isIdentifierStart(this.source.charCodeAt(this.index))||ct.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(se,8),octal:T,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ce,end:this.index}},me.prototype.isImplicitOctalLiteral=function(){for(var oe=this.index+1;oe=0&&(T=T.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(F,ee,Ae){var Je=parseInt(ee||Ae,16);return Je>1114111&&A.throwUnexpectedToken(ze.Messages.InvalidRegExp),Je<=65535?String.fromCharCode(Je):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(T)}catch{this.throwUnexpectedToken(ze.Messages.InvalidRegExp)}try{return new RegExp(oe,ce)}catch{return null}},me.prototype.scanRegExpBody=function(){var oe=this.source[this.index];Ie.assert("/"===oe,"Regular expression literal must start with a slash");for(var ce=this.source[this.index++],se=!1,T=!1;!this.eof();)if(ce+=oe=this.source[this.index++],"\\"===oe)oe=this.source[this.index++],ct.Character.isLineTerminator(oe.charCodeAt(0))&&this.throwUnexpectedToken(ze.Messages.UnterminatedRegExp),ce+=oe;else if(ct.Character.isLineTerminator(oe.charCodeAt(0)))this.throwUnexpectedToken(ze.Messages.UnterminatedRegExp);else if(se)"]"===oe&&(se=!1);else{if("/"===oe){T=!0;break}"["===oe&&(se=!0)}return T||this.throwUnexpectedToken(ze.Messages.UnterminatedRegExp),ce.substr(1,ce.length-2)},me.prototype.scanRegExpFlags=function(){for(var ce="";!this.eof();){var se=this.source[this.index];if(!ct.Character.isIdentifierPart(se.charCodeAt(0)))break;if(++this.index,"\\"!==se||this.eof())ce+=se;else if("u"===(se=this.source[this.index])){++this.index;var T=this.index,A=this.scanHexEscape("u");if(null!==A)for(ce+=A;T=55296&&oe<57343&&ct.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},me}();ke.Scanner=Ve},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.TokenName={},ke.TokenName[1]="Boolean",ke.TokenName[2]="",ke.TokenName[3]="Identifier",ke.TokenName[4]="Keyword",ke.TokenName[5]="Null",ke.TokenName[6]="Numeric",ke.TokenName[7]="Punctuator",ke.TokenName[8]="String",ke.TokenName[9]="RegularExpression",ke.TokenName[10]="Template"},function(Dn,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Dn,ke,nt){"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var Ie=nt(10),ct=nt(12),ze=nt(13),_e=function(){function Ve(){this.values=[],this.curly=this.paren=-1}return Ve.prototype.beforeFunctionExpression=function(me){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(me)>=0},Ve.prototype.isRegexStart=function(){var me=this.values[this.values.length-1],oe=null!==me;switch(me){case"this":case"]":oe=!1;break;case")":var ce=this.values[this.paren-1];oe="if"===ce||"while"===ce||"for"===ce||"with"===ce;break;case"}":if(oe=!1,"function"===this.values[this.curly-3])oe=!!(se=this.values[this.curly-4])&&!this.beforeFunctionExpression(se);else if("function"===this.values[this.curly-4]){var se;oe=!(se=this.values[this.curly-5])||!this.beforeFunctionExpression(se)}}return oe},Ve.prototype.push=function(me){7===me.type||4===me.type?("{"===me.value?this.curly=this.values.length:"("===me.value&&(this.paren=this.values.length),this.values.push(me.value)):this.values.push(null)},Ve}(),Ze=function(){function Ve(me,oe){this.errorHandler=new Ie.ErrorHandler,this.errorHandler.tolerant=!!oe&&"boolean"==typeof oe.tolerant&&oe.tolerant,this.scanner=new ct.Scanner(me,this.errorHandler),this.scanner.trackComment=!!oe&&"boolean"==typeof oe.comment&&oe.comment,this.trackRange=!!oe&&"boolean"==typeof oe.range&&oe.range,this.trackLoc=!!oe&&"boolean"==typeof oe.loc&&oe.loc,this.buffer=[],this.reader=new _e}return Ve.prototype.errors=function(){return this.errorHandler.errors},Ve.prototype.getNextToken=function(){if(0===this.buffer.length){var me=this.scanner.scanComments();if(this.scanner.trackComment)for(var oe=0;oe=se.status}function Ze(ce){try{ce.dispatchEvent(new MouseEvent("click"))}catch{var se=document.createEvent("MouseEvents");se.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ce.dispatchEvent(se)}}var Ve="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,me=Ve.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),oe=Ve.saveAs||("object"!=typeof window||window!==Ve?function(){}:"download"in HTMLAnchorElement.prototype&&!me?function(ce,se,T){var A=Ve.URL||Ve.webkitURL,F=document.createElement("a");F.download=se=se||ce.name||"download",F.rel="noopener","string"==typeof ce?(F.href=ce,F.origin===location.origin?Ze(F):_e(F.href)?ze(ce,se,T):Ze(F,F.target="_blank")):(F.href=A.createObjectURL(ce),setTimeout(function(){A.revokeObjectURL(F.href)},4e4),setTimeout(function(){Ze(F)},0))}:"msSaveOrOpenBlob"in navigator?function(ce,se,T){if(se=se||ce.name||"download","string"!=typeof ce)navigator.msSaveOrOpenBlob(function ct(ce,se){return typeof se>"u"?se={autoBom:!1}:"object"!=typeof se&&(console.warn("Deprecated: Expected third argument to be a object"),se={autoBom:!se}),se.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ce.type)?new Blob(["\ufeff",ce],{type:ce.type}):ce}(ce,T),se);else if(_e(ce))ze(ce,se,T);else{var A=document.createElement("a");A.href=ce,A.target="_blank",setTimeout(function(){Ze(A)})}}:function(ce,se,T,A){if((A=A||open("","_blank"))&&(A.document.title=A.document.body.innerText="downloading..."),"string"==typeof ce)return ze(ce,se,T);var F="application/octet-stream"===ce.type,ee=/constructor/i.test(Ve.HTMLElement)||Ve.safari,Ae=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ae||F&&ee||me)&&typeof FileReader<"u"){var Je=new FileReader;Je.onloadend=function(){var Gt=Je.result;Gt=Ae?Gt:Gt.replace(/^data:[^;]*;/,"data:attachment/file;"),A?A.location.href=Gt:location=Gt,A=null},Je.readAsDataURL(ce)}else{var Ct=Ve.URL||Ve.webkitURL,Ft=Ct.createObjectURL(ce);A?A.location=Ft:location.href=Ft,A=null,setTimeout(function(){Ct.revokeObjectURL(Ft)},4e4)}});Ve.saveAs=oe.saveAs=oe,Yt.exports=oe})?ke.apply(Dn,[]):ke)&&(Yt.exports=Ie)},461:(Yt,Dn)=>{Dn.read=function(ke,nt,Ie,ct,ze){var _e,Ze,Ve=8*ze-ct-1,me=(1<>1,ce=-7,se=Ie?ze-1:0,T=Ie?-1:1,A=ke[nt+se];for(se+=T,_e=A&(1<<-ce)-1,A>>=-ce,ce+=Ve;ce>0;_e=256*_e+ke[nt+se],se+=T,ce-=8);for(Ze=_e&(1<<-ce)-1,_e>>=-ce,ce+=ct;ce>0;Ze=256*Ze+ke[nt+se],se+=T,ce-=8);if(0===_e)_e=1-oe;else{if(_e===me)return Ze?NaN:1/0*(A?-1:1);Ze+=Math.pow(2,ct),_e-=oe}return(A?-1:1)*Ze*Math.pow(2,_e-ct)},Dn.write=function(ke,nt,Ie,ct,ze,_e){var Ze,Ve,me,oe=8*_e-ze-1,ce=(1<>1,T=23===ze?Math.pow(2,-24)-Math.pow(2,-77):0,A=ct?0:_e-1,F=ct?1:-1,ee=nt<0||0===nt&&1/nt<0?1:0;for(nt=Math.abs(nt),isNaN(nt)||nt===1/0?(Ve=isNaN(nt)?1:0,Ze=ce):(Ze=Math.floor(Math.log(nt)/Math.LN2),nt*(me=Math.pow(2,-Ze))<1&&(Ze--,me*=2),(nt+=Ze+se>=1?T/me:T*Math.pow(2,1-se))*me>=2&&(Ze++,me/=2),Ze+se>=ce?(Ve=0,Ze=ce):Ze+se>=1?(Ve=(nt*me-1)*Math.pow(2,ze),Ze+=se):(Ve=nt*Math.pow(2,se-1)*Math.pow(2,ze),Ze=0));ze>=8;ke[Ie+A]=255&Ve,A+=F,Ve/=256,ze-=8);for(Ze=Ze<0;ke[Ie+A]=255&Ze,A+=F,Ze/=256,oe-=8);ke[Ie+A-F]|=128*ee}},870:(Yt,Dn,ke)=>{"use strict";var nt=ke(133);Yt.exports=nt},133:(Yt,Dn,ke)=>{"use strict";var nt=ke(840),Ie=ke(34);function ct(ze){return function(){throw new Error("Function "+ze+" is deprecated and cannot be used.")}}Yt.exports.Type=ke(647),Yt.exports.Schema=ke(372),Yt.exports.FAILSAFE_SCHEMA=ke(746),Yt.exports.JSON_SCHEMA=ke(147),Yt.exports.CORE_SCHEMA=ke(192),Yt.exports.DEFAULT_SAFE_SCHEMA=ke(31),Yt.exports.DEFAULT_FULL_SCHEMA=ke(94),Yt.exports.load=nt.load,Yt.exports.loadAll=nt.loadAll,Yt.exports.safeLoad=nt.safeLoad,Yt.exports.safeLoadAll=nt.safeLoadAll,Yt.exports.dump=Ie.dump,Yt.exports.safeDump=Ie.safeDump,Yt.exports.YAMLException=ke(314),Yt.exports.MINIMAL_SCHEMA=ke(746),Yt.exports.SAFE_SCHEMA=ke(31),Yt.exports.DEFAULT_SCHEMA=ke(94),Yt.exports.scan=ct("scan"),Yt.exports.parse=ct("parse"),Yt.exports.compose=ct("compose"),Yt.exports.addConstructor=ct("addConstructor")},997:Yt=>{"use strict";function Dn(_e){return typeof _e>"u"||null===_e}Yt.exports.isNothing=Dn,Yt.exports.isObject=function ke(_e){return"object"==typeof _e&&null!==_e},Yt.exports.toArray=function nt(_e){return Array.isArray(_e)?_e:Dn(_e)?[]:[_e]},Yt.exports.repeat=function ct(_e,Ze){var me,Ve="";for(me=0;me{"use strict";var nt=ke(997),Ie=ke(314),ct=ke(94),ze=ke(31),_e=Object.prototype.toString,Ze=Object.prototype.hasOwnProperty,Ve=9,me=10,oe=13,ce=32,se=33,T=34,A=35,F=37,ee=38,Ae=39,Je=42,Ct=44,Ft=45,Gt=58,gn=61,en=62,Ai=63,$r=64,Ur=91,ss=93,za=96,_r=123,gu=124,_a=125,vn={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},wd=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Jn(fe){var mt,Ot,Jt;if(mt=fe.toString(16).toUpperCase(),fe<=255)Ot="x",Jt=2;else if(fe<=65535)Ot="u",Jt=4;else{if(!(fe<=4294967295))throw new Ie("code point within a string may not be greater than 0xFFFFFFFF");Ot="U",Jt=8}return"\\"+Ot+nt.repeat("0",Jt-mt.length)+mt}function Oc(fe){this.schema=fe.schema||ct,this.indent=Math.max(1,fe.indent||2),this.noArrayIndent=fe.noArrayIndent||!1,this.skipInvalid=fe.skipInvalid||!1,this.flowLevel=nt.isNothing(fe.flowLevel)?-1:fe.flowLevel,this.styleMap=function Cd(fe,mt){var Ot,Jt,qt,Pt,cn,Wt,Ge;if(null===mt)return{};for(Ot={},qt=0,Pt=(Jt=Object.keys(mt)).length;qt0?fe.charCodeAt(Pt-1):null,Nr=Nr&&ll(cn,Wt)}else{for(Pt=0;PtJt&&" "!==fe[bn+1],bn=Pt);else if(!ba(cn))return Ga;Wt=Pt>0?fe.charCodeAt(Pt-1):null,Nr=Nr&&ll(cn,Wt)}qe=qe||_t&&Pt-bn-1>Jt&&" "!==fe[bn+1]}return Ge||qe?Ot>9&&Sd(fe)?Ga:qe?yu:kd:Nr&&!qt(fe)?Ic:Nc}(mt,Jt||fe.flowLevel>-1&&Ot>=fe.flowLevel,fe.indent,Pt,function Wt(Ge){return function _o(fe,mt){var Ot,Jt;for(Ot=0,Jt=fe.implicitTypes.length;Ot"+Ml(mt,fe.indent)+De(vu(function Y(fe,mt){for(var Pt,cn,Ot=/(\n+)([^\n]*)/g,Jt=(qe=void 0,qe=fe.indexOf("\n"),Ot.lastIndex=qe=-1!==qe?qe:fe.length,Q(fe.slice(0,qe),mt)),qt="\n"===fe[0]||" "===fe[0];cn=Ot.exec(fe);){var Ge=cn[2];Pt=" "===Ge[0],Jt+=cn[1]+(qt||Pt||""===Ge?"":"\n")+Q(Ge,mt),qt=Pt}var qe;return Jt}(mt,Pt),qt));case Ga:return'"'+function Ne(fe){for(var Ot,Jt,qt,mt="",Pt=0;Pt=55296&&Ot<=56319&&(Jt=fe.charCodeAt(Pt+1))>=56320&&Jt<=57343?(mt+=Jn(1024*(Ot-55296)+Jt-56320+65536),Pt++):mt+=!(qt=vn[Ot])&&ba(Ot)?fe[Pt]:qt||Jn(Ot);return mt}(mt)+'"';default:throw new Ie("impossible error: invalid scalar style")}}()}function Ml(fe,mt){var Ot=Sd(fe)?String(mt):"",Jt="\n"===fe[fe.length-1];return Ot+(!Jt||"\n"!==fe[fe.length-2]&&"\n"!==fe?Jt?"":"-":"+")+"\n"}function De(fe){return"\n"===fe[fe.length-1]?fe.slice(0,-1):fe}function Q(fe,mt){if(""===fe||" "===fe[0])return fe;for(var Jt,Pt,Ot=/ [^ ]/g,qt=0,cn=0,Wt=0,Ge="";Jt=Ot.exec(fe);)(Wt=Jt.index)-qt>mt&&(Ge+="\n"+fe.slice(qt,Pt=cn>qt?cn:Wt),qt=Pt+1),cn=Wt;return Ge+="\n",(Ge+=fe.length-qt>mt&&cn>qt?fe.slice(qt,cn)+"\n"+fe.slice(cn+1):fe.slice(qt)).slice(1)}function M(fe,mt,Ot){var Jt,qt,Pt,cn,Wt,Ge;for(Pt=0,cn=(qt=Ot?fe.explicitTypes:fe.implicitTypes).length;Pt tag resolver accepts not "'+Ge+'" style');Jt=Wt.represent[Ge](mt,Ge)}fe.dump=Jt}return!0}return!1}function ot(fe,mt,Ot,Jt,qt,Pt){fe.tag=null,fe.dump=Ot,M(fe,Ot,!1)||M(fe,Ot,!0);var cn=_e.call(fe.dump);Jt&&(Jt=fe.flowLevel<0||fe.flowLevel>mt);var Ge,qe,Wt="[object Object]"===cn||"[object Array]"===cn;if(Wt&&(qe=-1!==(Ge=fe.duplicates.indexOf(Ot))),(null!==fe.tag&&"?"!==fe.tag||qe||2!==fe.indent&&mt>0)&&(qt=!1),qe&&fe.usedDuplicates[Ge])fe.dump="*ref_"+Ge;else{if(Wt&&qe&&!fe.usedDuplicates[Ge]&&(fe.usedDuplicates[Ge]=!0),"[object Object]"===cn)Jt&&0!==Object.keys(fe.dump).length?(function Zi(fe,mt,Ot,Jt){var Wt,Ge,qe,_t,bn,Nr,qt="",Pt=fe.tag,cn=Object.keys(Ot);if(!0===fe.sortKeys)cn.sort();else if("function"==typeof fe.sortKeys)cn.sort(fe.sortKeys);else if(fe.sortKeys)throw new Ie("sortKeys must be a boolean or a function");for(Wt=0,Ge=cn.length;Wt1024)&&(fe.dump&&me===fe.dump.charCodeAt(0)?Nr+="?":Nr+="? "),Nr+=fe.dump,bn&&(Nr+=No(fe,mt)),ot(fe,mt+1,_t,!0,bn)&&(fe.dump&&me===fe.dump.charCodeAt(0)?Nr+=":":Nr+=": ",qt+=Nr+=fe.dump));fe.tag=Pt,fe.dump=qt||"{}"}(fe,mt,fe.dump,qt),qe&&(fe.dump="&ref_"+Ge+fe.dump)):(function Kt(fe,mt,Ot){var cn,Wt,Ge,qe,_t,Jt="",qt=fe.tag,Pt=Object.keys(Ot);for(cn=0,Wt=Pt.length;cn1024&&(_t+="? "),_t+=fe.dump+(fe.condenseFlow?'"':"")+":"+(fe.condenseFlow?"":" "),ot(fe,mt,qe,!1,!1)&&(Jt+=_t+=fe.dump));fe.tag=qt,fe.dump="{"+Jt+"}"}(fe,mt,fe.dump),qe&&(fe.dump="&ref_"+Ge+" "+fe.dump));else if("[object Array]"===cn){var _t=fe.noArrayIndent&&mt>0?mt-1:mt;Jt&&0!==fe.dump.length?(function Ht(fe,mt,Ot,Jt){var cn,Wt,qt="",Pt=fe.tag;for(cn=0,Wt=Ot.length;cn "+fe.dump)}return!0}function Dt(fe,mt){var qt,Pt,Ot=[],Jt=[];for(Ut(fe,Ot,Jt),qt=0,Pt=Jt.length;qt{"use strict";function Dn(ke,nt){Error.call(this),this.name="YAMLException",this.reason=ke,this.mark=nt,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Dn.prototype=Object.create(Error.prototype)).constructor=Dn,Dn.prototype.toString=function(nt){var Ie=this.name+": ";return Ie+=this.reason||"(unknown reason)",!nt&&this.mark&&(Ie+=" "+this.mark.toString()),Ie},Yt.exports=Dn},840:(Yt,Dn,ke)=>{"use strict";var nt=ke(997),Ie=ke(314),ct=ke(48),ze=ke(31),_e=ke(94),Ze=Object.prototype.hasOwnProperty,Ve=1,me=2,oe=3,ce=4,se=1,T=2,A=3,F=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ee=/[\x85\u2028\u2029]/,Ae=/[,\[\]\{\}]/,Je=/^(?:!|!!|![a-z\-]+!)$/i,Ct=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ft(M){return Object.prototype.toString.call(M)}function Gt(M){return 10===M||13===M}function gn(M){return 9===M||32===M}function en(M){return 9===M||32===M||10===M||13===M}function Ai(M){return 44===M||91===M||93===M||123===M||125===M}function $r(M){var ot;return 48<=M&&M<=57?M-48:97<=(ot=32|M)&&ot<=102?ot-97+10:-1}function Ur(M){return 120===M?2:117===M?4:85===M?8:0}function ss(M){return 48<=M&&M<=57?M-48:-1}function za(M){return 48===M?"\0":97===M?"\x07":98===M?"\b":116===M||9===M?"\t":110===M?"\n":118===M?"\v":102===M?"\f":114===M?"\r":101===M?"\x1b":32===M?" ":34===M?'"':47===M?"/":92===M?"\\":78===M?"\x85":95===M?"\xa0":76===M?"\u2028":80===M?"\u2029":""}function _r(M){return M<=65535?String.fromCharCode(M):String.fromCharCode(55296+(M-65536>>10),56320+(M-65536&1023))}for(var gu=new Array(256),_a=new Array(256),vn=0;vn<256;vn++)gu[vn]=za(vn)?1:0,_a[vn]=za(vn);function wd(M,ot){this.input=M,this.filename=ot.filename||null,this.schema=ot.schema||_e,this.onWarning=ot.onWarning||null,this.legacy=ot.legacy||!1,this.json=ot.json||!1,this.listener=ot.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=M.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Cd(M,ot){return new Ie(ot,new ct(M.filename,M.input,M.position,M.line,M.position-M.lineStart))}function Jn(M,ot){throw Cd(M,ot)}function Oc(M,ot){M.onWarning&&M.onWarning.call(null,Cd(M,ot))}var vu={YAML:function(ot,Dt,Ut){var Bt,hn,fe;null!==ot.version&&Jn(ot,"duplication of %YAML directive"),1!==Ut.length&&Jn(ot,"YAML directive accepts exactly one argument"),null===(Bt=/^([0-9]+)\.([0-9]+)$/.exec(Ut[0]))&&Jn(ot,"ill-formed argument of the YAML directive"),hn=parseInt(Bt[1],10),fe=parseInt(Bt[2],10),1!==hn&&Jn(ot,"unacceptable YAML version of the document"),ot.version=Ut[0],ot.checkLineBreaks=fe<2,1!==fe&&2!==fe&&Oc(ot,"unsupported YAML version of the document")},TAG:function(ot,Dt,Ut){var Bt,hn;2!==Ut.length&&Jn(ot,"TAG directive accepts exactly two arguments"),hn=Ut[1],Je.test(Bt=Ut[0])||Jn(ot,"ill-formed tag handle (first argument) of the TAG directive"),Ze.call(ot.tagMap,Bt)&&Jn(ot,'there is a previously declared suffix for "'+Bt+'" tag handle'),Ct.test(hn)||Jn(ot,"ill-formed tag prefix (second argument) of the TAG directive"),ot.tagMap[Bt]=hn}};function No(M,ot,Dt,Ut){var Bt,hn,fe,mt;if(ot1&&(M.result+=nt.repeat("\n",ot-1))}function Ga(M,ot){var Dt,Ot,Ut=M.tag,Bt=M.anchor,hn=[],mt=!1;for(null!==M.anchor&&(M.anchorMap[M.anchor]=hn),Ot=M.input.charCodeAt(M.position);0!==Ot&&45===Ot&&en(M.input.charCodeAt(M.position+1));)if(mt=!0,M.position++,Yr(M,!0,-1)&&M.lineIndent<=ot)hn.push(null),Ot=M.input.charCodeAt(M.position);else if(Dt=M.line,Y(M,ot,oe,!1,!0),hn.push(M.result),Yr(M,!0,-1),Ot=M.input.charCodeAt(M.position),(M.line===Dt||M.lineIndent>ot)&&0!==Ot)Jn(M,"bad indentation of a sequence entry");else if(M.lineIndentot?Ot=1:M.lineIndent===ot?Ot=0:M.lineIndentot?Ot=1:M.lineIndent===ot?Ot=0:M.lineIndentot)&&(Y(M,ot,ce,!0,Bt)&&(Ge?cn=M.result:Wt=M.result),Ge||(io(M,Jt,qt,Pt,cn,Wt,hn,fe),Pt=cn=Wt=null),Yr(M,!0,-1),_t=M.input.charCodeAt(M.position)),M.lineIndent>ot&&0!==_t)Jn(M,"bad indentation of a mapping entry");else if(M.lineIndent=0))break;0===qt?Jn(M,"bad explicit indentation width of a block scalar; it cannot be less than one"):fe?Jn(M,"repeat of an indentation width identifier"):(mt=ot+qt-1,fe=!0)}if(gn(Pt)){do{Pt=M.input.charCodeAt(++M.position)}while(gn(Pt));if(35===Pt)do{Pt=M.input.charCodeAt(++M.position)}while(!Gt(Pt)&&0!==Pt)}for(;0!==Pt;){for(ba(M),M.lineIndent=0,Pt=M.input.charCodeAt(M.position);(!fe||M.lineIndentmt&&(mt=M.lineIndent),Gt(Pt))Ot++;else{if(M.lineIndent0){for(Bt=fe,hn=0;Bt>0;Bt--)(fe=$r(mt=M.input.charCodeAt(++M.position)))>=0?hn=(hn<<4)+fe:Jn(M,"expected hexadecimal character");M.result+=_r(hn),M.position++}else Jn(M,"unknown escape sequence");Dt=Ut=M.position}else Gt(mt)?(No(M,Dt,Ut,!0),Kl(M,Yr(M,!1,ot)),Dt=Ut=M.position):M.position===M.lineStart&&ll(M)?Jn(M,"unexpected end of the document within a double quoted scalar"):(M.position++,Ut=M.position)}Jn(M,"unexpected end of the stream within a double quoted scalar")}(M,Ge)?qt=!0:function De(M){var ot,Dt,Ut;if(42!==(Ut=M.input.charCodeAt(M.position)))return!1;for(Ut=M.input.charCodeAt(++M.position),ot=M.position;0!==Ut&&!en(Ut)&&!Ai(Ut);)Ut=M.input.charCodeAt(++M.position);return M.position===ot&&Jn(M,"name of an alias node must contain at least one character"),Dt=M.input.slice(ot,M.position),Ze.call(M.anchorMap,Dt)||Jn(M,'unidentified alias "'+Dt+'"'),M.result=M.anchorMap[Dt],Yr(M,!0,-1),!0}(M)?(qt=!0,(null!==M.tag||null!==M.anchor)&&Jn(M,"alias node should not have any properties")):function Sd(M,ot,Dt){var Bt,hn,fe,mt,Ot,Jt,qt,Wt,Pt=M.kind,cn=M.result;if(en(Wt=M.input.charCodeAt(M.position))||Ai(Wt)||35===Wt||38===Wt||42===Wt||33===Wt||124===Wt||62===Wt||39===Wt||34===Wt||37===Wt||64===Wt||96===Wt||(63===Wt||45===Wt)&&(en(Bt=M.input.charCodeAt(M.position+1))||Dt&&Ai(Bt)))return!1;for(M.kind="scalar",M.result="",hn=fe=M.position,mt=!1;0!==Wt;){if(58===Wt){if(en(Bt=M.input.charCodeAt(M.position+1))||Dt&&Ai(Bt))break}else if(35===Wt){if(en(M.input.charCodeAt(M.position-1)))break}else{if(M.position===M.lineStart&&ll(M)||Dt&&Ai(Wt))break;if(Gt(Wt)){if(Ot=M.line,Jt=M.lineStart,qt=M.lineIndent,Yr(M,!1,-1),M.lineIndent>=ot){mt=!0,Wt=M.input.charCodeAt(M.position);continue}M.position=fe,M.line=Ot,M.lineStart=Jt,M.lineIndent=qt;break}}mt&&(No(M,hn,fe,!1),Kl(M,M.line-Ot),hn=fe=M.position,mt=!1),gn(Wt)||(fe=M.position+1),Wt=M.input.charCodeAt(++M.position)}return No(M,hn,fe,!1),!!M.result||(M.kind=Pt,M.result=cn,!1)}(M,Ge,Ve===Dt)&&(qt=!0,null===M.tag&&(M.tag="?")),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):0===Ot&&(qt=mt&&Ga(M,qe))),null!==M.tag&&"!"!==M.tag)if("?"===M.tag){for(null!==M.result&&"scalar"!==M.kind&&Jn(M,'unacceptable node kind for ! tag; it should be "scalar", not "'+M.kind+'"'),Pt=0,cn=M.implicitTypes.length;Pt tag; it should be "'+Wt.kind+'", not "'+M.kind+'"'),Wt.resolve(M.result)?(M.result=Wt.construct(M.result),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):Jn(M,"cannot resolve a node with !<"+M.tag+"> explicit tag")):Jn(M,"unknown tag !<"+M.tag+">");return null!==M.listener&&M.listener("close",M),null!==M.tag||null!==M.anchor||qt}function Q(M){var Dt,Ut,Bt,fe,ot=M.position,hn=!1;for(M.version=null,M.checkLineBreaks=M.legacy,M.tagMap={},M.anchorMap={};0!==(fe=M.input.charCodeAt(M.position))&&(Yr(M,!0,-1),fe=M.input.charCodeAt(M.position),!(M.lineIndent>0||37!==fe));){for(hn=!0,fe=M.input.charCodeAt(++M.position),Dt=M.position;0!==fe&&!en(fe);)fe=M.input.charCodeAt(++M.position);for(Bt=[],(Ut=M.input.slice(Dt,M.position)).length<1&&Jn(M,"directive name must not be less than one character in length");0!==fe;){for(;gn(fe);)fe=M.input.charCodeAt(++M.position);if(35===fe){do{fe=M.input.charCodeAt(++M.position)}while(0!==fe&&!Gt(fe));break}if(Gt(fe))break;for(Dt=M.position;0!==fe&&!en(fe);)fe=M.input.charCodeAt(++M.position);Bt.push(M.input.slice(Dt,M.position))}0!==fe&&ba(M),Ze.call(vu,Ut)?vu[Ut](M,Ut,Bt):Oc(M,'unknown document directive "'+Ut+'"')}Yr(M,!0,-1),0===M.lineIndent&&45===M.input.charCodeAt(M.position)&&45===M.input.charCodeAt(M.position+1)&&45===M.input.charCodeAt(M.position+2)?(M.position+=3,Yr(M,!0,-1)):hn&&Jn(M,"directives end mark is expected"),Y(M,M.lineIndent-1,ce,!1,!0),Yr(M,!0,-1),M.checkLineBreaks&&ee.test(M.input.slice(ot,M.position))&&Oc(M,"non-ASCII line breaks are interpreted as content"),M.documents.push(M.result),M.position===M.lineStart&&ll(M)?46===M.input.charCodeAt(M.position)&&(M.position+=3,Yr(M,!0,-1)):M.position"u"&&(Dt=ot,ot=null);var Ut=Ne(M,Dt);if("function"!=typeof ot)return Ut;for(var Bt=0,hn=Ut.length;Bt"u"&&(Dt=ot,ot=null),et(M,ot,nt.extend({schema:ze},Dt))},Yt.exports.safeLoad=function Zi(M,ot){return Ht(M,nt.extend({schema:ze},ot))}},48:(Yt,Dn,ke)=>{"use strict";var nt=ke(997);function Ie(ct,ze,_e,Ze,Ve){this.name=ct,this.buffer=ze,this.position=_e,this.line=Ze,this.column=Ve}Ie.prototype.getSnippet=function(ze,_e){var Ze,Ve,me,oe,ce;if(!this.buffer)return null;for(ze=ze||4,_e=_e||75,Ze="",Ve=this.position;Ve>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(Ve-1));)if(this.position-(Ve-=1)>_e/2-1){Ze=" ... ",Ve+=5;break}for(me="",oe=this.position;oe_e/2-1){me=" ... ",oe-=5;break}return ce=this.buffer.slice(Ve,oe),nt.repeat(" ",ze)+Ze+ce+me+"\n"+nt.repeat(" ",ze+this.position-Ve+Ze.length)+"^"},Ie.prototype.toString=function(ze){var _e,Ze="";return this.name&&(Ze+='in "'+this.name+'" '),Ze+="at line "+(this.line+1)+", column "+(this.column+1),ze||(_e=this.getSnippet())&&(Ze+=":\n"+_e),Ze},Yt.exports=Ie},372:(Yt,Dn,ke)=>{"use strict";var nt=ke(997),Ie=ke(314),ct=ke(647);function ze(Ve,me,oe){var ce=[];return Ve.include.forEach(function(se){oe=ze(se,me,oe)}),Ve[me].forEach(function(se){oe.forEach(function(T,A){T.tag===se.tag&&T.kind===se.kind&&ce.push(A)}),oe.push(se)}),oe.filter(function(se,T){return-1===ce.indexOf(T)})}function Ze(Ve){this.include=Ve.include||[],this.implicit=Ve.implicit||[],this.explicit=Ve.explicit||[],this.implicit.forEach(function(me){if(me.loadKind&&"scalar"!==me.loadKind)throw new Ie("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=ze(this,"implicit",[]),this.compiledExplicit=ze(this,"explicit",[]),this.compiledTypeMap=function _e(){var me,oe,Ve={scalar:{},sequence:{},mapping:{},fallback:{}};function ce(se){Ve[se.kind][se.tag]=Ve.fallback[se.tag]=se}for(me=0,oe=arguments.length;me{"use strict";var nt=ke(372);Yt.exports=new nt({include:[ke(147)]})},94:(Yt,Dn,ke)=>{"use strict";var nt=ke(372);Yt.exports=nt.DEFAULT=new nt({include:[ke(31)],explicit:[ke(771),ke(632),ke(716)]})},31:(Yt,Dn,ke)=>{"use strict";var nt=ke(372);Yt.exports=new nt({include:[ke(192)],implicit:[ke(934),ke(996)],explicit:[ke(486),ke(166),ke(711),ke(738)]})},746:(Yt,Dn,ke)=>{"use strict";var nt=ke(372);Yt.exports=new nt({explicit:[ke(464),ke(322),ke(71)]})},147:(Yt,Dn,ke)=>{"use strict";var nt=ke(372);Yt.exports=new nt({include:[ke(746)],implicit:[ke(568),ke(911),ke(877),ke(615)]})},647:(Yt,Dn,ke)=>{"use strict";var nt=ke(314),Ie=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ct=["scalar","sequence","mapping"];Yt.exports=function _e(Ze,Ve){if(Ve=Ve||{},Object.keys(Ve).forEach(function(me){if(-1===Ie.indexOf(me))throw new nt('Unknown option "'+me+'" is met in definition of "'+Ze+'" YAML type.')}),this.tag=Ze,this.kind=Ve.kind||null,this.resolve=Ve.resolve||function(){return!0},this.construct=Ve.construct||function(me){return me},this.instanceOf=Ve.instanceOf||null,this.predicate=Ve.predicate||null,this.represent=Ve.represent||null,this.defaultStyle=Ve.defaultStyle||null,this.styleAliases=function ze(Ze){var Ve={};return null!==Ze&&Object.keys(Ze).forEach(function(me){Ze[me].forEach(function(oe){Ve[String(oe)]=me})}),Ve}(Ve.styleAliases||null),-1===ct.indexOf(this.kind))throw new nt('Unknown kind "'+this.kind+'" is specified for "'+Ze+'" YAML type.')}},486:(Yt,Dn,ke)=>{"use strict";var nt;try{nt=ke(172).lW}catch{}var ct=ke(647),ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Yt.exports=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function _e(oe){if(null===oe)return!1;var ce,se,T=0,A=oe.length,F=ze;for(se=0;se64)){if(ce<0)return!1;T+=6}return T%8==0},construct:function Ze(oe){var ce,se,T=oe.replace(/[\r\n=]/g,""),A=T.length,F=ze,ee=0,Ae=[];for(ce=0;ce>16&255),Ae.push(ee>>8&255),Ae.push(255&ee)),ee=ee<<6|F.indexOf(T.charAt(ce));return 0==(se=A%4*6)?(Ae.push(ee>>16&255),Ae.push(ee>>8&255),Ae.push(255&ee)):18===se?(Ae.push(ee>>10&255),Ae.push(ee>>2&255)):12===se&&Ae.push(ee>>4&255),nt?nt.from?nt.from(Ae):new nt(Ae):Ae},predicate:function me(oe){return nt&&nt.isBuffer(oe)},represent:function Ve(oe){var T,A,ce="",se=0,F=oe.length,ee=ze;for(T=0;T>18&63],ce+=ee[se>>12&63],ce+=ee[se>>6&63],ce+=ee[63&se]),se=(se<<8)+oe[T];return 0==(A=F%3)?(ce+=ee[se>>18&63],ce+=ee[se>>12&63],ce+=ee[se>>6&63],ce+=ee[63&se]):2===A?(ce+=ee[se>>10&63],ce+=ee[se>>4&63],ce+=ee[se<<2&63],ce+=ee[64]):1===A&&(ce+=ee[se>>2&63],ce+=ee[se<<4&63],ce+=ee[64],ce+=ee[64]),ce}})},911:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function Ie(_e){if(null===_e)return!1;var Ze=_e.length;return 4===Ze&&("true"===_e||"True"===_e||"TRUE"===_e)||5===Ze&&("false"===_e||"False"===_e||"FALSE"===_e)},construct:function ct(_e){return"true"===_e||"True"===_e||"TRUE"===_e},predicate:function ze(_e){return"[object Boolean]"===Object.prototype.toString.call(_e)},represent:{lowercase:function(_e){return _e?"true":"false"},uppercase:function(_e){return _e?"TRUE":"FALSE"},camelcase:function(_e){return _e?"True":"False"}},defaultStyle:"lowercase"})},615:(Yt,Dn,ke)=>{"use strict";var nt=ke(997),Ie=ke(647),ct=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Ze=/^[-+]?[0-9]+e/;Yt.exports=new Ie("tag:yaml.org,2002:float",{kind:"scalar",resolve:function ze(oe){return!(null===oe||!ct.test(oe)||"_"===oe[oe.length-1])},construct:function _e(oe){var ce,se,T,A;return se="-"===(ce=oe.replace(/_/g,"").toLowerCase())[0]?-1:1,A=[],"+-".indexOf(ce[0])>=0&&(ce=ce.slice(1)),".inf"===ce?1===se?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===ce?NaN:ce.indexOf(":")>=0?(ce.split(":").forEach(function(F){A.unshift(parseFloat(F,10))}),ce=0,T=1,A.forEach(function(F){ce+=F*T,T*=60}),se*ce):se*parseFloat(ce,10)},predicate:function me(oe){return"[object Number]"===Object.prototype.toString.call(oe)&&(oe%1!=0||nt.isNegativeZero(oe))},represent:function Ve(oe,ce){var se;if(isNaN(oe))switch(ce){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===oe)switch(ce){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===oe)switch(ce){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nt.isNegativeZero(oe))return"-0.0";return se=oe.toString(10),Ze.test(se)?se.replace("e",".e"):se},defaultStyle:"lowercase"})},877:(Yt,Dn,ke)=>{"use strict";var nt=ke(997),Ie=ke(647);function ct(oe){return 48<=oe&&oe<=57||65<=oe&&oe<=70||97<=oe&&oe<=102}function ze(oe){return 48<=oe&&oe<=55}function _e(oe){return 48<=oe&&oe<=57}Yt.exports=new Ie("tag:yaml.org,2002:int",{kind:"scalar",resolve:function Ze(oe){if(null===oe)return!1;var A,ce=oe.length,se=0,T=!1;if(!ce)return!1;if(("-"===(A=oe[se])||"+"===A)&&(A=oe[++se]),"0"===A){if(se+1===ce)return!0;if("b"===(A=oe[++se])){for(se++;se=0?"0b"+oe.toString(2):"-0b"+oe.toString(2).slice(1)},octal:function(oe){return oe>=0?"0"+oe.toString(8):"-0"+oe.toString(8).slice(1)},decimal:function(oe){return oe.toString(10)},hexadecimal:function(oe){return oe>=0?"0x"+oe.toString(16).toUpperCase():"-0x"+oe.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Yt,Dn,ke)=>{"use strict";var nt;try{nt=ke(797)}catch{typeof window<"u"&&(nt=window.esprima)}var ct=ke(647);Yt.exports=new ct("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function ze(me){if(null===me)return!1;try{var ce=nt.parse("("+me+")",{range:!0});return!("Program"!==ce.type||1!==ce.body.length||"ExpressionStatement"!==ce.body[0].type||"ArrowFunctionExpression"!==ce.body[0].expression.type&&"FunctionExpression"!==ce.body[0].expression.type)}catch{return!1}},construct:function _e(me){var T,oe="("+me+")",ce=nt.parse(oe,{range:!0}),se=[];if("Program"!==ce.type||1!==ce.body.length||"ExpressionStatement"!==ce.body[0].type||"ArrowFunctionExpression"!==ce.body[0].expression.type&&"FunctionExpression"!==ce.body[0].expression.type)throw new Error("Failed to resolve function");return ce.body[0].expression.params.forEach(function(A){se.push(A.name)}),T=ce.body[0].expression.body.range,new Function(se,"BlockStatement"===ce.body[0].expression.body.type?oe.slice(T[0]+1,T[1]-1):"return "+oe.slice(T[0],T[1]))},predicate:function Ve(me){return"[object Function]"===Object.prototype.toString.call(me)},represent:function Ze(me){return me.toString()}})},632:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function Ie(Ze){if(null===Ze||0===Ze.length)return!1;var Ve=Ze,me=/\/([gim]*)$/.exec(Ze),oe="";return!("/"===Ve[0]&&(me&&(oe=me[1]),oe.length>3||"/"!==Ve[Ve.length-oe.length-1]))},construct:function ct(Ze){var Ve=Ze,me=/\/([gim]*)$/.exec(Ze),oe="";return"/"===Ve[0]&&(me&&(oe=me[1]),Ve=Ve.slice(1,Ve.length-oe.length-1)),new RegExp(Ve,oe)},predicate:function _e(Ze){return"[object RegExp]"===Object.prototype.toString.call(Ze)},represent:function ze(Ze){var Ve="/"+Ze.source+"/";return Ze.global&&(Ve+="g"),Ze.multiline&&(Ve+="m"),Ze.ignoreCase&&(Ve+="i"),Ve}})},771:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function Ie(){return!0},construct:function ct(){},predicate:function _e(Ze){return typeof Ze>"u"},represent:function ze(){return""}})},71:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Ie){return null!==Ie?Ie:{}}})},996:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function Ie(ct){return"<<"===ct||null===ct}})},568:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:null",{kind:"scalar",resolve:function Ie(_e){if(null===_e)return!0;var Ze=_e.length;return 1===Ze&&"~"===_e||4===Ze&&("null"===_e||"Null"===_e||"NULL"===_e)},construct:function ct(){return null},predicate:function ze(_e){return null===_e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},166:(Yt,Dn,ke)=>{"use strict";var nt=ke(647),Ie=Object.prototype.hasOwnProperty,ct=Object.prototype.toString;Yt.exports=new nt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function ze(Ze){if(null===Ze)return!0;var me,oe,ce,se,T,Ve=[],A=Ze;for(me=0,oe=A.length;me{"use strict";var nt=ke(647),Ie=Object.prototype.toString;Yt.exports=new nt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function ct(_e){if(null===_e)return!0;var Ze,Ve,me,oe,ce,se=_e;for(ce=new Array(se.length),Ze=0,Ve=se.length;Ze{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Ie){return null!==Ie?Ie:[]}})},738:(Yt,Dn,ke)=>{"use strict";var nt=ke(647),Ie=Object.prototype.hasOwnProperty;Yt.exports=new nt("tag:yaml.org,2002:set",{kind:"mapping",resolve:function ct(_e){if(null===_e)return!0;var Ze,Ve=_e;for(Ze in Ve)if(Ie.call(Ve,Ze)&&null!==Ve[Ze])return!1;return!0},construct:function ze(_e){return null!==_e?_e:{}}})},464:(Yt,Dn,ke)=>{"use strict";var nt=ke(647);Yt.exports=new nt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Ie){return null!==Ie?Ie:""}})},934:(Yt,Dn,ke)=>{"use strict";var nt=ke(647),Ie=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ct=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Yt.exports=new nt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function ze(Ve){return null!==Ve&&(null!==Ie.exec(Ve)||null!==ct.exec(Ve))},construct:function _e(Ve){var me,oe,ce,se,T,A,F,Ft,ee=0,Ae=null;if(null===(me=Ie.exec(Ve))&&(me=ct.exec(Ve)),null===me)throw new Error("Date resolve error");if(oe=+me[1],ce=+me[2]-1,se=+me[3],!me[4])return new Date(Date.UTC(oe,ce,se));if(T=+me[4],A=+me[5],F=+me[6],me[7]){for(ee=me[7].slice(0,3);ee.length<3;)ee+="0";ee=+ee}return me[9]&&(Ae=6e4*(60*+me[10]+ +(me[11]||0)),"-"===me[9]&&(Ae=-Ae)),Ft=new Date(Date.UTC(oe,ce,se,T,A,F,ee)),Ae&&Ft.setTime(Ft.getTime()-Ae),Ft},instanceOf:Date,represent:function Ze(Ve){return Ve.toISOString()}})}},Yt=>{Yt(Yt.s=191)}]); \ No newline at end of file diff --git a/console/ui/dist/prod/static/styles.eae36ebc5439770a.css b/console/ui/dist/prod/static/styles.eae36ebc5439770a.css new file mode 100644 index 0000000000..f365f8b2c7 --- /dev/null +++ b/console/ui/dist/prod/static/styles.eae36ebc5439770a.css @@ -0,0 +1,6 @@ +/*! + * Bootstrap v4.4.1 (https://getbootstrap.com/) + * Copyright 2011-2019 The Bootstrap Authors + * Copyright 2011-2019 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]){color:inherit;text-decoration:none}a:not([href]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer:before{content:"\2014\a0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-1>*{flex:0 0 100%;max-width:100%}.row-cols-2>*{flex:0 0 50%;max-width:50%}.row-cols-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-4>*{flex:0 0 25%;max-width:25%}.row-cols-5>*{flex:0 0 20%;max-width:20%}.row-cols-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-auto{flex:0 0 auto;width:auto;max-width:100%}.col-1{flex:0 0 8.333333%;max-width:8.333333%}.col-2{flex:0 0 16.666667%;max-width:16.666667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.333333%;max-width:33.333333%}.col-5{flex:0 0 41.666667%;max-width:41.666667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.333333%;max-width:58.333333%}.col-8{flex:0 0 66.666667%;max-width:66.666667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.333333%;max-width:83.333333%}.col-11{flex:0 0 91.666667%;max-width:91.666667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-sm-1>*{flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-sm-4>*{flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-md-1>*{flex:0 0 100%;max-width:100%}.row-cols-md-2>*{flex:0 0 50%;max-width:50%}.row-cols-md-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-md-4>*{flex:0 0 25%;max-width:25%}.row-cols-md-5>*{flex:0 0 20%;max-width:20%}.row-cols-md-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.col-md-1{flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-lg-1>*{flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-lg-4>*{flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-xl-1>*{flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-xl-4>*{flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered,.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:#0000000d}.table-hover tbody tr:hover{color:#212529;background-color:#00000013}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#7abaff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#8fd19e}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#86cfda}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#ffdf7e}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#ed969e}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:#00000013}.table-hover .table-active:hover{background-color:#00000013}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:#00000013}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:#ffffff0d}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:#ffffff13}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;font-size:1rem;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size],textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:inline-flex;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:#28a745e6;border-radius:.25rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:#28a745;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#28a745;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label:before,.was-validated .custom-control-input:valid~.custom-control-label:before{border-color:#28a745}.custom-control-input.is-valid:checked~.custom-control-label:before,.was-validated .custom-control-input:valid:checked~.custom-control-label:before{border-color:#34ce57;background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label:before,.was-validated .custom-control-input:valid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #28a74540}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label:before{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:#dc3545e6;border-radius:.25rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#dc3545;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label:before,.was-validated .custom-control-input:invalid~.custom-control-label:before{border-color:#dc3545}.custom-control-input.is-invalid:checked~.custom-control-label:before,.was-validated .custom-control-input:invalid:checked~.custom-control-label:before{border-color:#e4606d;background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #dc354540}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label:before{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.form-inline{display:flex;flex-flow:row wrap;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:flex;align-items:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:flex;flex:0 0 auto;flex-flow:row wrap;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:flex;align-items:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}.btn.disabled,.btn:disabled{opacity:.65}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#0069d9;border-color:#0062cc;box-shadow:0 0 0 .2rem #268fff80}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #268fff80}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{color:#fff;background-color:#5a6268;border-color:#545b62;box-shadow:0 0 0 .2rem #828a9180}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #828a9180}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#218838;border-color:#1e7e34;box-shadow:0 0 0 .2rem #48b46180}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #48b46180}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#138496;border-color:#117a8b;box-shadow:0 0 0 .2rem #3ab0c380}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #3ab0c380}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{color:#212529;background-color:#e0a800;border-color:#d39e00;box-shadow:0 0 0 .2rem #deaa0c80}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #deaa0c80}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c82333;border-color:#bd2130;box-shadow:0 0 0 .2rem #e1536180}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #e1536180}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{color:#212529;background-color:#e2e6ea;border-color:#dae0e5;box-shadow:0 0 0 .2rem #d8d9db80}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #d8d9db80}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{color:#fff;background-color:#23272b;border-color:#1d2124;box-shadow:0 0 0 .2rem #52585d80}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #52585d80}.btn-outline-primary{color:#007bff;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem #007bff80}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #007bff80}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem #6c757d80}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #6c757d80}.btn-outline-success{color:#28a745;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem #28a74580}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #28a74580}.btn-outline-info{color:#17a2b8;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem #17a2b880}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #17a2b880}.btn-outline-warning{color:#ffc107;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem #ffc10780}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #ffc10780}.btn-outline-danger{color:#dc3545;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem #dc354580}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #dc354580}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem #f8f9fa80}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #f8f9fa80}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem #343a4080}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #343a4080}.btn-link{font-weight:400;color:#007bff;text-decoration:none}.btn-link:hover{color:#0056b3;text-decoration:underline}.btn-link.focus,.btn-link:focus{text-decoration:underline;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-toggle:after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle:after{display:none}.dropleft .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty:after{margin-left:0}.dropleft .dropdown-toggle:before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropright .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropleft .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;flex:1 1 0%;min-width:0;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:flex;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label:after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.25rem;opacity:0}.custom-control-input:checked~.custom-control-label:before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #007bff40}.custom-control-input:focus:not(:checked)~.custom-control-label:before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label:before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label,.custom-control-input[disabled]~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label:before,.custom-control-input[disabled]~.custom-control-label:before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label:before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px}.custom-control-label:after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label:before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:before{border-color:#007bff;background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label:before{background-color:#007bff80}.custom-radio .custom-control-label:before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label:before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label:after{top:calc(.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label:after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label:after{background-color:#fff;transform:translate(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-select{display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;border:1px solid #ced4da;border-radius:.25rem;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem}.custom-file{position:relative;display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(1.5em + .75rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40}.custom-file-input:disabled~.custom-file-label,.custom-file-input[disabled]~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label:after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]:after{content:attr(data-browse)}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label:after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:calc(1.5em + .75rem);padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:1.4rem;padding:0;background-color:transparent;appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{-moz-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;-ms-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{-ms-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label:before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label:before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:.5rem 1rem}.navbar .container,.navbar .container-fluid,.navbar .container-lg,.navbar .container-md,.navbar .container-sm,.navbar .container-xl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:#000000e6}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:#000000e6}.navbar-light .navbar-nav .nav-link{color:#00000080}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:#000000b3}.navbar-light .navbar-nav .nav-link.disabled{color:#0000004d}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:#000000e6}.navbar-light .navbar-toggler{color:#00000080;border-color:#0000001a}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-light .navbar-text{color:#00000080}.navbar-light .navbar-text a{color:#000000e6}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:#000000e6}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:#ffffff80}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:#ffffffbf}.navbar-dark .navbar-nav .nav-link.disabled{color:#ffffff40}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:#ffffff80;border-color:#ffffff1a}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-dark .navbar-text{color:#ffffff80}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:#00000008;border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:#00000008;border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;inset:0;padding:1.25rem}.card-img,.card-img-bottom,.card-img-top{flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{display:flex;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{column-count:3;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{display:flex;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item:before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;box-shadow:0 0 0 .2rem #007bff40}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:3;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#0062cc}a.badge-primary.focus,a.badge-primary:focus{outline:0;box-shadow:0 0 0 .2rem #007bff80}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;box-shadow:0 0 0 .2rem #6c757d80}.badge-success{color:#fff;background-color:#28a745}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#1e7e34}a.badge-success.focus,a.badge-success:focus{outline:0;box-shadow:0 0 0 .2rem #28a74580}.badge-info{color:#fff;background-color:#17a2b8}a.badge-info:focus,a.badge-info:hover{color:#fff;background-color:#117a8b}a.badge-info.focus,a.badge-info:focus{outline:0;box-shadow:0 0 0 .2rem #17a2b880}.badge-warning{color:#212529;background-color:#ffc107}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#d39e00}a.badge-warning.focus,a.badge-warning:focus{outline:0;box-shadow:0 0 0 .2rem #ffc10780}.badge-danger{color:#fff;background-color:#dc3545}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#bd2130}a.badge-danger.focus,a.badge-danger:focus{outline:0;box-shadow:0 0 0 .2rem #dc354580}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;box-shadow:0 0 0 .2rem #f8f9fa80}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;box-shadow:0 0 0 .2rem #343a4080}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}.progress{display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.media{display:flex;align-items:flex-start}.media-body{flex:1}.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{flex-direction:row}.list-group-horizontal .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal .list-group-item.active{margin-top:0}.list-group-horizontal .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-sm .list-group-item.active{margin-top:0}.list-group-horizontal-sm .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-md .list-group-item.active{margin-top:0}.list-group-horizontal-md .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-lg .list-group-item.active{margin-top:0}.list-group-horizontal-lg .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-xl .list-group-item.active{margin-top:0}.list-group-horizontal-xl .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush .list-group-item{border-right-width:0;border-left-width:0;border-radius:0}.list-group-flush .list-group-item:first-child{border-top-width:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0;appearance:none}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:.875rem;background-color:#ffffffd9;background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:flex;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:#ffffffd9;background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered:before{display:block;height:calc(100vh - 1rem);content:""}.modal-dialog-centered.modal-dialog-scrollable{flex-direction:column;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable:before{content:none}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.modal-header .close{padding:1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;flex:1 1 auto;padding:1rem}.modal-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:.75rem;border-top:1px solid #dee2e6;border-bottom-right-radius:calc(.3rem - 1px);border-bottom-left-radius:calc(.3rem - 1px)}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered:before{height:calc(100vh - 3.5rem)}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow:before,.bs-tooltip-top .arrow:before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow:before,.bs-tooltip-right .arrow:before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.bs-tooltip-bottom .arrow:before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow:before,.bs-tooltip-left .arrow:before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow:after,.popover .arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=top]>.arrow:before,.bs-popover-top>.arrow:before{bottom:0;border-width:.5rem .5rem 0;border-top-color:#00000040}.bs-popover-auto[x-placement^=top]>.arrow:after,.bs-popover-top>.arrow:after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow:before,.bs-popover-right>.arrow:before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:#00000040}.bs-popover-auto[x-placement^=right]>.arrow:after,.bs-popover-right>.arrow:after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=bottom]>.arrow:before,.bs-popover-bottom>.arrow:before{top:0;border-width:0 .5rem .5rem .5rem;border-bottom-color:#00000040}.bs-popover-auto[x-placement^=bottom]>.arrow:after,.bs-popover-bottom>.arrow:after{top:1px;border-width:0 .5rem .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow:before,.bs-popover-left>.arrow:before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:#00000040}.bs-popover-auto[x-placement^=left]>.arrow:after,.bs-popover-left>.arrow:after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){transform:translate(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid currentColor;border-right-color:transparent;border-radius:50%;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix:after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive:before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9:before{padding-top:42.857143%}.embed-responsive-16by9:before{padding-top:56.25%}.embed-responsive-4by3:before{padding-top:75%}.embed-responsive-1by1:before{padding-top:100%}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-fill{flex:1 1 auto!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}@media (min-width:576px){.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}}@media (min-width:768px){.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports (position:sticky){.sticky-top{position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.stretched-link:after{position:absolute;inset:0;z-index:1;pointer-events:auto;content:"";background-color:#0000}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#19692c!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#0f6674!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#a71d2a!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:#00000080!important}.text-white-50{color:#ffffff80!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;overflow-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,:after,:before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]:after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body,.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-opened.ng-select-right>.ng-select-container{border-top-right-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-left>.ng-select-container{border-top-left-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px #00000013,0 0 0 3px #007eff1a}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px #0000000f}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#999}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;color:#333;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:#999}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px #0000000f;left:0}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel.ng-select-right{left:100%;top:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-right .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-left{left:-100%;top:0;border-top-left-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-left .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:#0000008a;cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{color:#0000008a;background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:#000000de;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:#333;background-color:#ebf5ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}:root{--jse-theme: light;--jse-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono: consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono: 14px;--jse-font-size: 16px;--jse-font-size-text-mode-search: 80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size: 1em;--jse-padding: 10px;--jse-theme-color: #3883fa;--jse-theme-color-highlight: #5f9dff;--jse-background-color: #fff;--jse-text-color: #4d4d4d;--jse-text-readonly: #8d8d8d;--jse-text-color-inverse: #fff;--jse-error-color: #ee5341;--jse-warning-color: #fdc539;--jse-main-border: 1px solid #d7d7d7;--jse-menu-color: var(--jse-text-color-inverse);--jse-menu-button-size: 32px;--jse-modal-background: #f5f5f5;--jse-modal-overlay-background: rgba(0, 0, 0, .3);--jse-modal-code-background: rgba(0, 0, 0, .05);--jse-modal-theme-color: #707070;--jse-modal-theme-color-highlight: #646464;--jse-tooltip-color: var(--jse-text-color);--jse-tooltip-background: var(--jse-modal-background);--jse-tooltip-border: var(--jse-main-border);--jse-tooltip-action-button-color: var(--jse-text-color-inverse);--jse-tooltip-action-button-background: #4d4d4d;--jse-panel-background: #ebebeb;--jse-panel-color: var(--jse-text-color);--jse-panel-color-readonly: #b2b2b2;--jse-panel-border: var(--jse-main-border);--jse-panel-button-color: inherit;--jse-panel-button-background: transparent;--jse-panel-button-color-highlight: var(--jse-text-color);--jse-panel-button-background-highlight: #e0e0e0;--jse-navigation-bar-background: var(--jse-background-color);--jse-navigation-bar-background-highlight: #e5e5e5;--jse-navigation-bar-dropdown-color: #656565;--jse-context-menu-background: #656565;--jse-context-menu-background-highlight: #7a7a7a;--jse-context-menu-color: var(--jse-text-color-inverse);--jse-context-menu-color-disabled: #9d9d9d;--jse-context-menu-separator-color: #7a7a7a;--jse-context-menu-pointer-hover-background: #b2b2b2;--jse-context-menu-pointer-background: var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight: var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color: var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background: rgba(255, 255, 255, .2);--jse-context-menu-tip-color: inherit;--jse-key-color: #1a1a1a;--jse-value-color: #1a1a1a;--jse-value-color-number: #ee422e;--jse-value-color-boolean: #ff8c00;--jse-value-color-null: #004ed0;--jse-value-color-string: #008000;--jse-value-color-url: #008000;--jse-delimiter-color: rgba(0, 0, 0, .38);--jse-edit-outline: 2px solid #656565;--jse-contents-background-color: transparent;--jse-contents-cursor: pointer;--jse-contents-selected-cursor: grab;--jse-selection-background-color: #d3d3d3;--jse-selection-background-inactive-color: #e8e8e8;--jse-hover-background-color: rgba(0, 0, 0, .06);--jse-active-line-background-color: rgba(0, 0, 0, .06);--jse-search-match-background-color: #99ff7780;--jse-collapsed-items-background-color: #f5f5f5;--jse-collapsed-items-selected-background-color: #c2c2c2;--jse-collapsed-items-link-color: rgba(0, 0, 0, .38);--jse-collapsed-items-link-color-highlight: #ee5341;--jse-search-match-color: #ffe665;--jse-search-match-outline: 1px solid #ffd700;--jse-search-match-active-color: #ffd700;--jse-search-match-active-outline: 1px solid #e1be00;--jse-tag-background: rgba(0, 0, 0, .2);--jse-tag-color: var(--jse-text-color-inverse);--jse-table-header-background: #f5f5f5;--jse-table-header-background-highlight: #e8e8e8;--jse-table-row-odd-background: rgba(0, 0, 0, .05);--jse-controls-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .24);--jse-input-background: var(--jse-background-color);--jse-input-background-readonly: transparent;--jse-input-border: 1px solid #d8dbdf;--jse-input-border-focus: 1px solid var(--jse-theme-color);--jse-input-radius: 3px;--jse-button-background: #e0e0e0;--jse-button-background-highlight: #e7e7e7;--jse-button-color: var(--jse-text-color);--jse-button-primary-background: var(--jse-theme-color);--jse-button-primary-background-highlight: var(--jse-theme-color-highlight);--jse-button-primary-background-disabled: #9d9d9d;--jse-button-primary-color: var(--jse-text-color-inverse);--jse-button-secondary-background: #d3d3d3;--jse-button-secondary-background-highlight: #e1e1e1;--jse-button-secondary-background-disabled: #9d9d9d;--jse-button-secondary-color: var(--jse-text-color);--jse-a-color: #156fc5;--jse-a-color-highlight: #0f508d;--jse-message-error-background: var(--jse-error-color);--jse-message-error-color: var(--jse-text-color-inverse);--jse-message-warning-background: #ffde5c;--jse-message-warning-color: var(--jse-text-color);--jse-message-success-background: #9ac45d;--jse-message-success-color: var(--jse-text-color-inverse);--jse-message-info-background: #4f91ff;--jse-message-info-color: var(--jse-text-color-inverse);--jse-message-action-background: rgba(255, 255, 255, .2);--jse-message-action-background-highlight: rgba(255, 255, 255, .3);--item-is-active-bg: #3883fa;--border: 1px solid #d8dbdf;--border-radius: 3px;--background: #fff;--padding: 0 10px;--multi-select-padding: 0 10px;--jse-color-picker-background: var(--jse-panel-background);--jse-color-picker-border-box-shadow: #cbcbcb 0 0 0 1px}.bg-secondary{background-color:#978cf1!important}.bg-success{background-color:#63c179}body{font-family:Source Sans Pro,sans-serif}a{color:#7668ed}a:hover{color:#978cf1}.custom-control-input:checked~.custom-control-label:before{background-color:#7668ed;border-color:#7668ed}.btn{font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:12px;outline:none!important;outline-width:0!important;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;-webkit-appearance:none}.btn-sm{font-size:11px}.btn-primary.dropdown-toggle{background-color:#8b7ff0}.btn-primary.dropdown-toggle[aria-expanded=true]{background-color:#7668ed;border-color:#7668ed}.btn-primary.dropdown-toggle:active{background-color:#7668ed!important;border-color:#7668ed}.btn-primary.dropdown-toggle:focus{background-color:#f96cf8!important;border-color:#f853f7}.btn-primary{background-color:#7668ed;border-color:#7668ed}.btn-primary:hover{background-color:#8b7ff0;border-color:#7668ed}.btn-primary:active{background-color:#7668ed!important;border-color:#7668ed}.btn-primary:focus{background-color:#f96cf8!important;border-color:#f853f7}.btn-primary:disabled{background-color:#7668ed;border-color:#7668ed}.btn-outline-primary{border:solid 2px #7668ED;color:#7668ed;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:13px}.btn-outline-primary:hover{background-color:#8b7ff0;border-color:#7668ed}.btn-outline-primary:active{background-color:#f96cf8!important;border-color:#f853f7!important}.btn-outline-primary:disabled{background-color:#7668ed;border-color:#7668ed}.btn-outline-secondary{border:solid 1px #aaaacc;font-size:10px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:13px}.btn-outline-secondary:hover{background-color:#eaeaf2;color:#7668ed}.btn-outline-secondary:active{background-color:#6e5fec!important}.btn-outline-dark{border-color:#c1c1da;font-size:10px}.btn-outline-dark img{margin-left:-.5em}.btn-outline-dark:hover:not(.disabled){background-color:#7668ed;border-color:#e1e1ed}.btn-outline-dark:active{background-color:#6e5fec}.btn-danger{background-color:#ffd3cf;color:#fe756a;border-color:#fe756a}.btn-danger:hover{background-color:#fe756a!important;color:#fff}.btn-danger-icon{background-color:#fff}.btn-danger-icon:hover{color:#fe756a;background-color:#ffd3cf!important}.btn-group-toggle label{font-size:10px}.btn-warning{background-color:#edd83e;background-color:#ecd635!important}.btn-warning:hover{background-color:#e3ca15!important}.page-btns .btn:hover{background:#A69BFF!important}.page-btns .btn{padding:.3em .9em}.breadcrumb{padding:0;margin:0;background:#fff}.badge{border-radius:20px;padding:.3rem .8rem;text-transform:uppercase;letter-spacing:.1em;font-size:11px;color:#333564;display:inline-flex;align-items:center}.badge-secondary{background-color:#eaeaf2}.badge-secondary img{margin-right:.5rem;margin-left:-.5rem}.badge-light{background-color:#eae8fc}.badge-light img{margin-right:.5rem;margin-left:-.5rem}.badge-primary{background-color:#d8edfa}.badge-primary img{margin-right:.5rem;margin-left:-.5rem}.badge-success{background-color:#d0edd7}.badge-success img{margin-right:.5rem;margin-left:-.5rem}.badge-danger{background-color:#ffd3cf;color:#fe756a}.badge-danger img{margin-right:.5rem;margin-left:-.2rem}.badge-warning{background-color:#faf4ca}.badge-warning img{margin-right:.5rem;margin-left:-.2rem}.badge-info{background-color:#fee6fe}.badge-info img{margin-right:.5rem;margin-left:-.5rem}.badge-dark{background-color:#a7a7ca}.badge-dark img{margin-right:.5rem;margin-left:-.5rem}.loading{width:50px}.add-border .row{border-top:solid 1px #dadae9;border-left:solid 1px #dadae9;border-right:solid 1px #dadae9;padding:.6rem;margin:0}.add-border .form-row{border-top:solid 1px #dadae9;margin:0;padding-top:2rem}.add-border-single-row .row{border:solid 1px #dadae9;padding:.75rem;margin:0}.add-border-single-row-bottom{border-bottom:solid 1px #dadae9}.remove-sides{border-left:none!important;border-right:none!important}.card-box{border:solid 1px #dadae9;padding:1.75rem .75rem}.alert h6{margin-bottom:8px}.alert small{font-size:15px}.alert-primary{background-color:#f2f1fd;border-color:#9f96f2;color:#7668ed}.alert-success{background-color:#dbf1e0;border-color:#87d098;color:#20512c}.alert-secondary{background-color:#fafafc;border-color:#dadae9;color:#4a4a7b}.alert-danger{background-color:#ffeae9;border-color:#fea49d;color:#fe756a}.alert-warning{background-color:#faf4ca;border-color:#f1e16d;color:#333564}.alert-info{background-color:#eef7fd;border-color:#95cdf0;color:#333564}.section-divider:after{height:1px;margin-left:1rem;flex-grow:1;align-self:center;background-color:#dadae9;content:""}.section-divider-btn{display:flex;align-items:center}.section-divider-btn__text{display:flex;flex-grow:1;align-items:center}.section-divider-btn__text:after{height:1px;flex-grow:1;margin-left:15px;background-color:#dadae9;content:""}.table .thead-light th{background-color:#fafafc;border-color:#dadae9;color:#4a4a7b;border-bottom:0}.table-hover tbody tr:hover td{background-color:#f2f1fd}.bg-grad{background-color:#6a57ee;background-image:linear-gradient(to bottom,#6a57ee 0%,#3a3f77 100%);background-position:3% 3%,top right,97% bottom,bottom left;background-repeat:no-repeat}.spinner{height:100%}.spinner>p{display:table-cell;text-align:center;width:100%;vertical-align:middle}.spinner>span{display:block;text-align:left;width:100%;min-width:24px;height:100%;min-height:24px;background-image:url(/static/white-progress-spinner.gif);background-repeat:no-repeat;background-position-x:center;background-position-y:center}.tooltip-bg .tooltip-inner{background-color:#7668ed;font-size:11px;text-align:left}.bs-tooltip-right .arrow:before{border-right-color:#7668ed}.bs-tooltip-top .arrow:before{border-top-color:#7668ed}.bs-tooltip-bottom .arrow:before{border-bottom-color:#7668ed}.bs-tooltip-left .arrow:before{border-left-color:#7668ed}.arrow{position:relative;overflow:hidden;margin-right:5px;display:inline-block}.arrow-right{background-image:url(/static/svg/arrow-right.svg);background-repeat:no-repeat;background-position:center;height:12px;width:12px;top:0;left:0}.arrow-down{background-image:url(/static/svg/arrow-down.svg);background-repeat:no-repeat;background-position:center;height:12px;width:12px;top:0;left:0}.drop-zone{border:2px dashed #7668ED;border-radius:5px;height:100px;margin:auto auto 48px;background-color:#e5e2ff}.drop-zone-content{margin-top:25px;align-items:center;color:#0782d0;display:flex;height:50px;justify-content:center}.jsoneditor{--jse-theme-color: #7668ED;--jes-theme-light-color: #A69BFF;--jse-button-primary-background: #7668ED;--jse-message-success-background: #A69BFF} diff --git a/console/ui/dist/prod/static/styles.f1672f2c7326a24e.css b/console/ui/dist/prod/static/styles.f1672f2c7326a24e.css deleted file mode 100644 index d7989a5dab..0000000000 --- a/console/ui/dist/prod/static/styles.f1672f2c7326a24e.css +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * Bootstrap v4.4.1 (https://getbootstrap.com/) - * Copyright 2011-2019 The Bootstrap Authors - * Copyright 2011-2019 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]){color:inherit;text-decoration:none}a:not([href]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer:before{content:"\2014\a0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-1>*{flex:0 0 100%;max-width:100%}.row-cols-2>*{flex:0 0 50%;max-width:50%}.row-cols-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-4>*{flex:0 0 25%;max-width:25%}.row-cols-5>*{flex:0 0 20%;max-width:20%}.row-cols-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-auto{flex:0 0 auto;width:auto;max-width:100%}.col-1{flex:0 0 8.333333%;max-width:8.333333%}.col-2{flex:0 0 16.666667%;max-width:16.666667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.333333%;max-width:33.333333%}.col-5{flex:0 0 41.666667%;max-width:41.666667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.333333%;max-width:58.333333%}.col-8{flex:0 0 66.666667%;max-width:66.666667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.333333%;max-width:83.333333%}.col-11{flex:0 0 91.666667%;max-width:91.666667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-sm-1>*{flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-sm-4>*{flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-md-1>*{flex:0 0 100%;max-width:100%}.row-cols-md-2>*{flex:0 0 50%;max-width:50%}.row-cols-md-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-md-4>*{flex:0 0 25%;max-width:25%}.row-cols-md-5>*{flex:0 0 20%;max-width:20%}.row-cols-md-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.col-md-1{flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-lg-1>*{flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-lg-4>*{flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-xl-1>*{flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{flex:0 0 33.333333%;max-width:33.333333%}.row-cols-xl-4>*{flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{flex:0 0 16.666667%;max-width:16.666667%}.col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered,.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:#0000000d}.table-hover tbody tr:hover{color:#212529;background-color:#00000013}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#7abaff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#8fd19e}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#86cfda}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#ffdf7e}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#ed969e}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:#00000013}.table-hover .table-active:hover{background-color:#00000013}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:#00000013}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:#ffffff0d}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:#ffffff13}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;font-size:1rem;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size],textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:inline-flex;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:#28a745e6;border-radius:.25rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:#28a745;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#28a745;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label:before,.was-validated .custom-control-input:valid~.custom-control-label:before{border-color:#28a745}.custom-control-input.is-valid:checked~.custom-control-label:before,.was-validated .custom-control-input:valid:checked~.custom-control-label:before{border-color:#34ce57;background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label:before,.was-validated .custom-control-input:valid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #28a74540}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label:before{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#28a745;box-shadow:0 0 0 .2rem #28a74540}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:#dc3545e6;border-radius:.25rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#dc3545;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label:before,.was-validated .custom-control-input:invalid~.custom-control-label:before{border-color:#dc3545}.custom-control-input.is-invalid:checked~.custom-control-label:before,.was-validated .custom-control-input:invalid:checked~.custom-control-label:before{border-color:#e4606d;background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #dc354540}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label:before{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.form-inline{display:flex;flex-flow:row wrap;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:flex;align-items:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:flex;flex:0 0 auto;flex-flow:row wrap;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:flex;align-items:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}.btn.disabled,.btn:disabled{opacity:.65}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#0069d9;border-color:#0062cc;box-shadow:0 0 0 .2rem #268fff80}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #268fff80}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{color:#fff;background-color:#5a6268;border-color:#545b62;box-shadow:0 0 0 .2rem #828a9180}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #828a9180}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#218838;border-color:#1e7e34;box-shadow:0 0 0 .2rem #48b46180}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #48b46180}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#138496;border-color:#117a8b;box-shadow:0 0 0 .2rem #3ab0c380}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #3ab0c380}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{color:#212529;background-color:#e0a800;border-color:#d39e00;box-shadow:0 0 0 .2rem #deaa0c80}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #deaa0c80}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c82333;border-color:#bd2130;box-shadow:0 0 0 .2rem #e1536180}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #e1536180}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{color:#212529;background-color:#e2e6ea;border-color:#dae0e5;box-shadow:0 0 0 .2rem #d8d9db80}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #d8d9db80}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{color:#fff;background-color:#23272b;border-color:#1d2124;box-shadow:0 0 0 .2rem #52585d80}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #52585d80}.btn-outline-primary{color:#007bff;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem #007bff80}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #007bff80}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem #6c757d80}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #6c757d80}.btn-outline-success{color:#28a745;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem #28a74580}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #28a74580}.btn-outline-info{color:#17a2b8;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem #17a2b880}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #17a2b880}.btn-outline-warning{color:#ffc107;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem #ffc10780}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #ffc10780}.btn-outline-danger{color:#dc3545;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem #dc354580}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #dc354580}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem #f8f9fa80}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #f8f9fa80}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem #343a4080}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #343a4080}.btn-link{font-weight:400;color:#007bff;text-decoration:none}.btn-link:hover{color:#0056b3;text-decoration:underline}.btn-link.focus,.btn-link:focus{text-decoration:underline;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-toggle:after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle:after{display:none}.dropleft .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty:after{margin-left:0}.dropleft .dropdown-toggle:before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropright .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropleft .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;flex:1 1 0%;min-width:0;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:flex;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label:after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.25rem;opacity:0}.custom-control-input:checked~.custom-control-label:before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem #007bff40}.custom-control-input:focus:not(:checked)~.custom-control-label:before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label:before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label,.custom-control-input[disabled]~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label:before,.custom-control-input[disabled]~.custom-control-label:before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label:before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px}.custom-control-label:after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label:before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:before{border-color:#007bff;background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label:before{background-color:#007bff80}.custom-radio .custom-control-label:before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label:before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label:after{top:calc(.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label:after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label:after{background-color:#fff;transform:translate(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label:before{background-color:#007bff80}.custom-select{display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem}.custom-file{position:relative;display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(1.5em + .75rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40}.custom-file-input:disabled~.custom-file-label,.custom-file-input[disabled]~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label:after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]:after{content:attr(data-browse)}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label:after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:calc(1.5em + .75rem);padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:1.4rem;padding:0;background-color:transparent;-webkit-appearance:none;appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #007bff40}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{-moz-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;-ms-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{-ms-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label:before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label:before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:.5rem 1rem}.navbar .container,.navbar .container-fluid,.navbar .container-lg,.navbar .container-md,.navbar .container-sm,.navbar .container-xl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:#000000e6}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:#000000e6}.navbar-light .navbar-nav .nav-link{color:#00000080}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:#000000b3}.navbar-light .navbar-nav .nav-link.disabled{color:#0000004d}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:#000000e6}.navbar-light .navbar-toggler{color:#00000080;border-color:#0000001a}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-light .navbar-text{color:#00000080}.navbar-light .navbar-text a{color:#000000e6}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:#000000e6}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:#ffffff80}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:#ffffffbf}.navbar-dark .navbar-nav .nav-link.disabled{color:#ffffff40}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:#ffffff80;border-color:#ffffff1a}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-dark .navbar-text{color:#ffffff80}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:#00000008;border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:#00000008;border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;inset:0;padding:1.25rem}.card-img,.card-img-bottom,.card-img-top{flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{display:flex;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{column-count:3;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{display:flex;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item:before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;box-shadow:0 0 0 .2rem #007bff40}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:3;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#0062cc}a.badge-primary.focus,a.badge-primary:focus{outline:0;box-shadow:0 0 0 .2rem #007bff80}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;box-shadow:0 0 0 .2rem #6c757d80}.badge-success{color:#fff;background-color:#28a745}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#1e7e34}a.badge-success.focus,a.badge-success:focus{outline:0;box-shadow:0 0 0 .2rem #28a74580}.badge-info{color:#fff;background-color:#17a2b8}a.badge-info:focus,a.badge-info:hover{color:#fff;background-color:#117a8b}a.badge-info.focus,a.badge-info:focus{outline:0;box-shadow:0 0 0 .2rem #17a2b880}.badge-warning{color:#212529;background-color:#ffc107}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#d39e00}a.badge-warning.focus,a.badge-warning:focus{outline:0;box-shadow:0 0 0 .2rem #ffc10780}.badge-danger{color:#fff;background-color:#dc3545}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#bd2130}a.badge-danger.focus,a.badge-danger:focus{outline:0;box-shadow:0 0 0 .2rem #dc354580}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;box-shadow:0 0 0 .2rem #f8f9fa80}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;box-shadow:0 0 0 .2rem #343a4080}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}.progress{display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.media{display:flex;align-items:flex-start}.media-body{flex:1}.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{flex-direction:row}.list-group-horizontal .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal .list-group-item.active{margin-top:0}.list-group-horizontal .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-sm .list-group-item.active{margin-top:0}.list-group-horizontal-sm .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-md .list-group-item.active{margin-top:0}.list-group-horizontal-md .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-lg .list-group-item.active{margin-top:0}.list-group-horizontal-lg .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-xl .list-group-item.active{margin-top:0}.list-group-horizontal-xl .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush .list-group-item{border-right-width:0;border-left-width:0;border-radius:0}.list-group-flush .list-group-item:first-child{border-top-width:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none;appearance:none}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:.875rem;background-color:#ffffffd9;background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:flex;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:#ffffffd9;background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered:before{display:block;height:calc(100vh - 1rem);content:""}.modal-dialog-centered.modal-dialog-scrollable{flex-direction:column;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable:before{content:none}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.modal-header .close{padding:1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;flex:1 1 auto;padding:1rem}.modal-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:.75rem;border-top:1px solid #dee2e6;border-bottom-right-radius:calc(.3rem - 1px);border-bottom-left-radius:calc(.3rem - 1px)}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered:before{height:calc(100vh - 3.5rem)}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow:before,.bs-tooltip-top .arrow:before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow:before,.bs-tooltip-right .arrow:before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.bs-tooltip-bottom .arrow:before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow:before,.bs-tooltip-left .arrow:before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow:after,.popover .arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=top]>.arrow:before,.bs-popover-top>.arrow:before{bottom:0;border-width:.5rem .5rem 0;border-top-color:#00000040}.bs-popover-auto[x-placement^=top]>.arrow:after,.bs-popover-top>.arrow:after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow:before,.bs-popover-right>.arrow:before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:#00000040}.bs-popover-auto[x-placement^=right]>.arrow:after,.bs-popover-right>.arrow:after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=bottom]>.arrow:before,.bs-popover-bottom>.arrow:before{top:0;border-width:0 .5rem .5rem .5rem;border-bottom-color:#00000040}.bs-popover-auto[x-placement^=bottom]>.arrow:after,.bs-popover-bottom>.arrow:after{top:1px;border-width:0 .5rem .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow:before,.bs-popover-left>.arrow:before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:#00000040}.bs-popover-auto[x-placement^=left]>.arrow:after,.bs-popover-left>.arrow:after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){transform:translate(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid currentColor;border-right-color:transparent;border-radius:50%;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix:after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive:before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9:before{padding-top:42.857143%}.embed-responsive-16by9:before{padding-top:56.25%}.embed-responsive-4by3:before{padding-top:75%}.embed-responsive-1by1:before{padding-top:100%}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-fill{flex:1 1 auto!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}@media (min-width:576px){.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}}@media (min-width:768px){.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports (position:sticky){.sticky-top{position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.stretched-link:after{position:absolute;inset:0;z-index:1;pointer-events:auto;content:"";background-color:#0000}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#19692c!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#0f6674!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#a71d2a!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:#00000080!important}.text-white-50{color:#ffffff80!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;overflow-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,:after,:before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]:after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body,.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px #00000013,0 0 0 3px #007eff1a}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px #0000000f}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#999}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:#999}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px #0000000f;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:#0000008a;cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:#000000de;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:#333;background-color:#ebf5ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}:root{--jse-theme: light;--jse-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono: consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono: 14px;--jse-font-size: 16px;--jse-font-size-text-mode-search: 80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size: 1em;--jse-padding: 10px;--jse-theme-color: #3883fa;--jse-theme-color-highlight: #5f9dff;--jse-background-color: #fff;--jse-text-color: #4d4d4d;--jse-text-readonly: #8d8d8d;--jse-text-color-inverse: #fff;--jse-error-color: #ee5341;--jse-warning-color: #fdc539;--jse-main-border: 1px solid #d7d7d7;--jse-menu-color: var(--jse-text-color-inverse);--jse-menu-button-size: 32px;--jse-modal-background: #f5f5f5;--jse-modal-overlay-background: rgba(0, 0, 0, .3);--jse-modal-code-background: rgba(0, 0, 0, .05);--jse-modal-theme-color: #707070;--jse-modal-theme-color-highlight: #646464;--jse-tooltip-color: var(--jse-text-color);--jse-tooltip-background: var(--jse-modal-background);--jse-tooltip-border: var(--jse-main-border);--jse-tooltip-action-button-color: var(--jse-text-color-inverse);--jse-tooltip-action-button-background: #4d4d4d;--jse-panel-background: #ebebeb;--jse-panel-color: var(--jse-text-color);--jse-panel-color-readonly: #b2b2b2;--jse-panel-border: var(--jse-main-border);--jse-panel-button-color: inherit;--jse-panel-button-background: transparent;--jse-panel-button-color-highlight: var(--jse-text-color);--jse-panel-button-background-highlight: #e0e0e0;--jse-navigation-bar-background: var(--jse-background-color);--jse-navigation-bar-background-highlight: #e5e5e5;--jse-navigation-bar-dropdown-color: #656565;--jse-context-menu-background: #656565;--jse-context-menu-background-highlight: #7a7a7a;--jse-context-menu-color: var(--jse-text-color-inverse);--jse-context-menu-color-disabled: #9d9d9d;--jse-context-menu-separator-color: #7a7a7a;--jse-context-menu-pointer-hover-background: #b2b2b2;--jse-context-menu-pointer-background: var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight: var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color: var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background: rgba(255, 255, 255, .2);--jse-context-menu-tip-color: inherit;--jse-key-color: #1a1a1a;--jse-value-color: #1a1a1a;--jse-value-color-number: #ee422e;--jse-value-color-boolean: #ff8c00;--jse-value-color-null: #004ed0;--jse-value-color-string: #008000;--jse-value-color-url: #008000;--jse-delimiter-color: rgba(0, 0, 0, .38);--jse-edit-outline: 2px solid #656565;--jse-contents-background-color: transparent;--jse-contents-cursor: pointer;--jse-contents-selected-cursor: grab;--jse-selection-background-color: #d3d3d3;--jse-selection-background-inactive-color: #e8e8e8;--jse-hover-background-color: rgba(0, 0, 0, .06);--jse-active-line-background-color: rgba(0, 0, 0, .06);--jse-search-match-background-color: #99ff7780;--jse-collapsed-items-background-color: #f5f5f5;--jse-collapsed-items-selected-background-color: #c2c2c2;--jse-collapsed-items-link-color: rgba(0, 0, 0, .38);--jse-collapsed-items-link-color-highlight: #ee5341;--jse-search-match-color: #ffe665;--jse-search-match-outline: 1px solid #ffd700;--jse-search-match-active-color: #ffd700;--jse-search-match-active-outline: 1px solid #e1be00;--jse-tag-background: rgba(0, 0, 0, .2);--jse-tag-color: var(--jse-text-color-inverse);--jse-table-header-background: #f5f5f5;--jse-table-header-background-highlight: #e8e8e8;--jse-table-row-odd-background: rgba(0, 0, 0, .05);--jse-controls-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .24);--jse-input-background: var(--jse-background-color);--jse-input-background-readonly: transparent;--jse-input-border: 1px solid #d8dbdf;--jse-input-border-focus: 1px solid var(--jse-theme-color);--jse-input-radius: 3px;--jse-button-background: #e0e0e0;--jse-button-background-highlight: #e7e7e7;--jse-button-color: var(--jse-text-color);--jse-button-primary-background: var(--jse-theme-color);--jse-button-primary-background-highlight: var(--jse-theme-color-highlight);--jse-button-primary-background-disabled: #9d9d9d;--jse-button-primary-color: var(--jse-text-color-inverse);--jse-button-secondary-background: #d3d3d3;--jse-button-secondary-background-highlight: #e1e1e1;--jse-button-secondary-background-disabled: #9d9d9d;--jse-button-secondary-color: var(--jse-text-color);--jse-a-color: #156fc5;--jse-a-color-highlight: #0f508d;--jse-message-error-background: var(--jse-error-color);--jse-message-error-color: var(--jse-text-color-inverse);--jse-message-warning-background: #ffde5c;--jse-message-warning-color: var(--jse-text-color);--jse-message-success-background: #9ac45d;--jse-message-success-color: var(--jse-text-color-inverse);--jse-message-info-background: #4f91ff;--jse-message-info-color: var(--jse-text-color-inverse);--jse-message-action-background: rgba(255, 255, 255, .2);--jse-message-action-background-highlight: rgba(255, 255, 255, .3);--item-is-active-bg: #3883fa;--border: 1px solid #d8dbdf;--border-radius: 3px;--background: #fff;--padding: 0 10px;--multi-select-padding: 0 10px;--jse-color-picker-background: var(--jse-panel-background);--jse-color-picker-border-box-shadow: #cbcbcb 0 0 0 1px}.bg-secondary{background-color:#978cf1!important}.bg-success{background-color:#63c179}body{font-family:Source Sans Pro,sans-serif}a{color:#7668ed}a:hover{color:#978cf1}.custom-control-input:checked~.custom-control-label:before{background-color:#7668ed;border-color:#7668ed}.btn{font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:12px;outline:none!important;outline-width:0!important;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;-webkit-appearance:none}.btn-sm{font-size:11px}.btn-primary.dropdown-toggle{background-color:#8b7ff0}.btn-primary.dropdown-toggle[aria-expanded=true]{background-color:#7668ed;border-color:#7668ed}.btn-primary.dropdown-toggle:active{background-color:#7668ed!important;border-color:#7668ed}.btn-primary.dropdown-toggle:focus{background-color:#f96cf8!important;border-color:#f853f7}.btn-primary{background-color:#7668ed;border-color:#7668ed}.btn-primary:hover{background-color:#8b7ff0;border-color:#7668ed}.btn-primary:active{background-color:#7668ed!important;border-color:#7668ed}.btn-primary:focus{background-color:#f96cf8!important;border-color:#f853f7}.btn-primary:disabled{background-color:#7668ed;border-color:#7668ed}.btn-outline-primary{border:solid 2px #7668ED;color:#7668ed;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:13px}.btn-outline-primary:hover{background-color:#8b7ff0;border-color:#7668ed}.btn-outline-primary:active{background-color:#f96cf8!important;border-color:#f853f7!important}.btn-outline-primary:disabled{background-color:#7668ed;border-color:#7668ed}.btn-outline-secondary{border:solid 1px #aaaacc;font-size:10px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;font-size:13px}.btn-outline-secondary:hover{background-color:#eaeaf2;color:#7668ed}.btn-outline-secondary:active{background-color:#6e5fec!important}.btn-outline-dark{border-color:#c1c1da;font-size:10px}.btn-outline-dark img{margin-left:-.5em}.btn-outline-dark:hover:not(.disabled){background-color:#7668ed;border-color:#e1e1ed}.btn-outline-dark:active{background-color:#6e5fec}.btn-danger{background-color:#ffd3cf;color:#fe756a;border-color:#fe756a}.btn-danger:hover{background-color:#fe756a!important;color:#fff}.btn-danger-icon{background-color:#fff}.btn-danger-icon:hover{color:#fe756a;background-color:#ffd3cf!important}.btn-group-toggle label{font-size:10px}.btn-warning{background-color:#edd83e;background-color:#ecd635!important}.btn-warning:hover{background-color:#e3ca15!important}.page-btns .btn:hover{background:#A69BFF!important}.page-btns .btn{padding:.3em .9em}.breadcrumb{padding:0;margin:0;background:#fff}.badge{border-radius:20px;padding:.3rem .8rem;text-transform:uppercase;letter-spacing:.1em;font-size:11px;color:#333564;display:inline-flex;align-items:center}.badge-secondary{background-color:#eaeaf2}.badge-secondary img{margin-right:.5rem;margin-left:-.5rem}.badge-light{background-color:#eae8fc}.badge-light img{margin-right:.5rem;margin-left:-.5rem}.badge-primary{background-color:#d8edfa}.badge-primary img{margin-right:.5rem;margin-left:-.5rem}.badge-success{background-color:#d0edd7}.badge-success img{margin-right:.5rem;margin-left:-.5rem}.badge-danger{background-color:#ffd3cf;color:#fe756a}.badge-danger img{margin-right:.5rem;margin-left:-.2rem}.badge-warning{background-color:#faf4ca}.badge-warning img{margin-right:.5rem;margin-left:-.2rem}.badge-info{background-color:#fee6fe}.badge-info img{margin-right:.5rem;margin-left:-.5rem}.badge-dark{background-color:#a7a7ca}.badge-dark img{margin-right:.5rem;margin-left:-.5rem}.loading{width:50px}.add-border .row{border-top:solid 1px #dadae9;border-left:solid 1px #dadae9;border-right:solid 1px #dadae9;padding:.6rem;margin:0}.add-border .form-row{border-top:solid 1px #dadae9;margin:0;padding-top:2rem}.add-border-single-row .row{border:solid 1px #dadae9;padding:.75rem;margin:0}.add-border-single-row-bottom{border-bottom:solid 1px #dadae9}.remove-sides{border-left:none!important;border-right:none!important}.card-box{border:solid 1px #dadae9;padding:1.75rem .75rem}.alert h6{margin-bottom:8px}.alert small{font-size:15px}.alert-primary{background-color:#f2f1fd;border-color:#9f96f2;color:#7668ed}.alert-success{background-color:#dbf1e0;border-color:#87d098;color:#20512c}.alert-secondary{background-color:#fafafc;border-color:#dadae9;color:#4a4a7b}.alert-danger{background-color:#ffeae9;border-color:#fea49d;color:#fe756a}.alert-warning{background-color:#faf4ca;border-color:#f1e16d;color:#333564}.alert-info{background-color:#eef7fd;border-color:#95cdf0;color:#333564}.section-divider:after{height:1px;margin-left:1rem;flex-grow:1;align-self:center;background-color:#dadae9;content:""}.section-divider-btn{display:flex;align-items:center}.section-divider-btn__text{display:flex;flex-grow:1;align-items:center}.section-divider-btn__text:after{height:1px;flex-grow:1;margin-left:15px;background-color:#dadae9;content:""}.table .thead-light th{background-color:#fafafc;border-color:#dadae9;color:#4a4a7b;border-bottom:0}.table-hover tbody tr:hover td{background-color:#f2f1fd}.bg-grad{background-color:#6a57ee;background-image:linear-gradient(to bottom,#6a57ee 0%,#3a3f77 100%);background-position:3% 3%,top right,97% bottom,bottom left;background-repeat:no-repeat}.spinner{height:100%}.spinner>p{display:table-cell;text-align:center;width:100%;vertical-align:middle}.spinner>span{display:block;text-align:left;width:100%;min-width:24px;height:100%;min-height:24px;background-image:url(/static/white-progress-spinner.gif);background-repeat:no-repeat;background-position-x:center;background-position-y:center}.tooltip-bg .tooltip-inner{background-color:#7668ed;font-size:11px;text-align:left}.bs-tooltip-right .arrow:before{border-right-color:#7668ed}.bs-tooltip-top .arrow:before{border-top-color:#7668ed}.bs-tooltip-bottom .arrow:before{border-bottom-color:#7668ed}.bs-tooltip-left .arrow:before{border-left-color:#7668ed}.arrow{position:relative;overflow:hidden;margin-right:5px;display:inline-block}.arrow-right{background-image:url(/static/svg/arrow-right.svg);background-repeat:no-repeat;background-position:center;height:12px;width:12px;top:0;left:0}.arrow-down{background-image:url(/static/svg/arrow-down.svg);background-repeat:no-repeat;background-position:center;height:12px;width:12px;top:0;left:0}.drop-zone{border:2px dashed #7668ED;border-radius:5px;height:100px;margin:auto auto 48px;background-color:#e5e2ff}.drop-zone-content{margin-top:25px;align-items:center;color:#0782d0;display:flex;height:50px;justify-content:center}.jsoneditor{--jse-theme-color: #7668ED;--jes-theme-light-color: #A69BFF;--jse-button-primary-background: #7668ED;--jse-message-success-background: #A69BFF} diff --git a/console/ui/package-lock.json b/console/ui/package-lock.json index d7684a488c..9a56bbb979 100644 --- a/console/ui/package-lock.json +++ b/console/ui/package-lock.json @@ -18,15 +18,16 @@ "@angular/platform-browser": "^15.2.2", "@angular/platform-browser-dynamic": "^15.2.2", "@angular/router": "^15.2.2", - "@ng-bootstrap/ng-bootstrap": "^8.0.1", - "@ng-select/ng-select": "^5.0.14", + "@ng-bootstrap/ng-bootstrap": "^14.0.0", + "@ng-select/ng-select": "^10.0.0", + "@popperjs/core": "^2.11.8", "@scarf/scarf": "^1.1.1", "@swimlane/ngx-charts": "^16.0.0", "ace-builds": "^1.4.12", "ajv": "^8.12.0", "file-saver": "^2.0.5", "ngx-file-drop": "^13.0.0", - "ngx-segment-analytics": "^1.7.0", + "ngx-segment-analytics": "^16.1.0", "rxjs": "~6.6.3", "tslib": "^2.0.1", "vanilla-jsoneditor": "^0.15.1", @@ -61,12 +62,12 @@ } }, "node_modules/@angular-devkit/architect": { - "version": "0.1502.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1502.2.tgz", - "integrity": "sha512-+NE2IV+tuPgcBdC+1ac7eYIBqZDH0VskXTqbhHiRKySbK0vF3/cwTw6Ie07phl0xC1dxLXeRE52L5YwX5jERFQ==", + "version": "0.1502.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1502.9.tgz", + "integrity": "sha512-CFn+LbtYeLG7WqO+BBSjogl764StHpwgfJnNAXQ/3UouUktZ92z4lxhUm0PwIPb5k0lILsf81ubcS1vzwoXEEg==", "dev": true, "dependencies": { - "@angular-devkit/core": "15.2.2", + "@angular-devkit/core": "15.2.9", "rxjs": "6.6.7" }, "engines": { @@ -75,34 +76,16 @@ "yarn": ">= 1.13.0" } }, - "node_modules/@angular-devkit/architect/node_modules/rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/@angular-devkit/architect/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, "node_modules/@angular-devkit/build-angular": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-15.2.2.tgz", - "integrity": "sha512-iSav72D66ZguuIg7yZz/VcbrITidRmjBUApu1GAVfXd4rYZhdWygR072LAsAUNnSDAGwmIICFzj86c8LxYOtzA==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-15.2.9.tgz", + "integrity": "sha512-djOo2Q22zLrxPccSbINz93hD+pES/nNPoze4Ys/0IdtMlLmxO/YGsA+FG5eNeNAf2jK/JRoNydaYOh7XpGoCzA==", "dev": true, "dependencies": { "@ampproject/remapping": "2.2.0", - "@angular-devkit/architect": "0.1502.2", - "@angular-devkit/build-webpack": "0.1502.2", - "@angular-devkit/core": "15.2.2", + "@angular-devkit/architect": "0.1502.9", + "@angular-devkit/build-webpack": "0.1502.9", + "@angular-devkit/core": "15.2.9", "@babel/core": "7.20.12", "@babel/generator": "7.20.14", "@babel/helper-annotate-as-pure": "7.18.6", @@ -114,7 +97,7 @@ "@babel/runtime": "7.20.13", "@babel/template": "7.20.7", "@discoveryjs/json-ext": "0.5.7", - "@ngtools/webpack": "15.2.2", + "@ngtools/webpack": "15.2.9", "ansi-colors": "4.1.3", "autoprefixer": "10.4.13", "babel-loader": "9.1.2", @@ -147,14 +130,14 @@ "rxjs": "6.6.7", "sass": "1.58.1", "sass-loader": "13.2.0", - "semver": "7.3.8", + "semver": "7.5.3", "source-map-loader": "4.0.1", "source-map-support": "0.5.21", "terser": "5.16.3", "text-table": "0.2.0", "tree-kill": "1.2.2", "tslib": "2.5.0", - "webpack": "5.75.0", + "webpack": "5.76.1", "webpack-dev-middleware": "6.0.1", "webpack-dev-server": "4.11.1", "webpack-merge": "5.8.0", @@ -203,220 +186,19 @@ } } }, - "node_modules/@angular-devkit/build-angular/node_modules/@babel/generator": { - "version": "7.20.14", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.14.tgz", - "integrity": "sha512-AEmuXHdcD3A52HHXxaTmYlb8q/xMEhoRP67B3T4Oq7lbmSoqroMZzjnGj3+i1io3pdnF8iBYVu4Ilj+c4hBxYg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.20.7", - "@jridgewell/gen-mapping": "^0.3.2", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/esbuild": { - "version": "0.17.8", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.8.tgz", - "integrity": "sha512-g24ybC3fWhZddZK6R3uD2iF/RIPnRpwJAqLov6ouX3hMbY4+tKolP0VMF3zuIYCaXun+yHwS5IPQ91N2BT191g==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.17.8", - "@esbuild/android-arm64": "0.17.8", - "@esbuild/android-x64": "0.17.8", - "@esbuild/darwin-arm64": "0.17.8", - "@esbuild/darwin-x64": "0.17.8", - "@esbuild/freebsd-arm64": "0.17.8", - "@esbuild/freebsd-x64": "0.17.8", - "@esbuild/linux-arm": "0.17.8", - "@esbuild/linux-arm64": "0.17.8", - "@esbuild/linux-ia32": "0.17.8", - "@esbuild/linux-loong64": "0.17.8", - "@esbuild/linux-mips64el": "0.17.8", - "@esbuild/linux-ppc64": "0.17.8", - "@esbuild/linux-riscv64": "0.17.8", - "@esbuild/linux-s390x": "0.17.8", - "@esbuild/linux-x64": "0.17.8", - "@esbuild/netbsd-x64": "0.17.8", - "@esbuild/openbsd-x64": "0.17.8", - "@esbuild/sunos-x64": "0.17.8", - "@esbuild/win32-arm64": "0.17.8", - "@esbuild/win32-ia32": "0.17.8", - "@esbuild/win32-x64": "0.17.8" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/rxjs/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/@angular-devkit/build-angular/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@angular-devkit/build-angular/node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, "node_modules/@angular-devkit/build-angular/node_modules/tslib": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", "dev": true }, - "node_modules/@angular-devkit/build-angular/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@angular-devkit/build-webpack": { - "version": "0.1502.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1502.2.tgz", - "integrity": "sha512-y/K6mi4oYjxdSuktdI/HznfxwWc2U8d6SJHdQeoPA6TRsBbWjEk1gcOt3f54PIsExLiDe6Oq1KjbfLTpNSu0kA==", + "version": "0.1502.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1502.9.tgz", + "integrity": "sha512-VzMXoZjrbL1XlcSegqpZCBDbVvKFGPs3cKp4bXDD5ht95jcCyJPk5FA/wrh0pGGwbOF8ae/XOWFcPRzctC35iA==", "dev": true, "dependencies": { - "@angular-devkit/architect": "0.1502.2", + "@angular-devkit/architect": "0.1502.9", "rxjs": "6.6.7" }, "engines": { @@ -429,28 +211,10 @@ "webpack-dev-server": "^4.0.0" } }, - "node_modules/@angular-devkit/build-webpack/node_modules/rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/@angular-devkit/build-webpack/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, "node_modules/@angular-devkit/core": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-15.2.2.tgz", - "integrity": "sha512-YPwDSldpVcuSJuIkXy5iRzaPA78ySXKc80OicHR6XtMsrHlwY7DuxQoSWr+ih9LAqpeeBz9ECMalztwohdy0MA==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-15.2.9.tgz", + "integrity": "sha512-6u44YJ9tEG2hiWITL1rwA9yP6ot4a3cyN/UOMRkYSa/XO2Gz5/dM3U74E2kwg+P1NcxLXffBWl0rz8/Y/lSZyQ==", "dev": true, "dependencies": { "ajv": "8.12.0", @@ -473,53 +237,13 @@ } } }, - "node_modules/@angular-devkit/core/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@angular-devkit/core/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/@angular-devkit/core/node_modules/rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/@angular-devkit/core/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, "node_modules/@angular-devkit/schematics": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-15.2.2.tgz", - "integrity": "sha512-i1yQzzv1bJtVrhWPixdXg61nkR/mO5/mQ6SA8rq9t0NAjs4W08MBZ6TUspPvt4iLy9+W6pImW45tUmnfkdhhdQ==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-15.2.9.tgz", + "integrity": "sha512-o08nE8sTpfq/Fknrr1rzBsM8vY36BDox+8dOo9Zc/KqcVPwDy94YKRzHb+xxVaU9jy1VYeCjy63mkyELy7Z3zQ==", "dev": true, "dependencies": { - "@angular-devkit/core": "15.2.2", + "@angular-devkit/core": "15.2.9", "jsonc-parser": "3.2.0", "magic-string": "0.29.0", "ora": "5.4.1", @@ -531,43 +255,20 @@ "yarn": ">= 1.13.0" } }, - "node_modules/@angular-devkit/schematics/node_modules/rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, + "node_modules/@angular/animations": { + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-15.2.9.tgz", + "integrity": "sha512-GQujLhI0cQFcl4Q8y0oSYKSRnW23GIeSL+Arl4eFufziJ9hGAAQNuesaNs/7i+9UlTHDMkPH3kd5ScXuYYz6wg==", "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/@angular-devkit/schematics/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/@angular/animations": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-15.2.2.tgz", - "integrity": "sha512-2XYJn+my4Gf02QAziO+WJJLOQyw0Ao79xAp6IWj/rUOCxNDlRPY3TwoMqLZVtjSmWxSdmx/fPqd393vPawrPLg==", - "dependencies": { - "tslib": "^2.3.0" + "tslib": "^2.3.0" }, "engines": { "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/core": "15.2.2" + "@angular/core": "15.2.9" } }, - "node_modules/@angular/animations/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, "node_modules/@angular/cdk": { "version": "14.2.7", "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-14.2.7.tgz", @@ -584,27 +285,16 @@ "rxjs": "^6.5.3 || ^7.4.0" } }, - "node_modules/@angular/cdk/node_modules/parse5": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", - "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", - "optional": true - }, - "node_modules/@angular/cdk/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, "node_modules/@angular/cli": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-15.2.2.tgz", - "integrity": "sha512-r0VrQ+3CHp/y6GHzWDD8CPRqtAuV2iUZ1pbl4AiCnjAlUpPBXJMkJ2kzFn6rTlMoqPeFBnjyhTWyL/azi7GEcw==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-15.2.9.tgz", + "integrity": "sha512-mI6hkGyIJDKd8MRiBl3p5chsUhgnluwmpsq3g1FFPw+wv+eXsPYgCiHqXS/OsK+shFxii9XMxoZQO28bJ4NAOQ==", "dev": true, "dependencies": { - "@angular-devkit/architect": "0.1502.2", - "@angular-devkit/core": "15.2.2", - "@angular-devkit/schematics": "15.2.2", - "@schematics/angular": "15.2.2", + "@angular-devkit/architect": "0.1502.9", + "@angular-devkit/core": "15.2.9", + "@angular-devkit/schematics": "15.2.9", + "@schematics/angular": "15.2.9", "@yarnpkg/lockfile": "1.1.0", "ansi-colors": "4.1.3", "ini": "3.0.1", @@ -616,7 +306,7 @@ "ora": "5.4.1", "pacote": "15.1.0", "resolve": "1.22.1", - "semver": "7.3.8", + "semver": "7.5.3", "symbol-observable": "4.0.0", "yargs": "17.6.2" }, @@ -629,102 +319,10 @@ "yarn": ">= 1.13.0" } }, - "node_modules/@angular/cli/node_modules/ini": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.1.tgz", - "integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==", - "dev": true, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/@angular/cli/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@angular/cli/node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/@angular/cli/node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@angular/cli/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@angular/cli/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@angular/cli/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/@angular/cli/node_modules/yargs": { - "version": "17.6.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", - "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", - "dev": true, - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/@angular/common": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-15.2.2.tgz", - "integrity": "sha512-407yHyMR5CGFWjZPeiBNHa4UKwOTTMCNn7gmfi243AxIaPjIHwCDvIOx2w5OfrV+OUKSMIuqMRHLP4eUYkJDjA==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-15.2.9.tgz", + "integrity": "sha512-LM9/UHG2dRrOzlu2KovrFwWIziFMjRxHzSP3Igw6Symw/wIl0kXGq8Fn6RpFP78zmLqnv+IQOoRiby9MCXsI4g==", "dependencies": { "tslib": "^2.3.0" }, @@ -732,19 +330,14 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/core": "15.2.2", + "@angular/core": "15.2.9", "rxjs": "^6.5.3 || ^7.4.0" } }, - "node_modules/@angular/common/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, "node_modules/@angular/compiler": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-15.2.2.tgz", - "integrity": "sha512-Zv2XpyOoiRDzTxkB5YaMx8egEf7hkVYkCSPvES5IXAlcs4lA1SdWHiNk7zstGMjqQlMt6RNgN8E+2BYrOJh6DQ==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-15.2.9.tgz", + "integrity": "sha512-MoKugbjk+E0wRBj12uvIyDLELlVLonnqjA2+XiF+7FxALIeyds3/qQeEoMmYIqAbN3NnTT5pV92RxWwG4tHFwA==", "dependencies": { "tslib": "^2.3.0" }, @@ -752,7 +345,7 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/core": "15.2.2" + "@angular/core": "15.2.9" }, "peerDependenciesMeta": { "@angular/core": { @@ -761,9 +354,9 @@ } }, "node_modules/@angular/compiler-cli": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-15.2.2.tgz", - "integrity": "sha512-tS4RrqA0JI37rsqtTjKqkpP9pD21pG+Wxqki3X/w/tjISh7xuXCyG6vSbOsAjXAqkC8LwJN1S1IF1zp4F+mcLQ==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-15.2.9.tgz", + "integrity": "sha512-zsbI8G2xHOeYWI0hjFzrI//ZhZV9il/uQW5dAimfwJp06KZDeXZ3PdwY9JQslf6F+saLwOObxy6QMrIVvfjy9w==", "dependencies": { "@babel/core": "7.19.3", "@jridgewell/sourcemap-codec": "^1.4.14", @@ -785,21 +378,10 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/compiler": "15.2.2", + "@angular/compiler": "15.2.9", "typescript": ">=4.8.2 <5.0" } }, - "node_modules/@angular/compiler-cli/node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "dependencies": { - "@babel/highlight": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@angular/compiler-cli/node_modules/@babel/core": { "version": "7.19.3", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", @@ -830,34 +412,13 @@ } }, "node_modules/@angular/compiler-cli/node_modules/@babel/core/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, - "node_modules/@angular/compiler-cli/node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@angular/compiler-cli/node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@angular/compiler-cli/node_modules/magic-string": { "version": "0.27.0", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", @@ -869,20 +430,10 @@ "node": ">=12" } }, - "node_modules/@angular/compiler-cli/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, - "node_modules/@angular/compiler/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, "node_modules/@angular/core": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-15.2.2.tgz", - "integrity": "sha512-Rn9LKeeryV0hVrOxlOPnQJdgUxbKdB8NByhptzB6XSzZ0ODx0ZN+iYVRLqu0Fu95zh5oSeYYU+2yT6+FIIX65w==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-15.2.9.tgz", + "integrity": "sha512-w46Z1yUXCQfKV7XfnamOoLA2VD0MVUUYVrUjO73mHSskDXSXxfZAEHO9kfUS71Cj35PvhP3mbkqWscpea2WeYg==", "dependencies": { "tslib": "^2.3.0" }, @@ -894,15 +445,10 @@ "zone.js": "~0.11.4 || ~0.12.0 || ~0.13.0" } }, - "node_modules/@angular/core/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, "node_modules/@angular/forms": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-15.2.2.tgz", - "integrity": "sha512-X2cXhD8gQBn03RZJ5XD2mgf90vyeH2HABbNLelv3GCQRgn4SCTHM4cP1J9OCdX0r6cz+JBjz13fDChdWb624Mg==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-15.2.9.tgz", + "integrity": "sha512-sk0pC2EFi2Ohg5J0q0NYptbT+2WOkoiERSMYA39ncDvlSZBWsNlxpkbGUSck7NIxjK2QfcVN1ldGbHlZTFvtqg==", "dependencies": { "tslib": "^2.3.0" }, @@ -910,30 +456,25 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/common": "15.2.2", - "@angular/core": "15.2.2", - "@angular/platform-browser": "15.2.2", + "@angular/common": "15.2.9", + "@angular/core": "15.2.9", + "@angular/platform-browser": "15.2.9", "rxjs": "^6.5.3 || ^7.4.0" } }, - "node_modules/@angular/forms/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, "node_modules/@angular/language-service": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-15.2.2.tgz", - "integrity": "sha512-U91MPkBULdvzYXeuuah+n6AUEJ335C0MRUrDGHS1XfD3QQd/+nvC2lgGz9g1qhW9iYO4SNKOtIFSsUAavHQdVQ==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-15.2.9.tgz", + "integrity": "sha512-B7lP4q/eHge2lZezOXS96EYzVf4stMCWfOnz7+pUUi0HbF+A5QCV65SWQddS/M+NM2jj8N2L/j+6UCH8lJjTQA==", "dev": true, "engines": { "node": "^14.20.0 || ^16.13.0 || >=18.10.0" } }, "node_modules/@angular/localize": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-15.2.2.tgz", - "integrity": "sha512-n9k1BCYybkq8i9Nm4l9rESI29Us51pMpj4J7+FWjb80UyDf5PDAaEmkehVFPKG2lCVx+C+MrgU2jZ18dpxkRCA==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-15.2.9.tgz", + "integrity": "sha512-7ZGK3BWwIukSK5ORWjM3y/FYj7/ZJFl1RO1GCeL/tHD4nq0kd3q3pYvcpnoi9HGl+q8AkL24xdsfzgCFo8SB0g==", "dependencies": { "@babel/core": "7.19.3", "glob": "8.1.0", @@ -948,19 +489,8 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/compiler": "15.2.2", - "@angular/compiler-cli": "15.2.2" - } - }, - "node_modules/@angular/localize/node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "dependencies": { - "@babel/highlight": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" + "@angular/compiler": "15.2.9", + "@angular/compiler-cli": "15.2.9" } }, "node_modules/@angular/localize/node_modules/@babel/core": { @@ -992,76 +522,18 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@angular/localize/node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@angular/localize/node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@angular/localize/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@angular/localize/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@angular/localize/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@angular/localize/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, "node_modules/@angular/platform-browser": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-15.2.2.tgz", - "integrity": "sha512-kH1vUsFF7iRQ+DCQ/UkQtCWAzXzTDRO1p40RMf2IzDduESMcMwyWtheZflOuL1l4ubMbLitQiL846Hj/4CUl4g==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-15.2.9.tgz", + "integrity": "sha512-ufCHeSX+U6d43YOMkn3igwfqtlozoCXADcbyfUEG8m2y9XASobqmCKvdSk/zfl62oyiA8msntWBJVBE2l4xKXg==", "dependencies": { "tslib": "^2.3.0" }, @@ -1069,9 +541,9 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/animations": "15.2.2", - "@angular/common": "15.2.2", - "@angular/core": "15.2.2" + "@angular/animations": "15.2.9", + "@angular/common": "15.2.9", + "@angular/core": "15.2.9" }, "peerDependenciesMeta": { "@angular/animations": { @@ -1080,9 +552,9 @@ } }, "node_modules/@angular/platform-browser-dynamic": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-15.2.2.tgz", - "integrity": "sha512-kYn57NkjOMkLHrWyZiqwfHUg4Td5hCrq9kADJRimbgSKusi9yHN7Whkd5HhySpF4yZU15XXsJHnl1KvqGNtWOw==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-15.2.9.tgz", + "integrity": "sha512-ZIYDM6MShblb8OyV1m4+18lJJ2LCeICmeg2uSbpFYptYBSOClrTiYOOFVDJvn7HLvNzljLs16XPrgyaYVqNpcw==", "dependencies": { "tslib": "^2.3.0" }, @@ -1090,26 +562,16 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/common": "15.2.2", - "@angular/compiler": "15.2.2", - "@angular/core": "15.2.2", - "@angular/platform-browser": "15.2.2" + "@angular/common": "15.2.9", + "@angular/compiler": "15.2.9", + "@angular/core": "15.2.9", + "@angular/platform-browser": "15.2.9" } }, - "node_modules/@angular/platform-browser-dynamic/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, - "node_modules/@angular/platform-browser/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, "node_modules/@angular/router": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-15.2.2.tgz", - "integrity": "sha512-Yo9l9ZEWkKERvc8Fu9R5NNmUWcOB8ic+MX4GDWYOlgAnK0ZoM1/m0G2OtKFNmLwTj9CMfDqE0n5QZPbLCvjR9w==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-15.2.9.tgz", + "integrity": "sha512-UCbh5DLSDhybv0xKYT7kGQMfOVdyhHIHOZz5EYVebbhste6S+W1LE57vTHq7QtxJsyKBa/WSkaUkCLXD6ntCAg==", "dependencies": { "tslib": "^2.3.0" }, @@ -1117,17 +579,12 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/common": "15.2.2", - "@angular/core": "15.2.2", - "@angular/platform-browser": "15.2.2", + "@angular/common": "15.2.9", + "@angular/core": "15.2.9", + "@angular/platform-browser": "15.2.9", "rxjs": "^6.5.3 || ^7.4.0" } }, - "node_modules/@angular/router/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, "node_modules/@assemblyscript/loader": { "version": "0.10.1", "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.10.1.tgz", @@ -1135,18 +592,21 @@ "dev": true }, "node_modules/@babel/code-frame": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", - "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", - "dev": true, + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", "dependencies": { - "@babel/highlight": "^7.10.4" + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.21.0.tgz", - "integrity": "sha512-gMuZsmsgxk/ENC3O/fRw5QY8A9/uxQbbCEypnLIiYYc/qVJtEV7ouxC3EllIIwNzMqAQee5tanFabWsUOutS7g==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz", + "integrity": "sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==", "engines": { "node": ">=6.9.0" } @@ -1180,54 +640,21 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "dependencies": { - "@babel/highlight": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/generator": { - "version": "7.21.1", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.21.1.tgz", - "integrity": "sha512-1lT45bAYlQhFn/BHivJs43AiW2rg3/UbLyShGfF3C0KmHvO5fSghWd5kBJy30kpRRucGzXStvnnCFniCR2kXAA==", + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.14.tgz", + "integrity": "sha512-AEmuXHdcD3A52HHXxaTmYlb8q/xMEhoRP67B3T4Oq7lbmSoqroMZzjnGj3+i1io3pdnF8iBYVu4Ilj+c4hBxYg==", "dependencies": { - "@babel/types": "^7.21.0", + "@babel/types": "^7.20.7", "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" }, "engines": { @@ -1235,9 +662,9 @@ } }, "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dependencies": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -1260,58 +687,86 @@ } }, "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", - "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz", + "integrity": "sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==", "dev": true, "dependencies": { - "@babel/helper-explode-assignable-expression": "^7.18.6", - "@babel/types": "^7.18.9" + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz", - "integrity": "sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", + "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", "dependencies": { - "@babel/compat-data": "^7.20.5", - "@babel/helper-validator-option": "^7.18.6", - "browserslist": "^4.21.3", + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.15", + "browserslist": "^4.21.9", "lru-cache": "^5.1.1", - "semver": "^6.3.0" + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "node_modules/@babel/helper-compilation-targets/node_modules/browserslist": { + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.0.tgz", + "integrity": "sha512-v+Jcv64L2LbfTC6OnRcaxtqJNJuQAVhZKSJfR/6hn7lhnChUXl4amwVviqN1k411BB+3rRoKMitELRn1CojeRA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001539", + "electron-to-chromium": "^1.4.530", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.13" + }, "bin": { - "semver": "bin/semver.js" - } - }, + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.21.0.tgz", - "integrity": "sha512-Q8wNiMIdwsv5la5SPxNYzzkPnjgC0Sy0i7jLkVOCdllu/xcVNkr3TeZzbHBJrj+XXRqzX5uCyCoV9eu6xUG7KQ==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz", + "integrity": "sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-member-expression-to-functions": "^7.21.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.20.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/helper-split-export-declaration": "^7.18.6" + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -1320,14 +775,48 @@ "@babel/core": "^7.0.0" } }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.21.0.tgz", - "integrity": "sha512-N+LaFW/auRSWdx7SHD/HiARwXQju1vXTW4fKr4u5SgBUTm51OKEjKgj+cs00ggW3kEvNqwErnlwuq7Y3xBe4eg==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", + "integrity": "sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "regexpu-core": "^5.3.1" + "@babel/helper-annotate-as-pure": "^7.22.5", + "regexpu-core": "^5.3.1", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -1336,6 +825,27 @@ "@babel/core": "^7.0.0" } }, + "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/@babel/helper-define-polyfill-provider": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", @@ -1354,137 +864,140 @@ } }, "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-explode-assignable-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", - "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", - "dev": true, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-function-name": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", - "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", + "node_modules/@babel/helper-function-name/node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dependencies": { - "@babel/template": "^7.20.7", - "@babel/types": "^7.21.0" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.21.0.tgz", - "integrity": "sha512-Muu8cdZwNN6mRRNG6lAYErJ5X3bRevgYR2O8wN0yn7jJSnGDu6eG59RfT29JHxGUovyfrh6Pj0XzmR7drNVL3Q==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", + "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", "dev": true, "dependencies": { - "@babel/types": "^7.21.0" + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.21.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.21.2.tgz", - "integrity": "sha512-79yj2AR4U/Oqq/WOV7Lx6hUjau1Zfo4cI+JLAVYeMV5XIlbOhmjEk5ulbTc9fMpmlojzZHkUUxAiK+UKn+hNQQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz", + "integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==", "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.20.2", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.20.7", - "@babel/traverse": "^7.21.2", - "@babel/types": "^7.21.2" + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dependencies": { + "@babel/types": "^7.22.5" + }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", + "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", - "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz", + "integrity": "sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-wrap-function": "^7.18.9", - "@babel/types": "^7.18.9" + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-wrap-function": "^7.22.20" }, "engines": { "node": ">=6.9.0" @@ -1493,41 +1006,53 @@ "@babel/core": "^7.0.0" } }, + "node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-replace-supers": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.20.7.tgz", - "integrity": "sha512-vujDMtB6LVfNW13jhlCrp48QNslK6JXi7lQG736HVbHz/mbf4Dc7tIRh1Xf5C0rF7BP8iiSxGMCmY6Ci1ven3A==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", + "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-member-expression-to-functions": "^7.20.7", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/template": "^7.20.7", - "@babel/traverse": "^7.20.7", - "@babel/types": "^7.20.7" + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-optimise-call-expression": "^7.22.5" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-simple-access": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", - "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", "dependencies": { - "@babel/types": "^7.20.2" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", + "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", "dev": true, "dependencies": { - "@babel/types": "^7.20.0" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1537,6 +1062,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, "dependencies": { "@babel/types": "^7.18.6" }, @@ -1545,70 +1071,100 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", - "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", - "dev": true + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "engines": { + "node": ">=6.9.0" + } }, "node_modules/@babel/helper-validator-option": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", - "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", + "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-wrap-function": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", - "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", + "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", "dev": true, "dependencies": { - "@babel/helper-function-name": "^7.19.0", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" + "@babel/helper-function-name": "^7.22.5", + "@babel/template": "^7.22.15", + "@babel/types": "^7.22.19" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function/node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.0.tgz", - "integrity": "sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA==", + "version": "7.23.1", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.1.tgz", + "integrity": "sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==", "dependencies": { - "@babel/template": "^7.20.7", - "@babel/traverse": "^7.21.0", - "@babel/types": "^7.21.0" + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.0", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers/node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", - "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", - "dev": true, + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", "dependencies": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.21.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.2.tgz", - "integrity": "sha512-URpaIJQwEkEC2T9Kn+Ai6Xe/02iNaVCuT/PtoRz3GPVJVDpPd7mLo+VddTbhCRU9TXqW5mSrQfXZyi8kDKOVpQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", + "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", "bin": { "parser": "bin/babel-parser.js" }, @@ -1617,12 +1173,12 @@ } }, "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", - "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.15.tgz", + "integrity": "sha512-FB9iYlz7rURmRJyXRKEnalYPPdn87H5no108cyuQQyMwlpJ2SJtpIUBI27kdTin956pz+LPypkPVPUTlxOmrsg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1632,14 +1188,14 @@ } }, "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.20.7.tgz", - "integrity": "sha512-sbr9+wNE5aXMBBFBICk01tt7sBf2Oc9ikRFEcem/ZORup9IMUdNhW7/wVLEbbtlWOsEubJet46mHAL2C8+2jKQ==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.15.tgz", + "integrity": "sha512-Hyph9LseGvAeeXzikV88bczhsrLrIZqDPxO+sSmAunMPaGrBGhfMWzCPYTtiW9t+HzSE2wtV8e5cc5P6r1xMDQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-proposal-optional-chaining": "^7.20.7" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-transform-optional-chaining": "^7.22.15" }, "engines": { "node": ">=6.9.0" @@ -1652,6 +1208,7 @@ "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz", "integrity": "sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.18.9", @@ -1670,6 +1227,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", "dev": true, "dependencies": { "@babel/helper-create-class-features-plugin": "^7.18.6", @@ -1686,6 +1244,7 @@ "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.21.0.tgz", "integrity": "sha512-XP5G9MWNUskFuP30IfFSEFB0Z6HzLIUcjYM4bYOPHXl7eiJ9HFv8tWj6TXTN5QODiEhDZAeI4hLok2iHFFV4hw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-static-block instead.", "dev": true, "dependencies": { "@babel/helper-create-class-features-plugin": "^7.21.0", @@ -1703,6 +1262,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", @@ -1719,6 +1279,7 @@ "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.18.9", @@ -1735,6 +1296,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", @@ -1751,6 +1313,7 @@ "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.20.7.tgz", "integrity": "sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", @@ -1767,6 +1330,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", @@ -1783,6 +1347,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", @@ -1799,6 +1364,7 @@ "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz", "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.", "dev": true, "dependencies": { "@babel/compat-data": "^7.20.5", @@ -1818,6 +1384,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", @@ -1834,6 +1401,7 @@ "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", @@ -1851,6 +1419,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.", "dev": true, "dependencies": { "@babel/helper-create-class-features-plugin": "^7.18.6", @@ -1864,9 +1433,10 @@ } }, "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz", - "integrity": "sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw==", + "version": "7.21.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", + "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.18.6", @@ -1885,6 +1455,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.", "dev": true, "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.18.6", @@ -1961,12 +1532,12 @@ } }, "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz", + "integrity": "sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2090,12 +1661,12 @@ } }, "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.20.7.tgz", - "integrity": "sha512-3poA5E7dzDomxj9WXWwuD6A5F3kc7VXwIJO+E+J8qtDtS+pXPAhrgEyh+9GBwBgPq1Z+bB+/JD60lp5jsN7JPQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz", + "integrity": "sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2122,12 +1693,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz", + "integrity": "sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2137,12 +1708,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", - "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.0.tgz", + "integrity": "sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2152,19 +1723,19 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", - "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-replace-supers": "^7.20.7", - "@babel/helper-split-export-declaration": "^7.18.6", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.15.tgz", + "integrity": "sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-split-export-declaration": "^7.22.6", "globals": "^11.1.0" }, "engines": { @@ -2174,14 +1745,38 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.20.7.tgz", - "integrity": "sha512-Lz7MvBK6DTjElHAmfu6bfANzKcxpyNPeYBGEafyA6E5HtRpjpZwU+u7Qrgz/2OR0z+5TvKYbPdphfSaAcZBrYQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz", + "integrity": "sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/template": "^7.20.7" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/template": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2190,13 +1785,27 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-transform-computed-properties/node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.7.tgz", - "integrity": "sha512-Xwg403sRrZb81IVB79ZPqNQME23yhugYVqgTxAhT99h485F4f+GMELFhhOsscDUB7HCswepKeCKLn/GZvUKoBA==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.0.tgz", + "integrity": "sha512-vaMdgNXFkYrB+8lbgniSYWHsgqK5gjaMNcc84bMIOMRLH0L9AqYq3hwMdvnyqj1OPqea8UtjPEuS/DCenah1wg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2206,13 +1815,13 @@ } }, "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", - "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.22.5.tgz", + "integrity": "sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2222,12 +1831,12 @@ } }, "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", - "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.22.5.tgz", + "integrity": "sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2237,13 +1846,13 @@ } }, "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", - "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.22.5.tgz", + "integrity": "sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==", "dev": true, "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2253,12 +1862,12 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.0.tgz", - "integrity": "sha512-LlUYlydgDkKpIY7mcBWvyPPmMcOphEyYA27Ef4xpbh1IiDNLr0kZsos2nf92vz3IccvJI25QUwp86Eo5s6HmBQ==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.15.tgz", + "integrity": "sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2268,14 +1877,14 @@ } }, "node_modules/@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz", + "integrity": "sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==", "dev": true, "dependencies": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2285,12 +1894,12 @@ } }, "node_modules/@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz", + "integrity": "sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2300,12 +1909,12 @@ } }, "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz", + "integrity": "sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2315,13 +1924,13 @@ } }, "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", - "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.0.tgz", + "integrity": "sha512-xWT5gefv2HGSm4QHtgc1sYPbseOyf+FFDo2JbpE25GWl5BqTGO9IMwTYJRoIdjsF85GE+VegHxSCUt5EvoYTAw==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-module-transforms": "^7.23.0", + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2331,14 +1940,14 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.21.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.2.tgz", - "integrity": "sha512-Cln+Yy04Gxua7iPdj6nOV96smLGjpElir5YwzF0LBPKoPlLDNJePNlrGGaybAJkd0zKRnOVXOgizSqPYMNYkzA==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.0.tgz", + "integrity": "sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.21.2", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-simple-access": "^7.20.2" + "@babel/helper-module-transforms": "^7.23.0", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2348,15 +1957,15 @@ } }, "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.20.11.tgz", - "integrity": "sha512-vVu5g9BPQKSFEmvt2TA4Da5N+QVS66EX21d8uoOihC+OCpUoGvzVsXeqFdtAEfVa5BILAeFt+U7yVmLbQnAJmw==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.0.tgz", + "integrity": "sha512-qBej6ctXZD2f+DhlOC9yO47yEYgUh5CZNz/aBoH4j/3NOlRfJXJbY7xDQCqQVf9KbrqGzIWER1f23doHGrIHFg==", "dev": true, "dependencies": { - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-validator-identifier": "^7.19.1" + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-module-transforms": "^7.23.0", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20" }, "engines": { "node": ">=6.9.0" @@ -2365,23 +1974,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-modules-systemjs/node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", - "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.22.5.tgz", + "integrity": "sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2391,13 +1991,13 @@ } }, "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.20.5.tgz", - "integrity": "sha512-mOW4tTzi5iTLnw+78iEq3gr8Aoq4WNRGpmSlrogqaiCBoR1HFhpU4JkpQFOHfeYx3ReVIFWOQJS4aZBRvuZ6mA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", + "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.20.5", - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2407,12 +2007,12 @@ } }, "node_modules/@babel/plugin-transform-new-target": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", - "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.5.tgz", + "integrity": "sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2422,13 +2022,30 @@ } }, "node_modules/@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz", + "integrity": "sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.0.tgz", + "integrity": "sha512-sBBGXbLJjxTzLBF5rFWaikMnOGOk/BmK6vVByIdEggZ7Vn6CvWXZyRkkLFK6WE0IF8jSliyOkUN6SScFgzCM0g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" }, "engines": { "node": ">=6.9.0" @@ -2438,12 +2055,12 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.7.tgz", - "integrity": "sha512-WiWBIkeHKVOSYPO0pWkxGPfKeWrCJyD3NJ53+Lrp/QMSZbsVPovrVl2aWZ19D/LTVnaDv5Ap7GJ/B2CTOZdrfA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.15.tgz", + "integrity": "sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2453,12 +2070,12 @@ } }, "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz", + "integrity": "sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2468,13 +2085,13 @@ } }, "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.20.5.tgz", - "integrity": "sha512-kW/oO7HPBtntbsahzQ0qSE3tFvkFwnbozz3NWFhLGqH75vLEg+sCGngLlhVkePlCs3Jv0dBBHDzCHxNiFAQKCQ==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.22.10.tgz", + "integrity": "sha512-F28b1mDt8KcT5bUyJc/U9nwzw6cV+UmTeRlXYIl2TNqMMJif0Jeey9/RQ3C4NOd2zp0/TRsDns9ttj2L523rsw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "regenerator-transform": "^0.15.1" + "@babel/helper-plugin-utils": "^7.22.5", + "regenerator-transform": "^0.15.2" }, "engines": { "node": ">=6.9.0" @@ -2484,12 +2101,12 @@ } }, "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", - "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.22.5.tgz", + "integrity": "sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2519,21 +2136,21 @@ } }, "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz", + "integrity": "sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2543,13 +2160,13 @@ } }, "node_modules/@babel/plugin-transform-spread": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", - "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz", + "integrity": "sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2559,12 +2176,12 @@ } }, "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", - "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.22.5.tgz", + "integrity": "sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2574,12 +2191,12 @@ } }, "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz", + "integrity": "sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2589,12 +2206,12 @@ } }, "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", - "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.22.5.tgz", + "integrity": "sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2604,12 +2221,12 @@ } }, "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", - "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.22.10.tgz", + "integrity": "sha512-lRfaRKGZCBqDlRU3UIFovdp9c9mEvlylmpod0/OatICsSfuQ9YFthRo1tpTkGsklEefZdqlEFdY4A2dwTb6ohg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2619,13 +2236,13 @@ } }, "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", - "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.22.5.tgz", + "integrity": "sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -2724,18 +2341,18 @@ } }, "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6.tgz", + "integrity": "sha512-ID2yj6K/4lKfhuU3+EX4UvNbIt7eACFbHmNUjzA+ep+B5971CknnA/9DEWKbRokfbbtblxxxXFJJrH47UEAMVg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", @@ -2745,7 +2362,7 @@ "esutils": "^2.0.2" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" } }, "node_modules/@babel/regjsgen": { @@ -2779,51 +2396,19 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/template/node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "dependencies": { - "@babel/highlight": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template/node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template/node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/traverse": { - "version": "7.21.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.21.2.tgz", - "integrity": "sha512-ts5FFU/dSUPS13tv8XiEObDu9K+iagEKME9kAbaP7r0Y9KtZJZ+NGndDvWoRAYNpeWafbpFeki3q9QoMD6gxyw==", - "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.21.1", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.21.2", - "@babel/types": "^7.21.2", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.0.tgz", + "integrity": "sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==", + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -2831,59 +2416,57 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/traverse/node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "node_modules/@babel/traverse/node_modules/@babel/generator": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", + "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", "dependencies": { - "@babel/highlight": "^7.18.6" + "@babel/types": "^7.23.0", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/traverse/node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "node_modules/@babel/traverse/node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dependencies": { + "@babel/types": "^7.22.5" + }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/traverse/node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "node_modules/@babel/traverse/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { - "node": ">=6.9.0" + "node": ">=6.0.0" } }, "node_modules/@babel/types": { - "version": "7.21.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.2.tgz", - "integrity": "sha512-3wRZSs7jiFaB8AjxiiD+VqN5DTG2iRvJGQ+qYFrs/654lg6kGTQWIOFjlBo5RaXuAZjBmP3+OQH4dmhqiiyYxw==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", + "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", "dependencies": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/types/node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", @@ -3245,11 +2828,101 @@ "node": ">=12" } }, - "node_modules/@gar/promisify": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", - "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", - "dev": true + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", @@ -3289,9 +2962,9 @@ } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", "engines": { "node": ">=6.0.0" } @@ -3305,9 +2978,9 @@ } }, "node_modules/@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", + "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", "dev": true, "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", @@ -3315,9 +2988,9 @@ } }, "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dev": true, "dependencies": { "@jridgewell/set-array": "^1.0.1", @@ -3329,17 +3002,17 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", - "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", + "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@leichtgewicht/ip-codec": { @@ -3348,42 +3021,64 @@ "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==", "dev": true }, + "node_modules/@lukeed/csprng": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", + "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@lukeed/uuid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@lukeed/uuid/-/uuid-2.0.1.tgz", + "integrity": "sha512-qC72D4+CDdjGqJvkFMMEAtancHUQ7/d/tAiHf64z8MopFDmcrtbcJuerDtFceuAfQJ2pDSfCKCtbqoGBNnwg0w==", + "peer": true, + "dependencies": { + "@lukeed/csprng": "^1.1.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@ng-bootstrap/ng-bootstrap": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-8.0.1.tgz", - "integrity": "sha512-v/TyLbXOguEGiV1SuNzHoBeahGwCihBcB96LJz91DexPbM403jiLNxhoFtEYbAPRoPI9v3MILxSgOwCkdyeBVw==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-14.2.0.tgz", + "integrity": "sha512-nqEKVXauSontGKqC5WSKpch5TiAGDZB3hluvxkINS0r9LUE6sBQRP3qeYOe7Uwu+UbQcj28NG3qFHhpfnG8KHw==", "dependencies": { - "tslib": "^2.0.0" + "tslib": "^2.3.0" }, "peerDependencies": { - "@angular/common": "^10.0.0", - "@angular/core": "^10.0.0", - "@angular/forms": "^10.0.0", - "@angular/localize": "^10.0.0", - "rxjs": "^6.5.5" + "@angular/common": "^15.0.0", + "@angular/core": "^15.0.0", + "@angular/forms": "^15.0.0", + "@angular/localize": "^15.0.0", + "@popperjs/core": "^2.11.6", + "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@ng-select/ng-select": { - "version": "5.0.14", - "resolved": "https://registry.npmjs.org/@ng-select/ng-select/-/ng-select-5.0.14.tgz", - "integrity": "sha512-BFloLZQhfcaHVj7Dmk5EorNe7teGlee/MosLGWrXm1UGWjovtumc4FAs4bbahLilVtUBNFi8R0opv48jIOd0fA==", + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/@ng-select/ng-select/-/ng-select-10.0.4.tgz", + "integrity": "sha512-Vc/JIgcFkSgf47cX7+pQQo9HYhDktfqrY7o/ZPGMvu63P7E9d1MibVipqmcLbgms6Ac9lu621CDZPGHdxag7hA==", "dependencies": { - "tslib": "^2.0.0" + "tslib": "^2.3.1" }, "engines": { - "node": ">= 6.9.0", - "npm": ">= 3.0.0" + "node": ">= 12.20.0", + "npm": ">= 6.0.0" }, "peerDependencies": { - "@angular/common": ">=10.0.0 <11.0.0", - "@angular/core": ">=10.0.0 <11.0.0", - "@angular/forms": ">=10.0.0 <11.0.0" + "@angular/common": "<16.0.0", + "@angular/core": "<16.0.0", + "@angular/forms": "<16.0.0" } }, "node_modules/@ngtools/webpack": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-15.2.2.tgz", - "integrity": "sha512-xHd5CC0Wi0a/CKfKoOC4Bwb1FVjy0esj22eQAkVh0iDKeiAQH4UG/VRmsdSHvto1z0IzGbMSt4hRbv4h2aYIdw==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-15.2.9.tgz", + "integrity": "sha512-nOXUGqKkAEMlCcrhkDwWDzcVdKNH7MNRUXfNzsFc9zdeR/5p3qt6SVMN7OOE3NREyI7P6nzARc3S+6QDBjf3Jg==", "dev": true, "engines": { "node": "^14.20.0 || ^16.13.0 || >=18.10.0", @@ -3444,14 +3139,13 @@ } }, "node_modules/@npmcli/git": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-4.0.3.tgz", - "integrity": "sha512-8cXNkDIbnXPVbhXMmQ7/bklCAjtmPaXfI9aEM4iH+xSuEHINLMHhlfESvVwdqmHJRJkR48vNJTSUvoF6GRPSFA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-4.1.0.tgz", + "integrity": "sha512-9hwoB3gStVfa0N31ymBmrX+GuDGdVA/QWShZVqE0HK2Af+7QGGrCTbZia/SW0ImUTjTne7SP91qxDmtXvDHRPQ==", "dev": true, "dependencies": { "@npmcli/promise-spawn": "^6.0.0", "lru-cache": "^7.4.4", - "mkdirp": "^1.0.4", "npm-pick-manifest": "^8.0.0", "proc-log": "^3.0.0", "promise-inflight": "^1.0.1", @@ -3472,162 +3166,3207 @@ "node": ">=12" } }, - "node_modules/@npmcli/git/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "node_modules/@npmcli/installed-package-contents": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-2.0.2.tgz", + "integrity": "sha512-xACzLPhnfD51GKvTOOuNX2/V4G4mz9/1I2MfDoye9kBM3RYe5g2YbscsaGoTlaWqkxeiapBWyseULVKpSVHtKQ==", "dev": true, + "dependencies": { + "npm-bundled": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, "bin": { - "mkdirp": "bin/cmd.js" + "installed-package-contents": "lib/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/node-gyp": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz", + "integrity": "sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/promise-spawn": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-6.0.2.tgz", + "integrity": "sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg==", + "dev": true, + "dependencies": { + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/run-script": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-6.0.2.tgz", + "integrity": "sha512-NCcr1uQo1k5U+SYlnIrbAh3cxy+OQT1VtqiAbxdymSlptbzBb62AjH2xXgjNCoP073hoa1CfCAcwoZ8k96C4nA==", + "dev": true, + "dependencies": { + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/promise-spawn": "^6.0.0", + "node-gyp": "^9.0.0", + "read-package-json-fast": "^3.0.0", + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@scarf/scarf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.3.0.tgz", + "integrity": "sha512-lHKK8M5CTcpFj2hZDB3wIjb0KAbEOgDmiJGDv1WBRfQgRm/a8/XMEkG/N1iM01xgbUDsPQwi42D+dFo1XPAKew==", + "hasInstallScript": true + }, + "node_modules/@schematics/angular": { + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-15.2.9.tgz", + "integrity": "sha512-0Lit6TLNUwcAYiEkXgZp3vY9xAO1cnZCBXuUcp+6v+Ddnrt2w/YOiGe74p21cYe0StkTpTljsqsKBTiX7TMjQg==", + "dev": true, + "dependencies": { + "@angular-devkit/core": "15.2.9", + "@angular-devkit/schematics": "15.2.9", + "jsonc-parser": "3.2.0" + }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@segment/analytics-core": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@segment/analytics-core/-/analytics-core-1.3.1.tgz", + "integrity": "sha512-KGblJ8WQNC4t0j31zeyYBm2thHWuPULNAoP7waU5ts7Asz9ipvGoHqFSLG6warqvcnBdkiRbNam242zmxX53oA==", + "peer": true, + "dependencies": { + "@lukeed/uuid": "^2.0.0", + "dset": "^3.1.2", + "tslib": "^2.4.1" + } + }, + "node_modules/@segment/analytics-next": { + "version": "1.56.0", + "resolved": "https://registry.npmjs.org/@segment/analytics-next/-/analytics-next-1.56.0.tgz", + "integrity": "sha512-c28NOcyB64ARNCwQclPLr86yIu+SidqUgp7LlsGgGaA8d8nmrKJr1G8CSAcWt7X/ULPL7o/NjtY2HeGqLjnQGA==", + "peer": true, + "dependencies": { + "@lukeed/uuid": "^2.0.0", + "@segment/analytics-core": "1.3.1", + "@segment/analytics.js-video-plugins": "^0.2.1", + "@segment/facade": "^3.4.9", + "@segment/tsub": "^2.0.0", + "dset": "^3.1.2", + "js-cookie": "3.0.1", + "node-fetch": "^2.6.7", + "spark-md5": "^3.0.1", + "tslib": "^2.4.1", + "unfetch": "^4.1.0" + } + }, + "node_modules/@segment/analytics.js-video-plugins": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@segment/analytics.js-video-plugins/-/analytics.js-video-plugins-0.2.1.tgz", + "integrity": "sha512-lZwCyEXT4aaHBLNK433okEKdxGAuyrVmop4BpQqQSJuRz0DglPZgd9B/XjiiWs1UyOankg2aNYMN3VcS8t4eSQ==", + "peer": true, + "dependencies": { + "unfetch": "^3.1.1" + } + }, + "node_modules/@segment/analytics.js-video-plugins/node_modules/unfetch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/unfetch/-/unfetch-3.1.2.tgz", + "integrity": "sha512-L0qrK7ZeAudGiKYw6nzFjnJ2D5WHblUBwmHIqtPS6oKUd+Hcpk7/hKsSmcHsTlpd1TbTNsiRBUKRq3bHLNIqIw==", + "peer": true + }, + "node_modules/@segment/facade": { + "version": "3.4.10", + "resolved": "https://registry.npmjs.org/@segment/facade/-/facade-3.4.10.tgz", + "integrity": "sha512-xVQBbB/lNvk/u8+ey0kC/+g8pT3l0gCT8O2y9Z+StMMn3KAFAQ9w8xfgef67tJybktOKKU7pQGRPolRM1i1pdA==", + "peer": true, + "dependencies": { + "@segment/isodate-traverse": "^1.1.1", + "inherits": "^2.0.4", + "new-date": "^1.0.3", + "obj-case": "0.2.1" + } + }, + "node_modules/@segment/isodate": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@segment/isodate/-/isodate-1.0.3.tgz", + "integrity": "sha512-BtanDuvJqnACFkeeYje7pWULVv8RgZaqKHWwGFnL/g/TH/CcZjkIVTfGDp/MAxmilYHUkrX70SqwnYSTNEaN7A==", + "peer": true + }, + "node_modules/@segment/isodate-traverse": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@segment/isodate-traverse/-/isodate-traverse-1.1.1.tgz", + "integrity": "sha512-+G6e1SgAUkcq0EDMi+SRLfT48TNlLPF3QnSgFGVs0V9F3o3fq/woQ2rHFlW20W0yy5NnCUH0QGU3Am2rZy/E3w==", + "peer": true, + "dependencies": { + "@segment/isodate": "^1.0.3" + } + }, + "node_modules/@segment/tsub": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@segment/tsub/-/tsub-2.0.0.tgz", + "integrity": "sha512-NzkBK8GwPsyQ74AceLjENbUoaFrObnzEKOX4ko2wZDuIyK+DnDm3B//8xZYI2LCKt+wUD55l6ygfjCoVs8RMWw==", + "peer": true, + "dependencies": { + "@stdlib/math-base-special-ldexp": "^0.0.5", + "dlv": "^1.1.3", + "dset": "^3.1.1", + "tiny-hashes": "^1.0.1" + }, + "bin": { + "tsub": "dist/index.js" + } + }, + "node_modules/@sigstore/bundle": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-1.1.0.tgz", + "integrity": "sha512-PFutXEy0SmQxYI4texPw3dd2KewuNqv7OuK1ZFtY2fM754yhvG2KdgwIhRnoEE2uHdtdGNQ8s0lb94dW9sELog==", + "dev": true, + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@sigstore/protobuf-specs": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@sigstore/protobuf-specs/-/protobuf-specs-0.2.1.tgz", + "integrity": "sha512-XTWVxnWJu+c1oCshMLwnKvz8ZQJJDVOlciMfgpJBQbThVjKTCG8dwyhgLngBD2KN0ap9F/gOV8rFDEx8uh7R2A==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@sigstore/sign": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@sigstore/sign/-/sign-1.0.0.tgz", + "integrity": "sha512-INxFVNQteLtcfGmcoldzV6Je0sbbfh9I16DM4yJPw3j5+TFP8X6uIiA18mvpEa9yyeycAKgPmOA3X9hVdVTPUA==", + "dev": true, + "dependencies": { + "@sigstore/bundle": "^1.1.0", + "@sigstore/protobuf-specs": "^0.2.0", + "make-fetch-happen": "^11.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@sigstore/tuf": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@sigstore/tuf/-/tuf-1.0.3.tgz", + "integrity": "sha512-2bRovzs0nJZFlCN3rXirE4gwxCn97JNjMmwpecqlbgV9WcxX7WRuIrgzx/X7Ib7MYRbyUTpBYE0s2x6AmZXnlg==", + "dev": true, + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.0", + "tuf-js": "^1.1.7" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@stdlib/array-float32": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@stdlib/array-float32/-/array-float32-0.0.6.tgz", + "integrity": "sha512-QgKT5UaE92Rv7cxfn7wBKZAlwFFHPla8eXsMFsTGt5BiL4yUy36lwinPUh4hzybZ11rw1vifS3VAPuk6JP413Q==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-float32array-support": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/array-float64": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@stdlib/array-float64/-/array-float64-0.0.6.tgz", + "integrity": "sha512-oE8y4a84LyBF1goX5//sU1mOjet8gLI0/6wucZcjg+j/yMmNV1xFu84Az9GOGmFSE6Ze6lirGOhfBeEWNNNaJg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-float64array-support": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/array-uint16": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@stdlib/array-uint16/-/array-uint16-0.0.6.tgz", + "integrity": "sha512-/A8Tr0CqJ4XScIDRYQawosko8ha1Uy+50wsTgJhjUtXDpPRp7aUjmxvYkbe7Rm+ImYYbDQVix/uCiPAFQ8ed4Q==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-uint16array-support": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/array-uint32": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@stdlib/array-uint32/-/array-uint32-0.0.6.tgz", + "integrity": "sha512-2hFPK1Fg7obYPZWlGDjW9keiIB6lXaM9dKmJubg/ergLQCsJQJZpYsG6mMAfTJi4NT1UF4jTmgvyKD+yf0D9cA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-uint32array-support": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/array-uint8": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/array-uint8/-/array-uint8-0.0.7.tgz", + "integrity": "sha512-qYJQQfGKIcky6TzHFIGczZYTuVlut7oO+V8qUBs7BJC9TwikVnnOmb3hY3jToY4xaoi5p9OvgdJKPInhyIhzFg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-uint8array-support": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-has-float32array-support": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-has-float32array-support/-/assert-has-float32array-support-0.0.8.tgz", + "integrity": "sha512-Yrg7K6rBqwCzDWZ5bN0VWLS5dNUWcoSfUeU49vTERdUmZID06J069CDc07UUl8vfQWhFgBWGocH3rrpKm1hi9w==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-float32array": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/constants-float64-pinf": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "has-float32array-support": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-has-float64array-support": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-has-float64array-support/-/assert-has-float64array-support-0.0.8.tgz", + "integrity": "sha512-UVQcoeWqgMw9b8PnAmm/sgzFnuWkZcNhJoi7xyMjbiDV/SP1qLCrvi06mq86cqS3QOCma1fEayJdwgteoXyyuw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-float64array": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "has-float64array-support": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-has-node-buffer-support": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-has-node-buffer-support/-/assert-has-node-buffer-support-0.0.8.tgz", + "integrity": "sha512-fgI+hW4Yg4ciiv4xVKH+1rzdV7e5+6UKgMnFbc1XDXHcxLub3vOr8+H6eDECdAIfgYNA7X0Dxa/DgvX9dwDTAQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-buffer": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "has-node-buffer-support": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-has-own-property": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/assert-has-own-property/-/assert-has-own-property-0.0.7.tgz", + "integrity": "sha512-3YHwSWiUqGlTLSwxAWxrqaD1PkgcJniGyotJeIt5X0tSNmSW0/c9RWroCImTUUB3zBkyBJ79MyU9Nf4Qgm59fQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-has-symbol-support": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-has-symbol-support/-/assert-has-symbol-support-0.0.8.tgz", + "integrity": "sha512-PoQ9rk8DgDCuBEkOIzGGQmSnjtcdagnUIviaP5YskB45/TJHXseh4NASWME8FV77WFW9v/Wt1MzKFKMzpDFu4Q==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "has-symbol-support": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-has-tostringtag-support": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/@stdlib/assert-has-tostringtag-support/-/assert-has-tostringtag-support-0.0.9.tgz", + "integrity": "sha512-UTsqdkrnQ7eufuH5BeyWOJL3ska3u5nvDWKqw3onNNZ2mvdgkfoFD7wHutVGzAA2rkTsSJAMBHVwWLsm5SbKgw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-symbol-support": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "has-tostringtag-support": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-has-uint16array-support": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-has-uint16array-support/-/assert-has-uint16array-support-0.0.8.tgz", + "integrity": "sha512-vqFDn30YrtzD+BWnVqFhB130g3cUl2w5AdOxhIkRkXCDYAM5v7YwdNMJEON+D4jI8YB4D5pEYjqKweYaCq4nyg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-uint16array": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/constants-uint16-max": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "has-uint16array-support": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-has-uint32array-support": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-has-uint32array-support/-/assert-has-uint32array-support-0.0.8.tgz", + "integrity": "sha512-tJtKuiFKwFSQQUfRXEReOVGXtfdo6+xlshSfwwNWXL1WPP2LrceoiUoQk7zMCMT6VdbXgGH92LDjVcPmSbH4Xw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-uint32array": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/constants-uint32-max": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "has-uint32array-support": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-has-uint8array-support": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-has-uint8array-support/-/assert-has-uint8array-support-0.0.8.tgz", + "integrity": "sha512-ie4vGTbAS/5Py+LLjoSQi0nwtYBp+WKk20cMYCzilT0rCsBI/oez0RqHrkYYpmt4WaJL4eJqC+/vfQ5NsI7F5w==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-uint8array": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/constants-uint8-max": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "has-uint8array-support": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-array": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-array/-/assert-is-array-0.0.7.tgz", + "integrity": "sha512-/o6KclsGkNcZ5hiROarsD9XUs6xQMb4lTwF6O71UHbKWTtomEF/jD0rxLvlvj0BiCxfKrReddEYd2CnhUyskMA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-big-endian": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-big-endian/-/assert-is-big-endian-0.0.7.tgz", + "integrity": "sha512-BvutsX84F76YxaSIeS5ZQTl536lz+f+P7ew68T1jlFqxBhr4v7JVYFmuf24U040YuK1jwZ2sAq+bPh6T09apwQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/array-uint16": "^0.0.x", + "@stdlib/array-uint8": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "is-big-endian": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-boolean": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-boolean/-/assert-is-boolean-0.0.8.tgz", + "integrity": "sha512-PRCpslMXSYqFMz1Yh4dG2K/WzqxTCtlKbgJQD2cIkAtXux4JbYiXCtepuoV7l4Wv1rm0a1eU8EqNPgnOmWajGw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-tostringtag-support": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x", + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-buffer": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-buffer/-/assert-is-buffer-0.0.8.tgz", + "integrity": "sha512-SYmGwOXkzZVidqUyY1IIx6V6QnSL36v3Lcwj8Rvne/fuW0bU2OomsEBzYCFMvcNgtY71vOvgZ9VfH3OppvV6eA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-object-like": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-float32array": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-float32array/-/assert-is-float32array-0.0.8.tgz", + "integrity": "sha512-Phk0Ze7Vj2/WLv5Wy8Oo7poZIDMSTiTrEnc1t4lBn3Svz2vfBXlvCufi/i5d93vc4IgpkdrOEwfry6nldABjNQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-float64array": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-float64array/-/assert-is-float64array-0.0.8.tgz", + "integrity": "sha512-UC0Av36EEYIgqBbCIz1lj9g7qXxL5MqU1UrWun+n91lmxgdJ+Z77fHy75efJbJlXBf6HXhcYXECIsc0u3SzyDQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-function": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-function/-/assert-is-function-0.0.8.tgz", + "integrity": "sha512-M55Dt2njp5tnY8oePdbkKBRIypny+LpCMFZhEjJIxjLE4rA6zSlHs1yRMqD4PmW+Wl9WTeEM1GYO4AQHl1HAjA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-type-of": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-little-endian": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-little-endian/-/assert-is-little-endian-0.0.7.tgz", + "integrity": "sha512-SPObC73xXfDXY0dOewXR0LDGN3p18HGzm+4K8azTj6wug0vpRV12eB3hbT28ybzRCa6TAKUjwM/xY7Am5QzIlA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/array-uint16": "^0.0.x", + "@stdlib/array-uint8": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "is-little-endian": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-number": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-number/-/assert-is-number-0.0.7.tgz", + "integrity": "sha512-mNV4boY1cUOmoWWfA2CkdEJfXA6YvhcTvwKC0Fzq+HoFFOuTK/scpTd9HanUyN6AGBlWA8IW+cQ1ZwOT3XMqag==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-tostringtag-support": "^0.0.x", + "@stdlib/number-ctor": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x", + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-object": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-object/-/assert-is-object-0.0.8.tgz", + "integrity": "sha512-ooPfXDp9c7w+GSqD2NBaZ/Du1JRJlctv+Abj2vRJDcDPyrnRTb1jmw+AuPgcW7Ca7op39JTbArI+RVHm/FPK+Q==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-array": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-object-like": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-object-like/-/assert-is-object-like-0.0.8.tgz", + "integrity": "sha512-pe9selDPYAu/lYTFV5Rj4BStepgbzQCr36b/eC8EGSJh6gMgRXgHVv0R+EbdJ69KNkHvKKRjnWj0A/EmCwW+OA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-tools-array-function": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-plain-object": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-plain-object/-/assert-is-plain-object-0.0.7.tgz", + "integrity": "sha512-t/CEq2a083ajAgXgSa5tsH8l3kSoEqKRu1qUwniVLFYL4RGv3615CrpJUDQKVtEX5S/OKww5q0Byu3JidJ4C5w==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-own-property": "^0.0.x", + "@stdlib/assert-is-function": "^0.0.x", + "@stdlib/assert-is-object": "^0.0.x", + "@stdlib/utils-get-prototype-of": "^0.0.x", + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-regexp": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-regexp/-/assert-is-regexp-0.0.7.tgz", + "integrity": "sha512-ty5qvLiqkDq6AibHlNJe0ZxDJ9Mg896qolmcHb69mzp64vrsORnPPOTzVapAq0bEUZbXoypeijypLPs9sCGBSQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-tostringtag-support": "^0.0.x", + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-regexp-string": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-regexp-string/-/assert-is-regexp-string-0.0.9.tgz", + "integrity": "sha512-FYRJJtH7XwXEf//X6UByUC0Eqd0ZYK5AC8or5g5m5efQrgr2lOaONHyDQ3Scj1A2D6QLIJKZc9XBM4uq5nOPXA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x", + "@stdlib/process-read-stdin": "^0.0.x", + "@stdlib/regexp-eol": "^0.0.x", + "@stdlib/regexp-regexp": "^0.0.x", + "@stdlib/streams-node-stdin": "^0.0.x" + }, + "bin": { + "is-regexp-string": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-string": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-string/-/assert-is-string-0.0.8.tgz", + "integrity": "sha512-Uk+bR4cglGBbY0q7O7HimEJiW/DWnO1tSzr4iAGMxYgf+VM2PMYgI5e0TLy9jOSOzWon3YS39lc63eR3a9KqeQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-tostringtag-support": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x", + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-uint16array": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-uint16array/-/assert-is-uint16array-0.0.8.tgz", + "integrity": "sha512-M+qw7au+qglRXcXHjvoUZVLlGt1mPjuKudrVRto6KL4+tDsP2j+A89NDP3Fz8/XIUD+5jhj+65EOKHSMvDYnng==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-uint32array": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-uint32array/-/assert-is-uint32array-0.0.8.tgz", + "integrity": "sha512-cnZi2DicYcplMnkJ3dBxBVKsRNFjzoGpmG9A6jXq4KH5rFl52SezGAXSVY9o5ZV7bQGaF5JLyCLp6n9Y74hFGg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-is-uint8array": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/assert-is-uint8array/-/assert-is-uint8array-0.0.8.tgz", + "integrity": "sha512-8cqpDQtjnJAuVtRkNAktn45ixq0JHaGJxVsSiK79k7GRggvMI6QsbzO6OvcLnZ/LimD42FmgbLd13Yc2esDmZw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-native-class": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/assert-tools-array-function": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/assert-tools-array-function/-/assert-tools-array-function-0.0.7.tgz", + "integrity": "sha512-3lqkaCIBMSJ/IBHHk4NcCnk2NYU52tmwTYbbqhAmv7vim8rZPNmGfj3oWkzrCsyCsyTF7ooD+In2x+qTmUbCtQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-array": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/buffer-ctor": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/buffer-ctor/-/buffer-ctor-0.0.7.tgz", + "integrity": "sha512-4IyTSGijKUQ8+DYRaKnepf9spvKLZ+nrmZ+JrRcB3FrdTX/l9JDpggcUcC/Fe+A4KIZOnClfxLn6zfIlkCZHNA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-node-buffer-support": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/buffer-from-string": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/buffer-from-string/-/buffer-from-string-0.0.8.tgz", + "integrity": "sha512-Dws5ZbK2M9l4Bkn/ODHFm3lNZ8tWko+NYXqGS/UH/RIQv3PGp+1tXFUSvjwjDneM6ppjQVExzVedUH1ftABs9A==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-function": "^0.0.x", + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/buffer-ctor": "^0.0.x", + "@stdlib/string-format": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/cli-ctor": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@stdlib/cli-ctor/-/cli-ctor-0.0.3.tgz", + "integrity": "sha512-0zCuZnzFyxj66GoF8AyIOhTX5/mgGczFvr6T9h4mXwegMZp8jBC/ZkOGMwmp+ODLBTvlcnnDNpNFkDDyR6/c2g==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x", + "@stdlib/utils-noop": "^0.0.x", + "minimist": "^1.2.0" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/complex-float32": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/complex-float32/-/complex-float32-0.0.7.tgz", + "integrity": "sha512-POCtQcBZnPm4IrFmTujSaprR1fcOFr/MRw2Mt7INF4oed6b1nzeG647K+2tk1m4mMrMPiuXCdvwJod4kJ0SXxQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-number": "^0.0.x", + "@stdlib/number-float64-base-to-float32": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x", + "@stdlib/utils-define-property": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/complex-float64": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/complex-float64/-/complex-float64-0.0.8.tgz", + "integrity": "sha512-lUJwsXtGEziOWAqCcnKnZT4fcVoRsl6t6ECaCJX45Z7lAc70yJLiwUieLWS5UXmyoADHuZyUXkxtI4oClfpnaw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-number": "^0.0.x", + "@stdlib/complex-float32": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x", + "@stdlib/utils-define-property": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/complex-reim": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@stdlib/complex-reim/-/complex-reim-0.0.6.tgz", + "integrity": "sha512-28WXfPSIFMtHb0YgdatkGS4yxX5sPYea5MiNgqPv3E78+tFcg8JJG52NQ/MviWP2wsN9aBQAoCPeu8kXxSPdzA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/array-float64": "^0.0.x", + "@stdlib/complex-float64": "^0.0.x", + "@stdlib/types": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/complex-reimf": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@stdlib/complex-reimf/-/complex-reimf-0.0.1.tgz", + "integrity": "sha512-P9zu05ZW2i68Oppp3oHelP7Tk0D7tGBL0hGl1skJppr2vY9LltuNbeYI3C96tQe/7Enw/5GyAWgxoQI4cWccQA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/array-float32": "^0.0.x", + "@stdlib/complex-float32": "^0.0.x", + "@stdlib/types": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-exponent-bias": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-exponent-bias/-/constants-float64-exponent-bias-0.0.8.tgz", + "integrity": "sha512-IzBJQw9hYgWCki7VoC/zJxEA76Nmf8hmY+VkOWnJ8IyfgTXClgY8tfDGS1cc4l/hCOEllxGp9FRvVdn24A5tKQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-high-word-abs-mask": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-high-word-abs-mask/-/constants-float64-high-word-abs-mask-0.0.1.tgz", + "integrity": "sha512-1vy8SUyMHFBwqUUVaZFA7r4/E3cMMRKSwsaa/EZ15w7Kmc01W/ZmaaTLevRcIdACcNgK+8i8813c8H7LScXNcQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-high-word-exponent-mask": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-high-word-exponent-mask/-/constants-float64-high-word-exponent-mask-0.0.8.tgz", + "integrity": "sha512-z28/EQERc0VG7N36bqdvtrRWjFc8600PKkwvl/nqx6TpKAzMXNw55BS1xT4C28Sa9Z7uBWeUj3UbIFedbkoyMw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-high-word-sign-mask": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-high-word-sign-mask/-/constants-float64-high-word-sign-mask-0.0.1.tgz", + "integrity": "sha512-hmTr5caK1lh1m0eyaQqt2Vt3y+eEdAx57ndbADEbXhxC9qSGd0b4bLSzt/Xp4MYBYdQkHAE/BlkgUiRThswhCg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-max-base2-exponent": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-max-base2-exponent/-/constants-float64-max-base2-exponent-0.0.8.tgz", + "integrity": "sha512-xBAOtso1eiy27GnTut2difuSdpsGxI8dJhXupw0UukGgvy/3CSsyNm+a1Suz/dhqK4tPOTe5QboIdNMw5IgXKQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-max-base2-exponent-subnormal": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-max-base2-exponent-subnormal/-/constants-float64-max-base2-exponent-subnormal-0.0.8.tgz", + "integrity": "sha512-YGBZykSiXFebznnJfWFDwhho2Q9xhUWOL+X0lZJ4ItfTTo40W6VHAyNYz98tT/gJECFype0seNzzo1nUxCE7jQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-min-base2-exponent-subnormal": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-min-base2-exponent-subnormal/-/constants-float64-min-base2-exponent-subnormal-0.0.8.tgz", + "integrity": "sha512-bt81nBus/91aEqGRQBenEFCyWNsf8uaxn4LN1NjgkvY92S1yVxXFlC65fJHsj9FTqvyZ+uj690/gdMKUDV3NjQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-ninf": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-ninf/-/constants-float64-ninf-0.0.8.tgz", + "integrity": "sha512-bn/uuzCne35OSLsQZJlNrkvU1/40spGTm22g1+ZI1LL19J8XJi/o4iupIHRXuLSTLFDBqMoJlUNphZlWQ4l8zw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/number-ctor": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-pinf": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-pinf/-/constants-float64-pinf-0.0.8.tgz", + "integrity": "sha512-I3R4rm2cemoMuiDph07eo5oWZ4ucUtpuK73qBJiJPDQKz8fSjSe4wJBAigq2AmWYdd7yJHsl5NJd8AgC6mP5Qw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-float64-smallest-normal": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/constants-float64-smallest-normal/-/constants-float64-smallest-normal-0.0.8.tgz", + "integrity": "sha512-Qwxpn5NA3RXf+mQcffCWRcsHSPTUQkalsz0+JDpblDszuz2XROcXkOdDr5LKgTAUPIXsjOgZzTsuRONENhsSEg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-uint16-max": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/constants-uint16-max/-/constants-uint16-max-0.0.7.tgz", + "integrity": "sha512-7TPoku7SlskA67mAm7mykIAjeEnkQJemw1cnKZur0mT5W4ryvDR6iFfL9xBiByVnWYq/+ei7DHbOv6/2b2jizw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-uint32-max": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/constants-uint32-max/-/constants-uint32-max-0.0.7.tgz", + "integrity": "sha512-8+NK0ewqc1vnEZNqzwFJgFSy3S543Eft7i8WyW/ygkofiqEiLAsujvYMHzPAB8/3D+PYvjTSe37StSwRwvQ6uw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/constants-uint8-max": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/constants-uint8-max/-/constants-uint8-max-0.0.7.tgz", + "integrity": "sha512-fqV+xds4jgwFxwWu08b8xDuIoW6/D4/1dtEjZ1sXVeWR7nf0pjj1cHERq4kdkYxsvOGu+rjoR3MbjzpFc4fvSw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/fs-exists": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/fs-exists/-/fs-exists-0.0.8.tgz", + "integrity": "sha512-mZktcCxiLmycCJefm1+jbMTYkmhK6Jk1ShFmUVqJvs+Ps9/2EEQXfPbdEniLoVz4HeHLlcX90JWobUEghOOnAQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x", + "@stdlib/process-cwd": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x" + }, + "bin": { + "exists": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/fs-read-file": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/fs-read-file/-/fs-read-file-0.0.8.tgz", + "integrity": "sha512-pIZID/G91+q7ep4x9ECNC45+JT2j0+jdz/ZQVjCHiEwXCwshZPEvxcPQWb9bXo6coOY+zJyX5TwBIpXBxomWFg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x" + }, + "bin": { + "read-file": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/fs-resolve-parent-path": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/fs-resolve-parent-path/-/fs-resolve-parent-path-0.0.8.tgz", + "integrity": "sha512-ok1bTWsAziChibQE3u7EoXwbCQUDkFjjRAHSxh7WWE5JEYVJQg1F0o3bbjRr4D/wfYYPWLAt8AFIKBUDmWghpg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-own-property": "^0.0.x", + "@stdlib/assert-is-function": "^0.0.x", + "@stdlib/assert-is-plain-object": "^0.0.x", + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-exists": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x", + "@stdlib/process-cwd": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x" + }, + "bin": { + "resolve-parent-path": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/math-base-assert-is-infinite": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/@stdlib/math-base-assert-is-infinite/-/math-base-assert-is-infinite-0.0.9.tgz", + "integrity": "sha512-JuPDdmxd+AtPWPHu9uaLvTsnEPaZODZk+zpagziNbDKy8DRiU1cy+t+QEjB5WizZt0A5MkuxDTjZ/8/sG5GaYQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/constants-float64-ninf": "^0.0.x", + "@stdlib/constants-float64-pinf": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/math-base-assert-is-nan": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/math-base-assert-is-nan/-/math-base-assert-is-nan-0.0.8.tgz", + "integrity": "sha512-m+gCVBxLFW8ZdAfdkATetYMvM7sPFoMKboacHjb1pe21jHQqVb+/4bhRSDg6S7HGX7/8/bSzEUm9zuF7vqK5rQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/math-base-napi-binary": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/math-base-napi-binary/-/math-base-napi-binary-0.0.8.tgz", + "integrity": "sha512-B8d0HBPhfXefbdl/h0h5c+lM2sE+/U7Fb7hY/huVeoQtBtEx0Jbx/qKvPSVxMjmWCKfWlbPpbgKpN5GbFgLiAg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/complex-float32": "^0.0.x", + "@stdlib/complex-float64": "^0.0.x", + "@stdlib/complex-reim": "^0.0.x", + "@stdlib/complex-reimf": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/math-base-napi-unary": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/@stdlib/math-base-napi-unary/-/math-base-napi-unary-0.0.9.tgz", + "integrity": "sha512-2WNKhjCygkGMp0RgjaD7wAHJTqPZmuVW7yPOc62Tnz2U+Ad8q/tcOcN+uvq2dtKsAGr1HDMIQxZ/XrrThMePyA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/complex-float32": "^0.0.7", + "@stdlib/complex-float64": "^0.0.8", + "@stdlib/complex-reim": "^0.0.6", + "@stdlib/complex-reimf": "^0.0.1", + "@stdlib/utils-library-manifest": "^0.0.8" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/stdlib" + } + }, + "node_modules/@stdlib/math-base-special-abs": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@stdlib/math-base-special-abs/-/math-base-special-abs-0.0.6.tgz", + "integrity": "sha512-FaaMUnYs2qIVN3kI5m/qNlBhDnjszhDOzEhxGEoQWR/k0XnxbCsTyjNesR2DkpiKuoAXAr9ojoDe2qBYdirWoQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/math-base-napi-unary": "^0.0.x", + "@stdlib/number-float64-base-to-words": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/math-base-special-copysign": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/math-base-special-copysign/-/math-base-special-copysign-0.0.7.tgz", + "integrity": "sha512-7Br7oeuVJSBKG8BiSk/AIRFTBd2sbvHdV3HaqRj8tTZHX8BQomZ3Vj4Qsiz3kPyO4d6PpBLBTYlGTkSDlGOZJA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/constants-float64-high-word-abs-mask": "^0.0.x", + "@stdlib/constants-float64-high-word-sign-mask": "^0.0.x", + "@stdlib/math-base-napi-binary": "^0.0.x", + "@stdlib/number-float64-base-from-words": "^0.0.x", + "@stdlib/number-float64-base-get-high-word": "^0.0.x", + "@stdlib/number-float64-base-to-words": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/math-base-special-ldexp": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@stdlib/math-base-special-ldexp/-/math-base-special-ldexp-0.0.5.tgz", + "integrity": "sha512-RLRsPpCdcJZMhwb4l4B/FsmGfEPEWAsik6KYUkUSSHb7ok/gZWt8LgVScxGMpJMpl5IV0v9qG4ZINVONKjX5KA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/constants-float64-exponent-bias": "^0.0.x", + "@stdlib/constants-float64-max-base2-exponent": "^0.0.x", + "@stdlib/constants-float64-max-base2-exponent-subnormal": "^0.0.x", + "@stdlib/constants-float64-min-base2-exponent-subnormal": "^0.0.x", + "@stdlib/constants-float64-ninf": "^0.0.x", + "@stdlib/constants-float64-pinf": "^0.0.x", + "@stdlib/math-base-assert-is-infinite": "^0.0.x", + "@stdlib/math-base-assert-is-nan": "^0.0.x", + "@stdlib/math-base-special-copysign": "^0.0.x", + "@stdlib/number-float64-base-exponent": "^0.0.x", + "@stdlib/number-float64-base-from-words": "^0.0.x", + "@stdlib/number-float64-base-normalize": "^0.0.x", + "@stdlib/number-float64-base-to-words": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/number-ctor": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/number-ctor/-/number-ctor-0.0.7.tgz", + "integrity": "sha512-kXNwKIfnb10Ro3RTclhAYqbE3DtIXax+qpu0z1/tZpI2vkmTfYDQLno2QJrzJsZZgdeFtXIws+edONN9kM34ow==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/number-float64-base-exponent": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@stdlib/number-float64-base-exponent/-/number-float64-base-exponent-0.0.6.tgz", + "integrity": "sha512-wLXsG+cvynmapoffmj5hVNDH7BuHIGspBcTCdjPaD+tnqPDIm03qV5Z9YBhDh91BdOCuPZQ8Ovu2WBpX+ySeGg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/constants-float64-exponent-bias": "^0.0.x", + "@stdlib/constants-float64-high-word-exponent-mask": "^0.0.x", + "@stdlib/number-float64-base-get-high-word": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/number-float64-base-from-words": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@stdlib/number-float64-base-from-words/-/number-float64-base-from-words-0.0.6.tgz", + "integrity": "sha512-r0elnekypCN831aw9Gp8+08br8HHAqvqtc5uXaxEh3QYIgBD/QM5qSb3b7WSAQ0ZxJJKdoykupODWWBkWQTijg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/array-float64": "^0.0.x", + "@stdlib/array-uint32": "^0.0.x", + "@stdlib/assert-is-little-endian": "^0.0.x", + "@stdlib/number-float64-base-to-words": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/number-float64-base-get-high-word": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@stdlib/number-float64-base-get-high-word/-/number-float64-base-get-high-word-0.0.6.tgz", + "integrity": "sha512-jSFSYkgiG/IzDurbwrDKtWiaZeSEJK8iJIsNtbPG1vOIdQMRyw+t0bf3Kf3vuJu/+bnSTvYZLqpCO6wzT/ve9g==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/array-float64": "^0.0.x", + "@stdlib/array-uint32": "^0.0.x", + "@stdlib/assert-is-little-endian": "^0.0.x", + "@stdlib/number-float64-base-to-words": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/number-float64-base-normalize": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/@stdlib/number-float64-base-normalize/-/number-float64-base-normalize-0.0.9.tgz", + "integrity": "sha512-+rm7RQJEj8zHkqYFE2a6DgNQSB5oKE/IydHAajgZl40YB91BoYRYf/ozs5/tTwfy2Fc04+tIpSfFtzDr4ZY19Q==", + "hasInstallScript": true, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/constants-float64-smallest-normal": "^0.0.x", + "@stdlib/math-base-assert-is-infinite": "^0.0.x", + "@stdlib/math-base-assert-is-nan": "^0.0.x", + "@stdlib/math-base-special-abs": "^0.0.x", + "@stdlib/types": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/number-float64-base-to-float32": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/number-float64-base-to-float32/-/number-float64-base-to-float32-0.0.7.tgz", + "integrity": "sha512-PNUSi6+cqfFiu4vgFljUKMFY2O9PxI6+T+vqtIoh8cflf+PjSGj3v4QIlstK9+6qU40eGR5SHZyLTWdzmNqLTQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/array-float32": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/number-float64-base-to-words": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/number-float64-base-to-words/-/number-float64-base-to-words-0.0.7.tgz", + "integrity": "sha512-7wsYuq+2MGp9rAkTnQ985rah7EJI9TfgHrYSSd4UIu4qIjoYmWIKEhIDgu7/69PfGrls18C3PxKg1pD/v7DQTg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/array-float64": "^0.0.x", + "@stdlib/array-uint32": "^0.0.x", + "@stdlib/assert-is-little-endian": "^0.0.x", + "@stdlib/os-byte-order": "^0.0.x", + "@stdlib/os-float-word-order": "^0.0.x", + "@stdlib/types": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/os-byte-order": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/os-byte-order/-/os-byte-order-0.0.7.tgz", + "integrity": "sha512-rRJWjFM9lOSBiIX4zcay7BZsqYBLoE32Oz/Qfim8cv1cN1viS5D4d3DskRJcffw7zXDnG3oZAOw5yZS0FnlyUg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-big-endian": "^0.0.x", + "@stdlib/assert-is-little-endian": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "bin": { + "byte-order": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/os-float-word-order": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/os-float-word-order/-/os-float-word-order-0.0.7.tgz", + "integrity": "sha512-gXIcIZf+ENKP7E41bKflfXmPi+AIfjXW/oU+m8NbP3DQasqHaZa0z5758qvnbO8L1lRJb/MzLOkIY8Bx/0cWEA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x", + "@stdlib/os-byte-order": "^0.0.x", + "@stdlib/utils-library-manifest": "^0.0.x" + }, + "bin": { + "float-word-order": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/process-cwd": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/process-cwd/-/process-cwd-0.0.8.tgz", + "integrity": "sha512-GHINpJgSlKEo9ODDWTHp0/Zc/9C/qL92h5Mc0QlIFBXAoUjy6xT4FB2U16wCNZMG3eVOzt5+SjmCwvGH0Wbg3Q==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x" + }, + "bin": { + "cwd": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/process-read-stdin": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/process-read-stdin/-/process-read-stdin-0.0.7.tgz", + "integrity": "sha512-nep9QZ5iDGrRtrZM2+pYAvyCiYG4HfO0/9+19BiLJepjgYq4GKeumPAQo22+1xawYDL7Zu62uWzYszaVZcXuyw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-function": "^0.0.x", + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/buffer-ctor": "^0.0.x", + "@stdlib/buffer-from-string": "^0.0.x", + "@stdlib/streams-node-stdin": "^0.0.x", + "@stdlib/utils-next-tick": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/regexp-eol": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/regexp-eol/-/regexp-eol-0.0.7.tgz", + "integrity": "sha512-BTMpRWrmlnf1XCdTxOrb8o6caO2lmu/c80XSyhYCi1DoizVIZnqxOaN5yUJNCr50g28vQ47PpsT3Yo7J3SdlRA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-has-own-property": "^0.0.x", + "@stdlib/assert-is-boolean": "^0.0.x", + "@stdlib/assert-is-plain-object": "^0.0.x", + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/regexp-extended-length-path": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/regexp-extended-length-path/-/regexp-extended-length-path-0.0.7.tgz", + "integrity": "sha512-z6uqzMWq3WPDKbl4MIZJoNA5ZsYLQI9G3j2TIvhU8X2hnhlku8p4mvK9F+QmoVvgPxKliwNnx/DAl7ltutSDKw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/regexp-function-name": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/regexp-function-name/-/regexp-function-name-0.0.7.tgz", + "integrity": "sha512-MaiyFUUqkAUpUoz/9F6AMBuMQQfA9ssQfK16PugehLQh4ZtOXV1LhdY8e5Md7SuYl9IrvFVg1gSAVDysrv5ZMg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/regexp-regexp": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/regexp-regexp/-/regexp-regexp-0.0.8.tgz", + "integrity": "sha512-S5PZICPd/XRcn1dncVojxIDzJsHtEleuJHHD7ji3o981uPHR7zI2Iy9a1eV2u7+ABeUswbI1Yuix6fXJfcwV1w==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/streams-node-stdin": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/streams-node-stdin/-/streams-node-stdin-0.0.7.tgz", + "integrity": "sha512-gg4lgrjuoG3V/L29wNs32uADMCqepIcmoOFHJCTAhVe0GtHDLybUVnLljaPfdvmpPZmTvmusPQtIcscbyWvAyg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/string-base-format-interpolate": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@stdlib/string-base-format-interpolate/-/string-base-format-interpolate-0.0.4.tgz", + "integrity": "sha512-8FC8+/ey+P5hf1B50oXpXzRzoAgKI1rikpyKZ98Xmjd5rcbSq3NWYi8TqOF8mUHm9hVZ2CXWoNCtEe2wvMQPMg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/string-base-format-tokenize": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@stdlib/string-base-format-tokenize/-/string-base-format-tokenize-0.0.4.tgz", + "integrity": "sha512-+vMIkheqAhDeT/iF5hIQo95IMkt5IzC68eR3CxW1fhc48NMkKFE2UfN73ET8fmLuOanLo/5pO2E90c2G7PExow==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/string-format": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@stdlib/string-format/-/string-format-0.0.3.tgz", + "integrity": "sha512-1jiElUQXlI/tTkgRuzJi9jUz/EjrO9kzS8VWHD3g7gdc3ZpxlA5G9JrIiPXGw/qmZTi0H1pXl6KmX+xWQEQJAg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/string-base-format-interpolate": "^0.0.x", + "@stdlib/string-base-format-tokenize": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/string-lowercase": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/@stdlib/string-lowercase/-/string-lowercase-0.0.9.tgz", + "integrity": "sha512-tXFFjbhIlDak4jbQyV1DhYiSTO8b1ozS2g/LELnsKUjIXECDKxGFyWYcz10KuyAWmFotHnCJdIm8/blm2CfDIA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x", + "@stdlib/process-read-stdin": "^0.0.x", + "@stdlib/streams-node-stdin": "^0.0.x", + "@stdlib/string-format": "^0.0.x" + }, + "bin": { + "lowercase": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/string-replace": { + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/@stdlib/string-replace/-/string-replace-0.0.11.tgz", + "integrity": "sha512-F0MY4f9mRE5MSKpAUfL4HLbJMCbG6iUTtHAWnNeAXIvUX1XYIw/eItkA58R9kNvnr1l5B08bavnjrgTJGIKFFQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-function": "^0.0.x", + "@stdlib/assert-is-regexp": "^0.0.x", + "@stdlib/assert-is-regexp-string": "^0.0.x", + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x", + "@stdlib/process-read-stdin": "^0.0.x", + "@stdlib/regexp-eol": "^0.0.x", + "@stdlib/streams-node-stdin": "^0.0.x", + "@stdlib/string-format": "^0.0.x", + "@stdlib/utils-escape-regexp-string": "^0.0.x", + "@stdlib/utils-regexp-from-string": "^0.0.x" + }, + "bin": { + "replace": "bin/cli" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/types": { + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/@stdlib/types/-/types-0.0.14.tgz", + "integrity": "sha512-AP3EI9/il/xkwUazcoY+SbjtxHRrheXgSbWZdEGD+rWpEgj6n2i63hp6hTOpAB5NipE0tJwinQlDGOuQ1lCaCw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/utils-constructor-name": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/utils-constructor-name/-/utils-constructor-name-0.0.8.tgz", + "integrity": "sha512-GXpyNZwjN8u3tyYjL2GgGfrsxwvfogUC3gg7L7NRZ1i86B6xmgfnJUYHYOUnSfB+R531ET7NUZlK52GxL7P82Q==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-buffer": "^0.0.x", + "@stdlib/regexp-function-name": "^0.0.x", + "@stdlib/utils-native-class": "^0.0.x" }, "engines": { - "node": ">=10" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, - "node_modules/@npmcli/git/node_modules/which": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", - "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" + "node_modules/@stdlib/utils-convert-path": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/utils-convert-path/-/utils-convert-path-0.0.8.tgz", + "integrity": "sha512-GNd8uIswrcJCctljMbmjtE4P4oOjhoUIfMvdkqfSrRLRY+ZqPB2xM+yI0MQFfUq/0Rnk/xtESlGSVLz9ZDtXfA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-read-file": "^0.0.x", + "@stdlib/process-read-stdin": "^0.0.x", + "@stdlib/regexp-eol": "^0.0.x", + "@stdlib/regexp-extended-length-path": "^0.0.x", + "@stdlib/streams-node-stdin": "^0.0.x", + "@stdlib/string-lowercase": "^0.0.x", + "@stdlib/string-replace": "^0.0.x" }, "bin": { - "node-which": "bin/which.js" + "convert-path": "bin/cli" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, - "node_modules/@npmcli/installed-package-contents": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-2.0.2.tgz", - "integrity": "sha512-xACzLPhnfD51GKvTOOuNX2/V4G4mz9/1I2MfDoye9kBM3RYe5g2YbscsaGoTlaWqkxeiapBWyseULVKpSVHtKQ==", - "dev": true, + "node_modules/@stdlib/utils-define-nonenumerable-read-only-property": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/utils-define-nonenumerable-read-only-property/-/utils-define-nonenumerable-read-only-property-0.0.7.tgz", + "integrity": "sha512-c7dnHDYuS4Xn3XBRWIQBPcROTtP/4lkcFyq0FrQzjXUjimfMgHF7cuFIIob6qUTnU8SOzY9p0ydRR2QJreWE6g==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, "dependencies": { - "npm-bundled": "^3.0.0", - "npm-normalize-package-bin": "^3.0.0" - }, - "bin": { - "installed-package-contents": "lib/index.js" + "@stdlib/types": "^0.0.x", + "@stdlib/utils-define-property": "^0.0.x" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, - "node_modules/@npmcli/move-file": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-2.0.1.tgz", - "integrity": "sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==", - "deprecated": "This functionality has been moved to @npmcli/fs", - "dev": true, + "node_modules/@stdlib/utils-define-property": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/@stdlib/utils-define-property/-/utils-define-property-0.0.9.tgz", + "integrity": "sha512-pIzVvHJvVfU/Lt45WwUAcodlvSPDDSD4pIPc9WmIYi4vnEBA9U7yHtiNz2aTvfGmBMTaLYTVVFIXwkFp+QotMA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, "dependencies": { - "mkdirp": "^1.0.4", - "rimraf": "^3.0.2" + "@stdlib/types": "^0.0.x" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, - "node_modules/@npmcli/move-file/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "bin": { - "mkdirp": "bin/cmd.js" + "node_modules/@stdlib/utils-escape-regexp-string": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/@stdlib/utils-escape-regexp-string/-/utils-escape-regexp-string-0.0.9.tgz", + "integrity": "sha512-E+9+UDzf2mlMLgb+zYrrPy2FpzbXh189dzBJY6OG+XZqEJAXcjWs7DURO5oGffkG39EG5KXeaQwDXUavcMDCIw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/string-format": "^0.0.x" }, "engines": { - "node": ">=10" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, - "node_modules/@npmcli/node-gyp": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz", - "integrity": "sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==", - "dev": true, + "node_modules/@stdlib/utils-get-prototype-of": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/utils-get-prototype-of/-/utils-get-prototype-of-0.0.7.tgz", + "integrity": "sha512-fCUk9lrBO2ELrq+/OPJws1/hquI4FtwG0SzVRH6UJmJfwb1zoEFnjcwyDAy+HWNVmo3xeRLsrz6XjHrJwer9pg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-function": "^0.0.x", + "@stdlib/utils-native-class": "^0.0.x" + }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, - "node_modules/@npmcli/promise-spawn": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-6.0.2.tgz", - "integrity": "sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg==", - "dev": true, + "node_modules/@stdlib/utils-global": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@stdlib/utils-global/-/utils-global-0.0.7.tgz", + "integrity": "sha512-BBNYBdDUz1X8Lhfw9nnnXczMv9GztzGpQ88J/6hnY7PHJ71av5d41YlijWeM9dhvWjnH9I7HNE3LL7R07yw0kA==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, "dependencies": { - "which": "^3.0.0" + "@stdlib/assert-is-boolean": "^0.0.x" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, - "node_modules/@npmcli/promise-spawn/node_modules/which": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", - "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", - "dev": true, + "node_modules/@stdlib/utils-library-manifest": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/utils-library-manifest/-/utils-library-manifest-0.0.8.tgz", + "integrity": "sha512-IOQSp8skSRQn9wOyMRUX9Hi0j/P5v5TvD8DJWTqtE8Lhr8kVVluMBjHfvheoeKHxfWAbNHSVpkpFY/Bdh/SHgQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, "dependencies": { - "isexe": "^2.0.0" + "@stdlib/cli-ctor": "^0.0.x", + "@stdlib/fs-resolve-parent-path": "^0.0.x", + "@stdlib/utils-convert-path": "^0.0.x", + "debug": "^2.6.9", + "resolve": "^1.1.7" }, "bin": { - "node-which": "bin/which.js" + "library-manifest": "bin/cli" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, - "node_modules/@npmcli/run-script": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-6.0.0.tgz", - "integrity": "sha512-ql+AbRur1TeOdl1FY+RAwGW9fcr4ZwiVKabdvm93mujGREVuVLbdkXRJDrkTXSdCjaxYydr1wlA2v67jxWG5BQ==", - "dev": true, + "node_modules/@stdlib/utils-library-manifest/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "peer": true, "dependencies": { - "@npmcli/node-gyp": "^3.0.0", - "@npmcli/promise-spawn": "^6.0.0", - "node-gyp": "^9.0.0", - "read-package-json-fast": "^3.0.0", - "which": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "ms": "2.0.0" } }, - "node_modules/@npmcli/run-script/node_modules/which": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", - "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", - "dev": true, + "node_modules/@stdlib/utils-library-manifest/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "peer": true + }, + "node_modules/@stdlib/utils-native-class": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/utils-native-class/-/utils-native-class-0.0.8.tgz", + "integrity": "sha512-0Zl9me2V9rSrBw/N8o8/9XjmPUy8zEeoMM0sJmH3N6C9StDsYTjXIAMPGzYhMEWaWHvGeYyNteFK2yDOVGtC3w==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, "dependencies": { - "isexe": "^2.0.0" + "@stdlib/assert-has-own-property": "^0.0.x", + "@stdlib/assert-has-tostringtag-support": "^0.0.x" }, - "bin": { - "node-which": "bin/which.js" + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/utils-next-tick": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/utils-next-tick/-/utils-next-tick-0.0.8.tgz", + "integrity": "sha512-l+hPl7+CgLPxk/gcWOXRxX/lNyfqcFCqhzzV/ZMvFCYLY/wI9lcWO4xTQNMALY2rp+kiV+qiAiO9zcO+hewwUg==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } + }, + "node_modules/@stdlib/utils-noop": { + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/@stdlib/utils-noop/-/utils-noop-0.0.14.tgz", + "integrity": "sha512-A5faFEUfszMgd93RCyB+aWb62hQxgP+dZ/l9rIOwNWbIrCYNwSuL4z50lNJuatnwwU4BQ4EjQr+AmBsnvuLcyQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, - "node_modules/@scarf/scarf": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.1.1.tgz", - "integrity": "sha512-VGbKDbk1RFIaSmdVb0cNjjWJoRWRI/Weo23AjRCC2nryO0iAS8pzsToJfPVPtVs74WHw4L1UTADNdIYRLkirZQ==", - "hasInstallScript": true + "node_modules/@stdlib/utils-regexp-from-string": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/@stdlib/utils-regexp-from-string/-/utils-regexp-from-string-0.0.9.tgz", + "integrity": "sha512-3rN0Mcyiarl7V6dXRjFAUMacRwe0/sYX7ThKYurf0mZkMW9tjTP+ygak9xmL9AL0QQZtbrFFwWBrDO+38Vnavw==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, + "dependencies": { + "@stdlib/assert-is-string": "^0.0.x", + "@stdlib/regexp-regexp": "^0.0.x", + "@stdlib/string-format": "^0.0.x" + }, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } }, - "node_modules/@schematics/angular": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-15.2.2.tgz", - "integrity": "sha512-H8R2TziGgJkXFZf3NQCOKQhkbGhVX8bPQAKv/YFEpPm1n//cPshysf2r3nBCc0WcTGkdC087UTCYvbFjQ7Fa6w==", - "dev": true, + "node_modules/@stdlib/utils-type-of": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@stdlib/utils-type-of/-/utils-type-of-0.0.8.tgz", + "integrity": "sha512-b4xqdy3AnnB7NdmBBpoiI67X4vIRxvirjg3a8BfhM5jPr2k0njby1jAbG9dUxJvgAV6o32S4kjUgfIdjEYpTNQ==", + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "peer": true, "dependencies": { - "@angular-devkit/core": "15.2.2", - "@angular-devkit/schematics": "15.2.2", - "jsonc-parser": "3.2.0" + "@stdlib/utils-constructor-name": "^0.0.x", + "@stdlib/utils-global": "^0.0.x" }, "engines": { - "node": "^14.20.0 || ^16.13.0 || >=18.10.0", - "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", - "yarn": ">= 1.13.0" + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" } }, "node_modules/@swimlane/ngx-charts": { @@ -3668,46 +6407,47 @@ "node": ">= 10" } }, - "node_modules/@tufjs/models": { + "node_modules/@tufjs/canonical-json": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@tufjs/models/-/models-1.0.0.tgz", - "integrity": "sha512-RRMu4uMxWnZlxaIBxahSb2IssFZiu188sndesZflWOe1cA/qUqtemSIoBWbuVKPvvdktapImWNnKpBcc+VrCQw==", + "resolved": "https://registry.npmjs.org/@tufjs/canonical-json/-/canonical-json-1.0.0.tgz", + "integrity": "sha512-QTnf++uxunWvG2z3UFNzAoQPHxnSXOwtaI3iJ+AohhV+5vONuArPjJE7aPXPVXfXJsqrVbZBu9b81AJoSd09IQ==", "dev": true, - "dependencies": { - "minimatch": "^6.1.0" - }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/@tufjs/models/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "node_modules/@tufjs/models": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tufjs/models/-/models-1.0.4.tgz", + "integrity": "sha512-qaGV9ltJP0EO25YfFUPhxRVK0evXFIAGicsVXuRim4Ed9cjPxYhNnNJ49SFmbeLgtxpslIkX317IgpfcHPVj/A==", "dev": true, "dependencies": { - "balanced-match": "^1.0.0" + "@tufjs/canonical-json": "1.0.0", + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, "node_modules/@tufjs/models/node_modules/minimatch": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-6.2.0.tgz", - "integrity": "sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==", + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@types/body-parser": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "version": "1.19.3", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.3.tgz", + "integrity": "sha512-oyl4jvAfTGX9Bt6Or4H9ni1Z447/tQuxnZsytsCaExKlmJiU8sFgnIBRzJUpKwB5eWn9HuBYlUlVA74q/yN0eQ==", "dev": true, "dependencies": { "@types/connect": "*", @@ -3715,33 +6455,27 @@ } }, "node_modules/@types/bonjour": { - "version": "3.5.10", - "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", - "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.11.tgz", + "integrity": "sha512-isGhjmBtLIxdHBDl2xGwUzEM8AOyOvWsADWq7rqirdi/ZQoHnLWErHvsThcEzTX8juDRiZtzp2Qkv5bgNh6mAg==", "dev": true, "dependencies": { "@types/node": "*" } }, - "node_modules/@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", - "dev": true - }, "node_modules/@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "version": "3.4.36", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.36.tgz", + "integrity": "sha512-P63Zd/JUGq+PdrM1lv0Wv5SBYeA2+CORvbrXbngriYY0jzLUWfQMQQxOhjONEz/wlHOAxOdY7CY65rgQdTjq2w==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/connect-history-api-fallback": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.5.tgz", - "integrity": "sha512-h8QJa8xSb1WD4fpKBDcATDNGXghFj6/3GRWG6dhmRcu0RX1Ubasur2Uvx5aeEwlf0MwblEC2bMzzMQntxnw/Cw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.1.tgz", + "integrity": "sha512-iaQslNbARe8fctL5Lk+DsmgWOM83lM+7FzP0eQUJs1jd3kBE8NWqBTIT2S8SqQOJjxvt2eyIjpOuYeRXq2AdMw==", "dev": true, "dependencies": { "@types/express-serve-static-core": "*", @@ -3749,9 +6483,9 @@ } }, "node_modules/@types/eslint": { - "version": "8.21.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.21.1.tgz", - "integrity": "sha512-rc9K8ZpVjNcLs8Fp0dkozd5Pt2Apk1glO4Vgz8ix1u6yFByxfqo5Yavpy65o+93TAe24jr7v+eSBtFLvOQtCRQ==", + "version": "8.44.3", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.3.tgz", + "integrity": "sha512-iM/WfkwAhwmPff3wZuPLYiHX18HI24jU8k1ZSH7P8FHwxTjZ2P6CoX2wnF43oprR+YXJM6UUxATkNvyv/JHd+g==", "dev": true, "dependencies": { "@types/estree": "*", @@ -3759,9 +6493,9 @@ } }, "node_modules/@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "version": "3.7.5", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.5.tgz", + "integrity": "sha512-JNvhIEyxVW6EoMIFIvj93ZOywYFatlpu9deeH6eSx6PE3WHYvHaQtmHmQeNw7aA81bYGBPPQqdtBm6b1SsQMmA==", "dev": true, "dependencies": { "@types/eslint": "*", @@ -3775,9 +6509,9 @@ "dev": true }, "node_modules/@types/express": { - "version": "4.17.17", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", - "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "version": "4.17.18", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.18.tgz", + "integrity": "sha512-Sxv8BSLLgsBYmcnGdGjjEjqET2U+AKAdCRODmMiq02FgjwuV75Ut85DRpvFjyw/Mk0vgUOliGRU0UUmuuZHByQ==", "dev": true, "dependencies": { "@types/body-parser": "*", @@ -3787,41 +6521,48 @@ } }, "node_modules/@types/express-serve-static-core": { - "version": "4.17.33", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.33.tgz", - "integrity": "sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==", + "version": "4.17.37", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.37.tgz", + "integrity": "sha512-ZohaCYTgGFcOP7u6aJOhY9uIZQgZ2vxC2yWoArY+FeDXlqeH66ZVBjgvg+RLVAS/DWNq4Ap9ZXu1+SUQiiWYMg==", "dev": true, "dependencies": { "@types/node": "*", "@types/qs": "*", - "@types/range-parser": "*" + "@types/range-parser": "*", + "@types/send": "*" } }, + "node_modules/@types/http-errors": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.2.tgz", + "integrity": "sha512-lPG6KlZs88gef6aD85z3HNkztpj7w2R7HmR3gygjfXCQmsLloWNARFkMuzKiiY8FGdh1XDpgBdrSf4aKDiA7Kg==", + "dev": true + }, "node_modules/@types/http-proxy": { - "version": "1.17.10", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.10.tgz", - "integrity": "sha512-Qs5aULi+zV1bwKAg5z1PWnDXWmsn+LxIvUGv6E2+OOMYhclZMO+OXd9pYVf2gLykf2I7IV2u7oTHwChPNsvJ7g==", + "version": "1.17.12", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.12.tgz", + "integrity": "sha512-kQtujO08dVtQ2wXAuSFfk9ASy3sug4+ogFR8Kd8UgP8PEuc1/G/8yjYRmp//PcDNJEUKOza/MrQu15bouEUCiw==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "version": "7.0.13", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", + "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==", "dev": true }, "node_modules/@types/mime": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", - "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.3.tgz", + "integrity": "sha512-Ys+/St+2VF4+xuY6+kDIXGxbNRO0mesVg0bbxEfB97Od1Vjpjx9KD1qxs64Gcb3CWPirk9Xe+PT4YiiHQ9T+eg==", "dev": true }, "node_modules/@types/node": { - "version": "14.6.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.6.3.tgz", - "integrity": "sha512-pC/hkcREG6YfDfui1FBmj8e20jFU5Exjw4NYDm8kEdrW+mOh0T1Zve8DWKnS7ZIZvgncrctcNCXF4Q2I+loyww==", + "version": "14.18.63", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", + "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==", "dev": true }, "node_modules/@types/parse-json": { @@ -3830,16 +6571,22 @@ "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", "dev": true }, + "node_modules/@types/q": { + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@types/q/-/q-0.0.32.tgz", + "integrity": "sha512-qYi3YV9inU/REEfxwVcGZzbS3KG/Xs90lv0Pr+lDtuVjBPGd1A+eciXzVSaRvLify132BfcvhvEjeVahrUl0Ug==", + "dev": true + }, "node_modules/@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", + "version": "6.9.8", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.8.tgz", + "integrity": "sha512-u95svzDlTysU5xecFNTgfFG5RUWu1A9P0VzgpcIiGZA9iraHOdSzcxMxQ55DyeRaGCSxQi7LxXDI4rzq/MYfdg==", "dev": true }, "node_modules/@types/range-parser": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.5.tgz", + "integrity": "sha512-xrO9OoVPqFuYyR/loIHjnbvvyRZREYKLjxV4+dY6v3FQR3stQ9ZxIGkaclF7YhI9hfjpuTbu14hZEy94qKLtOA==", "dev": true }, "node_modules/@types/retry": { @@ -3849,43 +6596,54 @@ "dev": true }, "node_modules/@types/selenium-webdriver": { - "version": "3.0.17", - "resolved": "https://registry.npmjs.org/@types/selenium-webdriver/-/selenium-webdriver-3.0.17.tgz", - "integrity": "sha512-tGomyEuzSC1H28y2zlW6XPCaDaXFaD6soTdb4GNdmte2qfHtrKqhy0ZFs4r/1hpazCfEZqeTSRLvSasmEx89uw==", + "version": "3.0.24", + "resolved": "https://registry.npmjs.org/@types/selenium-webdriver/-/selenium-webdriver-3.0.24.tgz", + "integrity": "sha512-PKUsOV485ZiB466i6xuhpjiASvcC6+SSZqOwU7DIMn1as8DGrATWdMvjuG7scbyxk/e1SYwAzDB2LbobLxy0Qw==", "dev": true }, + "node_modules/@types/send": { + "version": "0.17.2", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.2.tgz", + "integrity": "sha512-aAG6yRf6r0wQ29bkS+x97BIs64ZLxeE/ARwyS6wrldMm3C1MdKwCcnnEwMC1slI8wuxJOpiUH9MioC0A0i+GJw==", + "dev": true, + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, "node_modules/@types/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.2.tgz", + "integrity": "sha512-asaEIoc6J+DbBKXtO7p2shWUpKacZOoMBEGBgPG91P8xhO53ohzHWGCs4ScZo5pQMf5ukQzVT9fhX1WzpHihig==", "dev": true, "dependencies": { "@types/express": "*" } }, "node_modules/@types/serve-static": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", - "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", + "version": "1.15.3", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.3.tgz", + "integrity": "sha512-yVRvFsEMrv7s0lGhzrggJjNOSmZCdgCjw9xWrPr/kNNLp6FaDfMC1KaYl3TSJ0c58bECwNBMoQrZJ8hA8E1eFg==", "dev": true, "dependencies": { + "@types/http-errors": "*", "@types/mime": "*", "@types/node": "*" } }, "node_modules/@types/sockjs": { - "version": "0.3.33", - "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", - "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", + "version": "0.3.34", + "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.34.tgz", + "integrity": "sha512-R+n7qBFnm/6jinlteC9DBL5dGiDGjWAvjo4viUanpnc/dG1y7uDoacXPIQ/PQEg1fI912SMHIa014ZjRpvDw4g==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/ws": { - "version": "8.5.4", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", - "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.6.tgz", + "integrity": "sha512-8B5EO9jLVCy+B58PLHvLDuOD8DRVMgQzq8d55SjLCOn9kqGyqOvy27exVaTio1q1nX5zLu8/6N0n2ThSxOM6tg==", "dev": true, "dependencies": { "@types/node": "*" @@ -4080,36 +6838,15 @@ "node": ">= 0.6" } }, - "node_modules/accepts/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/accepts/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/ace-builds": { - "version": "1.4.12", - "resolved": "https://registry.npmjs.org/ace-builds/-/ace-builds-1.4.12.tgz", - "integrity": "sha512-G+chJctFPiiLGvs3+/Mly3apXTcfgE45dT5yp12BcWZ1kUs+gm0qd3/fv4gsz6fVag4mM0moHVpjHDIgph6Psg==" + "version": "1.28.0", + "resolved": "https://registry.npmjs.org/ace-builds/-/ace-builds-1.28.0.tgz", + "integrity": "sha512-wkJp+Wz8MRHtCVdt65L/jPFLAQ0iqJZ2EeD2XWOvKGbIi4mZNwHlpHRLRB8ZnQ07VoiB0TLFWwIjjm2FL9gUcQ==" }, "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -4119,9 +6856,9 @@ } }, "node_modules/acorn-import-assertions": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", "dev": true, "peerDependencies": { "acorn": "^8" @@ -4155,34 +6892,32 @@ } }, "node_modules/adm-zip": { - "version": "0.4.16", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", - "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.10.tgz", + "integrity": "sha512-x0HvcHqVJNTPk/Bw8JbLWlWoo6Wwnsug0fnYYro1HBrjxZ3G7/AZk7Ahv8JwDe1uIcz8eBqvu86FuF1POiG7vQ==", "dev": true, "engines": { - "node": ">=0.3.0" + "node": ">=6.0" } }, "node_modules/agent-base": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", - "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dev": true, "dependencies": { - "es6-promisify": "^5.0.0" + "debug": "4" }, "engines": { - "node": ">= 4.0.0" + "node": ">= 6.0.0" } }, "node_modules/agentkeepalive": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.3.0.tgz", - "integrity": "sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", + "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", "dev": true, "dependencies": { - "debug": "^4.1.0", - "depd": "^2.0.0", "humanize-ms": "^1.2.1" }, "engines": { @@ -4220,42 +6955,20 @@ "node_modules/ajv-formats": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "dev": true, - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "dependencies": { + "ajv": "^8.0.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } } }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, "node_modules/ajv-keywords": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", @@ -4268,21 +6981,6 @@ "ajv": "^8.8.2" } }, - "node_modules/ajv/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/analytics.js": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/analytics.js/-/analytics.js-2.9.1.tgz", - "integrity": "sha1-7vGG/b3Qe9b1MAIL4CXfDmeD2Z8=", - "deprecated": "Security updates will cease on August 31st, 2022. Please use @segment/analytics-next.", - "engines": { - "node": ">=0.12.0", - "npm": ">=2.7.0" - } - }, "node_modules/ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", @@ -4320,12 +7018,11 @@ } }, "node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, "node_modules/ansi-styles": { @@ -4352,9 +7049,9 @@ } }, "node_modules/app-root-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.0.0.tgz", - "integrity": "sha512-qMcx+Gy2UZynHjOHOIXPNvpf+9cjvk3cWrBBK7zg4gH9+clobJRb9NGzcT7mQTcV/6Gm/1WelUtqxVXnNlrwcw==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.1.0.tgz", + "integrity": "sha512-biN3PwB2gUtjaYy/isrU3aNWI5w+fAfvHkSvCKeQGxhmYpwKFUxudR3Yya+KqVRHBmEDYh+/lTozYCFbmzX4nA==", "dev": true, "engines": { "node": ">= 6.0.0" @@ -4379,20 +7076,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/are-we-there-yet/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", @@ -4408,10 +7091,16 @@ "sprintf-js": "~1.0.2" } }, + "node_modules/argparse/node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, "node_modules/aria-query": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-3.0.0.tgz", - "integrity": "sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w=", + "integrity": "sha512-majUxHgLehQTeSA+hClx+DY09OVUqG3GtezWkF1krgLGNdlDu9l9V8DaqNMWbq4Eddc8wsyDA0hpDUtnYxQEXw==", "dev": true, "dependencies": { "ast-types-flow": "0.0.7", @@ -4424,10 +7113,22 @@ "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", "dev": true }, + "node_modules/array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==", + "dev": true, + "dependencies": { + "array-uniq": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/array-uniq": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", "dev": true, "engines": { "node": ">=0.10.0" @@ -4436,16 +7137,16 @@ "node_modules/arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", "dev": true, "engines": { "node": ">=0.10.0" } }, "node_modules/asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", "dev": true, "dependencies": { "safer-buffer": "~2.1.0" @@ -4454,7 +7155,7 @@ "node_modules/assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", "dev": true, "engines": { "node": ">=0.8" @@ -4463,13 +7164,13 @@ "node_modules/ast-types-flow": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha1-9wtzXGvKGlycItmCw+Oef+ujva0=", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", "dev": true }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", "dev": true }, "node_modules/autoprefixer": { @@ -4508,16 +7209,16 @@ "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", "dev": true, "engines": { "node": "*" } }, "node_modules/aws4": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz", - "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", + "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==", "dev": true }, "node_modules/axobject-query": { @@ -4577,9 +7278,9 @@ } }, "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -4611,9 +7312,9 @@ } }, "node_modules/balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/base64-js": { "version": "1.5.1", @@ -4644,7 +7345,7 @@ "node_modules/bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", "dev": true, "dependencies": { "tweetnacl": "^0.14.3" @@ -4678,20 +7379,6 @@ "readable-stream": "^3.4.0" } }, - "node_modules/bl/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/blocking-proxy": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/blocking-proxy/-/blocking-proxy-1.0.1.tgz", @@ -4755,10 +7442,25 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, + "node_modules/body-parser/node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dev": true, + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/bonjour-service": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.0.tgz", - "integrity": "sha512-LVRinRB3k1/K0XzZ2p58COnWvkQknIY6sf0zF2rpErvcJXpMBttEPQSxK+HEXSS9VmpZlDoDnQWv8ftJT20B0Q==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", + "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", "dev": true, "dependencies": { "array-flatten": "^2.1.2", @@ -4774,13 +7476,11 @@ "dev": true }, "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "balanced-match": "^1.0.0" } }, "node_modules/braces": { @@ -4822,14 +7522,48 @@ } }, "node_modules/browserstack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.6.0.tgz", - "integrity": "sha512-HJDJ0TSlmkwnt9RZ+v5gFpa1XZTBYTj0ywvLwJ3241J7vMw2jAsGNVhKHtmCOyg+VxeLZyaibO9UL71AsUeDIw==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.6.1.tgz", + "integrity": "sha512-GxtFjpIaKdbAyzHfFDKixKO8IBT7wR3NjbzrGc78nNs/Ciys9wU3/nBtsqsWv5nDSrdI5tz0peKuzCPuNXNUiw==", "dev": true, "dependencies": { "https-proxy-agent": "^2.2.1" } }, + "node_modules/browserstack/node_modules/agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "dev": true, + "dependencies": { + "es6-promisify": "^5.0.0" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/browserstack/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/browserstack/node_modules/https-proxy-agent": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", + "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "dev": true, + "dependencies": { + "agent-base": "^4.3.0", + "debug": "^3.1.0" + }, + "engines": { + "node": ">= 4.5.0" + } + }, "node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", @@ -4855,15 +7589,15 @@ } }, "node_modules/buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, "node_modules/builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "integrity": "sha512-wxXCdllwGhI2kCC0MnvTGYTMvnVZTvqgypkiTI8Pa5tcz2i6VqsqwYGgqwXji+4RgCzms6EajE4IxiUH6HH8nQ==", "dev": true, "engines": { "node": ">=0.10.0" @@ -4911,34 +7645,6 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/cacache/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/cacache/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/cacache/node_modules/lru-cache": { "version": "7.18.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", @@ -4948,18 +7654,6 @@ "node": ">=12" } }, - "node_modules/cacache/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", @@ -4992,9 +7686,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001465", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001465.tgz", - "integrity": "sha512-HvjgL3MYAJjceTDCcjRnQGjwUz/5qec9n7JPOzUursUoOTIsYCSDOb1l7RsnZE8mjbxG78zVRCKfrBXyvChBag==", + "version": "1.0.30001541", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001541.tgz", + "integrity": "sha512-bLOsqxDgTqUBkzxbNlSBt8annkDpQB9NdzdTbO2ooJ+eC/IQcvDspDc058g84ejCelF7vHUx57KIOjEecOHXaw==", "funding": [ { "type": "opencollective", @@ -5003,13 +7697,17 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ] }, "node_modules/caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", "dev": true }, "node_modules/chalk": { @@ -5057,30 +7755,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/chokidar/node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/chownr": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", @@ -5121,9 +7795,9 @@ } }, "node_modules/cli-spinners": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz", - "integrity": "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.1.tgz", + "integrity": "sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==", "dev": true, "engines": { "node": ">=6" @@ -5154,25 +7828,6 @@ "node": ">=12" } }, - "node_modules/cliui/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/clone": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", @@ -5197,9 +7852,9 @@ } }, "node_modules/codelyzer": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/codelyzer/-/codelyzer-6.0.0.tgz", - "integrity": "sha512-edJIQCIcxD9DhVSyBEdJ38AbLikm515Wl91t5RDGNT88uA6uQdTm4phTWfn9JhzAI8kXNUcfYyAE90lJElpGtA==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/codelyzer/-/codelyzer-6.0.2.tgz", + "integrity": "sha512-v3+E0Ucu2xWJMOJ2fA/q9pDT/hlxHftHGPUay1/1cTgyPV5JTHFdO9hqo837Sx2s9vKBMTt5gO+lhF95PO6J+g==", "dev": true, "dependencies": { "@angular/compiler": "9.0.0", @@ -5218,8 +7873,8 @@ "zone.js": "~0.10.3" }, "peerDependencies": { - "@angular/compiler": ">=2.3.1 <11.0.0 || >9.0.0-beta <11.0.0 || >9.1.0-beta <11.0.0 || >9.2.0-beta <11.0.0", - "@angular/core": ">=2.3.1 <11.0.0 || >9.0.0-beta <11.0.0 || >9.1.0-beta <11.0.0 || >9.2.0-beta <11.0.0", + "@angular/compiler": ">=2.3.1 <13.0.0 || ^12.0.0-next || ^12.1.0-next || ^12.2.0-next", + "@angular/core": ">=2.3.1 <13.0.0 || ^12.0.0-next || ^12.1.0-next || ^12.2.0-next", "tslint": "^5.0.0 || ^6.0.0" } }, @@ -5246,22 +7901,16 @@ "node_modules/codelyzer/node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/codelyzer/node_modules/sprintf-js": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", - "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", - "dev": true - }, "node_modules/codelyzer/node_modules/tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, "node_modules/codelyzer/node_modules/zone.js": { @@ -5281,7 +7930,7 @@ "node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" }, "node_modules/color-support": { "version": "1.1.3", @@ -5293,9 +7942,9 @@ } }, "node_modules/colorette": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", - "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true }, "node_modules/combined-stream": { @@ -5367,10 +8016,16 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, "node_modules/connect-history-api-fallback": { @@ -5392,33 +8047,13 @@ "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-disposition/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "dev": true, + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } }, "node_modules/content-type": { "version": "1.0.5", @@ -5485,23 +8120,67 @@ "webpack": "^5.1.0" } }, + "node_modules/copy-webpack-plugin/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/core-js-compat": { - "version": "3.29.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.29.1.tgz", - "integrity": "sha512-QmchCua884D8wWskMX8tW5ydINzd8oSJVx38lx/pVkFGqztxt73GYre3pm/hyYq8bPf+MW5In4I/uRShFDsbrA==", + "version": "3.32.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.32.2.tgz", + "integrity": "sha512-+GjlguTDINOijtVRUxrQOv3kfu9rl+qPNdX2LTbJ/ZyVTuxK+ksVSAGX1nHstu4hrv1En/uPTtWgq2gI5wt4AQ==", "dev": true, "dependencies": { - "browserslist": "^4.21.5" + "browserslist": "^4.21.10" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" } }, + "node_modules/core-js-compat/node_modules/browserslist": { + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.0.tgz", + "integrity": "sha512-v+Jcv64L2LbfTC6OnRcaxtqJNJuQAVhZKSJfR/6hn7lhnChUXl4amwVviqN1k411BB+3rRoKMitELRn1CojeRA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001539", + "electron-to-chromium": "^1.4.530", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", "dev": true }, "node_modules/cosmiconfig": { @@ -5520,6 +8199,12 @@ "node": ">=10" } }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, "node_modules/critters": { "version": "0.0.16", "resolved": "https://registry.npmjs.org/critters/-/critters-0.0.16.tgz", @@ -5592,6 +8277,12 @@ "node": ">=8" } }, + "node_modules/critters/node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, "node_modules/critters/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -5618,6 +8309,21 @@ "node": ">= 8" } }, + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/css-loader": { "version": "6.7.3", "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.3.tgz", @@ -5644,39 +8350,6 @@ "webpack": "^5.0.0" } }, - "node_modules/css-loader/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/css-loader/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/css-loader/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/css-select": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", @@ -5718,7 +8391,7 @@ "node_modules/cssauron": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/cssauron/-/cssauron-1.4.0.tgz", - "integrity": "sha1-pmAt/34EqDBtwNuaVR6S6LVmKtg=", + "integrity": "sha512-Ht70DcFBh+/ekjVrYS2PlDMdSQEl3OFNmjK6lcn49HptBgilXf/Zwg4uFh9Xn0pX3Q8YOkSjIFOfK2osvdqpBw==", "dev": true, "dependencies": { "through": "X.X.X" @@ -5737,9 +8410,12 @@ } }, "node_modules/d3-array": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.9.1.tgz", - "integrity": "sha512-Ob7RdOtkqsjx1NWyQHMFLtCSk6/aKTxDdC4ZIolX+O+mDD2RzrsYgAyc0WGAlfYFVELLSilS7w8BtE3PKM8bHg==" + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", + "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==", + "dependencies": { + "internmap": "^1.0.0" + } }, "node_modules/d3-brush": { "version": "1.1.6", @@ -5801,14 +8477,14 @@ "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==" }, "node_modules/d3-scale": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-3.2.3.tgz", - "integrity": "sha512-8E37oWEmEzj57bHcnjPVOBS3n4jqakOeuv1EDdQSiSrYnMCBdMd3nc4HtKk7uia8DUHcY/CGuJ42xxgtEYrX0g==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-3.3.0.tgz", + "integrity": "sha512-1JGp44NQCt5d1g+Yy+GeOnZP7xHo0ii8zsQp6PGzd+C1/dl0KGsp9A7Mxwp+1D1o4unbTTxVdU/ZOIEBoeZPbQ==", "dependencies": { "d3-array": "^2.3.0", "d3-format": "1 - 2", "d3-interpolate": "1.2.0 - 2", - "d3-time": "1 - 2", + "d3-time": "^2.1.1", "d3-time-format": "2 - 3" } }, @@ -5826,9 +8502,12 @@ } }, "node_modules/d3-time": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-2.0.0.tgz", - "integrity": "sha512-2mvhstTFcMvwStWd9Tj3e6CEqtOivtD8AUiHT8ido/xmzrI9ijrUUihZ6nHuf/vsScRBonagOdj0Vv+SEL5G3Q==" + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-2.1.1.tgz", + "integrity": "sha512-/eIQe/eR4kCQwq7yxi7z4c6qEXf2IYGcjoWB5OOQy4Tq9Uv39/947qlDcN2TLkiTzQWzvnsuYPB9TrWaNfipKQ==", + "dependencies": { + "d3-array": "2" + } }, "node_modules/d3-time-format": { "version": "2.3.0", @@ -5862,15 +8541,15 @@ } }, "node_modules/damerau-levenshtein": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.6.tgz", - "integrity": "sha512-JVrozIeElnj3QzfUIt8tB8YMluBJom4Vw9qTPpjGYQ9fYlB3D/rb6OordUxf3xeFB35LKWs0xqcO5U6ySvBtug==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", "dev": true }, "node_modules/dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", "dev": true, "dependencies": { "assert-plus": "^1.0.0" @@ -5898,7 +8577,7 @@ "node_modules/decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, "engines": { "node": ">=0.10.0" @@ -5937,10 +8616,99 @@ "node": ">=8" } }, + "node_modules/del": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", + "integrity": "sha512-Z4fzpbIRjOu7lO5jCETSWoqUDVe0IPOlfugBsF6suen2LKDlVb4QZpKEM9P+buNJ4KI1eN7I083w/pbKUpsrWQ==", + "dev": true, + "dependencies": { + "globby": "^5.0.0", + "is-path-cwd": "^1.0.0", + "is-path-in-cwd": "^1.0.0", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "rimraf": "^2.2.8" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/del/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/del/node_modules/globby": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", + "integrity": "sha512-HJRTIH2EeH44ka+LWig+EqT2ONSYpVlNfx6pyd592/VF1TbfljJ7elwie7oSwcViLGqOdWocSdu2txwBF9bjmQ==", + "dev": true, + "dependencies": { + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/del/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "dev": true, "engines": { "node": ">=0.4.0" @@ -6006,6 +8774,12 @@ "node": ">=8" } }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "peer": true + }, "node_modules/dns-equal": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", @@ -6013,9 +8787,9 @@ "dev": true }, "node_modules/dns-packet": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.4.0.tgz", - "integrity": "sha512-EgqGeaBB8hLiHLZtp/IbaDQTL8pZ0+IvwzSHA6d7VyMDM+B9hgddEMa9xjK5oYnw0ci0JQ6g2XCD7/f6cafU6g==", + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.1.tgz", + "integrity": "sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw==", "dev": true, "dependencies": { "@leichtgewicht/ip-codec": "^2.0.1" @@ -6079,10 +8853,25 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, + "node_modules/dset": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.2.tgz", + "integrity": "sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q==", + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", "dev": true, "dependencies": { "jsbn": "~0.1.0", @@ -6096,9 +8885,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.328", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.328.tgz", - "integrity": "sha512-DE9tTy2PNmy1v55AZAO542ui+MLC2cvINMK4P2LXGsJdput/ThVG9t+QGecPuAZZSgC8XoI+Jh9M1OG9IoNSCw==" + "version": "1.4.534", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.534.tgz", + "integrity": "sha512-ikY7wAMtMt3jTnHsHG0YLl4MKJiKz2tgidenGSNgwUX2StBLNZ8VCxflD9tZK/ceTs4j8gDC9+6LQQ6iGkK04g==" }, "node_modules/emoji-regex": { "version": "8.0.0", @@ -6127,7 +8916,6 @@ "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "dev": true, "optional": true, "dependencies": { "iconv-lite": "^0.6.2" @@ -6137,7 +8925,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, "optional": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -6147,9 +8934,9 @@ } }, "node_modules/enhanced-resolve": { - "version": "5.12.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", - "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", "dev": true, "dependencies": { "graceful-fs": "^4.2.4", @@ -6220,12 +9007,50 @@ "node_modules/es6-promisify": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", - "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", + "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", "dev": true, "dependencies": { "es6-promise": "^4.0.3" } }, + "node_modules/esbuild": { + "version": "0.17.8", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.8.tgz", + "integrity": "sha512-g24ybC3fWhZddZK6R3uD2iF/RIPnRpwJAqLov6ouX3hMbY4+tKolP0VMF3zuIYCaXun+yHwS5IPQ91N2BT191g==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.17.8", + "@esbuild/android-arm64": "0.17.8", + "@esbuild/android-x64": "0.17.8", + "@esbuild/darwin-arm64": "0.17.8", + "@esbuild/darwin-x64": "0.17.8", + "@esbuild/freebsd-arm64": "0.17.8", + "@esbuild/freebsd-x64": "0.17.8", + "@esbuild/linux-arm": "0.17.8", + "@esbuild/linux-arm64": "0.17.8", + "@esbuild/linux-ia32": "0.17.8", + "@esbuild/linux-loong64": "0.17.8", + "@esbuild/linux-mips64el": "0.17.8", + "@esbuild/linux-ppc64": "0.17.8", + "@esbuild/linux-riscv64": "0.17.8", + "@esbuild/linux-s390x": "0.17.8", + "@esbuild/linux-x64": "0.17.8", + "@esbuild/netbsd-x64": "0.17.8", + "@esbuild/openbsd-x64": "0.17.8", + "@esbuild/sunos-x64": "0.17.8", + "@esbuild/win32-arm64": "0.17.8", + "@esbuild/win32-ia32": "0.17.8", + "@esbuild/win32-x64": "0.17.8" + } + }, "node_modules/esbuild-wasm": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.17.8.tgz", @@ -6255,7 +9080,7 @@ "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "engines": { "node": ">=0.8.0" } @@ -6381,12 +9206,18 @@ "node_modules/exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true, "engines": { "node": ">= 0.8.0" } }, + "node_modules/exponential-backoff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", + "integrity": "sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==", + "dev": true + }, "node_modules/express": { "version": "4.18.2", "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", @@ -6450,25 +9281,20 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, - "node_modules/express/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "node_modules/express/node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/extend": { "version": "3.0.2", @@ -6493,7 +9319,7 @@ "node_modules/extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", "dev": true, "engines": [ "node >=0.6.0" @@ -6505,9 +9331,9 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", @@ -6520,18 +9346,6 @@ "node": ">=8.6.0" } }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -6660,9 +9474,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "version": "1.15.3", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", + "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", "dev": true, "funding": [ { @@ -6679,10 +9493,38 @@ } } }, + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", "dev": true, "engines": { "node": "*" @@ -6712,16 +9554,16 @@ } }, "node_modules/fraction.js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", - "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.6.tgz", + "integrity": "sha512-n2aZ9tNfYDwaHhvFTkhFErqOMIb8uyzSQ+vGJBjZyanAKZVbGUQ1sngfk9FdkBw7G26O7AgNjLcecLffD1c7eg==", "dev": true, "engines": { "node": "*" }, "funding": { "type": "patreon", - "url": "https://www.patreon.com/infusion" + "url": "https://github.com/sponsors/rawify" } }, "node_modules/fresh": { @@ -6734,33 +9576,41 @@ } }, "node_modules/fs-minipass": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-3.0.1.tgz", - "integrity": "sha512-MhaJDcFRTuLidHrIttu0RDGyyXs/IYHVmlcxfLAEFIWjc1vdLAkdwT7Ace2u7DbitWC0toKMl5eJZRYNVreIMw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-3.0.3.tgz", + "integrity": "sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==", "dev": true, "dependencies": { - "minipass": "^4.0.0" + "minipass": "^7.0.3" }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.3.tgz", + "integrity": "sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/fs-monkey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", - "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.5.tgz", + "integrity": "sha512-8uMbBjrhzW76TYgEV27Y5E//W2f/lTFmx78P2w19FZSxarhI/798APGQyuGCwmkNxgwGRhrLfvWyLBvNtuOmew==", "dev": true }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "node_modules/fsevents": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", - "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", - "deprecated": "\"Please update to latest v2.3 or v2.2\"", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "hasInstallScript": true, "optional": true, "os": [ @@ -6773,8 +9623,7 @@ "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, "node_modules/gauge": { "version": "4.0.4", @@ -6795,27 +9644,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/gauge/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/gauge/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -6833,13 +9661,14 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", - "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", "dev": true, "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3" }, "funding": { @@ -6870,42 +9699,39 @@ "node_modules/getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", "dev": true, "dependencies": { "assert-plus": "^1.0.0" } }, "node_modules/glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dev": true, + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "minimatch": "^5.0.1", + "once": "^1.3.0" }, "engines": { - "node": "*" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dependencies": { - "is-glob": "^4.0.3" + "is-glob": "^4.0.1" }, "engines": { - "node": ">=10.13.0" + "node": ">= 6" } }, "node_modules/glob-to-regexp": { @@ -6923,14 +9749,14 @@ } }, "node_modules/globby": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", - "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz", + "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==", "dev": true, "dependencies": { "dir-glob": "^3.0.1", - "fast-glob": "^3.2.11", - "ignore": "^5.2.0", + "fast-glob": "^3.3.0", + "ignore": "^5.2.4", "merge2": "^1.4.1", "slash": "^4.0.0" }, @@ -6942,9 +9768,9 @@ } }, "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, "node_modules/handle-thing": { @@ -6956,7 +9782,7 @@ "node_modules/har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", "dev": true, "engines": { "node": ">=4" @@ -6992,11 +9818,16 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/har-validator/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, "dependencies": { "function-bind": "^1.1.1" }, @@ -7007,7 +9838,7 @@ "node_modules/has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", "dev": true, "dependencies": { "ansi-regex": "^2.0.0" @@ -7016,14 +9847,35 @@ "node": ">=0.10.0" } }, + "node_modules/has-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "engines": { "node": ">=4" } }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", @@ -7092,12 +9944,52 @@ "wbuf": "^1.1.0" } }, - "node_modules/html-entities": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", - "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==", + "node_modules/hpack.js/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/hpack.js/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, + "node_modules/hpack.js/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/html-entities": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.4.0.tgz", + "integrity": "sha512-igBTJcNNNhvZFRtm8uA6xMY6xYleeDwn3PeBCkDz7tHttv4F2hsDI2aPgNERWzvRcNYHNT3ymRaQzllmXj4YsQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ] + }, "node_modules/http-cache-semantics": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", @@ -7160,18 +10052,6 @@ "node": ">= 6" } }, - "node_modules/http-proxy-agent/node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, "node_modules/http-proxy-middleware": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", @@ -7199,7 +10079,7 @@ "node_modules/http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", "dev": true, "dependencies": { "assert-plus": "^1.0.0", @@ -7212,26 +10092,16 @@ } }, "node_modules/https-proxy-agent": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", - "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, "dependencies": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" + "agent-base": "6", + "debug": "4" }, "engines": { - "node": ">= 4.5.0" - } - }, - "node_modules/https-proxy-agent/node_modules/debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", - "dev": true, - "dependencies": { - "ms": "^2.1.1" + "node": ">= 6" } }, "node_modules/human-signals": { @@ -7306,36 +10176,27 @@ } }, "node_modules/ignore-walk": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-6.0.1.tgz", - "integrity": "sha512-/c8MxUAqpRccq+LyDOecwF+9KqajueJHh8fz7g3YqjMZt+NSfJzx05zrKiXwa2sKwFCzaiZ5qUVfRj0pmxixEA==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-6.0.3.tgz", + "integrity": "sha512-C7FfFoTA+bI10qfeydT8aZbvr91vAEU+2W5BZUlzPec47oNb07SsOfwYrtxuvOYdUApPP/Qlh4DtAO51Ekk2QA==", "dev": true, "dependencies": { - "minimatch": "^6.1.6" + "minimatch": "^9.0.0" }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/ignore-walk/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/ignore-walk/node_modules/minimatch": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-6.2.0.tgz", - "integrity": "sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==", + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -7357,13 +10218,13 @@ "node_modules/immediate": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=", + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", "dev": true }, "node_modules/immutable": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.0.tgz", - "integrity": "sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.4.tgz", + "integrity": "sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==", "dev": true }, "node_modules/import-fresh": { @@ -7409,16 +10270,10 @@ "node": ">=8" } }, - "node_modules/infer-owner": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", - "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", - "dev": true - }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -7430,13 +10285,12 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "deprecated": "Please update to ini >=1.3.6 to avoid a prototype pollution issue", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.1.tgz", + "integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==", "dev": true, "engines": { - "node": "*" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, "node_modules/inquirer": { @@ -7465,15 +10319,6 @@ "node": ">=12.0.0" } }, - "node_modules/inquirer/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/inquirer/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -7533,26 +10378,14 @@ } }, "node_modules/inquirer/node_modules/rxjs": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", - "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", "dev": true, "dependencies": { "tslib": "^2.1.0" } }, - "node_modules/inquirer/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/inquirer/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -7565,11 +10398,10 @@ "node": ">=8" } }, - "node_modules/inquirer/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", - "dev": true + "node_modules/internmap": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", + "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==" }, "node_modules/ip": { "version": "2.0.0", @@ -7578,9 +10410,9 @@ "dev": true }, "node_modules/ipaddr.js": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", - "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz", + "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==", "dev": true, "engines": { "node": ">= 10" @@ -7604,10 +10436,9 @@ } }, "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "dev": true, + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", + "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", "dependencies": { "has": "^1.0.3" }, @@ -7680,6 +10511,39 @@ "node": ">=0.12.0" } }, + "node_modules/is-path-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", + "integrity": "sha512-cnS56eR9SPAscL77ik76ATVqoPARTqPIVkMDVxRaWH06zT+6+CzIroYRJ0VVvm0Z1zfAvxvz9i/D3Ppjaqt5Nw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-in-cwd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", + "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", + "dev": true, + "dependencies": { + "is-path-inside": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==", + "dev": true, + "dependencies": { + "path-is-inside": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-plain-obj": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", @@ -7719,7 +10583,7 @@ "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", "dev": true }, "node_modules/is-unicode-supported": { @@ -7755,7 +10619,7 @@ "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "dev": true }, "node_modules/isexe": { @@ -7776,7 +10640,7 @@ "node_modules/isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", "dev": true }, "node_modules/istanbul-lib-coverage": { @@ -7805,18 +10669,36 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" } }, + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/jasmine": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-2.8.0.tgz", - "integrity": "sha1-awicChFXax8W3xG4AUbZHU6Lij4=", + "integrity": "sha512-KbdGQTf5jbZgltoHs31XGiChAPumMSY64OZMWLNYnEnMfG5uwGBhffePwuskexjT+/Jea/gU3qAU8344hNohSw==", "dev": true, "dependencies": { "exit": "^0.1.2", @@ -7827,16 +10709,58 @@ "jasmine": "bin/jasmine.js" } }, - "node_modules/jasmine/node_modules/jasmine-core": { + "node_modules/jasmine-core": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", - "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", + "integrity": "sha512-SNkOkS+/jMZvLhuSx1fjhcNWUC/KG6oVyFUGkSBEr9n1axSNduWU8GlI7suaHXr4yxjet6KjrUZxUTE5WzzWwQ==", "dev": true }, + "node_modules/jasmine/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jasmine/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/jasmine/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/jasminewd2": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/jasminewd2/-/jasminewd2-2.2.0.tgz", - "integrity": "sha1-43zwsX8ZnM4jvqcbIDk5Uka07E4=", + "integrity": "sha512-Rn0nZe4rfDhzA63Al3ZGh0E+JTmM6ESZYXJGKuqKGZObsAB9fwXPD03GjtIEvJBDOhN94T5MzbwZSqzFHSQPzg==", "dev": true, "engines": { "node": ">= 6.9.x" @@ -7880,15 +10804,24 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/js-cookie": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.1.tgz", + "integrity": "sha512-+0rgsUXZu4ncpPxRL+lNEptWMOWl9etvPHc/koSRp6MPwpRYAhmk0dUG00J4bxVV3r9uUzfo24wW0knS07SKSw==", + "peer": true, + "engines": { + "node": ">=12" + } + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "node_modules/js-yaml": { - "version": "3.14.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", - "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "dependencies": { "argparse": "^1.0.7", @@ -7901,7 +10834,7 @@ "node_modules/jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", "dev": true }, "node_modules/jsesc": { @@ -7922,21 +10855,20 @@ "dev": true }, "node_modules/json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", "dev": true }, "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", "dev": true }, "node_modules/json5": { @@ -7966,30 +10898,60 @@ ] }, "node_modules/jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", "dev": true, - "engines": [ - "node >=0.6.0" - ], "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", - "json-schema": "0.2.3", + "json-schema": "0.4.0", "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" } }, "node_modules/jszip": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.5.0.tgz", - "integrity": "sha512-WRtu7TPCmYePR1nazfrtuF216cIVon/3GWOvHS9QR5bIwSbnxtdpma6un3jyGGNhHsKCSzn5Ypk+EkDRvTGiFA==", + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", + "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", "dev": true, "dependencies": { "lie": "~3.3.0", "pako": "~1.0.2", "readable-stream": "~2.3.6", - "set-immediate-shim": "~1.0.1" + "setimmediate": "^1.0.5" + } + }, + "node_modules/jszip/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/jszip/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/jszip/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" } }, "node_modules/karma-source-map-support": { @@ -8079,10 +11041,20 @@ "node": ">=6" } }, + "node_modules/less/node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true, + "optional": true, + "engines": { + "node": ">=6" + } + }, "node_modules/less/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "optional": true, "bin": { @@ -8099,12 +11071,6 @@ "node": ">=0.10.0" } }, - "node_modules/less/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", - "dev": true - }, "node_modules/license-webpack-plugin": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", @@ -8273,269 +11239,92 @@ "yallist": "^3.0.2" } }, - "node_modules/magic-string": { - "version": "0.29.0", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.29.0.tgz", - "integrity": "sha512-WcfidHrDjMY+eLjlU+8OvwREqHwpgCeKVBUpQ3OhYYuvfaYCUgcbuBzappNzZvg/v8onU3oQj+BYpkOJe9Iw4Q==", - "dev": true, - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.13" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "node_modules/make-fetch-happen": { - "version": "10.2.1", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz", - "integrity": "sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==", - "dev": true, - "dependencies": { - "agentkeepalive": "^4.2.1", - "cacache": "^16.1.0", - "http-cache-semantics": "^4.1.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^7.7.1", - "minipass": "^3.1.6", - "minipass-collect": "^1.0.2", - "minipass-fetch": "^2.0.3", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^7.0.0", - "ssri": "^9.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/make-fetch-happen/node_modules/@npmcli/fs": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz", - "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==", - "dev": true, - "dependencies": { - "@gar/promisify": "^1.1.3", - "semver": "^7.3.5" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/make-fetch-happen/node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/make-fetch-happen/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/make-fetch-happen/node_modules/cacache": { - "version": "16.1.3", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz", - "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==", - "dev": true, - "dependencies": { - "@npmcli/fs": "^2.1.0", - "@npmcli/move-file": "^2.0.0", - "chownr": "^2.0.0", - "fs-minipass": "^2.1.0", - "glob": "^8.0.1", - "infer-owner": "^1.0.4", - "lru-cache": "^7.7.1", - "minipass": "^3.1.6", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "mkdirp": "^1.0.4", - "p-map": "^4.0.0", - "promise-inflight": "^1.0.1", - "rimraf": "^3.0.2", - "ssri": "^9.0.0", - "tar": "^6.1.11", - "unique-filename": "^2.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/make-fetch-happen/node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/make-fetch-happen/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/make-fetch-happen/node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/make-fetch-happen/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/make-fetch-happen/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "node_modules/magic-string": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.29.0.tgz", + "integrity": "sha512-WcfidHrDjMY+eLjlU+8OvwREqHwpgCeKVBUpQ3OhYYuvfaYCUgcbuBzappNzZvg/v8onU3oQj+BYpkOJe9Iw4Q==", "dev": true, "dependencies": { - "brace-expansion": "^2.0.1" + "@jridgewell/sourcemap-codec": "^1.4.13" }, "engines": { - "node": ">=10" + "node": ">=12" } }, - "node_modules/make-fetch-happen/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, "dependencies": { - "yallist": "^4.0.0" + "semver": "^6.0.0" }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/make-fetch-happen/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" + "semver": "bin/semver.js" } }, - "node_modules/make-fetch-happen/node_modules/ssri": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz", - "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==", + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/make-fetch-happen": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.1.1.tgz", + "integrity": "sha512-rLWS7GCSTcEujjVBs2YqG7Y4643u8ucvCJeSRqiLYhesrDuzeuFIk37xREzAsfQaqzl8b9rNCE4m6J8tvX4Q8w==", "dev": true, "dependencies": { - "minipass": "^3.1.1" + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^5.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/make-fetch-happen/node_modules/unique-filename": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz", - "integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==", + "node_modules/make-fetch-happen/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", "dev": true, - "dependencies": { - "unique-slug": "^3.0.0" - }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": ">=12" } }, - "node_modules/make-fetch-happen/node_modules/unique-slug": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz", - "integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==", + "node_modules/make-fetch-happen/node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4" - }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": ">=8" } }, - "node_modules/make-fetch-happen/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", @@ -8546,12 +11335,12 @@ } }, "node_modules/memfs": { - "version": "3.4.13", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.4.13.tgz", - "integrity": "sha512-omTM41g3Skpvx5dSYeZIbXKcXoAVc/AoMNwn9TKx++L/gaen/+4TTttmu8ZSch5vfVJ8uJvGbroTsIlslRg6lg==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.3.tgz", + "integrity": "sha512-UERzLsxzllchadvbPs5aolHh65ISpKpM+ccLbOJ8/vvpBKmAWf+la7dXFy7Mr0ySHbdHrFv5kGFCUHHe6GFEmw==", "dev": true, "dependencies": { - "fs-monkey": "^1.0.3" + "fs-monkey": "^1.0.4" }, "engines": { "node": ">= 4.0.0" @@ -8613,21 +11402,21 @@ } }, "node_modules/mime-db": { - "version": "1.44.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", - "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==", + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { - "version": "2.1.27", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", - "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, "dependencies": { - "mime-db": "1.44.0" + "mime-db": "1.52.0" }, "engines": { "node": ">= 0.6" @@ -8668,27 +11457,28 @@ "dev": true }, "node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "dependencies": { - "brace-expansion": "^1.1.7" + "brace-expansion": "^2.0.1" }, "engines": { - "node": "*" + "node": ">=10" } }, "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/minipass": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.5.tgz", - "integrity": "sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==", + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", + "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", "dev": true, "engines": { "node": ">=8" @@ -8725,40 +11515,31 @@ "dev": true }, "node_modules/minipass-fetch": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-2.1.2.tgz", - "integrity": "sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.4.tgz", + "integrity": "sha512-jHAqnA728uUpIaFm7NWsCnqKT6UqZz7GcI/bDpPATuwYyKwJwW0remxSCxUlKiEty+eopHGa3oc8WxgQ1FFJqg==", "dev": true, "dependencies": { - "minipass": "^3.1.6", + "minipass": "^7.0.3", "minipass-sized": "^1.0.3", "minizlib": "^2.1.2" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" }, "optionalDependencies": { "encoding": "^0.1.13" } }, "node_modules/minipass-fetch/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.3.tgz", + "integrity": "sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==", "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" } }, - "node_modules/minipass-fetch/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/minipass-flush": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", @@ -8909,15 +11690,15 @@ "dev": true }, "node_modules/mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, "bin": { "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/ms": { @@ -8945,10 +11726,16 @@ "dev": true }, "node_modules/nanoid": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", - "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -9012,6 +11799,15 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, + "node_modules/new-date": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/new-date/-/new-date-1.0.3.tgz", + "integrity": "sha512-0fsVvQPbo2I18DT2zVHpezmeeNYV2JaJSrseiHLc17GNOxJzUdx5mvSigPu8LtIfZSij5i1wXnXFspEs2CD6hA==", + "peer": true, + "dependencies": { + "@segment/isodate": "1.0.3" + } + }, "node_modules/ngx-file-drop": { "version": "13.0.0", "resolved": "https://registry.npmjs.org/ngx-file-drop/-/ngx-file-drop-13.0.0.tgz", @@ -9029,16 +11825,16 @@ } }, "node_modules/ngx-segment-analytics": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/ngx-segment-analytics/-/ngx-segment-analytics-1.7.0.tgz", - "integrity": "sha512-Okr8kFq/DEkU4tRNi9ctUYxhfCvB37sc1jOiEaWNSXDOSwSa7UDOizvVyOFmLmn/SudZ+UObT417vx1B1V7MLQ==", + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/ngx-segment-analytics/-/ngx-segment-analytics-16.1.0.tgz", + "integrity": "sha512-l60dkPSvKd3xTrVoxXzXRpCBLQoWLsDwadbX5BUU2Af2vZRyZx4pRq5F4XghtM+szAkslPpApAEfZ3GF1NehFQ==", "dependencies": { - "analytics.js": "^2.9.1", - "tslib": "^2.0.0" + "tslib": "^2.3.0" }, "peerDependencies": { - "@angular/common": ">=6.0.0 <12.0.0", - "@angular/core": ">=6.0.0 <12.0.0" + "@angular/common": ">=12.0.0 <17.0.0", + "@angular/core": ">=12.0.0 <17.0.0", + "@segment/analytics-next": "^1.35.1" } }, "node_modules/nice-napi": { @@ -9063,6 +11859,26 @@ "dev": true, "optional": true }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "peer": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, "node_modules/node-forge": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", @@ -9073,15 +11889,16 @@ } }, "node_modules/node-gyp": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.3.1.tgz", - "integrity": "sha512-4Q16ZCqq3g8awk6UplT7AuxQ35XN4R/yf/+wSAwcBUAjg7l58RTactWaP8fIDTi0FzI7YcVLujwExakZlfWkXg==", + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.4.0.tgz", + "integrity": "sha512-dMXsYP6gc9rRbejLXmTbVRYjAHw7ppswsKyMxuxJxxOHzluIO1rGp9TOQgjFJ+2MCqcOcQTOPB/8Xwhr+7s4Eg==", "dev": true, "dependencies": { "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", "glob": "^7.1.4", "graceful-fs": "^4.2.6", - "make-fetch-happen": "^10.0.3", + "make-fetch-happen": "^11.0.3", "nopt": "^6.0.0", "npmlog": "^6.0.0", "rimraf": "^3.0.2", @@ -9097,9 +11914,9 @@ } }, "node_modules/node-gyp-build": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", - "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz", + "integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==", "dev": true, "optional": true, "bin": { @@ -9108,10 +11925,67 @@ "node-gyp-build-test": "build-test.js" } }, + "node_modules/node-gyp/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/node-gyp/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/node-gyp/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/node-gyp/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/node-releases": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", - "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==" + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==" }, "node_modules/nopt": { "version": "6.0.0", @@ -9173,9 +12047,9 @@ } }, "node_modules/npm-install-checks": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-6.0.0.tgz", - "integrity": "sha512-SBU9oFglRVZnfElwAtF14NivyulDqF1VKqqwNsFW9HDcbHMAPHpRSsVFgKuwFGq/hVvWZExz62Th0kvxn/XE7Q==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-6.2.0.tgz", + "integrity": "sha512-744wat5wAAHsxa4590mWO0tJ8PKxR8ORZsH9wGpQc3nWTzozMAgBN/XyqYw7mg3yqLM8dLwEnwSfKMmXAjF69g==", "dev": true, "dependencies": { "semver": "^7.1.1" @@ -9185,9 +12059,9 @@ } }, "node_modules/npm-normalize-package-bin": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.0.tgz", - "integrity": "sha512-g+DPQSkusnk7HYXr75NtzkIP4+N81i3RPsGFidF3DzHd9MT9wWngmqoeg/fnHFz5MNdtG4w03s+QnhewSLTT2Q==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz", + "integrity": "sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==", "dev": true, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" @@ -9236,98 +12110,30 @@ } }, "node_modules/npm-registry-fetch": { - "version": "14.0.3", - "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.3.tgz", - "integrity": "sha512-YaeRbVNpnWvsGOjX2wk5s85XJ7l1qQBGAp724h8e2CZFFhMSuw9enom7K1mWVUtvXO1uUSFIAPofQK0pPN0ZcA==", + "version": "14.0.5", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.5.tgz", + "integrity": "sha512-kIDMIo4aBm6xg7jOttupWZamsZRkAqMqwqqbVXnUqstY5+tapvv6bkH/qMR76jdgV+YljEUCyWx3hRYMrJiAgA==", "dev": true, "dependencies": { "make-fetch-happen": "^11.0.0", - "minipass": "^4.0.0", + "minipass": "^5.0.0", "minipass-fetch": "^3.0.0", "minipass-json-stream": "^1.0.1", "minizlib": "^2.1.2", - "npm-package-arg": "^10.0.0", - "proc-log": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm-registry-fetch/node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/npm-registry-fetch/node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/npm-registry-fetch/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/npm-registry-fetch/node_modules/make-fetch-happen": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.3.tgz", - "integrity": "sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==", - "dev": true, - "dependencies": { - "agentkeepalive": "^4.2.1", - "cacache": "^17.0.0", - "http-cache-semantics": "^4.1.1", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^7.7.1", - "minipass": "^4.0.0", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^7.0.0", - "ssri": "^10.0.0" + "npm-package-arg": "^10.0.0", + "proc-log": "^3.0.0" }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/npm-registry-fetch/node_modules/minipass-fetch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", - "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", + "node_modules/npm-registry-fetch/node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", "dev": true, - "dependencies": { - "minipass": "^4.0.0", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - }, - "optionalDependencies": { - "encoding": "^0.1.13" + "node": ">=8" } }, "node_modules/npm-run-path": { @@ -9378,10 +12184,16 @@ "node": "*" } }, + "node_modules/obj-case": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/obj-case/-/obj-case-0.2.1.tgz", + "integrity": "sha512-PquYBBTy+Y6Ob/O2574XHhDtHJlV1cJHMCgW+rDRc9J5hhmRelJB3k5dTK/3cVmFVtzvAKuENeuLpoyTzMzkOg==", + "peer": true + }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, "engines": { "node": ">=0.10.0" @@ -9426,7 +12238,7 @@ "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dependencies": { "wrappy": "1" } @@ -9486,15 +12298,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ora/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/ora/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -9553,18 +12356,6 @@ "node": ">=8" } }, - "node_modules/ora/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/ora/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -9580,7 +12371,7 @@ "node_modules/os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", "dev": true, "engines": { "node": ">=0.10.0" @@ -9641,6 +12432,15 @@ "node": ">=8" } }, + "node_modules/p-retry/node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -9728,10 +12528,10 @@ } }, "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "optional": true }, "node_modules/parse5-html-rewriting-stream": { "version": "7.0.0", @@ -9748,9 +12548,9 @@ } }, "node_modules/parse5-html-rewriting-stream/node_modules/entities": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", - "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dev": true, "engines": { "node": ">=0.12" @@ -9780,6 +12580,12 @@ "parse5": "^6.0.1" } }, + "node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, "node_modules/parse5-sax-parser": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-7.0.0.tgz", @@ -9793,9 +12599,9 @@ } }, "node_modules/parse5-sax-parser/node_modules/entities": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", - "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dev": true, "engines": { "node": ">=0.12" @@ -9837,7 +12643,7 @@ "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, "engines": { "node": ">=0.10.0" @@ -9846,7 +12652,7 @@ "node_modules/path-is-inside": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==", "dev": true }, "node_modules/path-key": { @@ -9859,10 +12665,43 @@ } }, "node_modules/path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-scurry": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", + "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", + "dev": true, + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz", + "integrity": "sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==", + "dev": true, + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/path-scurry/node_modules/minipass": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.3.tgz", + "integrity": "sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } }, "node_modules/path-to-regexp": { "version": "0.1.7", @@ -9882,7 +12721,7 @@ "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", "dev": true }, "node_modules/picocolors": { @@ -9902,19 +12741,18 @@ } }, "node_modules/pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "dev": true, - "optional": true, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, "node_modules/pinkie": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", "dev": true, "engines": { "node": ">=0.10.0" @@ -9923,7 +12761,7 @@ "node_modules/pinkie-promise": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", "dev": true, "dependencies": { "pinkie": "^2.0.0" @@ -10004,39 +12842,6 @@ "webpack": "^5.0.0" } }, - "node_modules/postcss-loader/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/postcss-loader/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/postcss-loader/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/postcss-modules-extract-imports": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", @@ -10050,9 +12855,9 @@ } }, "node_modules/postcss-modules-local-by-default": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", - "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", + "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", "dev": true, "dependencies": { "icss-utils": "^5.0.0", @@ -10097,9 +12902,9 @@ } }, "node_modules/postcss-selector-parser": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.11.tgz", - "integrity": "sha512-zbARubNdogI9j7WY4nQJBiNqQf3sLS3wCP4WfOidu+p28LofJqDH1tcXypGrcmMHhDk2t9wGhCsYe/+szLTy1g==", + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", + "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", "dev": true, "dependencies": { "cssesc": "^3.0.0", @@ -10161,15 +12966,6 @@ "node": ">=10" } }, - "node_modules/promise-retry/node_modules/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, "node_modules/protractor": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/protractor/-/protractor-7.0.0.tgz", @@ -10201,46 +12997,38 @@ "node": ">=10.13.x" } }, - "node_modules/protractor/node_modules/@types/q": { - "version": "0.0.32", - "resolved": "https://registry.npmjs.org/@types/q/-/q-0.0.32.tgz", - "integrity": "sha1-vShOV8hPEyXacCur/IKlMoGQwMU=", - "dev": true - }, "node_modules/protractor/node_modules/ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", "dev": true, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, "node_modules/protractor/node_modules/ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/protractor/node_modules/array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "node_modules/protractor/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "dependencies": { - "array-uniq": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, "node_modules/protractor/node_modules/chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", "dev": true, "dependencies": { "ansi-styles": "^2.2.1", @@ -10253,220 +13041,92 @@ "node": ">=0.10.0" } }, - "node_modules/protractor/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/protractor/node_modules/cliui/node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/protractor/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/protractor/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/protractor/node_modules/del": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", - "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", - "dev": true, - "dependencies": { - "globby": "^5.0.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "rimraf": "^2.2.8" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/protractor/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/protractor/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/protractor/node_modules/globby": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", - "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", - "dev": true, - "dependencies": { - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/protractor/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/protractor/node_modules/is-path-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", - "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/protractor/node_modules/is-path-in-cwd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", - "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", - "dev": true, - "dependencies": { - "is-path-inside": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/protractor/node_modules/is-path-inside": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", - "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "node_modules/protractor/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dev": true, "dependencies": { - "path-is-inside": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" } }, - "node_modules/protractor/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/protractor/node_modules/cliui/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, "engines": { "node": ">=8" } }, - "node_modules/protractor/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/protractor/node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "dependencies": { - "p-limit": "^2.2.0" + "ansi-regex": "^5.0.1" }, "engines": { "node": ">=8" } }, - "node_modules/protractor/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "node_modules/protractor/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, "engines": { - "node": ">=8" + "node": ">=7.0.0" } }, - "node_modules/protractor/node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "node_modules/protractor/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/protractor/node_modules/q": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", - "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", + "node_modules/protractor/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, "engines": { - "node": ">=0.6.0", - "teleport": ">=0.2.0" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/protractor/node_modules/rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "node_modules/protractor/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "dependencies": { - "glob": "^7.1.3" + "brace-expansion": "^1.1.7" }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/protractor/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" + "engines": { + "node": "*" } }, "node_modules/protractor/node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", "dev": true, "engines": { "node": ">=0.10.0" @@ -10481,66 +13141,27 @@ "source-map": "^0.5.6" } }, - "node_modules/protractor/node_modules/string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/protractor/node_modules/string-width/node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "node_modules/protractor/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", "dev": true, "dependencies": { - "ansi-regex": "^5.0.0" + "ansi-regex": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, "node_modules/protractor/node_modules/supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", "dev": true, "engines": { "node": ">=0.8.0" } }, - "node_modules/protractor/node_modules/webdriver-manager": { - "version": "12.1.7", - "resolved": "https://registry.npmjs.org/webdriver-manager/-/webdriver-manager-12.1.7.tgz", - "integrity": "sha512-XINj6b8CYuUYC93SG3xPkxlyUc3IJbD6Vvo75CVGuG9uzsefDzWQrhz0Lq8vbPxtb4d63CZdYophF8k8Or/YiA==", - "dev": true, - "dependencies": { - "adm-zip": "^0.4.9", - "chalk": "^1.1.1", - "del": "^2.2.0", - "glob": "^7.0.3", - "ini": "^1.3.4", - "minimist": "^1.2.0", - "q": "^1.4.1", - "request": "^2.87.0", - "rimraf": "^2.5.2", - "semver": "^5.3.0", - "xml2js": "^0.4.17" - }, - "bin": { - "webdriver-manager": "bin/webdriver-manager" - }, - "engines": { - "node": ">=6.9.x" - } - }, "node_modules/protractor/node_modules/wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", @@ -10555,13 +13176,21 @@ "node": ">=8" } }, + "node_modules/protractor/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/protractor/node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "@types/color-name": "^1.1.1", "color-convert": "^2.0.1" }, "engines": { @@ -10572,17 +13201,23 @@ } }, "node_modules/protractor/node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "dependencies": { - "ansi-regex": "^5.0.0" + "ansi-regex": "^5.0.1" }, "engines": { "node": ">=8" } }, + "node_modules/protractor/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, "node_modules/protractor/node_modules/yargs": { "version": "15.4.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", @@ -10648,32 +13283,36 @@ "optional": true }, "node_modules/psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", "dev": true }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "engines": { "node": ">=6" } }, + "node_modules/q": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", + "integrity": "sha512-/CdEdaw49VZVmyIDGUQKDDT53c7qBkO6g5CefWz91Ae+l4+cRtcDYwMTXh6me4O8TMldeGHG3N2Bl84V78Ywbg==", + "dev": true, + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } + }, "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", "dev": true, - "dependencies": { - "side-channel": "^1.0.4" - }, "engines": { "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, "node_modules/queue-microtask": { @@ -10739,12 +13378,12 @@ } }, "node_modules/read-package-json": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-6.0.0.tgz", - "integrity": "sha512-b/9jxWJ8EwogJPpv99ma+QwtqB7FSl3+V6UXS7Aaay8/5VwMY50oIFooY1UKXMWpfNCM6T/PoGqa5GD1g9xf9w==", + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-6.0.4.tgz", + "integrity": "sha512-AEtWXYfopBj2z5N5PbkAOeNHRPUg5q+Nen7QLxV8M2zJq1ym6/lCz3fYNTCXe19puu2d06jfHhrP7v/S2PtMMw==", "dev": true, "dependencies": { - "glob": "^8.0.1", + "glob": "^10.2.2", "json-parse-even-better-errors": "^3.0.0", "normalize-package-data": "^5.0.0", "npm-normalize-package-bin": "^3.0.0" @@ -10775,29 +13414,23 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/read-package-json/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/read-package-json/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" }, "engines": { - "node": ">=12" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -10813,30 +13446,41 @@ } }, "node_modules/read-package-json/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/read-package-json/node_modules/minipass": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.3.tgz", + "integrity": "sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" } }, "node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, "node_modules/readdirp": { @@ -10862,9 +13506,9 @@ "dev": true }, "node_modules/regenerate-unicode-properties": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", - "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", + "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", "dev": true, "dependencies": { "regenerate": "^1.4.2" @@ -10880,9 +13524,9 @@ "dev": true }, "node_modules/regenerator-transform": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", - "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", + "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", "dev": true, "dependencies": { "@babel/runtime": "^7.8.4" @@ -10964,19 +13608,10 @@ "node": ">= 6" } }, - "node_modules/request/node_modules/qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "engines": { "node": ">=0.10.0" } @@ -11002,12 +13637,16 @@ "dev": true }, "node_modules/resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "dev": true, + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "dependencies": { - "path-parse": "^1.0.6" + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -11075,9 +13714,9 @@ } }, "node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", "dev": true, "engines": { "node": ">= 4" @@ -11093,21 +13732,63 @@ "node": ">=0.10.0" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, "dependencies": { - "glob": "^7.1.3" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, - "bin": { - "rimraf": "bin.js" + "engines": { + "node": "*" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/rimraf/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", @@ -11141,9 +13822,9 @@ } }, "node_modules/rxjs": { - "version": "6.6.3", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.3.tgz", - "integrity": "sha512-trsQc+xYYXZ3urjOiJOuCOa5N3jAZ3eiSpQB5hIT8zGlL2QfnHLJ2r7GMkBGuIausdJN1OneaI6gQlsqNHHmZQ==", + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", "dependencies": { "tslib": "^1.9.0" }, @@ -11157,16 +13838,30 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true + "devOptional": true }, "node_modules/sass": { "version": "1.58.1", @@ -11235,22 +13930,56 @@ "node": "*" } }, + "node_modules/saucelabs/node_modules/agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "dev": true, + "dependencies": { + "es6-promisify": "^5.0.0" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/saucelabs/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/saucelabs/node_modules/https-proxy-agent": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", + "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "dev": true, + "dependencies": { + "agent-base": "^4.3.0", + "debug": "^3.1.0" + }, + "engines": { + "node": ">= 4.5.0" + } + }, "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", + "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==", "dev": true }, "node_modules/schema-utils": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", - "integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", - "ajv": "^8.8.0", + "ajv": "^8.9.0", "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.0.0" + "ajv-keywords": "^5.1.0" }, "engines": { "node": ">= 12.13.0" @@ -11260,28 +13989,6 @@ "url": "https://opencollective.com/webpack" } }, - "node_modules/schema-utils/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/schema-utils/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, "node_modules/select-hose": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", @@ -11303,6 +14010,48 @@ "node": ">= 6.9.0" } }, + "node_modules/selenium-webdriver/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/selenium-webdriver/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/selenium-webdriver/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/selenium-webdriver/node_modules/rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", @@ -11318,7 +14067,7 @@ "node_modules/selenium-webdriver/node_modules/tmp": { "version": "0.0.30", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.30.tgz", - "integrity": "sha1-ckGdSovn1s51FI/YsyTlk6cRwu0=", + "integrity": "sha512-HXdTB7lvMwcb55XFfrTM8CPr/IYREk4hVBFaQ4b/6nInrluSL86hfHm7vu0luYKCfyBZp2trCjpc8caC3vVM3w==", "dev": true, "dependencies": { "os-tmpdir": "~1.0.1" @@ -11340,9 +14089,9 @@ } }, "node_modules/semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -11356,16 +14105,16 @@ "node_modules/semver-dsl": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/semver-dsl/-/semver-dsl-1.0.1.tgz", - "integrity": "sha1-02eN5VVeimH2Ke7QJTZq5fJzQKA=", + "integrity": "sha512-e8BOaTo007E3dMuQQTnPdalbKTABKNS7UxoBIDnwOqRa+QwMrCPjynB8zAlPF6xlqUfdLPPLIJ13hJNmhtq8Ng==", "dev": true, "dependencies": { "semver": "^5.3.0" } }, "node_modules/semver-dsl/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -11537,17 +14286,14 @@ "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "dev": true }, - "node_modules/set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "node_modules/setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", + "dev": true }, "node_modules/setprototypeof": { "version": "1.2.0", @@ -11609,13 +14355,16 @@ "dev": true }, "node_modules/sigstore": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/sigstore/-/sigstore-1.0.0.tgz", - "integrity": "sha512-e+qfbn/zf1+rCza/BhIA//Awmf0v1pa5HQS8Xk8iXrn9bgytytVLqYD0P7NSqZ6IELTgq+tcDvLPkQjNHyWLNg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/sigstore/-/sigstore-1.9.0.tgz", + "integrity": "sha512-0Zjz0oe37d08VeOtBIuB6cRriqXse2e8w+7yIy2XSXjshRKxbc2KkhXjL229jXSxEm7UbcjS76wcJDGQddVI9A==", "dev": true, "dependencies": { - "make-fetch-happen": "^11.0.1", - "tuf-js": "^1.0.0" + "@sigstore/bundle": "^1.1.0", + "@sigstore/protobuf-specs": "^0.2.0", + "@sigstore/sign": "^1.0.0", + "@sigstore/tuf": "^1.0.3", + "make-fetch-happen": "^11.0.1" }, "bin": { "sigstore": "bin/sigstore.js" @@ -11624,83 +14373,6 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/sigstore/node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/sigstore/node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/sigstore/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/sigstore/node_modules/make-fetch-happen": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.3.tgz", - "integrity": "sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==", - "dev": true, - "dependencies": { - "agentkeepalive": "^4.2.1", - "cacache": "^17.0.0", - "http-cache-semantics": "^4.1.1", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^7.7.1", - "minipass": "^4.0.0", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^7.0.0", - "ssri": "^10.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/sigstore/node_modules/minipass-fetch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", - "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", - "dev": true, - "dependencies": { - "minipass": "^4.0.0", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - }, - "optionalDependencies": { - "encoding": "^0.1.13" - } - }, "node_modules/slash": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", @@ -11771,18 +14443,6 @@ "node": ">= 10" } }, - "node_modules/socks-proxy-agent/node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, "node_modules/source-map": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", @@ -11835,9 +14495,9 @@ } }, "node_modules/source-map-support": { - "version": "0.5.19", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", - "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, "dependencies": { "buffer-from": "^1.0.0", @@ -11853,6 +14513,12 @@ "node": ">=0.10.0" } }, + "node_modules/spark-md5": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/spark-md5/-/spark-md5-3.0.2.tgz", + "integrity": "sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw==", + "peer": true + }, "node_modules/spdx-correct": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", @@ -11880,9 +14546,9 @@ } }, "node_modules/spdx-license-ids": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", - "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.15.tgz", + "integrity": "sha512-lpT8hSQp9jAKp9mhtBU4Xjon8LPGBvLIuBiSVhMEtmLecTh2mO0tlqrAMp47tBXzMr13NJMQ2lf7RpQGLJ3HsQ==", "dev": true }, "node_modules/spdy": { @@ -11902,43 +14568,29 @@ } }, "node_modules/spdy-transport": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", - "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", - "dev": true, - "dependencies": { - "debug": "^4.1.0", - "detect-node": "^2.0.4", - "hpack.js": "^2.1.6", - "obuf": "^1.1.2", - "readable-stream": "^3.0.6", - "wbuf": "^1.7.3" - } - }, - "node_modules/spdy-transport/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dev": true, + "dependencies": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" } }, "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", "dev": true }, "node_modules/sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", + "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", "dev": true, "dependencies": { "asn1": "~0.2.3", @@ -11961,17 +14613,26 @@ } }, "node_modules/ssri": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.1.tgz", - "integrity": "sha512-WVy6di9DlPOeBWEjMScpNipeSX2jIZBGEn5Uuo8Q7aIuFEuDX0pw8RxcOjlD1TWP4obi24ki7m/13+nFpcbXrw==", + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.5.tgz", + "integrity": "sha512-bSf16tAFkGeRlUNDjXu8FzaMQt6g2HZJrun7mtMbIPOddxt3GLMSz5VWUWcqTJUPfLEaDIepGxv+bYQW49596A==", "dev": true, "dependencies": { - "minipass": "^4.0.0" + "minipass": "^7.0.3" }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/ssri/node_modules/minipass": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.3.tgz", + "integrity": "sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -11982,12 +14643,12 @@ } }, "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "dev": true, "dependencies": { - "safe-buffer": "~5.1.0" + "safe-buffer": "~5.2.0" } }, "node_modules/string-width": { @@ -12003,15 +14664,22 @@ "node": ">=8" } }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, "engines": { "node": ">=8" } }, - "node_modules/string-width/node_modules/strip-ansi": { + "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", @@ -12022,16 +14690,17 @@ "node": ">=8" } }, - "node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "dependencies": { - "ansi-regex": "^2.0.0" + "ansi-regex": "^5.0.1" }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, "node_modules/strip-final-newline": { @@ -12058,7 +14727,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -12085,14 +14753,14 @@ } }, "node_modules/tar": { - "version": "6.1.13", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", - "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz", + "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==", "dev": true, "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", - "minipass": "^4.0.0", + "minipass": "^5.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" @@ -12125,16 +14793,13 @@ "node": ">=8" } }, - "node_modules/tar/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", "dev": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, "engines": { - "node": ">=10" + "node": ">=8" } }, "node_modules/tar/node_modules/yallist": { @@ -12162,16 +14827,16 @@ } }, "node_modules/terser-webpack-plugin": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.7.tgz", - "integrity": "sha512-AfKwIktyP7Cu50xNjXF/6Qb5lBNzYaWpU6YfoX3uZicTx0zTy0stDDCsvjDapKsSDvOeWo5MEq4TmdBy2cNoHw==", + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", "dev": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.17", "jest-worker": "^27.4.5", "schema-utils": "^3.1.1", "serialize-javascript": "^6.0.1", - "terser": "^5.16.5" + "terser": "^5.16.8" }, "engines": { "node": ">= 10.13.0" @@ -12220,10 +14885,16 @@ "ajv": "^6.9.1" } }, + "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, "node_modules/terser-webpack-plugin/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.8", @@ -12238,33 +14909,14 @@ "url": "https://opencollective.com/webpack" } }, - "node_modules/terser-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/terser-webpack-plugin/node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, "node_modules/terser-webpack-plugin/node_modules/terser": { - "version": "5.16.6", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.6.tgz", - "integrity": "sha512-IBZ+ZQIA9sMaXmRZCUMDjNH0D5AQQfdn4WUjHL0+1lF4TP1IHRJbrhb6fNaXWikrYQTSkb7SLxkeXAiy1p7mbg==", + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.20.0.tgz", + "integrity": "sha512-e56ETryaQDyebBwJIWYB2TT6f2EZ0fL0sW/JRXNMN26zZdKi2u/E/5my5lG6jNxym6qsrVXfFRmOdV42zlAgLQ==", "dev": true, "dependencies": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, @@ -12275,25 +14927,6 @@ "node": ">=10" } }, - "node_modules/terser/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/terser/node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -12308,6 +14941,48 @@ "node": ">=8" } }, + "node_modules/test-exclude/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/test-exclude/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/test-exclude/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -12317,7 +14992,7 @@ "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, "node_modules/thunky": { @@ -12326,6 +15001,12 @@ "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", "dev": true }, + "node_modules/tiny-hashes": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tiny-hashes/-/tiny-hashes-1.0.1.tgz", + "integrity": "sha512-knIN5zj4fl7kW4EBU5sLP20DWUvi/rVouvJezV0UAym2DkQaqm365Nyc8F3QEiOvunNDMxR8UhcXd1d5g+Wg1g==", + "peer": true + }, "node_modules/tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", @@ -12379,6 +15060,12 @@ "node": ">=0.8" } }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "peer": true + }, "node_modules/tree-kill": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", @@ -12389,12 +15076,13 @@ } }, "node_modules/ts-node": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.0.0.tgz", - "integrity": "sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg==", + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.1.1.tgz", + "integrity": "sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==", "dev": true, "dependencies": { "arg": "^4.1.0", + "create-require": "^1.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", "source-map-support": "^0.5.17", @@ -12414,9 +15102,9 @@ } }, "node_modules/tslib": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.1.tgz", - "integrity": "sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ==" + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/tslint": { "version": "6.1.3", @@ -12449,133 +15137,111 @@ "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev || >= 4.0.0-dev" } }, - "node_modules/tslint/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/tslint/node_modules/tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - }, - "node_modules/tsutils": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", - "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "node_modules/tslint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "dependencies": { - "tslib": "^1.8.1" - }, - "peerDependencies": { - "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - }, - "node_modules/tuf-js": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-1.1.1.tgz", - "integrity": "sha512-WTp382/PR96k0dI4GD5RdiRhgOU0rAC7+lnoih/5pZg3cyb3aNMqDozleEEWwyfT3+FOg7Qz9JU3n6A44tLSHw==", + "node_modules/tslint/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, "dependencies": { - "@tufjs/models": "1.0.0", - "make-fetch-happen": "^11.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/tuf-js/node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "node_modules/tslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "dependencies": { - "debug": "4" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">= 6.0.0" + "node": "*" } }, - "node_modules/tuf-js/node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "node_modules/tslint/node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", "dev": true, "dependencies": { - "agent-base": "6", - "debug": "4" + "minimist": "^1.2.6" }, - "engines": { - "node": ">= 6" + "bin": { + "mkdirp": "bin/cmd.js" } }, - "node_modules/tuf-js/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "node_modules/tslint/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, - "engines": { - "node": ">=12" + "bin": { + "semver": "bin/semver" } }, - "node_modules/tuf-js/node_modules/make-fetch-happen": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.3.tgz", - "integrity": "sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==", + "node_modules/tslint/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", "dev": true, "dependencies": { - "agentkeepalive": "^4.2.1", - "cacache": "^17.0.0", - "http-cache-semantics": "^4.1.1", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^7.7.1", - "minipass": "^4.0.0", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^7.0.0", - "ssri": "^10.0.0" + "tslib": "^1.8.1" }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "peerDependencies": { + "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev" } }, - "node_modules/tuf-js/node_modules/minipass-fetch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", - "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tuf-js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-1.1.7.tgz", + "integrity": "sha512-i3P9Kgw3ytjELUfpuKVDNBJvk4u5bXL6gskv572mcevPbSKCV3zt3djhmlEQ65yERjIbOSncy7U4cQJaB1CBCg==", "dev": true, "dependencies": { - "minipass": "^4.0.0", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" + "@tufjs/models": "1.0.4", + "debug": "^4.3.4", + "make-fetch-happen": "^11.1.1" }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - }, - "optionalDependencies": { - "encoding": "^0.1.13" } }, "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", "dev": true, "dependencies": { "safe-buffer": "^5.0.1" @@ -12587,7 +15253,7 @@ "node_modules/tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", "dev": true }, "node_modules/type-fest": { @@ -12633,6 +15299,12 @@ "node": ">=4.2.0" } }, + "node_modules/unfetch": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/unfetch/-/unfetch-4.2.0.tgz", + "integrity": "sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==", + "peer": true + }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", @@ -12707,9 +15379,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", - "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", "funding": [ { "type": "opencollective", @@ -12718,6 +15390,10 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], "dependencies": { @@ -12725,16 +15401,16 @@ "picocolors": "^1.0.0" }, "bin": { - "browserslist-lint": "cli.js" + "update-browserslist-db": "cli.js" }, "peerDependencies": { "browserslist": ">= 4.21.0" } }, "node_modules/uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dependencies": { "punycode": "^2.1.0" } @@ -12742,7 +15418,7 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, "node_modules/utils-merge": { @@ -12803,7 +15479,7 @@ "node_modules/verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", "dev": true, "engines": [ "node >=0.6.0" @@ -12858,10 +15534,165 @@ "node": ">=6.9.x" } }, + "node_modules/webdriver-manager": { + "version": "12.1.9", + "resolved": "https://registry.npmjs.org/webdriver-manager/-/webdriver-manager-12.1.9.tgz", + "integrity": "sha512-Yl113uKm8z4m/KMUVWHq1Sjtla2uxEBtx2Ue3AmIlnlPAKloDn/Lvmy6pqWCUersVISpdMeVpAaGbNnvMuT2LQ==", + "dev": true, + "dependencies": { + "adm-zip": "^0.5.2", + "chalk": "^1.1.1", + "del": "^2.2.0", + "glob": "^7.0.3", + "ini": "^1.3.4", + "minimist": "^1.2.0", + "q": "^1.4.1", + "request": "^2.87.0", + "rimraf": "^2.5.2", + "semver": "^5.3.0", + "xml2js": "^0.4.17" + }, + "bin": { + "webdriver-manager": "bin/webdriver-manager" + }, + "engines": { + "node": ">=6.9.x" + } + }, + "node_modules/webdriver-manager/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webdriver-manager/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webdriver-manager/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/webdriver-manager/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webdriver-manager/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/webdriver-manager/node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "node_modules/webdriver-manager/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/webdriver-manager/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/webdriver-manager/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/webdriver-manager/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webdriver-manager/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "peer": true + }, "node_modules/webpack": { - "version": "5.75.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.75.0.tgz", - "integrity": "sha512-piaIaoVJlqMsPtX/+3KTTO6jfvrSYgauFVdt8cr9LTHKmcq/AMd4mhzsiP7ZF/PGRNPGA8336jldh9l2Kt2ogQ==", + "version": "5.76.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.76.1.tgz", + "integrity": "sha512-4+YIK4Abzv8172/SGqObnUjaIHjLEuUasz9EwQj/9xmPPkYJy2Mh03Q/lJfSD3YLzbxy5FeTq5Uw0323Oh6SJQ==", "dev": true, "dependencies": { "@types/eslint-scope": "^3.7.3", @@ -12928,27 +15759,6 @@ "webpack": "^5.0.0" } }, - "node_modules/webpack-dev-middleware/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack-dev-middleware/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/webpack-dev-server": { "version": "4.11.1", "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.11.1.tgz", @@ -13004,27 +15814,6 @@ } } }, - "node_modules/webpack-dev-server/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/webpack-dev-server/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/webpack-dev-server/node_modules/webpack-dev-middleware": { "version": "5.3.3", "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", @@ -13116,10 +15905,16 @@ "ajv": "^6.9.1" } }, + "node_modules/webpack/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, "node_modules/webpack/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.8", @@ -13157,25 +15952,35 @@ "node": ">=0.8.0" } }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "peer": true, + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/which/-/which-3.0.1.tgz", + "integrity": "sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==", "dev": true, "dependencies": { "isexe": "^2.0.0" }, "bin": { - "node-which": "bin/node-which" + "node-which": "bin/which.js" }, "engines": { - "node": ">= 8" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, "node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", "dev": true }, "node_modules/wide-align": { @@ -13188,9 +15993,9 @@ } }, "node_modules/wildcard": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", "dev": true }, "node_modules/wrap-ansi": { @@ -13209,18 +16014,29 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -13231,10 +16047,11 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/color-convert": { + "node_modules/wrap-ansi-cjs/node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { "color-name": "~1.1.4" }, @@ -13242,31 +16059,51 @@ "node": ">=7.0.0" } }, - "node_modules/wrap-ansi/node_modules/color-name": { + "node_modules/wrap-ansi-cjs/node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { - "ansi-regex": "^5.0.1" + "color-convert": "^2.0.1" }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/ws": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", - "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "version": "8.14.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", + "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", "dev": true, "engines": { "node": ">=10.0.0" @@ -13307,10 +16144,12 @@ } }, "node_modules/y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", - "dev": true + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } }, "node_modules/yallist": { "version": "3.1.1", @@ -13327,9 +16166,9 @@ } }, "node_modules/yargs": { - "version": "17.7.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", - "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", + "version": "17.6.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", + "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -13351,14 +16190,6 @@ "node": ">=12" } }, - "node_modules/yargs/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", @@ -13375,11 +16206,6 @@ "dependencies": { "tslib": "^2.3.0" } - }, - "node_modules/zone.js/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" } } } diff --git a/console/ui/package.json b/console/ui/package.json index 2c206b50af..e4a126f2d7 100644 --- a/console/ui/package.json +++ b/console/ui/package.json @@ -22,15 +22,16 @@ "@angular/platform-browser": "^15.2.2", "@angular/platform-browser-dynamic": "^15.2.2", "@angular/router": "^15.2.2", - "@ng-bootstrap/ng-bootstrap": "^8.0.1", - "@ng-select/ng-select": "^5.0.14", + "@ng-bootstrap/ng-bootstrap": "^14.0.0", + "@ng-select/ng-select": "^10.0.0", + "@popperjs/core": "^2.11.8", "@scarf/scarf": "^1.1.1", "@swimlane/ngx-charts": "^16.0.0", "ace-builds": "^1.4.12", "ajv": "^8.12.0", "file-saver": "^2.0.5", "ngx-file-drop": "^13.0.0", - "ngx-segment-analytics": "^1.7.0", + "ngx-segment-analytics": "^16.1.0", "rxjs": "~6.6.3", "tslib": "^2.0.1", "vanilla-jsoneditor": "^0.15.1", diff --git a/console/ui/src/app/apiexplorer/apiexplorer.component.ts b/console/ui/src/app/apiexplorer/apiexplorer.component.ts index ed0cdaffb3..78e3fd040b 100644 --- a/console/ui/src/app/apiexplorer/apiexplorer.component.ts +++ b/console/ui/src/app/apiexplorer/apiexplorer.component.ts @@ -139,7 +139,6 @@ export class ApiExplorerComponent implements OnInit, AfterViewInit { setupRequestBody(body): void { if (this.jsonEditor == null) { - console.log('problem?'); // not initialised yet return; } diff --git a/console/ui/src/app/matches/matches.component.ts b/console/ui/src/app/matches/matches.component.ts index 2d2e21609b..f352d379cf 100644 --- a/console/ui/src/app/matches/matches.component.ts +++ b/console/ui/src/app/matches/matches.component.ts @@ -22,8 +22,8 @@ import { MatchState, RealtimeUserPresence } from '../console.service'; -import {UntypedFormBuilder, UntypedFormGroup} from "@angular/forms"; -import {catchError, mergeMap} from "rxjs/operators"; +import {UntypedFormBuilder, UntypedFormGroup} from '@angular/forms'; +import {catchError, mergeMap} from 'rxjs/operators'; @Component({ templateUrl: './matches.component.html', @@ -37,8 +37,8 @@ export class MatchesComponent implements OnInit { public updated = false; public searchForm1: UntypedFormGroup; public searchForm2: UntypedFormGroup; - public searchForm3: UntypedFormGroup; //Authoritative - public type: number + public searchForm3: UntypedFormGroup; // Authoritative + public type: number; public activeType = 'All'; public readonly types = ['All', 'Authoritative', 'Relayed']; public activeNode = 'All Nodes'; @@ -68,13 +68,12 @@ export class MatchesComponent implements OnInit { this.f2.match_id.setValue(qp.get('match_id')); this.f3.query.setValue(qp.get('query')); - let qType = qp.get("type"); - this.type = Number(qType) - let qNode = qp.get('node') + const qType = qp.get('type'); + this.type = Number(qType); + const qNode = qp.get('node'); this.route.data.subscribe( d => { - console.log(d) if (d) { if (d[0]) { this.error = ''; @@ -84,7 +83,7 @@ export class MatchesComponent implements OnInit { this.matchStatesOpen.length = this.matches.length; } if (d[1]) { - this.nodes.push(...d[1]) + this.nodes.push(...d[1]); } if (d.error) { this.error = d.error; @@ -97,36 +96,36 @@ export class MatchesComponent implements OnInit { if (qType === null) { this.type = 0; - this.activeType = this.types[0] + this.activeType = this.types[0]; } else { - if (this.type == 0 || this.type == 1 || this.type == 2) { - this.activeType = this.types[this.type] + if (this.type == 0 || this.type === 1 || this.type === 2) { + this.activeType = this.types[this.type]; } else { - this.error = "Invalid type" + this.error = 'Invalid type'; } } if (qNode !== null) { - let found = false + let found = false; this.nodes.forEach((node) => { if (qNode === node) { - this.activeNode = qNode - found = true + this.activeNode = qNode; + found = true; } - }) + }); if (!found) { - this.error = "Invalid node." + this.error = 'Invalid node.'; } } } - search() : void { - const type = this.getType() - this.type = type - list(this.consoleService, type, type == 0? this.f1.match_id.value : this.f2.match_id.value, this.f3.query.value, this.activeNode === this.nodes[0] ? "" : this.activeNode) - .subscribe(d => this.postData(d), err => { this.error = err;}); + search(): void { + const type = this.getType(); + this.type = type; + list(this.consoleService, type, type === 0 ? this.f1.match_id.value : this.f2.match_id.value, this.f3.query.value, this.activeNode === this.nodes[0] ? '' : this.activeNode) + .subscribe(d => this.postData(d), err => { this.error = err; }); } - postData(d) { + postData(d): void { this.error = ''; this.matches.length = 0; this.matches.push(...d.matches); @@ -134,7 +133,7 @@ export class MatchesComponent implements OnInit { this.matchStatesOpen.length = this.matches.length; let params: Params; - switch(this.type) { + switch (this.type) { case (0): params = {type: this.type, match_id: this.f1.match_id.value}; break; @@ -144,7 +143,7 @@ export class MatchesComponent implements OnInit { query: this.f3.query.value, }; if (this.activeNode !== this.nodes[0]) { - params["node"] = this.activeNode + params.node = this.activeNode; } break; case (2): @@ -157,11 +156,11 @@ export class MatchesComponent implements OnInit { }); } - getType() { + getType(): number { let tp = 0; this.types.forEach((t, ix) => { if (this.activeType === t) { - tp = ix + tp = ix; } }); return tp; @@ -205,7 +204,7 @@ export class MatchesResolver implements Resolve { constructor(private readonly consoleService: ConsoleService) {} resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable { - let type = Number(route.queryParamMap.get('type')); + const type = Number(route.queryParamMap.get('type')); return list(this.consoleService, type, route.queryParamMap.get('match_id'), route.queryParamMap.get('query'), route.queryParamMap.get('node')).pipe(catchError(error => { route.data = {...route.data, error}; return of(null); @@ -213,8 +212,8 @@ export class MatchesResolver implements Resolve { } } -function list(service: ConsoleService, type: number, matchId: string, query: string, node: string) : Observable { - switch(type) { +function list(service: ConsoleService, type: number, matchId: string, query: string, node: string): Observable { + switch (type) { case (0): return service.listMatches('', null, null, null, null, null, matchId); case (1): @@ -222,7 +221,7 @@ function list(service: ConsoleService, type: number, matchId: string, query: str case (2): return service.listMatches('', null, false, null, null, null, matchId); } - return of(null) + return of(null); } @Injectable({providedIn: 'root'}) diff --git a/console/ui/src/app/storage-object/storage-object.component.html b/console/ui/src/app/storage-object/storage-object.component.html index 8b4386fd5c..4713532bae 100644 --- a/console/ui/src/app/storage-object/storage-object.component.html +++ b/console/ui/src/app/storage-object/storage-object.component.html @@ -50,15 +50,15 @@
    Storage object was modified successfu
    -
    -
    @@ -75,12 +75,12 @@
    Storage object was modified successfu
    -
    -
    diff --git a/console/ui/src/app/storage-object/storage-object.component.ts b/console/ui/src/app/storage-object/storage-object.component.ts index 10ffcc4d7a..fb70e836f3 100644 --- a/console/ui/src/app/storage-object/storage-object.component.ts +++ b/console/ui/src/app/storage-object/storage-object.component.ts @@ -39,8 +39,8 @@ export class StorageObjectComponent implements OnInit, AfterViewInit { collection: ['', Validators.required], keyname: ['', Validators.required], user_id: ['', Validators.required], - permission_read: [0, Validators.required], - permission_write: [0, Validators.required] + permission_read: [{value: 0, disabled: false}, Validators.required], + permission_write: [{value: 0, disabled: false}, Validators.required] }); this.route.data.subscribe( @@ -75,7 +75,7 @@ export class StorageObjectComponent implements OnInit, AfterViewInit { props: { mode: Mode.text, readOnly: !this.updateAllowed(), - content:{text:this.object.value}, + content: {text: this.object.value}, }, }); } @@ -158,6 +158,7 @@ export class StorageObjectComponent implements OnInit, AfterViewInit { } get f(): any { + // console.log(this.objectForm.controls); return this.objectForm.controls; } } diff --git a/console/ui/src/app/users/users.component.html b/console/ui/src/app/users/users.component.html index 701c8e1617..f718a270a5 100644 --- a/console/ui/src/app/users/users.component.html +++ b/console/ui/src/app/users/users.component.html @@ -34,7 +34,7 @@
    An error occurred: {{error}}
    Add new user
    - +
    User roles
    diff --git a/console/ui/src/bootstrap.min.css b/console/ui/src/bootstrap.min.css index 86b6845bc3..27a8e82087 100644 --- a/console/ui/src/bootstrap.min.css +++ b/console/ui/src/bootstrap.min.css @@ -4,4 +4,4 @@ * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]){color:inherit;text-decoration:none}a:not([href]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer::before{content:"\2014\00A0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;order:-1}.order-last{-ms-flex-order:13;order:13}.order-0{-ms-flex-order:0;order:0}.order-1{-ms-flex-order:1;order:1}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-sm-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-sm-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;order:-1}.order-sm-last{-ms-flex-order:13;order:13}.order-sm-0{-ms-flex-order:0;order:0}.order-sm-1{-ms-flex-order:1;order:1}.order-sm-2{-ms-flex-order:2;order:2}.order-sm-3{-ms-flex-order:3;order:3}.order-sm-4{-ms-flex-order:4;order:4}.order-sm-5{-ms-flex-order:5;order:5}.order-sm-6{-ms-flex-order:6;order:6}.order-sm-7{-ms-flex-order:7;order:7}.order-sm-8{-ms-flex-order:8;order:8}.order-sm-9{-ms-flex-order:9;order:9}.order-sm-10{-ms-flex-order:10;order:10}.order-sm-11{-ms-flex-order:11;order:11}.order-sm-12{-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-md-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-md-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-md-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-md-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-md-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-md-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-md-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-md-first{-ms-flex-order:-1;order:-1}.order-md-last{-ms-flex-order:13;order:13}.order-md-0{-ms-flex-order:0;order:0}.order-md-1{-ms-flex-order:1;order:1}.order-md-2{-ms-flex-order:2;order:2}.order-md-3{-ms-flex-order:3;order:3}.order-md-4{-ms-flex-order:4;order:4}.order-md-5{-ms-flex-order:5;order:5}.order-md-6{-ms-flex-order:6;order:6}.order-md-7{-ms-flex-order:7;order:7}.order-md-8{-ms-flex-order:8;order:8}.order-md-9{-ms-flex-order:9;order:9}.order-md-10{-ms-flex-order:10;order:10}.order-md-11{-ms-flex-order:11;order:11}.order-md-12{-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-lg-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-lg-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-lg-first{-ms-flex-order:-1;order:-1}.order-lg-last{-ms-flex-order:13;order:13}.order-lg-0{-ms-flex-order:0;order:0}.order-lg-1{-ms-flex-order:1;order:1}.order-lg-2{-ms-flex-order:2;order:2}.order-lg-3{-ms-flex-order:3;order:3}.order-lg-4{-ms-flex-order:4;order:4}.order-lg-5{-ms-flex-order:5;order:5}.order-lg-6{-ms-flex-order:6;order:6}.order-lg-7{-ms-flex-order:7;order:7}.order-lg-8{-ms-flex-order:8;order:8}.order-lg-9{-ms-flex-order:9;order:9}.order-lg-10{-ms-flex-order:10;order:10}.order-lg-11{-ms-flex-order:11;order:11}.order-lg-12{-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-xl-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-xl-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;order:-1}.order-xl-last{-ms-flex-order:13;order:13}.order-xl-0{-ms-flex-order:0;order:0}.order-xl-1{-ms-flex-order:1;order:1}.order-xl-2{-ms-flex-order:2;order:2}.order-xl-3{-ms-flex-order:3;order:3}.order-xl-4{-ms-flex-order:4;order:4}.order-xl-5{-ms-flex-order:5;order:5}.order-xl-6{-ms-flex-order:6;order:6}.order-xl-7{-ms-flex-order:7;order:7}.order-xl-8{-ms-flex-order:8;order:8}.order-xl-9{-ms-flex-order:9;order:9}.order-xl-10{-ms-flex-order:10;order:10}.order-xl-11{-ms-flex-order:11;order:11}.order-xl-12{-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered{border:1px solid #dee2e6}.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{color:#212529;background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#7abaff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#8fd19e}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#86cfda}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#ffdf7e}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#ed969e}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.05)}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:rgba(255,255,255,.075)}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control::-webkit-input-placeholder{color:#6c757d;opacity:1}.form-control::-moz-placeholder{color:#6c757d;opacity:1}.form-control:-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;font-size:1rem;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size]{height:auto}textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(40,167,69,.9);border-radius:.25rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:#28a745;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#28a745;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label::before,.was-validated .custom-control-input:valid~.custom-control-label::before{border-color:#28a745}.custom-control-input.is-valid:checked~.custom-control-label::before,.was-validated .custom-control-input:valid:checked~.custom-control-label::before{border-color:#34ce57;background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label::before,.was-validated .custom-control-input:valid:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label::before,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label::before{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.25rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#dc3545;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label::before,.was-validated .custom-control-input:invalid~.custom-control-label::before{border-color:#dc3545}.custom-control-input.is-invalid:checked~.custom-control-label::before,.was-validated .custom-control-input:invalid:checked~.custom-control-label::before{border-color:#e4606d;background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label::before{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-inline{display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;-ms-flex-negative:0;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.btn.disabled,.btn:disabled{opacity:.65}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#0069d9;border-color:#0062cc;box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{color:#fff;background-color:#5a6268;border-color:#545b62;box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#218838;border-color:#1e7e34;box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#138496;border-color:#117a8b;box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{color:#212529;background-color:#e0a800;border-color:#d39e00;box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c82333;border-color:#bd2130;box-shadow:0 0 0 .2rem rgba(225,83,97,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(225,83,97,.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{color:#212529;background-color:#e2e6ea;border-color:#dae0e5;box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{color:#fff;background-color:#23272b;border-color:#1d2124;box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-outline-primary{color:#007bff;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#28a745;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info{color:#17a2b8;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning{color:#ffc107;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger{color:#dc3545;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#007bff;text-decoration:none}.btn-link:hover{color:#0056b3;text-decoration:underline}.btn-link.focus,.btn-link:focus{text-decoration:underline;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-toggle::after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle::after{display:none}.dropleft .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty::after{margin-left:0}.dropleft .dropdown-toggle::before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-toolbar{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:start;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropright .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropleft .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:stretch;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;-ms-flex:1 1 0%;flex:1 1 0%;min-width:0;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:-ms-flexbox;display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:-ms-inline-flexbox;display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.25rem;opacity:0}.custom-control-input:checked~.custom-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label::before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label::before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label,.custom-control-input[disabled]~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label::before,.custom-control-input[disabled]~.custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label::before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px}.custom-control-label::after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label::before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before{border-color:#007bff;background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-radio .custom-control-label::before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label::before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label::after{top:calc(.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label::after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label::after{background-color:#fff;-webkit-transform:translateX(.75rem);transform:translateX(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-select{display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem}.custom-file{position:relative;display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(1.5em + .75rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-file-input:disabled~.custom-file-label,.custom-file-input[disabled]~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label::after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]::after{content:attr(data-browse)}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label::after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:calc(1.5em + .75rem);padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:1.4rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{-moz-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;-ms-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{-ms-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label::before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label::before,.custom-file-label,.custom-select{transition:none}}.nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{-ms-flex:1 1 auto;flex:1 1 auto;text-align:center}.nav-justified .nav-item{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem 1rem}.navbar .container,.navbar .container-fluid,.navbar .container-lg,.navbar .container-md,.navbar .container-sm,.navbar .container-xl{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-sm .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-md .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-lg .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-xl .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:rgba(0,0,0,.9)}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a{color:rgba(0,0,0,.9)}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:rgba(255,255,255,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:rgba(255,255,255,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:rgba(255,255,255,.5);border-color:rgba(255,255,255,.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-dark .navbar-text{color:rgba(255,255,255,.5)}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{-ms-flex:1 1 auto;flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img,.card-img-bottom,.card-img-top{-ms-flex-negative:0;flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{-ms-flex:1 0 0%;flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}.card-group>.card{-ms-flex:1 0 0%;flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{-webkit-column-count:3;-moz-column-count:3;column-count:3;-webkit-column-gap:1.25rem;-moz-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item::before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:-ms-flexbox;display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:3;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#0062cc}a.badge-primary.focus,a.badge-primary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.badge-success{color:#fff;background-color:#28a745}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#1e7e34}a.badge-success.focus,a.badge-success:focus{outline:0;box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.badge-info{color:#fff;background-color:#17a2b8}a.badge-info:focus,a.badge-info:hover{color:#fff;background-color:#117a8b}a.badge-info.focus,a.badge-info:focus{outline:0;box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.badge-warning{color:#212529;background-color:#ffc107}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#d39e00}a.badge-warning.focus,a.badge-warning:focus{outline:0;box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.badge-danger{color:#fff;background-color:#dc3545}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#bd2130}a.badge-danger.focus,a.badge-danger:focus{outline:0;box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}.progress{display:-ms-flexbox;display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{-webkit-animation:none;animation:none}}.media{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.media-body{-ms-flex:1;flex:1}.list-group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal .list-group-item.active{margin-top:0}.list-group-horizontal .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media (min-width:576px){.list-group-horizontal-sm{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-sm .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-sm .list-group-item.active{margin-top:0}.list-group-horizontal-sm .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:768px){.list-group-horizontal-md{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-md .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-md .list-group-item.active{margin-top:0}.list-group-horizontal-md .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:992px){.list-group-horizontal-lg{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-lg .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-lg .list-group-item.active{margin-top:0}.list-group-horizontal-lg .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:1200px){.list-group-horizontal-xl{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-xl .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-xl .list-group-item.active{margin-top:0}.list-group-horizontal-xl .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush .list-group-item{border-right-width:0;border-left-width:0;border-radius:0}.list-group-flush .list-group-item:first-child{border-top-width:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:.875rem;background-color:rgba(255,255,255,.85);background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem rgba(0,0,0,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:rgba(255,255,255,.85);background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(0,-50px);transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{-webkit-transform:none;transform:none}.modal.modal-static .modal-dialog{-webkit-transform:scale(1.02);transform:scale(1.02)}.modal-dialog-scrollable{display:-ms-flexbox;display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{-ms-flex-negative:0;flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered::before{display:block;height:calc(100vh - 1rem);content:""}.modal-dialog-centered.modal-dialog-scrollable{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable::before{content:none}.modal-content{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.modal-header .close{padding:1rem 1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;padding:1rem}.modal-footer{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding:.75rem;border-top:1px solid #dee2e6;border-bottom-right-radius:calc(.3rem - 1px);border-bottom-left-radius:calc(.3rem - 1px)}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered::before{height:calc(100vh - 3.5rem)}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow::before,.bs-tooltip-top .arrow::before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow::before,.bs-tooltip-right .arrow::before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow::before,.bs-tooltip-bottom .arrow::before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow::before,.bs-tooltip-left .arrow::before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow::after,.popover .arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=top]>.arrow::before,.bs-popover-top>.arrow::before{bottom:0;border-width:.5rem .5rem 0;border-top-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=top]>.arrow::after,.bs-popover-top>.arrow::after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow::before,.bs-popover-right>.arrow::before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=right]>.arrow::after,.bs-popover-right>.arrow::after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=bottom]>.arrow::before,.bs-popover-bottom>.arrow::before{top:0;border-width:0 .5rem .5rem .5rem;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=bottom]>.arrow::after,.bs-popover-bottom>.arrow::after{top:1px;border-width:0 .5rem .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow::before,.bs-popover-left>.arrow::before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=left]>.arrow::after,.bs-popover-left>.arrow::after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{-ms-touch-action:pan-y;touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;transition:transform .6s ease-in-out,-webkit-transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){-webkit-transform:translateX(100%);transform:translateX(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){-webkit-transform:translateX(-100%);transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;-webkit-transform:none;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;-ms-flex:0 1 auto;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@-webkit-keyframes spinner-border{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-border{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid currentColor;border-right-color:transparent;border-radius:50%;-webkit-animation:spinner-border .75s linear infinite;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@-webkit-keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1}}@keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;-webkit-animation:spinner-grow .75s linear infinite;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix::after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:-ms-flexbox!important;display:flex!important}.d-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:-ms-flexbox!important;display:flex!important}.d-sm-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:-ms-flexbox!important;display:flex!important}.d-md-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:-ms-flexbox!important;display:flex!important}.d-lg-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:-ms-flexbox!important;display:flex!important}.d-xl-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:-ms-flexbox!important;display:flex!important}.d-print-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.857143%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.flex-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-center{-ms-flex-align:center!important;align-items:center!important}.align-items-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}@media (min-width:576px){.flex-sm-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-sm-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-sm-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-sm-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-sm-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-sm-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-sm-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-sm-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-sm-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-sm-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-sm-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-sm-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-sm-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-sm-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-sm-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-sm-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-sm-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-sm-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-sm-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-sm-center{-ms-flex-align:center!important;align-items:center!important}.align-items-sm-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-sm-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-sm-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-sm-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-sm-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-sm-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-sm-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-sm-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-sm-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-sm-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-sm-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-sm-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-sm-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-sm-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:768px){.flex-md-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-md-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-md-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-md-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-md-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-md-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-md-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-md-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-md-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-md-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-md-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-md-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-md-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-md-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-md-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-md-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-md-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-md-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-md-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-md-center{-ms-flex-align:center!important;align-items:center!important}.align-items-md-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-md-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-md-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-md-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-md-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-md-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-md-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-md-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-md-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-md-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-md-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-md-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-md-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-md-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-lg-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-lg-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-lg-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-lg-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-lg-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-lg-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-lg-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-lg-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-lg-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-lg-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-lg-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-lg-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-lg-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-lg-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-lg-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-lg-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-lg-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-lg-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-lg-center{-ms-flex-align:center!important;align-items:center!important}.align-items-lg-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-lg-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-lg-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-lg-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-lg-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-lg-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-lg-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-lg-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-lg-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-lg-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-lg-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-lg-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-lg-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-lg-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-xl-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-xl-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-xl-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-xl-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-xl-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-xl-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-xl-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-xl-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-xl-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-xl-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-xl-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-xl-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-xl-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-xl-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-xl-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-xl-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-xl-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-xl-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-xl-center{-ms-flex-align:center!important;align-items:center!important}.align-items-xl-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-xl-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-xl-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-xl-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-xl-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-xl-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-xl-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-xl-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-xl-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-xl-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-xl-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-xl-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-xl-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-xl-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports ((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:auto;content:"";background-color:rgba(0,0,0,0)}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#19692c!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#0f6674!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#a71d2a!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:rgba(255,255,255,.5)!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;overflow-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,::after,::before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body{min-width:992px!important}.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}} -/*# sourceMappingURL=bootstrap.min.css.map */ \ No newline at end of file +/*# sourceMappingURL=bootstrap.min.css.map */